[issue8572] httplib getheader() throws error instead of default

Walter Woods report at bugs.python.org
Thu Apr 29 23:20:04 CEST 2010


Walter Woods <woodswalben at gmail.com> added the comment:

Little more info:

The actual snippet from couchdb-python is:

  if int(resp.getheader('content-length', sys.maxsize)) < CHUNK_SIZE:

Which should be valid python . . . calling int() on an integer should work, and calling int() on a string expected to be an integer should work.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8572>
_______________________________________


More information about the Python-bugs-list mailing list