MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __newobj_ex__

Function __newobj_ex__

tools/python-3.11.9-amd64/Lib/copyreg.py:107–111  ·  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

105 return cls.__new__(cls, *args)
106
107def __newobj_ex__(cls, args, kwargs):
108 """Used by pickle protocol 4, instead of __newobj__ to allow classes with
109 keyword-only arguments to be pickled correctly.
110 """
111 return cls.__new__(cls, *args, **kwargs)
112
113def _slotnames(cls):
114 """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