[issue40334] PEP 617: new PEG-based parser

2020-05-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 99db2a1db7a9b468a0ce8377d579f78fa03a2a34 by Pablo Galindo in branch 'master': bpo-40334: Allow trailing comma in parenthesised context managers (GH-19964) https://github.com/python/cpython/commit/99db2a1db7a9b468a0ce8377d579f78fa03a2a34

[issue40517] Syntax highlighting for ASDL

2020-05-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Attaching 2 different styles python_bold.png (module is bold) and asdl_no_style.png (module has no style) -- Added file: https://bugs.python.org/file49135/python_bold.png ___ Python tracker

[issue40517] Syntax highlighting for ASDL

2020-05-06 Thread Batuhan Taskaya
Change by Batuhan Taskaya : Added file: https://bugs.python.org/file49136/asdl_no_style.png ___ Python tracker ___ ___ Python-bugs-list mail

[issue40334] PEP 617: new PEG-based parser

2020-05-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 470aac4d8e76556bd8f820f3f3928dca2b4d2849 by Pablo Galindo in branch 'master': bpo-40334: Generate comments in the parser code to improve debugging (GH-19966) https://github.com/python/cpython/commit/470aac4d8e76556bd8f820f3f3928dca2b4d284

[issue40539] Docs - difflib.SequenceMatcher quick_ratio and real_quick_ratio improved docs

2020-05-06 Thread Lewis Ball
New submission from Lewis Ball : Currently the docs for `difflib.SequenceMatcher.quick_ratio()` just says 'Return an upper bound on ratio() relatively quickly', which doesn't give much of an idea about how that upper bound is calculated. `real_quick_ratio` has similarly brief documentation.

[issue40540] inconstent stdin buffering/seeking behaviour

2020-05-06 Thread Peter Law
New submission from Peter Law : `sys.stdin` (on Windows, tested Pythons 3.6-3.8) appears to have different seeking behaviour depending on the source of the incoming data. This seems arguably reasonable given that `stdin` isn't always seekable, however even in the failing case `sys.stdin.seeka

[issue40541] Add optional weights parameter to random.sample()

2020-05-06 Thread Raymond Hettinger
New submission from Raymond Hettinger : I've seen multiple requests for this and it isn't obvious how to do it with the existing tooling. The example currently given in the recipes section isn't scalable because it involves expanding the population into a big list with repeated elements:

[issue40541] Add optional weights parameter to random.sample()

2020-05-06 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +19286 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19970 ___ Python tracker __

[issue25707] Add the close method for ElementTree.iterparse() object

2020-05-06 Thread Furkan Onder
Furkan Onder added the comment: Python 3.8.2 (default, Apr 8 2020, 14:31:25) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import xml.etree.ElementTree as ET >>> import gc >>> ET.iterparse('/dev/null') .IterParseIterator object at 0x7fb96f679

[issue5879] multiprocessing example "pool of http servers " fails on windows

2020-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I said above, the example was removed from 3.x. At some point, they were all vetted for Windows execution or failure. Zach, thanks for reviewing 2.7 issues. -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___

[issue40539] Docs - difflib.SequenceMatcher quick_ratio and real_quick_ratio improved docs

2020-05-06 Thread Lewis Ball
Change by Lewis Ball : -- keywords: +patch pull_requests: +19287 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19971 ___ Python tracker ___ _

[issue40512] Meta issue: per-interpreter GIL

2020-05-06 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-39465: "Design a subinterpreter friendly alternative to _Py_IDENTIFIER". Currently, this C API is not compatible with subinterpreters. -- ___ Python tracker __

[issue40517] Syntax highlighting for ASDL

2020-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I tried both a laptop and desktop and slightly prefer unbolded. How about a darker blue? -- ___ Python tracker ___

[issue40542] path environment variable not created correctly

2020-05-06 Thread Roman
New submission from Roman : The Python 3.8 for Windows installer has an option to add the install folder to the path environment variable. It adds the path to the front of the list so that it is the first item. According to my understanding, this is bad behavior. It should add new path items

[issue40517] Syntax highlighting for ASDL

2020-05-06 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > I tried both a laptop and desktop and slightly prefer unbolded. How about a > darker blue? Sorry but I have no control over styles. They are pre-defined, I only change the token type and pygments handles the rest of it. I dont know if such a color exist

[issue40542] path environment variable not created correctly

2020-05-06 Thread Ned Deily
Change by Ned Deily : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ Pytho

[issue40494] collections.abc.Callable and type variables

2020-05-06 Thread Guido van Rossum
Guido van Rossum added the comment: Hm, I am indeed torn. ISTM a subclass just for Callable is slightly better. -- ___ Python tracker ___ _

[issue36077] Inheritance dataclasses fields and default init statement

2020-05-06 Thread Eric V. Smith
Eric V. Smith added the comment: It would be good if there were some way of unifying existing usage with positional-only and keyword-only parameters, and also supporting inheritance for dataclasses that use these features at various points in the hierarchy. I don't have any big ideas about t

[issue40462] [easy] undefined name in Lib/test/mock_socket.py

2020-05-06 Thread Furkan Onder
Change by Furkan Onder : -- pull_requests: +19288 pull_request: https://github.com/python/cpython/pull/19972 ___ Python tracker ___

[issue2716] Document license under which audioop is used

2020-05-06 Thread Furkan Onder
Furkan Onder added the comment: PR has been sent. -- nosy: +furkanonder ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue2716] Document license under which audioop is used

2020-05-06 Thread Furkan Onder
Change by Furkan Onder : -- keywords: +patch pull_requests: +19289 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19972 ___ Python tracker _

[issue40334] PEP 617: new PEG-based parser

2020-05-06 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +19290 pull_request: https://github.com/python/cpython/pull/19973 ___ Python tracker ___ __

[issue2716] Document license under which audioop is used

2020-05-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.7, Python 3.8, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ _

[issue40397] Refactor typing._GenericAlias

2020-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c1c7d8ead9eb214a6149a43e31a3213c52448877 by Serhiy Storchaka in branch 'master': bpo-40397: Refactor typing._GenericAlias (GH-19719) https://github.com/python/cpython/commit/c1c7d8ead9eb214a6149a43e31a3213c52448877 -- __

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-05-06 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 3466922320d54a922cfe6d6d44e89e1cea4023ef by Dong-hee Na in branch 'master': bpo-1635741: Port errno module to multiphase initialization (GH-19923) https://github.com/python/cpython/commit/3466922320d54a922cfe6d6d44e89e1cea4023ef -- _

[issue40539] Docs - difflib.SequenceMatcher quick_ratio and real_quick_ratio improved docs

2020-05-06 Thread Tim Peters
Tim Peters added the comment: Thanks for the effort, but I'm rejecting this. The language deliberately defines nothing about how these are calculated. It defines how `.ratio()` is computed, but that's all. An implementation is free to do whatever it likes for the "quick" versions, provide

[issue36077] Inheritance dataclasses fields and default init statement

2020-05-06 Thread Laurie Opperman
Laurie Opperman added the comment: Daniel's suggestion (and my PR) introduce a mechanism that is as far as I know almost completely bakwards-compatible. The only issue is if people were wanting (and acting on) a TypeError to be raised on dataclass construction (which I would say is rare to n

[issue40542] path environment variable not created correctly

2020-05-06 Thread Eryk Sun
Eryk Sun added the comment: Prepending directories ahead of system directories in PATH affects programs that implement their own search, which includes shells such as cmd.exe that do so in order to support PATHEXT efficiently. That said, note that temporarily prepending to PATH in a particul

[issue37247] swap distutils build_ext and build_py commands to allow proper SWIG extension installation

2020-05-06 Thread John Andersen
John Andersen added the comment: I haven't made much progress on the fix yet. But I have a workaround here: https://github.com/tpm2-software/tpm2-pytss/commit/9952e374b4d9b854aea12c667dd7d7ab4ad501a9 -- ___ Python tracker

[issue30459] PyList_SET_ITEM could be safer

2020-05-06 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 5.0 -> 6.0 pull_requests: +19291 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19975 ___ Python tracker

[issue30459] PyList_SET_ITEM could be safer

2020-05-06 Thread Zackery Spytz
Change by Zackery Spytz : -- versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40509] In argparse, allow REMAINDER(...) arguments in a mutually exclusive group

2020-05-06 Thread Shani Armon
Shani Armon added the comment: Also, this is quite different from previous issues with REMAINDER. This fits in line with how the example suggests remainder should be used. I wand some flags (version, configuration) to be separate and exclusive to subcommands. And the usage is not ambiguous.

<    1   2