◐ Shell
clean mode source ↗

Message 123044 - Python tracker

> > 2) Can call len but not buffer: assume len == #bytes

> Why do you need it at all?

Hmm, I'm looking at the the tests in urllib2 that fail if we omit this... in test_urllib2 there are tests that do this:

req = Request("http://example.com/", "")

and they expect Content-Length to be set to 0...