[issue16200] Setting .posix=True for shlex object causes infinite loop in __next__

Ezio Melotti report at bugs.python.org
Mon Oct 15 11:33:33 CEST 2012


Ezio Melotti added the comment:

Making .posix read-only is technically backward-incompatible, but I'm not sure if there are cases where people might have changed its value without incurring in the bug.  Leaving .posix read/writable and changing .eof accordingly might be a better solution.

As a side note, you can use assertRaises (possibly as a context manager) in the tests.

----------
stage:  -> patch review
versions: +Python 3.2

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


More information about the Python-bugs-list mailing list