urllib2 does not implement "with" Python 2.6
Paul Rubin
no.email at nospam.invalid
Thu Aug 12 02:14:19 EDT 2010
More information about the Python-list mailing list
Thu Aug 12 02:14:19 EDT 2010
- Previous message (by thread): urllib2 does not implement "with" Python 2.6
- Next message (by thread): urllib2 does not implement "with" Python 2.6
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
John Nagle <nagle at animats.com> writes: > "AttributeError: addinfourl instance has no attribute '__exit__'". > > I thought that all the file-like objects supported "with" in 2.6. > No? I guess not. Use contextlib.closing.
- Previous message (by thread): urllib2 does not implement "with" Python 2.6
- Next message (by thread): urllib2 does not implement "with" Python 2.6
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list