Message92015
As of Python 2.6 you can no longer pass an array to
httplib.HTTPConnection.send.
Issue1065257 added code to httplib to attempt to determine whether a
file-like object was passed to certain methods (e.g. send), and to
stream the data if so.
The patch uses "hasattr(obj, 'read')" as a proxy for "is a file-like
object".
array.array objects have a method called "read" that is almost entirely
disanalogous to the "read" method on a file-like object.
Hilarity ensues. |
|
Date |
User |
Action |
Args |
2009-08-27 21:08:19 | jakemcguire | set | recipients:
+ jakemcguire |
2009-08-27 21:08:19 | jakemcguire | set | messageid: <1251407299.25.0.631458654442.issue6790@psf.upfronthosting.co.za> |
2009-08-27 21:08:18 | jakemcguire | link | issue6790 messages |
2009-08-27 21:08:17 | jakemcguire | create | |
|