[issue31579] Reference leak in enumerate

2017-09-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch pull_requests: +3740 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue30152] Reduce the number of imports for argparse

2017-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 81108375d9b2ccd0add1572da745311d4dfac505 by Serhiy Storchaka in branch 'master': bpo-30152: Reduce the number of imports for argparse. (#1269) https://github.com/python/cpython/commit/81108375d9b2ccd0add1572da745311d4dfac505 -- __

[issue30152] Reduce the number of imports for argparse

2017-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks all! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue30755] locale.normalize() and getdefaultlocale() convert C.UTF-8 to en_US.UTF-8

2017-09-25 Thread Matthew Woodcraft
Matthew Woodcraft added the comment: I've investigated a bit more. First, I've tried with Python 3.7.0a1 . As you'd expect, PEP 537 means this behaviour now also occurs when no locale environment variables at all are set. Second, I've looked through locale.py a bit. I believe what it calls the

[issue30755] locale.normalize() and getdefaultlocale() convert C.UTF-8 to en_US.UTF-8

2017-09-25 Thread Matthew Woodcraft
Matthew Woodcraft added the comment: (For PEP 537 please read PEP 538, sorry) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18257] Two copies of python-config

2017-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: Downgrading the priority, it's not a deferred blocker for sure. I think we could probably just close it? -- nosy: +lukasz.langa priority: deferred blocker -> ___ Python tracker __

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2017-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: Not critical anymore. Probably safe to close? -- nosy: +lukasz.langa priority: critical -> ___ Python tracker ___ __

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: This is marked as Critical so either we should change the priority or fix it soon :) -- nosy: +lukasz.langa ___ Python tracker ___ _

[issue29624] Python 3.5.3 x86 web installer cannot install launcher

2017-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: This is marked as "critical". Looks like it's fixed. Can we close it? -- nosy: +lukasz.langa ___ Python tracker ___ _

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-09-25 Thread Łukasz Langa
Changes by Łukasz Langa : -- assignee: -> yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue27163] IDLE entry for What's New in Python 3.6

2017-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: Unsetting priority since it's not Critical and RMs look at open Critical bugs when releasing 3.6.3 and so on. -- nosy: +lukasz.langa priority: critical -> ___ Python tracker _

[issue14799] Tkinter ttk tests hang on linux

2017-09-25 Thread Łukasz Langa
Łukasz Langa added the comment: Unsetting priority. -- nosy: +lukasz.langa priority: critical -> ___ Python tracker ___ ___ Python-b

[issue31571] Redundand information on Doc/reference/lexical_analysis.rst

2017-09-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 4a2d00cb4525fcb3209f04531472ba6a359ed418 by Mariatta (Guilherme Caminha) in branch 'master': bpo-31571: Remove duplicated info in Lexical Analysis documentation (GH-3691) https://github.com/python/cpython/commit/4a2d00cb4525fcb3209f04531472ba6a35

[issue31571] Redundand information on Doc/reference/lexical_analysis.rst

2017-09-25 Thread Roundup Robot
Changes by Roundup Robot : -- keywords: +patch pull_requests: +3741 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue31571] Redundand information on Doc/reference/lexical_analysis.rst

2017-09-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 26b940f762f0b306ff894601003f51a8d036e285 by Mariatta (Miss Islington (bot)) in branch '3.6': bpo-31571: Remove duplicated info in Lexical Analysis documentation (GH-3691) (GH-3754) https://github.com/python/cpython/commit/26b940f762f0b306ff89460

[issue31571] Redundand information on Doc/reference/lexical_analysis.rst

2017-09-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: The proposed change seems fine. Merged and backported. Thanks everyone! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue31415] Add -X option to show import time

2017-09-25 Thread INADA Naoki
INADA Naoki added the comment: how can I make it more machine readable? On 2017年9月25日(月) 19:39 Christian Heimes wrote: > > Christian Heimes added the comment: > > +1 for an option to profile import time. > > I have a minor complain: The output format is not machine-friendly, which > makes it h

[issue14799] Tkinter ttk tests hang on linux

2017-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: A year or so ago, I asked people on python-list who could to run the gui tests on their linux boxes and report. About 6 did and with one possible exception, and not that reported here, everyone reported success. So, unless someone can report otherwise, I thi

[issue18257] Two copies of python-config

2017-09-25 Thread R. David Murray
R. David Murray added the comment: Since it hasn't been an issue for a few releases, I say we close it. If there is some problem remaining, it probably deserves its own tracker issue anyway. -- nosy: +r.david.murray resolution: -> fixed stage: needs patch -> resolved status: open -> c

[issue31580] Defer compiling regular expressions

2017-09-25 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: It's a very common pattern to see the following at module scope: cre_a = re.compile('some pattern') cre_b = re.compile('other pattern') and so on. This can cost you at start up time because all those regular expressions are compiled at import time, even if

[issue31580] Defer compiling regular expressions

2017-09-25 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- keywords: +patch pull_requests: +3742 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue31580] Defer compiling regular expressions

2017-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM, the whole point is to compile in advance. When I worked during high frequency trading, that was essential to news trading where you *really* didn't want to pay the compilation cost at the time the regex was used. This proposal takes away the user's

[issue31580] Defer compiling regular expressions

2017-09-25 Thread R. David Murray
R. David Murray added the comment: I agree with Raymond. It would be strange to have the API that is obviously designed to pre-compile the regex not pre-compile the regex. If the concern is that a non-precompiled regex might get bumped out of the cache but you want a way to only compile a "bu

[issue31581] Reduce the number of imports for functools

2017-09-25 Thread INADA Naoki
New submission from INADA Naoki: Makes `import functools` about 1.5 ms faster. * heapq is used only when Counter.most_common(n). * types and waakref is used only for singledispatch. master: import time: - _functools 76 us (self 76 us) import time: - _operator 110 us (self 110 us) impor

[issue31581] Reduce the number of imports for functools

2017-09-25 Thread INADA Naoki
Changes by INADA Naoki : -- keywords: +patch pull_requests: +3743 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue31581] Reduce the number of imports for functools

2017-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Initially my patch for issue30152 included the change in collections. But it was removed on Raymond's request. -- nosy: +rhettinger, serhiy.storchaka ___ Python tracker ___

[issue31582] Add _pth breadcrumb to sys.path documentation

2017-09-25 Thread Traveler Hauptman
New submission from Traveler Hauptman: Python on windows (winpython) was not adding PYTHONPATH to sys.path as documented and I could not understand why. It took a lot of time, web searches, and finally a tour through the code to find out about _pth; which is well documented but difficult to fi

[issue31583] 2to3 call for file in current directory yields error

2017-09-25 Thread Denis Osipov
New submission from Denis Osipov: 2to3 doesn't work if called for file in current directory with --add-suffix option. $ /d/repos/cpython/python.bat /d/repos/cpython/Tools/scripts/2to3 -n -W --add-suffix=3 test2to3.py Running Debug|x64 interpreter... WARNING: --write-unchanged-files/-W

[issue31583] 2to3 call for file in current directory yields error

2017-09-25 Thread Denis Osipov
Changes by Denis Osipov : -- keywords: +patch pull_requests: +3744 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue31581] Reduce the number of imports for functools

2017-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Go ahead. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue31580] Defer compiling regular expressions

2017-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: lru_cache() is not used for reasons. The patch makes using cached patterns slower by adding an overhead of 4 additional checks. It makes resolving attributes of a deferred patterns slower. All this slows down a straight call to re.search(pattern, s). Errors

[issue31584] Documentation Language mixed up

2017-09-25 Thread asl
New submission from asl: Some of the documentation language are mixed up. eg: Japanese on the English page https://docs.python.org/2.7/faq/design.html French on the Japanese https://docs.python.org/ja/2.7/faq/design.html It seem to affect multiple pages: https://docs.python.org/2.7/bugs.html ht

[issue31579] Reference leak in enumerate

2017-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0e950dd22b075b4809c84afda8aede02b76ac0fa by Serhiy Storchaka in branch 'master': bpo-31579: Fixed a possible leak in enumerate() with large indices. (#3753) https://github.com/python/cpython/commit/0e950dd22b075b4809c84afda8aede02b76ac0fa

[issue31585] Refactor the enumerate.__next__ implementation

2017-09-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently the large and complex part of enum_next() and enum_next_long() in Objects/enumobject.c is duplicated. This increases the code size and makes harder maintaining the code. The proposed patch refactors the implementation and removes the code duplica

[issue31585] Refactor the enumerate.__next__ implementation

2017-09-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch pull_requests: +3745 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue31585] Refactor the enumerate.__next__ implementation

2017-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Having separate code paths was an intentional decision. I prefer to keep it that way. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31579] Reference leak in enumerate

2017-09-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3746 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31579] Reference leak in enumerate

2017-09-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3747 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31584] Documentation Language mixed up

2017-09-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Indeed a problem! Seems to affect Python 2.7 docs. If not mistaken, Julien worked on the language switcher. Maybe he has some clue ... -- nosy: +Mariatta, mdk priority: normal -> high stage: -> needs patch ___ Pyth

[issue31465] Allow _PyType_Lookup() to raise exceptions

2017-09-25 Thread Stefan Behnel
Stefan Behnel added the comment: Any comments on this? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue31336] Speed up _PyType_Lookup() for class creation

2017-09-25 Thread Stefan Behnel
Stefan Behnel added the comment: Still ready for merging :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31336] Speed up _PyType_Lookup() for class creation

2017-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm going to merge this over the next 24 hours if there are no comments from other core developers. -- ___ Python tracker ___ __

[issue31579] Reference leak in enumerate

2017-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d6a356209abd026b41245ad76ba3a374ab0c60db by Serhiy Storchaka in branch '3.6': [3.6] bpo-31579: Fixed a possible leak in enumerate() with large indices. (GH-3753). (#3760) https://github.com/python/cpython/commit/d6a356209abd026b41245ad76ba3a374

[issue31579] Reference leak in enumerate

2017-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 19eb87d857f6d1bad1a3619d9d7534820f82e5f2 by Serhiy Storchaka in branch '2.7': [2.7] bpo-31579: Fixed a possible leak in enumerate() with large indices. (GH-3753). (#3761) https://github.com/python/cpython/commit/19eb87d857f6d1bad1a3619d9d753482

[issue31579] Reference leak in enumerate

2017-09-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7 ___ Python tracker ___ __

[issue31586] SystemError in _collections._count_element() in case of a bad mapping argument

2017-09-25 Thread Oren Milman
New submission from Oren Milman: The following code causes a SystemError: class BadMapping: get = dict.get __setitem__ = dict.__setitem__ import _collections _collections._count_elements(BadMapping(), [42]) This is because _count_elements() (in Modules/_collectionsmodule.c) assumes tha

[issue31575] Functional Programming HOWTO sub-optimal example for reduce

2017-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think the existing code conveys the author's message better than the proposed revision. The example isn't about efficiency; rather, it is about comparing several alternative formulations with this one being the weakest of the lost. For emphasizing that

[issue31586] SystemError in _collections._count_element() in case of a bad mapping argument

2017-09-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +rhettinger, serhiy.storchaka versions: +Python 3.6, Python 3.7 -Python 3.8 ___ Python tracker ___ ___

[issue31586] SystemError in _collections._count_element() in case of a bad mapping argument

2017-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree. _collections._count_elements() is an internal function. It should be called only with Counter (which is a dict subclass) or its subclass. But I think it is worth to make the code more reliable. -- ___ Pyt

[issue31587] Enum doesn't allow name

2017-09-25 Thread Robert Gomułka
New submission from Robert Gomułka: Enum module handles "name" member incorrectly. 1. "name" can't be used as a member when decorated with unique: >>> import enum >>> @enum.unique ... class A(enum.IntEnum): ... a = 1 ... name = 2 ... Traceback (most recent call last): File "", line 2,

<    1   2