[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

[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 th

[issue13245] sched.py kwargs addition and default time functions

2011-10-22 Thread Chris Clark
New submission from Chris Clark : I ended up implementing my own sched.py equivalent as I needed kwargs support. This is my attempt to improve the stdlib, so I can throw my module way ;-) Added kwargs support, and made "argument" optional. "argument" is still named argum