[issue23350] Content-length is incorrect when request body is a list or tuple

2015-04-13 Thread Vincent Alquier
Vincent Alquier added the comment: Another issue should be addressed by patch... When trying to guess the content-length, here is the code you find... try: thelen = str(len(body)) except TypeError as te: [...] The call to `len` will raise a `TypeError

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-04-14 Thread Vincent Alquier
Vincent Alquier added the comment: Martin: You're right, it's the same issue, and only related to python2's old style classes. Sorry for the useless noise. Demian: My problem is `len(obj)` raises an Using AttributeError in python2 (with obj being old style class instance).