homepage

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 amak
Recipients
Date 2008年03月25日.22:41:22
SpamBayes Score 0.0
Marked as misclassified No
Message-id
In-reply-to
Content
The best solution to this problem was pointed out by Josiah Carlson at
the time; Facundo expressed a preference for Josiah's solution, so it
must have been an oversight that the solution didn't make it into the patch.
http://www.gossamer-threads.com/lists/python/dev/555108?do=post_view_threaded#555108
http://www.gossamer-threads.com/lists/python/dev/555110?do=post_view_threaded#555110
Repeating the proposed solution here
sentinel = object()
def create_connection(address, timeout=sentinel):
...
 if timeout is not sentinel:
 sock.settimeout(timeout)
... 
Perhaps Fecundo could be persuaded to implement this solution?
Alan.
History
Date User Action Args
2008年03月26日 15:38:20georg.brandlsetspambayes_score: 0.887057 -> 0.0
2008年03月25日 22:41:23amaklinkissue2451 messages
2008年03月25日 22:41:22amakcreate

AltStyle によって変換されたページ (->オリジナル) /