[issue4294] Macros for PyLong: sign, number of digits, fits in an int
Mark Dickinson
report at bugs.python.org
Sun Jan 3 13:34:38 CET 2010
Mark Dickinson <dickinsm at gmail.com> added the comment:
Closing this. I like the PyLong_IS_NEGATIVE and PyLong_IS_ZERO macros, but I can't find anywhere outside longobject.c where they'd actually be useful (with the possible exception of marshal.c, but that currently depends on knowing lots about the long implementation anyway). And I don't really see much benefit from doing a mass replacement of uses of 'Py_SIZE(a) < 0', etc. in Objects/longobject.c; I think it's the code is readable enough as it stands.
----------
resolution: -> rejected
status: open -> pending
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4294>
_______________________________________
More information about the Python-bugs-list
mailing list