Message117299
Under 3.2 and 3.1:
>>> with open("foo", "wb") as x: pass
...
>>> with open("foo", "wb") as (x, y): pass
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
io.UnsupportedOperation: read
Similar oddities under 2.7:
>>> with open("foo", "wb") as (x, y): pass
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: File not open for reading
>>> with io.open("foo", "wb") as (x, y): pass
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
io.UnsupportedOperation: read |
|
Date |
User |
Action |
Args |
2010-09-24 15:41:56 | pitrou | set | recipients:
+ pitrou, benjamin.peterson, stutzbach |
2010-09-24 15:41:56 | pitrou | set | messageid: <1285342916.31.0.472051249531.issue9940@psf.upfronthosting.co.za> |
2010-09-24 15:41:54 | pitrou | link | issue9940 messages |
2010-09-24 15:41:54 | pitrou | create | |
|