Пример #1
0
 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
 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
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
 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
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)