[issue2997] PyNumberMethods has left-over fields in Py3

Amaury Forgeot d'Arc report at bugs.python.org
Fri Jun 6 13:45:19 CEST 2008

Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

Let me quote a comment from GvR about the similar issue1185:

Can you redo the patch while keeping the slot *position* (though not the
name or type)?  The wasted space is minimal (4-8 bytes per type or class
object) and it means a lot for third party code if the positional struct
initialization never breaks due to insertion or removal of a slot. 
Since everyone has a zero here anyway, I propose to name the slot
nb_reserved and make its type int.

OTOH, it's python 3.0, and we are allowed to break things...

nosy: +amaury.forgeotdarc

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list