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 pitrou
Recipients pitrou
Date 2009-12-08.19:52:30
SpamBayes Score 2.168275e-06
Marked as misclassified No
Message-id <1260301952.86.0.775558943909.issue7461@psf.upfronthosting.co.za>
In-reply-to
Content
This works under trunk but fails under py3k:

>>> import os
>>> with os.popen("ls", "r") as f:
...  print(f.read())
... 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: __exit__
History
Date User Action Args
2009-12-08 19:52:32pitrousetrecipients: + pitrou
2009-12-08 19:52:32pitrousetmessageid: <1260301952.86.0.775558943909.issue7461@psf.upfronthosting.co.za>
2009-12-08 19:52:31pitroulinkissue7461 messages
2009-12-08 19:52:30pitroucreate