Lines Matching refs:args
133 GLOBAL = b'c' # push self.find_class(modname, name); 2 string args
621 def save_reduce(self, func, args, state=None, listitems=None,
625 if not isinstance(args, tuple):
626 raise PicklingError("args from save_reduce() must be a tuple")
635 cls, args, kwargs = args
637 raise PicklingError("args[0] from {} args has no __new__"
640 raise PicklingError("args[0] from {} args has the wrong class"
644 save(args)
648 func = partial(cls.__new__, cls, *args, **kwargs)
662 # def __newobj__(cls, *args):
663 # return cls.__new__(cls, *args)
667 # cls, the remaining args tuple, and the NEWOBJ code,
668 # which calls cls.__new__(cls, *args) at unpickling time
679 cls = args[0]
682 "args[0] from __newobj__ args has no __new__")
685 "args[0] from __newobj__ args has the wrong class")
686 args = args[1:]
688 save(args)
692 save(args)
1485 def _instantiate(self, klass, args):
1486 if (args or not isinstance(klass, type) or
1489 value = klass(*args)
1506 args = self.pop_mark()
1507 cls = args.pop(0)
1508 self._instantiate(cls, args)
1512 args = self.stack.pop()
1514 obj = cls.__new__(cls, *args)
1520 args = self.stack.pop()
1522 obj = cls.__new__(cls, *args, **kwargs)
1588 args = stack.pop()
1590 stack[-1] = func(*args)
1810 args = parser.parse_args()
1811 if args.test:
1814 if not args.pickle_file:
1818 for f in args.pickle_file: