[issue9020] 2.7: eval hangs on AIX

Stefan Krah report at bugs.python.org
Sat Jun 19 15:15:00 CEST 2010


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

Martin v. Löwis <report at bugs.python.org> wrote:
> > Of course, it is dubious why EOF is not tested separately rather than
> > passing it to Py_ISALNUM(). Micro-optimization? At least a comment
> > should be added.
> 
> No, I think this is an error that EOF is not processed separately.
> Otherwise, char 255 may be confused with EOF.

Indeed. I think Py_ISALNUM() should check for EOF, to be consistent
with the C isalnum(int c).

----------

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


More information about the Python-bugs-list mailing list