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 jakemcguire
Recipients jakemcguire
Date 2009-08-27.21:08:17
SpamBayes Score 0.00013332877
Marked as misclassified No
Message-id <1251407299.25.0.631458654442.issue6790@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-08-27 21:08:19jakemcguiresetrecipients: + jakemcguire
2009-08-27 21:08:19jakemcguiresetmessageid: <1251407299.25.0.631458654442.issue6790@psf.upfronthosting.co.za>
2009-08-27 21:08:18jakemcguirelinkissue6790 messages
2009-08-27 21:08:17jakemcguirecreate