[issue38205] Python no longer compiles without small integer singletons

Gregory P. Smith report at bugs.python.org
Wed Sep 18 17:41:46 EDT 2019


Gregory P. Smith <greg at krypto.org> added the comment:

While I don't like how that get_small_int macro is defined...
and I don't like that Py_UNREACHABLE() was usable as an expression in the past...

it is probably best to just revert 3ab61473ba7f3dca32d779ec2766a4faa0657923.

The choice to use a macro for this when it was created and the way the macro was defined means it is an expression forever unless we want to bother forcing code cleanups for uses of it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38205>
_______________________________________


More information about the Python-bugs-list mailing list