예제 #1
0
파일: complexobject.py 프로젝트: Mu-L/pypy
 def descr_format(self, space, w_format_spec):
     return newformat.run_formatter(space, w_format_spec, "format_complex",
                                    self)
예제 #2
0
def format__Complex_ANY(space, w_complex, w_format_spec):
    return newformat.run_formatter(space, w_format_spec, "format_complex", w_complex)
예제 #3
0
 def descr_format(self, space, w_format_spec):
     return newformat.run_formatter(space, w_format_spec, "format_complex",
                                    self)
예제 #4
0
파일: longobject.py 프로젝트: Qointum/pypy
 def descr_format(self, space, w_format_spec):
     return newformat.run_formatter(space, w_format_spec,
                                    "format_int_or_long", self,
                                    newformat.LONG_KIND)
예제 #5
0
def format__Long_ANY(space, w_long, w_format_spec):
    return newformat.run_formatter(space, w_format_spec, "format_int_or_long",
                                   w_long, newformat.LONG_KIND)
예제 #6
0
파일: longobject.py 프로젝트: njues/Sypy
def format__Long_ANY(space, w_long, w_format_spec):
    return newformat.run_formatter(space, w_format_spec, "format_int_or_long",
                                   w_long, newformat.LONG_KIND)
예제 #7
0
def format__Int_ANY(space, w_int, w_format_spec):
    return newformat.run_formatter(space, w_format_spec, "format_int_or_long",
                                   w_int, newformat.INT_KIND)
예제 #8
0
 def descr__format__(self, space, w_format_spec):
     return newformat.run_formatter(space, w_format_spec, "format_string",
                                    self)
예제 #9
0
 def descr_format(self, space, w_spec):
     return newformat.run_formatter(space, w_spec, "format_float", self)
예제 #10
0
def format__Int_ANY(space, w_int, w_format_spec):
    return newformat.run_formatter(space, w_format_spec, "format_int_or_long",
                                   w_int, newformat.INT_KIND)
예제 #11
0
파일: longobject.py 프로젝트: zcxowwww/pypy
 def descr_format(self, space, w_format_spec):
     return newformat.run_formatter(space, w_format_spec,
                                    "format_int_or_long", self,
                                    newformat.LONG_KIND)
예제 #12
0
def format__Float_ANY(space, w_float, w_spec):
    return newformat.run_formatter(space, w_spec, "format_float", w_float)
예제 #13
0
def format__Float_ANY(space, w_float, w_spec):
    return newformat.run_formatter(space, w_spec, "format_float", w_float)
예제 #14
0
 def descr__format__(self, space, w_format_spec):
     return newformat.run_formatter(space, w_format_spec, "format_string",
                                    self)
예제 #15
0
def format__Complex_ANY(space, w_complex, w_format_spec):
    return newformat.run_formatter(space, w_format_spec, "format_complex",
                                   w_complex)
예제 #16
0
파일: boolobject.py 프로젝트: charred/pypy
def format__Bool_ANY(space, w_bool, w_format_spec):
    return newformat.run_formatter(
            space, w_format_spec, "format_int_or_long", w_bool,
            newformat.INT_KIND)