[issue20341] Argument Clinic: add "nullable ints"

Antoine Pitrou report at bugs.python.org
Wed Jan 22 22:19:31 CET 2014


Antoine Pitrou added the comment:

> > int(or_none=True) ?
> 
> Yes, that is a different name that seems to mean much the same thing.

and which is much more understandable by a Python developer.

> Changing error to an char and moving it to the end would
> save exactly zero bytes, because the compiler *will* align
> stack variables to 4 byte boundaries.

Except if other stack variables happen to be shorter than an int,
perhaps. But regardless, it doesn't cost anything to do so, so why not
do it?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20341>
_______________________________________


More information about the Python-bugs-list mailing list