PyDocs

Nav

Python Runtime Services

object.__getnewargs__

builtins

method of object
  • object.__getnewargs__()
This method serves a similar purpose as __getnewargs_ex__(), but supports only positional arguments. It must return a tuple of arguments args which will be passed to the __new__() method upon unpickling.
Changed in 3.6
  • 3.6: Before Python 3.6, __getnewargs__() was called instead of __getnewargs_ex__() in protocols 2 and 3.
0 Examples
No examples for builtins/object.__getnewargs__.
See Also
No see-alsos for builtins/object.__getnewargs__
0 Notes
No notes for object.__getnewargs__