MCPcopy Index your code
hub / github.com/python/cpython / __newobj_ex__

Function __newobj_ex__

Lib/copyreg.py:106–110  ·  view source on GitHub ↗

Used by pickle protocol 4, instead of __newobj__ to allow classes with keyword-only arguments to be pickled correctly.

(cls, args, kwargs)

Source from the content-addressed store, hash-verified

104 return cls.__new__(cls, *args)
105
106def __newobj_ex__(cls, args, kwargs):
107 """Used by pickle protocol 4, instead of __newobj__ to allow classes with
108 keyword-only arguments to be pickled correctly.
109 """
110 return cls.__new__(cls, *args, **kwargs)
111
112def _slotnames(cls):
113 """Return a list of slot names for a given class.

Callers

nothing calls this directly

Calls 1

__new__Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…