[issue40334] PEP 617: new PEG-based parser

2020-05-18 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: I'm not getting any compiler warnings on macOS (clang) and on Ubuntu (gcc) and I can't find any related warnings on the Windows Github Actions logs either. Could you maybe post a verbose log of test_peg_generator, Raymond? --

[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-18 Thread Steve Dower
Steve Dower added the comment: This is only an issue for broken symlinks, right? (More precisely, those that cannot be resolved, which may include very long paths on some machines.) Fixing copy is my preferred option. Also Jason, what do you need to be able to test against prerelease? It

[issue40629] Error MSB4086 (numeric comparison)

2020-05-18 Thread Steve Dower
Steve Dower added the comment: Yeah, that looks like a version of .NET that pre-dates Version being made comparable, which probably means you're not getting the MSBuild installed with VS. Check out "where MSBuild" or %MSBUILD% to see if there's something obvious overriding it, and use the

[issue35967] Better platform.processor support

2020-05-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Thanks, Jason. I'll have a closer look at the issue and report back later this week. -- ___ Python tracker ___

[issue40452] IDLE: preserve clipboard on closure on Windows

2020-05-18 Thread Tal Einat
Tal Einat added the comment: I can reproduce this behavior on macOS as well, so this doesn't seem to be Windows-specific. This does not happen with other apps in general, so it is not normal behavior for apps. Testing with a minimal tkinter app (see code below) gives similar behavior, so

[issue38938] Possible performance improvement for heaqq.merge()

2020-05-18 Thread Dennis Sweeney
Dennis Sweeney added the comment: I mostly like new_merge.py too, especially the dynamic reduction of the tree. However, it looks like ``list(merge([2],[1],[1]))`` currently fails, and I think what's missing is the following in the sibling-promotion: + if sibling.left is not

[issue40668] Catastrophic loss of precision in colorsys module

2020-05-18 Thread Zac Hatfield-Dodds
New submission from Zac Hatfield-Dodds : As part of the Mentored Sprints at PyCon US, Marielle wrote some property-based tests [1] for the colorsys module [2], which found two bugs. Taking a YIQ color, converting to RGB, and back to YIQ can result in the Y coordinate varying by more 0.1

[issue40667] [Windows] Add global python and python3 commands

2020-05-18 Thread Steve Dower
New submission from Steve Dower : So I'm totally sick of being abused on the internet about the whole PATH issue, and want to put this up as an alternative. I'm willing to do the work, but I'm worried that my emotional state about the whole thing is blinding me to obvious issues. In short,

[issue34956] _tkinter built on macOS 10.14 does not link to Tcl and Tk in /Library/Frameworks

2020-05-18 Thread Ned Deily
Ned Deily added the comment: New changeset 1731d6da263e9a2d6e783e87a8a5d5ce58fda46d by Ned Deily in branch 'master': bpo-34956: Fix macOS _tkinter use of Tcl/Tk in /Library/Frameworks (GH-20171) https://github.com/python/cpython/commit/1731d6da263e9a2d6e783e87a8a5d5ce58fda46d --

[issue40633] json.dumps() should encode float number NaN to null

2020-05-18 Thread Mark Dickinson
Mark Dickinson added the comment: Agreed; closing. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-05-18 Thread Nathaniel Smith
Nathaniel Smith added the comment: I think I fixed the buildbot issues in GH-20170, but I can't seem to reach the buildbot site right now, so it's hard to know for sure! -- versions: -Python 3.6 ___ Python tracker

[issue40666] TarFile.add does not support pathlib.Path as a value to first argument.

2020-05-18 Thread Марк Коренберг
Change by Марк Коренберг : -- components: Library (Lib) nosy: socketpair priority: normal severity: normal status: open title: TarFile.add does not support pathlib.Path as a value to first argument. versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-05-18 Thread Nathaniel Smith
Nathaniel Smith added the comment: New changeset 58205a0217e91232cc1e945dbfe4e387d636eb76 by Nathaniel J. Smith in branch 'master': bpo-39148: fixup to account for IPV6_ENABLED being moved (GH-20170) https://github.com/python/cpython/commit/58205a0217e91232cc1e945dbfe4e387d636eb76

[issue34956] _tkinter built on macOS 10.14 does not link to Tcl and Tk in /Library/Frameworks

2020-05-18 Thread Ned Deily
Change by Ned Deily : -- keywords: +patch pull_requests: +19470 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20171 ___ Python tracker ___

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-05-18 Thread Nathaniel Smith
Change by Nathaniel Smith : -- pull_requests: +19469 pull_request: https://github.com/python/cpython/pull/20170 ___ Python tracker ___

[issue40633] json.dumps() should encode float number NaN to null

2020-05-18 Thread Eric V. Smith
Eric V. Smith added the comment: I think it should be closed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40633] json.dumps() should encode float number NaN to null

2020-05-18 Thread Mark Dickinson
Mark Dickinson added the comment: > We could add an option to cause NaNs to raise an error, but I don't think it > would get used. If that option were extended to also cause infinities to raise an error, then I'd use it. We have code that's producing JSON without knowing in advance exactly

[issue40633] json.dumps() should encode float number NaN to null

2020-05-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: I missed that as well ;-) Shall we close this now? -- ___ Python tracker ___ ___

[issue40633] json.dumps() should encode float number NaN to null

2020-05-18 Thread Mark Dickinson
Mark Dickinson added the comment: ... but I'm an idiot, since that option is already there (allow_nan=False), and I've just checked that we are in fact using it. -- ___ Python tracker

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-05-18 Thread miss-islington
miss-islington added the comment: New changeset 94d9c5e5afdee4f46be9d9faaa39d6be40c34849 by Miss Islington (bot) in branch '3.8': bpo-39148: enable ipv6 for datagrams in Proactor (GH-19121) https://github.com/python/cpython/commit/94d9c5e5afdee4f46be9d9faaa39d6be40c34849 --

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-05-18 Thread Michael Felt
Michael Felt added the comment: Bot failed for AIX https://buildbot.python.org/all/#builders/227/builds/978 with: 0:07:11 Re-running test_asyncio in verbose mode Failed to import test module: test.test_asyncio.test_events Traceback (most recent call last): File

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-05-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +19468 pull_request: https://github.com/python/cpython/pull/20169 ___ Python tracker ___

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-05-18 Thread miss-islington
miss-islington added the comment: New changeset 442634c42fcaf31c636f693951a97734042c3e7b by Kjell Braden in branch 'master': bpo-39148: enable ipv6 for datagrams in Proactor (GH-19121) https://github.com/python/cpython/commit/442634c42fcaf31c636f693951a97734042c3e7b -- nosy:

[issue22622] ElementTree only writes declaration when passed encoding

2020-05-18 Thread Stefan Behnel
Stefan Behnel added the comment: Right, thanks. Closing since this works in Py3. -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue40607] asyncio.wait_for should reraise future exception even if timeout expires

2020-05-18 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thank you again, Roman and all. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.8 ___ Python tracker

[issue31131] asyncio.wait_for() TimeoutError doesn't provide full traceback

2020-05-18 Thread Chris Jerdonek
Chris Jerdonek added the comment: This issue was just resolved by the combination of #40607 followed by #31033 (merged for 3.9.0 beta 1). Running the example code above now results in the following: Traceback (most recent call last): File "/.../cpython/test-31131.py", line 5, in run

[issue40661] The new parser segfaults when parsing invalid input

2020-05-18 Thread Zac Hatfield-Dodds
Zac Hatfield-Dodds added the comment: I know what else it might find either, but I still think it's worth running property-based tests in CI to find out! The demo I wrote for my language summit talk doesn't have any parser tests, but still would have caught this bug in the pull request

<    1   2   3