Used by pickle protocol 4, instead of __newobj__ to allow classes with keyword-only arguments to be pickled correctly.
(cls, args, kwargs)
| 105 | return cls.__new__(cls, *args) |
| 106 | |
| 107 | def __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 | |
| 113 | def _slotnames(cls): |
| 114 | """Return a list of slot names for a given class. |