Beispiel #1
0
 def descr_format(self, space, __args__):
     w_kwds = space.newdict()
     if __args__.keywords:
         for i in range(len(__args__.keywords)):
             space.setitem(w_kwds, space.wrap(__args__.keywords[i]),
                           __args__.keywords_w[i])
     return newformat.format_method(space, self, __args__.arguments_w,
                                    w_kwds, True)
Beispiel #2
0
 def descr_format(self, space, __args__):
     w_kwds = space.newdict()
     if __args__.keywords:
         for i in range(len(__args__.keywords)):
             space.setitem(w_kwds, space.wrap(__args__.keywords[i]),
                           __args__.keywords_w[i])
     return newformat.format_method(space, self, __args__.arguments_w,
                                    w_kwds, True)
Beispiel #3
0
 def descr_format_map(self, space, w_mapping):
     return newformat.format_method(space, self, None, w_mapping, True)
Beispiel #4
0
def unicode_format__Unicode(space, w_unicode, __args__):
    return newformat.format_method(space, w_unicode, __args__, True)
Beispiel #5
0
 def descr_format(self, space, __args__):
     return newformat.format_method(space, self, __args__, is_unicode=True)
Beispiel #6
0
 def descr_format(self, space, __args__):
     return newformat.format_method(space, self, __args__, is_unicode=False)
Beispiel #7
0
def str_format__String(space, w_string, __args__):
    return newformat.format_method(space, w_string, __args__, False)
Beispiel #8
0
def str_format__String(space, w_string, __args__):
    return newformat.format_method(space, w_string, __args__, False)
Beispiel #9
0
 def descr_format_map(self, space, w_mapping):
     return newformat.format_method(space, self, None, w_mapping, True)
Beispiel #10
0
 def descr_format(self, space, __args__):
     w_kwds = space.newdict()
     if __args__.keywords:
         self._parse_format_arg(space, w_kwds, __args__)
     return newformat.format_method(space, self, __args__.arguments_w,
                                    w_kwds, True)