[issue23419] Faster default __reduce__ for classes without __init__

Amaury Forgeot d'Arc report at bugs.python.org
Thu Mar 19 11:04:10 CET 2015


Amaury Forgeot d'Arc added the comment:

But isn't the result different?
NEWOBJ calls cls.__new__() and __init__ is skipped.
REDUCE calls cls(): both __new__ and __init__ are used.

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23419>
_______________________________________


More information about the Python-bugs-list mailing list