Message172677
The documentation for shlex does not prohibit the user from setting .posix=True after creating a shlex object. When doing so, the .eof attribute is inconsistent, creating an infinite loop in the __next__ method.
Here's some sample code to recreate the issue:
import shlex
s = shlex.shlex(r"", posix=False)
s.posix = True
list(s)
One possible solution is to make .posix a read-only property. Another is to make .posix a property which sets .eof correctly. |
|
Date |
User |
Action |
Args |
2012-10-11 19:09:30 | roger.serwy | set | recipients:
+ roger.serwy |
2012-10-11 19:09:30 | roger.serwy | set | messageid: <1349982570.12.0.849029926696.issue16200@psf.upfronthosting.co.za> |
2012-10-11 19:09:30 | roger.serwy | link | issue16200 messages |
2012-10-11 19:09:29 | roger.serwy | create | |
|