Message83174
response = urllib.request.open(someURL)
page = response.read()
close() be called on response after the read(), right? Experimentation
shows that I can repeatedly read from response until I close it, getting
back empty bytes objects.
Thinking that anything with a close() should support the with statement,
I tried putting the code inside one but got
AttributeError: 'addinfourl' object has no attribute '__exit__'
so I can see that it doesn't support with. It seems like it should. |
|
Date |
User |
Action |
Args |
2009-03-05 00:58:42 | MLModel | set | recipients:
+ MLModel |
2009-03-05 00:58:40 | MLModel | set | messageid: <1236214720.46.0.00736247638438.issue5418@psf.upfronthosting.co.za> |
2009-03-05 00:58:39 | MLModel | link | issue5418 messages |
2009-03-05 00:58:37 | MLModel | create | |
|