This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, benjamin.peterson, pitrou, stutzbach
Date 2010-09-24.16:39:45
SpamBayes Score 5.3330747e-05
Marked as misclassified No
Message-id <1285346387.02.0.0227751052466.issue9940@psf.upfronthosting.co.za>
In-reply-to
Content
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()
History
Date User Action Args
2010-09-24 16:39:47amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, pitrou, benjamin.peterson, stutzbach
2010-09-24 16:39:47amaury.forgeotdarcsetmessageid: <1285346387.02.0.0227751052466.issue9940@psf.upfronthosting.co.za>
2010-09-24 16:39:45amaury.forgeotdarclinkissue9940 messages
2010-09-24 16:39:45amaury.forgeotdarccreate