[issue20903] smtplib.SMTP raises socket.timeout

2014-06-09 Thread Milan Oberkirch
Milan Oberkirch added the comment: Should this task get closed? (see comment above) -- nosy: +jesstess ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20903 ___

[issue20903] smtplib.SMTP raises socket.timeout

2014-06-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6cd64ef6fc95 by R David Murray in branch '2.7': #20903: clarify what happens when an smtp connection timeout occurs. http://hg.python.org/cpython/rev/6cd64ef6fc95 New changeset ca88bcfa5c15 by R David Murray in branch '3.4': #20903: clarify what

[issue20903] smtplib.SMTP raises socket.timeout

2014-06-09 Thread R. David Murray
R. David Murray added the comment: Well, now that I applied your patch it can be :) Thanks. -- resolution: - fixed stage: needs patch - resolved status: open - closed versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue20903] smtplib.SMTP raises socket.timeout

2014-03-26 Thread Vyacheslav Rafalskiy
Vyacheslav Rafalskiy added the comment: Take look at this one too: http://bugs.python.org/issue2118 It is supposed to be fixed. -- nosy: +Vyacheslav.Rafalskiy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20903

[issue20903] smtplib.SMTP raises socket.timeout

2014-03-19 Thread Milan Oberkirch
Milan Oberkirch added the comment: The attached patch mentions the exception besides the description of the timeout parameter. It doesn't hurt and makes programmers aware of this common exception. -- keywords: +patch nosy: +zvyn Added file:

[issue20903] smtplib.SMTP raises socket.timeout

2014-03-12 Thread Chris Clark
New submission from Chris Clark: The documentation for smtplib.SMTP says If the connect() call returns anything other than a success code, an SMTPConnectError is raised. It doesn't explicitly specify what happens when connect() raises instead of returns, but I think either the documentation

[issue20903] smtplib.SMTP raises socket.timeout

2014-03-12 Thread R. David Murray
R. David Murray added the comment: In general we don't document what gets raised unless it is unique to a module or has non-obvious implications. In this case, getting socket exceptions out of a network library should be obvious in some sense :). In particular, both SMTPConnectError and

[issue20903] smtplib.SMTP raises socket.timeout

2014-03-12 Thread Chris Clark
Chris Clark added the comment: I am concerned about the policy of not documenting all exceptions that are raised. It sounds like there is no straightforward way to write a comprehensive except statement without using a bare except or catching some base exception. I consider it dangerous to