Message117307
Of course, you get the same error with:
>>> f = open('foo', 'wb')
>>> x, y = f
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: File not open for reading
i.e. the tuple assignment iterates over the file, and calls readline() |
|
Date |
User |
Action |
Args |
2010-09-24 16:39:47 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, pitrou, benjamin.peterson, stutzbach |
2010-09-24 16:39:47 | amaury.forgeotdarc | set | messageid: <1285346387.02.0.0227751052466.issue9940@psf.upfronthosting.co.za> |
2010-09-24 16:39:45 | amaury.forgeotdarc | link | issue9940 messages |
2010-09-24 16:39:45 | amaury.forgeotdarc | create | |
|