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 orsenthil
Recipients catlee, davide.rizzo, eric.araujo, georg.brandl, jhylton, orsenthil, pitrou, rcoyner, rhettinger, xuanji
Date 2010-12-02.02:40:50
SpamBayes Score 0.00038059475
Marked as misclassified No
Message-id <20101202024043.GC1873@rubuntu>
In-reply-to <1291223302.3569.3.camel@localhost.localdomain>
Content
On Wed, Dec 01, 2010 at 05:08:26PM +0000, Antoine Pitrou wrote:
> Antoine Pitrou <pitrou@free.fr> added the comment:
> > if not request.has_header('Content-length'):
> >     if (not hasattr(data, '__read__') and 
> 
> What is __read__ supposed to be?

I don't think is required. The previous 2.x version patch was doing
this just to ensure that it is not file object and then it is a
sequence. (I could not understand why)

Now, when you determine that the sequence can be bytes, bytearray or
array.array then testing for memory view is enough. File objects
without Content-Length would raise an Exception too.

Not required. For the same reason as above.
History
Date User Action Args
2010-12-02 02:40:52orsenthilsetrecipients: + orsenthil, jhylton, georg.brandl, rhettinger, pitrou, catlee, eric.araujo, rcoyner, xuanji, davide.rizzo
2010-12-02 02:40:50orsenthillinkissue3243 messages
2010-12-02 02:40:50orsenthilcreate