示例#1
0
 def __init__(self, cls, initial_list=None):
     UserList.__init__(self)
     if initial_list:
         for item in initial_list:
             if isinstance(item, cls):
                 self.data.append(item)
             elif isinstance(item, dict):
                 self.data.append(cls.from_json(item))
 def __init__(self, cls, initial_list=None):
     UserList.__init__(self)
     if initial_list:
         for item in initial_list:
             if isinstance(item, cls):
                 self.data.append(item)
             elif isinstance(item, dict):
                 self.data.append(cls.from_json(item))
示例#3
0
 def __init__(self, prefix=None, suffix=None):
     UserList.__init__(self)
     self.prefix = prefix
     self.suffix = suffix
示例#4
0
 def __init__(self, value=None, tag=None):
     BERStructured.__init__(self, tag)
     assert value is not None
     UserList.__init__(self, value)
示例#5
0
 def __init__(self, *args, **kwargs):
     PdfType.__init__(self)
     UserList.__init__(self, *args, **kwargs)
示例#6
0
 def __init__(self, *args, **kwargs):
     PdfType.__init__(self)
     UserList.__init__(self, *args, **kwargs)
示例#7
0
 def __init__(self, name='', *args):
     UserList.__init__(self, *args)
     self.__name__ = name
     if args:
         self._update()