[issue6790] httplib and array do not play together well

2009-09-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Why do you need to give a non-empty body to the FakeSocket? Other than that, looks fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6790

[issue6790] httplib and array do not play together well

2009-08-27 Thread Jake McGuire
New submission from Jake McGuire j...@youtube.com: 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.

[issue6790] httplib and array do not play together well

2009-08-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: That method of array.array has been deprecated since 1.5.1 according to the docs. Too bad nobody finished the job and removed it. Perhaps array.array could be special cased in the relevant code until the method can actually be removed.