[issue1720595] Allow T_BOOL in PyMemberDef definitions

Antoine Pitrou report at bugs.python.org
Sun Jan 20 22:50:40 CET 2008


Antoine Pitrou added the comment:

It seems to me that, when a boolean is to be represented, most C
programmers would expect a char rather than an int. Also an int would
make the object larger without any benefit.

As for type checking, Angelo's patch already does a PyBool_Check against
the argument. Is anything more required?

----------
nosy: +pitrou

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1720595>
_____________________________________


More information about the Python-bugs-list mailing list