Author pitrou
Recipients pitrou
Date 2009-12-08.19:52:30
SpamBayes Score 2.16827e-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