[issue40334] PEP 617: new PEG-based parser

2020-04-22 Thread STINNER Victor
STINNER Victor added the comment: Once PR 19503 will be merged, I would be interested to see if setjmp()/longjmp() can be avoided. I'm scared by these functions: they require that all functions in between setjmp() and longjmp() call stack have no state and don't need any cleanup at exit.

[issue40338] [Security] urllib and anti-slash (\) in the hostname

2020-04-22 Thread hai shi
hai shi added the comment: >It seems to behave as expected +1. This is an interesting test;) -- ___ Python tracker ___ ___

[issue40138] Windows implementation of os.waitpid() truncates the exit status (status << 8)

2020-04-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18980 pull_request: https://github.com/python/cpython/pull/19654 ___ Python tracker ___

[issue40138] Windows implementation of os.waitpid() truncates the exit status (status << 8)

2020-04-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9bee32b34e4fb3e67a88bf14d38153851d4c4598 by Victor Stinner in branch 'master': bpo-40138: Fix Windows os.waitpid() for large exit code (GH-19637) https://github.com/python/cpython/commit/9bee32b34e4fb3e67a88bf14d38153851d4c4598 --

[issue40346] Add random.BaseRandom to ease implementation of subclasses

2020-04-22 Thread STINNER Victor
STINNER Victor added the comment: In Python 3.8, random.Random docstring starts with "Random number generator base class". I do understand that the random module design predates the abc module (added to Python 2.7). I'm now proposing to add a real base class to move it towards modern

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-04-22 Thread Guido van Rossum
Guido van Rossum added the comment: I am in favor of this. We could promote LibCST, which is based on Parso, which uses a forked version of pgen2 (the parser in lib2to3). I believe one of these could switch to a fork of pegen as its parser, so it will be able to handle new PEG based syntax

[issue40346] Add random.BaseRandom to ease implementation of subclasses

2020-04-22 Thread STINNER Victor
STINNER Victor added the comment: > Making it easy to create subclasses was never a goal regardless. It's clearly advertised at the beginning of the documentation: "Class Random can also be subclassed if you want to use a different basic generator of your own devising: (...)" Do you mean

[issue40362] AbstractBasicAuthHandler does not support the following scheme: 'Bearer'

2020-04-22 Thread Paul Stoner
Paul Stoner added the comment: --4/22/2020 09:36 I disconnected from my corporate vpn and ran the script over my private network with the same result -- ___ Python tracker

[issue40362] AbstractBasicAuthHandler does not support the following scheme: 'Bearer'

2020-04-22 Thread Paul Stoner
New submission from Paul Stoner : I found this issue when running an ansible playbook. In the playbook we go out to Azure Artifacts to download a customer jar to be deploy with a web application. After some digging, I found the error comes from the request class in the urllib library.

[issue40260] modulefinder traceback regression starting on Windows

2020-04-22 Thread Barry Alan Scott
Barry Alan Scott added the comment: Anthony, Now that everything is opened using open_code that returns bytes its not clear to me why this breaks for you. Further the data must be bytes for the codings to be figured out. Removing the b'\n' may be reasonable, but not for the reason given. I

[issue36299] array: Deprecate 'u' type in array module

2020-04-22 Thread Inada Naoki
Inada Naoki added the comment: I closed GH-12497 (Py_UNICODE -> Py_UCS4). I created GH-19653 (Py_UNICODE -> wchar_t) instead. -- ___ Python tracker ___

[issue36346] Prepare for removing the legacy Unicode C API

2020-04-22 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +18979 pull_request: https://github.com/python/cpython/pull/19653 ___ Python tracker ___

[issue40356] OverflowError: mktime argument out of range

2020-04-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-04-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The patch assumed using the magic method attribute as the way to evaluate an object in a context which I got to know is wrong since evaluations in context like boolean are not only dependent on one magic method but has a precedence over several

[issue40244] AIX: build: _PyObject_GC_TRACK Asstertion failure

2020-04-22 Thread Michael Felt
Michael Felt added the comment: When I have more time I hope to investigate specifically what is different in the assembly code - with/without the __noreturn__ change. On 19/04/2020 08:20, Batuhan Taskaya wrote: > Batuhan Taskaya added the comment: > > Moving assertion from

[issue38360] single-argument form of -isysroot should be supported

2020-04-22 Thread Joshua Root
Joshua Root added the comment: That ValueError I mentioned causes build failures for extension modules whenever the CFLAGS in sysconfig contains an -isysroot flag in the single arg form. We ran into it a lot in MacPorts on Mojave and Catalina. So I would consider it a bug, and would prefer

[issue39817] CRITICAL: TypeError: cannot pickle 'generator'

2020-04-22 Thread Oscar
Oscar added the comment: Hello there. Im sorry very much by not replying to the answers. The source code is not mine, not written by me. I can pass a link from the project issue tracker https://github.com/getpelican/pelican/issues/2674#issuecomment-569431530 telling that the code works with

[issue39423] Process finished with exit code -1073741819 (0xC0000005) when trying to access data from a pickled file

2020-04-22 Thread mapf
mapf added the comment: Ok, I created a little something. It's not very pretty, but it works for me, meaning it causes the process to finish with exit code -1073741819 (0xC005). -- Added file: https://bugs.python.org/file49084/temp.py ___

[issue40214] test_ctypes.test_load_dll_with_flags Windows failure

2020-04-22 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +18978 pull_request: https://github.com/python/cpython/pull/19652 ___ Python tracker ___

[issue34990] year 2038 problem in compileall.py

2020-04-22 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +ammar2 nosy_count: 4.0 -> 5.0 pull_requests: +18977 pull_request: https://github.com/python/cpython/pull/19651 ___ Python tracker ___

[issue38329] macOS python.org installers only add or modify framework Versions/Current symlink for Python 2.x installs, not Python 3.x

2020-04-22 Thread Ned Deily
Ned Deily added the comment: With Python 2 now officially retired, it's time to change the installer behavior. With the merged change, as of Python 3.9.0 (alpha 6) the python.org macOS installers will now update the Current version symmlink in the /Library/Frameworks Python being

[issue38329] macOS python.org installers only add or modify framework Versions/Current symlink for Python 2.x installs, not Python 3.x

2020-04-22 Thread Ned Deily
Ned Deily added the comment: New changeset bcc136ba892e62078a67ad0ca0b34072ec9c88aa by Ned Deily in branch 'master': bpo-38329: python.org macOS installers now update Current symlink (GH-19650) https://github.com/python/cpython/commit/bcc136ba892e62078a67ad0ca0b34072ec9c88aa --

[issue37339] os.path.ismount returns true on nested btrfs subvolumes

2020-04-22 Thread Jakub Stasiak
Change by Jakub Stasiak : -- nosy: +jstasiak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38329] macOS python.org installers only add or modify framework Versions/Current symlink for Python 2.x installs, not Python 3.x

2020-04-22 Thread Ned Deily
Change by Ned Deily : -- keywords: +patch pull_requests: +18976 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19650 ___ Python tracker ___

[issue39423] Process finished with exit code -1073741819 (0xC0000005) when trying to access data from a pickled file

2020-04-22 Thread mapf
mapf added the comment: Hi, thanks for your interest! Since this was quite some time ago now, I eventually found a workaround (I think I made dicts out of the 1d slices and saved them instead) and the project moved on. I don't have the code from back then anymore, I'm sorry. But I can try

[issue40361] Darwin systems using win settings for webbrowser.py

2020-04-22 Thread Viraat Das
Change by Viraat Das : -- components: Distutils nosy: Viraat Das, dstufft, eric.araujo priority: normal severity: normal status: open title: Darwin systems using win settings for webbrowser.py versions: Python 3.8 ___ Python tracker

[issue38360] single-argument form of -isysroot should be supported

2020-04-22 Thread Ned Deily
Ned Deily added the comment: Thanks for the PR! This seems like a borderline feature rather than a bug so, unless there is a compelling reason to backport it to 3.8.x, I'm just going to push it to master for release in 3.9.0 (as of alpha 6). -- assignee: -> ned.deily resolution:

[issue38360] single-argument form of -isysroot should be supported

2020-04-22 Thread Ned Deily
Ned Deily added the comment: New changeset b310700976524b4b99ee319c947ca40468716fc9 by Joshua Root in branch 'master': bpo-38360: macOS: support alternate form of -isysroot flag (GH-16480) https://github.com/python/cpython/commit/b310700976524b4b99ee319c947ca40468716fc9 --

[issue38439] Python needs higher resolution app/menu icons

2020-04-22 Thread miss-islington
miss-islington added the comment: New changeset 3a5545025685040842420c85a4a9aab5f044aeb8 by Miss Islington (bot) in branch '3.8': bpo-38439: Add 256px IDLE icon (GH-17473) https://github.com/python/cpython/commit/3a5545025685040842420c85a4a9aab5f044aeb8 --

[issue1490384] PC new-logo-based icon set

2020-04-22 Thread miss-islington
miss-islington added the comment: New changeset 3a5545025685040842420c85a4a9aab5f044aeb8 by Miss Islington (bot) in branch '3.8': bpo-38439: Add 256px IDLE icon (GH-17473) https://github.com/python/cpython/commit/3a5545025685040842420c85a4a9aab5f044aeb8 --

[issue38439] Python needs higher resolution app/menu icons

2020-04-22 Thread miss-islington
miss-islington added the comment: New changeset abdfb3b47156a6ca5696b6f4380d412a460b718a by Miss Islington (bot) in branch '3.7': bpo-38439: Add 256px IDLE icon (GH-17473) https://github.com/python/cpython/commit/abdfb3b47156a6ca5696b6f4380d412a460b718a --

[issue38439] Python needs higher resolution app/menu icons

2020-04-22 Thread Miro Hrončok
Change by Miro Hrončok : -- pull_requests: +18975 pull_request: https://github.com/python/cpython/pull/19648 ___ Python tracker ___

[issue1490384] PC new-logo-based icon set

2020-04-22 Thread miss-islington
miss-islington added the comment: New changeset abdfb3b47156a6ca5696b6f4380d412a460b718a by Miss Islington (bot) in branch '3.7': bpo-38439: Add 256px IDLE icon (GH-17473) https://github.com/python/cpython/commit/abdfb3b47156a6ca5696b6f4380d412a460b718a --

[issue1490384] PC new-logo-based icon set

2020-04-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +18974 pull_request: https://github.com/python/cpython/pull/19647 ___ Python tracker ___

[issue1490384] PC new-logo-based icon set

2020-04-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +18972 pull_request: https://github.com/python/cpython/pull/19646 ___ Python tracker

[issue38439] Python needs higher resolution app/menu icons

2020-04-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +18973 pull_request: https://github.com/python/cpython/pull/19647 ___ Python tracker ___

[issue38439] Python needs higher resolution app/menu icons

2020-04-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +18971 pull_request: https://github.com/python/cpython/pull/19646 ___ Python tracker

[issue38439] Python needs higher resolution app/menu icons

2020-04-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 3a69f3caeeaea57048ed3bc3051e16854b9a4cd6 by Miro Hrončok in branch 'master': bpo-38439: Add 256px IDLE icon (GH-17473) https://github.com/python/cpython/commit/3a69f3caeeaea57048ed3bc3051e16854b9a4cd6 --

[issue1490384] PC new-logo-based icon set

2020-04-22 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +hroncok nosy_count: 2.0 -> 3.0 pull_requests: +18970 pull_request: https://github.com/python/cpython/pull/17473 ___ Python tracker ___

[issue1490384] PC new-logo-based icon set

2020-04-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 3a69f3caeeaea57048ed3bc3051e16854b9a4cd6 by Miro Hrončok in branch 'master': bpo-38439: Add 256px IDLE icon (GH-17473) https://github.com/python/cpython/commit/3a69f3caeeaea57048ed3bc3051e16854b9a4cd6 -- nosy: +terry.reedy

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2020-04-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: By design, IDLE should only allow one editor instance per file for a given python-IDLE process. "$ python3 fails.py" opens a new python-IDLE process, independent of existing processes. It is possible that double-clicking good.py multiple times opens a new

[issue40342] Programming FAQ about "How do I apply a method to a sequence of objects?" should include the option of an explicit for-loop

2020-04-22 Thread Vedran Čačić
Vedran Čačić added the comment: Mapping lambdas is always inferior to comprehensions, in fact the main reason comprehensions were introduced was that mapping lambdas was cumbersome. (It didn't work so well for filtering by lambdas, but that's another story.) As I said, Py3K was beneficial

[issue33065] IDLE debugger: failure stepping through module loading

2020-04-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe I found the bug. For IDLE's original single process mode, still available with the -n startup option, debugger.py contains the entire debugger. The values displayed for global and local names are obtained with reprlib.Repr.repr. That in turn

[issue40342] Programming FAQ about "How do I apply a method to a sequence of objects?" should include the option of an explicit for-loop

2020-04-22 Thread Mark Dickinson
Mark Dickinson added the comment: However, the list comprehension pattern is not as bad as lines like this one [#1]: map(lambda plugin: self.start_plugin(plugin), self._plugins) ... which of course stopped working as soon as we transitioned to Python 3. :-( [#1]

[issue40342] Programming FAQ about "How do I apply a method to a sequence of objects?" should include the option of an explicit for-loop

2020-04-22 Thread Mark Dickinson
Mark Dickinson added the comment: This is an antipattern I've seen on multiple occasions in real code. A common offender is: [worker.join() for worker in workers] Similarly, things like: [plugin.start() for plugin in plugins] I do think it would be worth updating the FAQ text.

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2020-04-22 Thread AndrewGYork
AndrewGYork added the comment: We have a 10.15.3 Mac with python 3.8.2, IDLE version 3.8.2, and we see similar behavior. Summary: The *second* 'bad' .py file you double-click won't open in IDLE. This seems unrelated to permissions, but a 'bad' file (saved by IDLE) can be converted to a

<    1   2