[issue34565] Launcher does not validate major versions

2018-09-02 Thread Brendan Gerrity
Brendan Gerrity added the comment: The function's comment says otherwise; I just noticed when I was messing with 34565. Supporting arbitrary major versions makes the -0 arg ambiguous so alternatively that could be the special case? -- ___ Python

[issue34532] Windows launcher exits with error after listing available versions

2018-09-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +easy (C) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34532] Windows launcher exits with error after listing available versions

2018-09-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34565] Launcher does not validate major versions

2018-09-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is wrong with supporting version 7.0? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue29386] select.epoll.poll may behave differently if timeout = -1 vs timeout = None

2018-09-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See similar issue31334. It may be worth to make the code similar. Only -1 is documented as a special timeout value for epoll_wait(). -- nosy: +serhiy.storchaka ___ Python tracker

[issue23855] Missing Sanity Check for malloc() in PC/_msi.c

2018-09-02 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +8499 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23855] Missing Sanity Check for malloc() in PC/_msi.c

2018-09-02 Thread Zackery Spytz
Zackery Spytz added the comment: The suggested patch is not acceptable: MemoryError should be raised in the unlikely event of a malloc() failure, there's a missing call to MsiCloseHandle(), the use of tabs violates PEP 7, and there's a blatant syntax error. -- nosy: +ZackerySpytz

[issue34535] queue.Queue(timeout=0.001) avg delay Windows:14.5ms, Ubuntu: 0.063ms

2018-09-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Another possibility might be to not use the Windows timeout clock, at least not for short timeouts. The following shows that tk does about 970 1 millesecond timeouts in 1 second (on my machine). --- import tkinter as tk root = tk.Tk() cbid = None cbcount =

[issue34505] urllib2 fails for proxy credentials that contains a '/' character

2018-09-02 Thread Xiang Zhang
Change by Xiang Zhang : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34563] invalid assert on big output of multiprocessing.Process

2018-09-02 Thread Xiang Zhang
Change by Xiang Zhang : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34486] "RuntimeError: release unlocked lock" when starting a thread

2018-09-02 Thread Xiang Zhang
Xiang Zhang added the comment: It looks to me pure Python implementation could not handle such cases. Put aside other possible bugs, threading.Condition.wait re-acquire the lock using threading.Condition._acquire_restore which could be interrupted and not able to acquire the lock. So it

[issue29386] select.epoll.poll may behave differently if timeout = -1 vs timeout = None

2018-09-02 Thread Gabriel McManus
Gabriel McManus added the comment: I don't know of any other OS that implements epoll, so this is issue is likely no longer a problem. Although it is strange to convert -1 to -1000 (as though from seconds to milliseconds), it may not be worth changing. --

[issue34532] Windows launcher exits with error after listing available versions

2018-09-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I shrank the title to fit in the space and clarified that it does list the versions (at least on my Win 10). So this is invisible in normal use. -- nosy: +terry.reedy title: Python launcher on Windows exits with error when requesting list of

[issue34500] Fix ResourceWarning in difflib.py

2018-09-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Using 'with open' is now standard. Thanks for the update. In the message above, /us/is/. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker

[issue34500] Fix ResourceWarning in difflib.py

2018-09-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 30af2e737aad427d4da97f8dadeeecff6c2b28f5 by Terry Jan Reedy (Mickaël Schoentgen) in branch '2.7': bpo-34500: Fix ResourceWarning in difflib.py (GH-8926) https://github.com/python/cpython/commit/30af2e737aad427d4da97f8dadeeecff6c2b28f5

[issue34500] Fix ResourceWarning in difflib.py

2018-09-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: The change to Tools/scripts/diff.py us effectively a backport of the the patch merged for #7582. The git log labels it as a2637729f23dc993e820fd92f0d1759ad714c9b2. The change to Doc/library/difflib.rst does not apply to current 3.x as the test code is no

[issue34543] _struct.Struct: calling functions without calling __init__ results in SystemError

2018-09-02 Thread Steven D'Aprano
Steven D'Aprano added the comment: I've tried running this code in Python 3.6: from _struct import Struct for i in range(10): L = [Struct.__new__(Struct) for j in range(1000)] for s in L: try: x = s.pack_into(bytearray()) except SystemError:

[issue34565] Launcher does not validate major versions

2018-09-02 Thread Brendan Gerrity
Change by Brendan Gerrity : -- keywords: +patch pull_requests: +8498 stage: -> patch review ___ Python tracker ___ ___

[issue34565] Launcher does not validate major versions

2018-09-02 Thread Brendan Gerrity
New submission from Brendan Gerrity : When a version argument is passed to the launcher (e.g. `py -3.4` or `py -7.0`), contrary to the launcher help text, the major version isn't validated as 2 or 3. -- components: Windows messages: 324483 nosy: bgerrity, paul.moore, steve.dower,

[issue34564] Tutorial Section 2.1 Windows Installation Path Correction

2018-09-02 Thread Tom Berry
New submission from Tom Berry : The listed installation location is incorrect in the 02 Sep 18 release of the tutorial. It shows the default install path as C:\python36 vice C:\Program Files\python37. This may be related to an installer issue, as installing single-user places the program

[issue18307] Relative path in co_filename for zipped modules

2018-09-02 Thread Nick Coghlan
Nick Coghlan added the comment: Serhiy's analysis sounds right to me - for precompiled bytecode files, we really want co_filename to reflect the import time filename *not* the compile time filename. While zipimport is one way to get the compile time and import time paths to differ, there

[issue29750] smtplib doesn't handle unicode passwords

2018-09-02 Thread Windson Yang
Windson Yang added the comment: I added a pitch to support utf-8. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34552] Clarify built-in types comparisons

2018-09-02 Thread Windson Yang
Change by Windson Yang : -- keywords: +patch pull_requests: +8497 stage: -> patch review ___ Python tracker ___ ___

[issue34284] Nonsensical exception message when calling `__new__` on non-instaniable objects

2018-09-02 Thread ppperry
ppperry added the comment: Also happens for some objects in the `_tkinter` module: >>> _tkinter.TkttType.__new__(_tkinter.TkttType) Traceback (most recent call last): File "", line 1, in _tkinter.TkttType.__new__(_tkinter.TkttType) TypeError: object.__new__(_tkinter.tktimertoken) is not

[issue34200] importlib: python -m test test_pkg -m test_7 fails randomly

2018-09-02 Thread Jeremy Kloth
Jeremy Kloth added the comment: Since my buildbot has been infected with this bug, I took some time to hunt it out. It turns out that issue is caused by an internal import triggered by the open() function (at least on Windows). A recent change to the interpreter (commit 9e4994d) changed

[issue34282] Enum._convert shadows members named _convert

2018-09-02 Thread orlnub123
Change by orlnub123 : -- pull_requests: +8496 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5038] urrlib2/httplib doesn't reset file position between requests

2018-09-02 Thread Martin Panter
Martin Panter added the comment: Here is a demonstration script in case it helps. I haven’t tested it with versions before Python 2.6. Older versions send “Content-Length: 11”, but leave the server hanging trying to read the data. Newer versions (I presume since Issue 12319, 3.6+) send a

[issue23949] Number of elements display in error message is wrong while unpacking in traceback

2018-09-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue5038] urrlib2/httplib doesn't reset file position between requests

2018-09-02 Thread Lorenz Mende
Lorenz Mende added the comment: Issue shall be closed, as no reproduction code is provided. No patch provided and no comments since 2015. -- nosy: +LorenzMende ___ Python tracker

[issue34529] add the option for json.dumps to return newline delimited json

2018-09-02 Thread ron
ron added the comment: Well... when handling GBs of data - it's preferred to generate the file directly in the required format rather than doing conversions. The new line is a format... protocols don't matter here... I still think the library should allow the user to create this format

[issue23949] Number of elements display in error message is wrong while unpacking in traceback

2018-09-02 Thread Lorenz Mende
Lorenz Mende added the comment: This issue shall be closed, as the solution is already on master with 4171bbe687904582329c7977d571686953275b45. -- nosy: +LorenzMende ___ Python tracker

[issue23460] Decimals do not obey ':g' exponential notation formatting rules

2018-09-02 Thread Lorenz Mende
Lorenz Mende added the comment: I want to bring this issue up again. As the others correctly stated, either the documentation or the implementation of Decimal 'g' formatting is incorrect. For floats the implementation suits the docu: >>> '{:g}'.format(0.1) '1e-05' For decimals: >>>