[issue4079] new urllib2.Request 'timeout' attribute needs to have a default

R. David Murray report at bugs.python.org
Mon Jul 29 03:40:54 CEST 2013


R. David Murray added the comment:

Yes, this is a very good point.  (And your passing test is worthwhile, you are correct.)  

People are expected to be able to write handlers, so clearly the timeout API needs to be documented, if for no other reason than to keep a handler writer from stomping on the timeout attribute inappropriately.  

But there is a code smell to this "API", and I wonder if it is worth someone taking time to think it all through again to see if there is a better way to do it :(

----------

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


More information about the Python-bugs-list mailing list