[issue12261] urllib.parse docs still refer to urlparse

2011-06-03 Thread Tim Lesher
New submission from Tim Lesher : While most of the occurrences of "urlparse" were corrected to "urllib.parse" when the module was renamed, two were missed: one in the second example, and one in the "See also" note for RFC 3986. -- assignee: docs@py

[issue12261] urllib.parse docs still refer to urlparse

2011-06-03 Thread Tim Lesher
Changes by Tim Lesher : -- keywords: +patch Added file: http://bugs.python.org/file22238/remove-urlparse.patch ___ Python tracker <http://bugs.python.org/issue12

[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings

2011-06-03 Thread Tim Lesher
Changes by Tim Lesher : -- nosy: +tlesher ___ Python tracker <http://bugs.python.org/issue11620> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11838] IDLE: make interactive code savable as a runnable script

2011-06-14 Thread Tim Lesher
Changes by Tim Lesher : -- nosy: +tlesher ___ Python tracker <http://bugs.python.org/issue11838> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1189811] pydoc may hide non-private doc strings.

2011-03-15 Thread Tim Lesher
Changes by Tim Lesher : -- nosy: +tlesher ___ Python tracker <http://bugs.python.org/issue1189811> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1635741] Interpreter seems to leak references after finalization

2011-03-31 Thread Tim Lesher
Changes by Tim Lesher : -- nosy: +tlesher ___ Python tracker <http://bugs.python.org/issue1635741> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8070] Infinite loop in PyRun_InteractiveLoopFlags() if PyRun_InteractiveOneFlags() raises an error

2010-04-08 Thread Tim Lesher
Tim Lesher added the comment: I just hit this one myself, and was about to write a bug and patch. On reviewing the patch: 1. This really has the same issue as the original code: it detects one of a few known return values, and will infinitely loop on an unexpected return value. It would be

[issue1202] zlib.crc32() and adler32() return value

2007-12-09 Thread Tim Lesher
Tim Lesher added the comment: Both CRC-32 and ADLER32 are standards (described in ISO 3309 and RFC 1950 respectively); whatever fix implemented should make sure that the output complies. ISO 3309 isn't available online as far as I can see, but CRC-32 reference code is published in RFC

[issue1781] ConfigParser: add_section('DEFAULT') causes duplicate sections.

2008-01-09 Thread Tim Lesher
New submission from Tim Lesher: ConfigParser doesn't prevent "manually" adding a section named DEFAULT; however, doing so creates a duplicate, inaccessible [DEFAULT] section in the config file: >>> import sys, ConfigParser >>> c = ConfigParser.ConfigPa

[issue2637] urllib.quote() escapes characters unnecessarily and contrary to docs

2008-04-15 Thread Tim Lesher
New submission from Tim Lesher <[EMAIL PROTECTED]>: The urllib.quote docstring implies that it quotes only characters in RFC 2396's "reserved" set. However, urllib.quote currently escapes all characters except those in an "always_safe" list, which consists of alph

[issue1674032] Make threading.Event().wait(timeout=3) return isSet

2008-05-06 Thread Tim Lesher
Tim Lesher <[EMAIL PROTECTED]> added the comment: This one-line change to threading.py makes Event.wait() return isSet(). Also includes the corresponding update to documentation in threading.rst. -- keywords: +patch nosy: +tlesher Added file: http://bugs.python.org/file10203/even

[issue1674032] Make threading.Event().wait(timeout=3) return isSet

2008-05-06 Thread Tim Lesher
Changes by Tim Lesher <[EMAIL PROTECTED]>: -- assignee: -> georg.brandl components: +Documentation, Library (Lib) -Interpreter Core nosy: +georg.brandl _ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4483] Error to build _dbm module during make

2008-12-04 Thread Tim Lesher
Changes by Tim Lesher <[EMAIL PROTECTED]>: -- nosy: +tlesher ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4483> ___ ___ Python

[issue5015] The Py_SetPythonHome C API function is undocumented

2009-02-03 Thread Tim Lesher
Changes by Tim Lesher : -- nosy: +tlesher ___ Python tracker <http://bugs.python.org/issue5015> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings

2012-02-09 Thread Tim Lesher
Tim Lesher added the comment: This patch should both correct the incorrect acceptance of strings and the incorrect rejection of buffer objects when using SND_MEMORY. -- keywords: +patch Added file: http://bugs.python.org/file24470/11620-PlaySound.patch

[issue3905] subprocess failing in GUI applications on Windows

2012-02-13 Thread Tim Lesher
Changes by Tim Lesher : -- nosy: +tlesher ___ Python tracker <http://bugs.python.org/issue3905> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8070] Infinite loop in PyRun_InteractiveLoopFlags() if PyRun_InteractiveOneFlags() raises an error

2012-03-09 Thread Tim Lesher
Tim Lesher added the comment: Victor: would you object to ysj.ray's solution? I don't think it was an option when we last looked at this issue. -- ___ Python tracker <http://bugs.python.

[issue8070] Infinite loop in PyRun_InteractiveLoopFlags() if PyRun_InteractiveOneFlags() raises an error

2012-03-11 Thread Tim Lesher
Tim Lesher added the comment: Updated patch: use Py_FileSystemDefaultEncoding (if possible) when sys.stdin is (or becomes) invalid; if none, then fails without entering infinite loop. Docs for PyRun_InteractiveLoopFlags have been updated. -- Added file: http://bugs.python.org

[issue8070] Infinite loop in PyRun_InteractiveLoopFlags() if PyRun_InteractiveOneFlags() raises an error

2012-03-12 Thread Tim Lesher
Tim Lesher added the comment: Corrected const warning in previous patch. -- Added file: http://bugs.python.org/file24794/8070-use-default-encoding-2.patch ___ Python tracker <http://bugs.python.org/issue8

[issue8010] tkFileDialog.askopenfiles crashes on Windows 7

2012-03-12 Thread Tim Lesher
Changes by Tim Lesher : -- nosy: +tlesher ___ Python tracker <http://bugs.python.org/issue8010> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34590] "Logging HOWTO" should share an example of best practices for using logging in a library

2018-09-06 Thread Tim Lesher
Change by Tim Lesher : -- nosy: +tlesher ___ Python tracker <https://bugs.python.org/issue34590> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3329] API for setting the memory allocator used by Python

2009-09-30 Thread Tim Lesher
Changes by Tim Lesher : -- nosy: +tlesher ___ Python tracker <http://bugs.python.org/issue3329> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4510] ValueError for list.remove() not very helpful

2009-03-10 Thread Tim Lesher
Changes by Tim Lesher : -- nosy: +tlesher nosy_count: 2.0 -> 3.0 ___ Python tracker <http://bugs.python.org/issue4510> ___ ___ Python-bugs-list mailing list Un

[issue1674032] Make threading.Event().wait(timeout=3) return isSet

2009-03-30 Thread Tim Lesher
Tim Lesher added the comment: Thanks, Antoine. I will re-check the patch against trunk and add tests this week. -- ___ Python tracker <http://bugs.python.org/issue1674

[issue9204] The documentation of PyType_Type in py3k mentions types.TypeType

2010-07-19 Thread Tim Lesher
Tim Lesher added the comment: There are a number of similar mentions in the C API docs and index; attached is a patch that removes each. -- keywords: +patch nosy: +tlesher Added file: http://bugs.python.org/file18068/remove-extraneous-types.diff

[issue4510] ValueError for list.remove() not very helpful

2010-07-21 Thread Tim Lesher
Tim Lesher added the comment: It looks as if this has been addressed for list.index (aka issue #7252), in r76058. The same fix could be applied for list.remove. -- ___ Python tracker <http://bugs.python.org/issue4

[issue9012] Separate compilation of time and datetime modules

2010-07-21 Thread Tim Lesher
Tim Lesher added the comment: Added patch that replicates the change in r82035 for Visual Studio 2005 (VC8) builds. -- nosy: +tlesher Added file: http://bugs.python.org/file18107/add_time_to_vc8_build.diff ___ Python tracker <h

[issue4510] ValueError for list.remove() not very helpful

2010-07-21 Thread Tim Lesher
Tim Lesher added the comment: This patch combines the fix from Georg Brandl's original patch with the fix made to listindex. The r76058 fix fails the test in Georg's original test where the repr of the item to be removed itself raises; this patch handles that case for both list.

[issue9324] signal.signal(bogus_signal, handler) segfaults on Windows

2010-07-21 Thread Tim Lesher
Tim Lesher added the comment: This appears to run afoul of Microsoft's "security-enhanced CRT", which aborts a program that calls certain API functions (including signal) with invalid parameters. PyOS_getsig() has conditionally-compiled code added to deal with this (and

[issue9012] Separate compilation of time and datetime modules

2010-07-21 Thread Tim Lesher
Tim Lesher added the comment: No, there's no automated way to keep "legacy" Windows toolchains in sync; short of adopting something like Scons or CMAKE (which I'm *not* suggesting) I don't think I've seen a trustworthy way of doing so. The PCBuild's "

[issue9012] Separate compilation of time and datetime modules

2010-07-21 Thread Tim Lesher
Changes by Tim Lesher : Removed file: http://bugs.python.org/file18107/add_time_to_vc8_build.diff ___ Python tracker <http://bugs.python.org/issue9012> ___ ___ Python-bug

[issue9012] Separate compilation of time and datetime modules

2010-07-21 Thread Tim Lesher
Changes by Tim Lesher : Added file: http://bugs.python.org/file18113/add_time_to_vc8_build.diff ___ Python tracker <http://bugs.python.org/issue9012> ___ ___ Python-bug

[issue4510] ValueError for list.remove() not very helpful

2010-07-26 Thread Tim Lesher
Tim Lesher added the comment: Ugh. That's a reasonable objection. What's the best thing to do in this case, generally speaking? list.index() does print the full repr on a value error; and a quick grep shows a number of other similar uses, although those don't seem to be as e