◐ Shell
clean mode source ↗

Message 171007 - Python tracker

> 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.