This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients amaury.forgeotdarc, asvetlov, eric.smith, larry, loewis, mark.dickinson, meador.inge, pitrou, rhettinger, sdaoden, serhiy.storchaka, stutzbach, vstinner, xuanji
Date 2012-09-22.16:51:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
> I recommend to close the issue as rejected.

I think _PyLong_IS_SMALL_INT can be rewritten in a safe style. For example, using a checking of several fields ((sdigit)(x)->ob_digit[0] < _MAX_SMALL_INT && PySIZE(x) <= 1) or a 
special flag. It is possible however that shuch checking will fully destroy the effect of optimization. We need further research.
Date User Action Args
2012-09-22 16:51:10serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, rhettinger, amaury.forgeotdarc, mark.dickinson, pitrou, vstinner, larry, eric.smith, stutzbach, asvetlov, meador.inge, xuanji, sdaoden
2012-09-22 16:51:10serhiy.storchakalinkissue10044 messages
2012-09-22 16:51:09serhiy.storchakacreate