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

2013-04-13 Thread Ned Jackson Lovely
Ned Jackson Lovely added the comment: Attaching a patch to make SMTPException an IOError, with corresponding update to docs to point out that __init__ on the SMTP object will raise IOErrors in general, and some SMTPExceptions in particular. Boston Python Sprint Apr 2013 -- nosy: +n

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

2013-04-13 Thread Ned Jackson Lovely
Ned Jackson Lovely added the comment: ...and the 3.3 doc patch. -- Added file: http://bugs.python.org/file29805/issue2118-doc-patch-3.3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2118

[issue17301] An in-place version of many bytearray methods is needed

2013-04-13 Thread Ned Jackson Lovely
Ned Jackson Lovely added the comment: An mtranslate, or mutating translate method for bytearrays. My first C code in a long time, so be gentle. The name is bad, but I don't see a better suggestion below. -- keywords: +patch nosy: +n Added file: http://bugs.python.org/file29825

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

2013-04-13 Thread Ned Jackson Lovely
Ned Jackson Lovely added the comment: s/IOError/OSError/ -- Added file: http://bugs.python.org/file29830/issue2118-OSError.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2118

[issue5051] test_update2 in test_os.py invalid due to os.environ.clear() followed by reliance on environ COMSPEC

2013-03-19 Thread Ned Jackson Lovely
Changes by Ned Jackson Lovely n...@njl.us: Added file: http://bugs.python.org/file29480/issue5051-take2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5051

[issue5051] test_update2 in test_os.py invalid due to os.environ.clear() followed by reliance on environ COMSPEC

2013-03-19 Thread Ned Jackson Lovely
Ned Jackson Lovely added the comment: Hi Luke, I've prepared two versions of this test. The first, issue5051-take2.diff, retains the environ.clear(), but saves and sets COMSPEC and PATH in the same update call as the HELLO variable. The second, and in my opinion more reasonable test, makes

[issue5024] sndhdr.whathdr returns -1 for WAV file frame count

2013-03-18 Thread Ned Jackson Lovely
Ned Jackson Lovely added the comment: Added bytes literal 'b', made it a real patch, changed test to account for WAV files actually returning number of frames from this function. -- keywords: +patch nosy: +n versions: +Python 3.4 -Python 3.2 Added file: http://bugs.python.org/file29447

[issue5051] test_update2 in test_os.py invalid due to os.environ.clear() followed by reliance on environ COMSPEC

2013-03-18 Thread Ned Jackson Lovely
Ned Jackson Lovely added the comment: Check if sys.platform == 'win32', if so, skip test. -- keywords: +patch nosy: +n versions: +Python 3.4 -Python 2.7 Added file: http://bugs.python.org/file29449/issue5051.diff ___ Python tracker rep

[issue2943] Distutils should generate a better error message when the SDK is not installed

2013-03-18 Thread Ned Jackson Lovely
Ned Jackson Lovely added the comment: Improved msg per discussion. I don't see how to test this without messing with the windows registry. I am deeply reluctant to do that. -- keywords: +patch nosy: +n Added file: http://bugs.python.org/file29450/issue2943.diff

[issue7573] Position independent include of Python.h

2013-03-18 Thread Ned Jackson Lovely
Ned Jackson Lovely added the comment: Should this be closed? -- nosy: +n ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7573 ___ ___ Python-bugs

[issue5051] test_update2 in test_os.py invalid due to os.environ.clear() followed by reliance on environ COMSPEC

2013-03-18 Thread Ned Jackson Lovely
Ned Jackson Lovely added the comment: Fair enough Luke. What is your recommended fix? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5051