Mark Dickinson <dicki...@gmail.com> added the comment: Thanks, Benjamin! Checked in in r68553, backported to 3.0 in r68556.
Here's the second patch, which fixes almost all remaining uses of nb_long but stops short of actually removing/renaming the nb_long slot. Notes: (1) I haven't tested the change to PC/winreg.c (2) The Modules/_struct.c change does introduce a change in behaviour: for example, before the patch, struct.pack('q', decimal.Decimal(1)) raises struct.error. After the patch, the packing succeeds. I *think* the patched behaviour is probably the right behaviour, since it agrees with 2.x, but it's not 100% clear to me what the intentions of the struct module are with respect to integer packing of non-integer types. This is probably a question for another issue. Added file: http://bugs.python.org/file12754/issue4910_2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4910> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com