[Python-Dev] [Python-checkins] cpython: Fix closes Issue11281 (original) (raw)
[Python-Dev] [Python-checkins] cpython: Fix closes Issue11281 - smtplib.STMP gets source_address parameter, which adds
Antoine Pitrou solipsis at pitrou.net
Sun Jul 31 18:41:49 CEST 2011
- Previous message: [Python-Dev] [Python-checkins] cpython: Fix closes Issue11281 - smtplib.STMP gets source_address parameter, which adds
- Next message: [Python-Dev] [Python-checkins] cpython: Issue #11651: Improve Makefile test targets.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, 31 Jul 2011 17:17:00 +0100 Michael Foord <fuzzyman at voidspace.org.uk> wrote:
> I found that [, timeout] bit odd too. But is not mentioning that as > timeout=None when it is timeout=socket.GLOBALDEFAULTTIME > technically inaccurate? >
It does mean that users will expect to be able to call with an explicit timeout=None and get the default behaviour. Just use the numeric value of the global timeout perhaps?
The global timeout is controllable at runtime through socket.setdefaulttimeout(). That's the whole point of using an opaque sentinel.
Regards
Antoine.
- Previous message: [Python-Dev] [Python-checkins] cpython: Fix closes Issue11281 - smtplib.STMP gets source_address parameter, which adds
- Next message: [Python-Dev] [Python-checkins] cpython: Issue #11651: Improve Makefile test targets.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]