Message89072
The offending lines in io.py are:
modes = set(mode)
if modes - set("arwb+tU") or len(mode) > len(modes):
raise ValueError("invalid mode: %r" % mode)
In particular, the "or len(mode) > len(modes)" is picking off the fact
that there is repeated mode characters. Leaving that off allows
io.open() to behave exactly like the built-in open() call.
OTOH, someone obviously wanted to make sure that repeat mode characters
were not allowed. So I guess someone needs to rule on whether we want
io.open() and io.FileIO() to behave like the built-in, or to keep things
more strict. |
|
Date |
User |
Action |
Args |
2009-06-08 10:05:13 | jszakmeister | set | recipients:
+ jszakmeister, eckhardt |
2009-06-08 10:05:13 | jszakmeister | set | messageid: <1244455513.62.0.538771816046.issue4829@psf.upfronthosting.co.za> |
2009-06-08 10:05:12 | jszakmeister | link | issue4829 messages |
2009-06-08 10:05:11 | jszakmeister | create | |
|