[issue9607] Test file 'test_keyword.py' submission for use with keyword.py

2010-09-06 Thread Greg Malcolm
Greg Malcolm added the comment: Thanks for the feedback David! I've replaced the old patch with a new version that uses Popen/sys.executable as suggested. - Greg -- Added file: http://bugs.python.org/file18769/test_keyword_v2.patch ___ P

[issue9607] Test file 'test_keyword.py' submission for use with keyword.py

2010-09-06 Thread Greg Malcolm
Changes by Greg Malcolm : Removed file: http://bugs.python.org/file18537/test_keyword.patch ___ Python tracker <http://bugs.python.org/issue9607> ___ ___ Python-bug

[issue9607] Test file 'test_keyword.py' submission for use with keyword.py

2010-08-14 Thread Greg Malcolm
New submission from Greg Malcolm : 'keyword.py' didn't have any tests, so I wrote some. Most of the tests are are for the main() method, which self-populates the keywords section of keyword.py with keywords taken from a grammar file, 'Python/graminit.c'. The main() me

[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2010-07-31 Thread Greg Malcolm
Greg Malcolm added the comment: I've uploaded a patch for 3.2 that throws a ValueError exception for non numeric port numbers and SMTPSocketConnectError for socket connection failures. This patch introduces an API change, by creating the SMTPSocketConnectError which provides inform