[issue43521] Allow `ast.unparse` to handle NaNs and empty sets

2021-03-17 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue43244] Move PyArena C API to the internal C API

2021-03-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23675 pull_request: https://github.com/python/cpython/pull/24912 ___ Python tracker ___ __

[issue43532] Add keyword-only fields to dataclasses

2021-03-17 Thread jack1142
Change by jack1142 : -- nosy: +jack1142 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue43533] Exception and contextmanager in __getattr__ causes reference cycle

2021-03-17 Thread Ran Chen
New submission from Ran Chen : If __getattr__ raises exception within a contextlib.context_manager, it creates a reference cycle and prevents the frame from being garbage collected. This only happens if the exception is raised inside a context manager inside __getattr__. It doesn't happen if

[issue31103] Windows Installer Product does not include micro version in display name

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: FYI, the 3rd field is Field3Value, defined in "PCbuild/python.props" as the value `MicroVersionNumber*1000 + ReleaseLevelNumber*10 + ReleaseSerial`. It gets set as the FIELD3 macro in "PCbuild/pyproject.props", which gets used in the definition of the PYVERSION64

[issue42128] Structural Pattern Matching (PEP 634)

2021-03-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 08fb8ac99ab03d767aa0f1cfab3573eddf9df018 by Pablo Galindo in branch 'master': bpo-42128: Add 'missing :' syntax error message to match statements (GH-24733) https://github.com/python/cpython/commit/08fb8ac99ab03d767aa0f1cfab3573eddf9df018

[issue43534] turtle.textinput window is not transient

2021-03-17 Thread Chris Winkler
New submission from Chris Winkler : When `turtle.textinput` is called in Python 3.9.2, the resulting dialog window is not marked as transient. This is not a problem in 3.9.1. The offending change seems to come from bpo-42630. Specifically, `SimpleDialog.__init__` is being passed `parent=None`

[issue43395] os.path states that bytes can't represent all MBCS paths under Windows

2021-03-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21822] [Windows] KeyboardInterrupt during Thread.join hangs that Thread

2021-03-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner title: KeyboardInterrupt during Thread.join hangs that Thread -> [Windows] KeyboardInterrupt during Thread.join hangs that Thread ___ Python tracker ___

[issue43244] Move PyArena C API to the internal C API

2021-03-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset e0bf70d08c4a4a68782702e747e6bf7670667591 by Victor Stinner in branch 'master': bpo-43244: Fix test_peg_generator for PyAST_Validate() (GH-24912) https://github.com/python/cpython/commit/e0bf70d08c4a4a68782702e747e6bf7670667591 --

[issue43534] turtle.textinput window is not transient

2021-03-17 Thread John Private
John Private added the comment: I am enclosing a PNG showing the difference between 3.9.1 and 3.9.2 In 3.9.2 the pop-up opens as a new window complete with minimise and maximise buttons, and the position is unrelated to the turtle screen. -- nosy: +jwmp5051 Added file: https://bugs.p

[issue43244] Move PyArena C API to the internal C API

2021-03-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23676 pull_request: https://github.com/python/cpython/pull/24913 ___ Python tracker ___ __

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-17 Thread Raymond Hettinger
New submission from Raymond Hettinger : Rather than just erroring-out, it would be nice if str.join converted inputs to strings when needed. Currently: data = [10, 20, 30, 40, 50] s = ', '.join(map(str, data)) Proposed: s = ', '.join(data) That would simplify a common idiom. T

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

2021-03-17 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> docs@python components: +Documentation -Windows nosy: +docs@python type: performance -> behavior ___ Python tracker ___ _

[issue43532] Add keyword-only fields to dataclasses

2021-03-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for this idea. I don't see any downside. -- nosy: +rhettinger ___ Python tracker ___ ___ P

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-17 Thread Vedran Čačić
Vedran Čačić added the comment: I can't find it now, but I seem to remember me having this same proposal (except the part for bytes) quite a few years ago, and you being the most vocal opponent. What changed? Of course, I'm still for it. (Your second list has fourth item extra. But it's clear

[issue43536] 3.9.2 --without-pymalloc --with-pydebug --with-valgrind: test failed: test_posix

2021-03-17 Thread Thermi
New submission from Thermi : -- Ran 210 tests in 0.950s OK (skipped=26) == Tests result: FAILURE == 412 tests OK. 1 test failed: test_posix 10 tests skipped: test_devpoll test_gdb test_kqueue test_msilib test_ossau

[issue43536] 3.9.2 --without-pymalloc --with-pydebug --with-valgrind: test failed: test_posix

2021-03-17 Thread Thermi
Thermi added the comment: PKGBUILD I use to build the python package I need for debugging on Arch. Only changes to it are the addition of the 3 configure flags mentioned in the title. Other than that, it should work fine. I built the package previously without those changes and that worked.

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2021-03-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Thanks Raymond, I fixed the code. Can you fix all the other cases where this is used in inner-loop; otherwise, it is undoing everyone else's optimizations and fast paths. Also, it seems the that primary motivation for this is support subinterpreters.

[issue43493] EmailMessage mis-folding headers of a certain length

2021-03-17 Thread Mike Glover
Mike Glover added the comment: Further research shows that email.parser.Parser is not handling the affected lines correctly -- the leading '\n ' is not being stripped from the header value. Attached is the (ugly, worksforme) function I'm using to workaround this problem -- Added fil

[issue43537] nterpreter crashes when handling long text in input()

2021-03-17 Thread Xinmeng Xia
New submission from Xinmeng Xia : When the argument of input() is very long text, the interpreter crashes. This bug can be reproduced Python 3.9.2 and Python 2.7.18 on Ubuntu 3.9.2 with GCC7.5.0. I try to reproduce this bug on other version of Python and Operating System, but it fails. Thi

[issue43537] interpreter crashes when handling long text in input()

2021-03-17 Thread Xinmeng Xia
Change by Xinmeng Xia : -- title: nterpreter crashes when handling long text in input() -> interpreter crashes when handling long text in input() ___ Python tracker ___ __

<    1   2