[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 sin

[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 I

[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

[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 ___ _

[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 -- ___

[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 _

[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 ___

[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
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 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 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 3a5545025685040842420c85a4a9aab5f044aeb8 by Miss Islington (bot) in branch '3.8': bpo-38439: Add 256px IDLE icon (GH-17473) https://github.com/python/cpython/commit/3a5545025685040842420c85a4a9aab5f044aeb8 -- _

[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 --

[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: ->

[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

[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 to

[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 ___ __

[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: https://mail.pyt

[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 -- ___

[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 installed.

[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 ___

[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 ___ _

[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 ___ Pytho

[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 P

[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 t

[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 _PyObject_GC_TRACK

[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 oth

[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 Unsubs

[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 ___ _

[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 ___ ___

[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 k

[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. Knowin

[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 __

[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 th

[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 Python

[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 i

[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 -- ___

[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 ___ __

[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 ___ ___ Python-b

[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. --

[issue40363] shlex.quote applied to a glob pattern disables glob matching

2020-04-22 Thread Jack Orenstein
New submission from Jack Orenstein : I am using shlex.quote to pass filenames to a shell command, e.g. ls. The problem is that glob patterns, when quoted, no longer operate as glob patterns. So, for example, executing this: ls 'var/log/syslog*' results in this output: ls: cannot acc

[issue40363] shlex.quote applied to a glob pattern disables glob matching

2020-04-22 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: shlex.quote makes the string safe to pass a command, what if it's rm 'var/log/syslog*' instead? You make sure that only the file given would be removed but then shlex.quote() shoot you in the foot. This would also cause issues for files with '*' or anothe

[issue40363] shlex.quote applied to a glob pattern disables glob matching

2020-04-22 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- type: -> behavior versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing

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

2020-04-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +18981 pull_request: https://github.com/python/cpython/pull/19655 ___ 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 b07350901cac9197aef41855d8a4d56533636b91 by Victor Stinner in branch '3.8': bpo-40138: Fix Windows os.waitpid() for large exit code (GH-19654) https://github.com/python/cpython/commit/b07350901cac9197aef41855d8a4d56533636b91 -- __

[issue40214] test_ctypes.test_load_dll_with_flags Windows failure

2020-04-22 Thread Steve Dower
Steve Dower added the comment: New changeset 9b498939009f49b8c772c89e8fc80efbfd8afcb5 by Steve Dower in branch 'master': bpo-40214: Fix ctypes WinDLL test with insecure flags (GH-19652) https://github.com/python/cpython/commit/9b498939009f49b8c772c89e8fc80efbfd8afcb5 -- ___

[issue40214] test_ctypes.test_load_dll_with_flags Windows failure

2020-04-22 Thread Steve Dower
Steve Dower added the comment: Looks like that fix has done it. Thanks, Eryk! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue40214] test_ctypes.test_load_dll_with_flags Windows failure

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

[issue36346] Prepare for removing the legacy Unicode C API

2020-04-22 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-04-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4454057269b995341b04d13f0bf97f96080f27d0 by Batuhan Taşkaya in branch 'master': bpo-39562: Prevent collision of future and compiler flags (GH-19230) https://github.com/python/cpython/commit/4454057269b995341b04d13f0bf97f96080f27d0 -- _

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

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

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

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

[issue26826] Expose new copy_file_range() syscall in os module.

2020-04-22 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

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

2020-04-22 Thread miss-islington
miss-islington added the comment: New changeset de5dcfa3bcabf52e43468a2b088ed71b5e5c4503 by Miss Islington (bot) in branch '3.7': bpo-40138: Fix Windows os.waitpid() for large exit code (GH-19654) https://github.com/python/cpython/commit/de5dcfa3bcabf52e43468a2b088ed71b5e5c4503 --

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

2020-04-22 Thread miss-islington
miss-islington added the comment: New changeset e7f8684ef77d280eb99b8533fd18455caa0fe194 by Miss Islington (bot) in branch '3.7': bpo-38360: macOS: support alternate form of -isysroot flag (GH-16480) https://github.com/python/cpython/commit/e7f8684ef77d280eb99b8533fd18455caa0fe194 -

[issue39562] Asynchronous comprehensions don't work in asyncio REPL

2020-04-22 Thread STINNER Victor
STINNER Victor added the comment: > bpo-39562: Prevent collision of future and compiler flags (GH-19230) > https://github.com/python/cpython/commit/4454057269b995341b04d13f0bf97f96080f27d0 I tested manually: this change fix my msg365311 reproducer. Thanks! In Python 3.8, PyCF_ALLOW_TOP_LEVEL_

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

2020-04-22 Thread STINNER Victor
STINNER Victor added the comment: Ok, os.waitpid() is now fixed in 3.7, 3.8 and master branches, and os.waitstatus_to_exitcode() is fixed in master. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 _

[issue40364] asyncio: replace _compute_returncode() with os.waitstatus_to_exitcode()

2020-04-22 Thread STINNER Victor
New submission from STINNER Victor : I added os.waitstatus_to_exitcode() in bpo-40094. I propose to replace _compute_returncode() with os.waitstatus_to_exitcode() in Lib/asyncio/unix_events.py to simplify the code *and* to raise an exception if asyncio gets an unexpected wait status from os.w

[issue40260] modulefinder traceback regression starting on Windows

2020-04-22 Thread Anthony Sottile
Anthony Sottile added the comment: debian has its own implementation of find_modules which still returns a text file for PY_SOURCE changing the type of that io object is the "breaking change" and maybe shouldn't be backported to python3.8 in a patch release -- _

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-22 Thread STINNER Victor
STINNER Victor added the comment: > TODO: Modify asyncio.unix_events._compute_returncode() to use > waitstatus_to_exitcode(): need to update tests. I created bpo-40364 for that. -- ___ Python tracker _

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-22 Thread STINNER Victor
STINNER Victor added the comment: """ TODO: * Decide if subprocess should reject WIFSTOPPED() or not. * Check if the pure Python implementation of os._spawnvef() handles WIFSTOPPED() properly. """ Well, let's keep the status quo: leave os and subprocess modules unchanged. It can be revisited

[issue40094] Add os.waitstatus_to_exitcode() function

2020-04-22 Thread STINNER Victor
STINNER Victor added the comment: The initial issue has been implemented: I added os.waitstatus_to_exitcode() function to Python 3.9. It's now well documented, I close the issue. See sub-issues like bpo-40364 (asyncio) for further cleanups. -- resolution: -> fixed stage: patch revie

[issue32966] Python 3.7.2 - 0x80070643 - Fatal Error during installation

2020-04-22 Thread Steve Dower
Steve Dower added the comment: Your best bet is to repair the Python 3.7.2 install first (through Programs and Features, if possible), and then uninstall it. Any idea why it's interfering with Python 3.8? That shouldn't be the case (unless it's PATH related, in which case yeah, that's more o

[issue40260] modulefinder traceback regression starting on Windows

2020-04-22 Thread Steve Dower
Steve Dower added the comment: If we want to be strictly correct here, the fix should check the "mode" variable to determine the type. And given the fragility of the code being used here, there's no doubt some reliance on a trailing newline somewhere too. I haven't bumped the categorisation,

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

2020-04-22 Thread miss-islington
miss-islington added the comment: New changeset 4a6da0b63ba0fb811bfa3cacd69d22a9c0b24a4d by Miss Islington (bot) in branch '3.8': bpo-38360: macOS: support alternate form of -isysroot flag (GH-16480) https://github.com/python/cpython/commit/4a6da0b63ba0fb811bfa3cacd69d22a9c0b24a4d -

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

2020-04-22 Thread Eryk Sun
Eryk Sun added the comment: > What do you mean by "portable version of mountpoint"? posixpath.ismount is based on a portable method to detect a mountpoint in Unix systems, since POSIX lacks a portable function for this. The implementation is simple. A symlink is never a mountpoint. Otherwise

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

2020-04-22 Thread Ned Deily
Change by Ned Deily : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue35886] Move PyInterpreterState into Include/internal/pycore_pystate.h

2020-04-22 Thread STINNER Victor
STINNER Victor added the comment: > FWIW, I was hoping to the same for PyThreadState but it looks like 6 of its > fields are exposed in "stable" header files via the following macros: (...) I created bpo-39947: "[C API] Make the PyThreadState structure opaque (move it to the internal C API)"

[issue40260] modulefinder traceback regression starting on Windows

2020-04-22 Thread Anthony Sottile
Anthony Sottile added the comment: The trailing newline was added in 1.5.1 78fc3634cbfd65a6be8abfd1b7fc7cbd0ccbfb39 -- back then `compile(...)` could not take strings which did not end in newlines now it can, so it is safe to remove -- I did the same triage on another PR here: https://githu

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

2020-04-22 Thread Carl Meyer
Carl Meyer added the comment: I volunteered in the python-dev thread to write a patch to the docs clarifying future status of lib2to3; happy to include the PendingDeprecationWarning as well. Re linking to alternatives, we want to make sure we link to alternatives that are committed to updat

[issue39471] Meaning and clarification of PyBuffer_Release()

2020-04-22 Thread Sebastian Berg
Sebastian Berg added the comment: Ok, I will just close it. It is painfully clear that e.g. `mmap` uses it this way to prohibit closing, and also `memoryview` has all the machinery necessary to do counting of how many exports, etc. exists. I admit, this still rubs me the wrong way, and I thi

[issue40365] argparse: action "extend" with 1 parameter splits strings into characters

2020-04-22 Thread strjan
New submission from strjan : When positional argument with action='extend' is given to parse only one string argument, the string is splitted into individual characters. The problem occures, when no "nargs" is given; it makes sense that nargs is requiered, though at least notion in documentat

[issue35886] [C API] Make PyInterpreterState opaque: move it into the internal C API (internal/pycore_pystate.h)

2020-04-22 Thread STINNER Victor
STINNER Victor added the comment: Python 3.8 was released in October 2019 with this change (PyInterpreterState structure is now opaque). Fedora 32 is going to be released soon with Python 3.8 as /usr/bin/python. The change only broke very few projets: cffi (which indirectly broke brotlipy an

[issue40260] modulefinder traceback regression starting on Windows

2020-04-22 Thread Steve Dower
Steve Dower added the comment: Okay, no problems then. We'll have to close that other PR now. Too bad nobody noticed it (or knew where to send it - I doubt modulefinder has an obvious owner). -- ___ Python tracker

[issue39471] Meaning and clarification of PyBuffer_Release()

2020-04-22 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

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

2020-04-22 Thread Éric Araujo
New submission from Éric Araujo : Hello! You didn’t give any information about the problem you found :) -- components: +Library (Lib) -Distutils nosy: -dstufft type: -> behavior ___ Python tracker _

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

2020-04-22 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

2020-04-22 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue40358] pathlib's relative_to should behave like os.path.relpath

2020-04-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: The current behaviour is by design. I would not mind adding an option to control it, though. If you are new to Python development and want to submit a patch or PR, I recommend reading the Developer's Guide: https://devguide.python.org/ --

[issue40363] shlex.quote applied to a glob pattern disables glob matching

2020-04-22 Thread Eric V. Smith
Eric V. Smith added the comment: Agreed that shlex.quote is working as intended. It's goal is to pass something to the shell, preserving it just as you started with it. It exists exactly because you want to avoid shell globbing and parsing issues (consider filenames that contain spaces and *

[issue40363] shlex.quote applied to a glob pattern disables glob matching

2020-04-22 Thread Eric V. Smith
Eric V. Smith added the comment: I meant to add: it's possible that this isn't well documented. -- ___ Python tracker ___ ___ Pytho

[issue40260] modulefinder traceback regression starting on Windows

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

[issue40260] modulefinder traceback regression starting on Windows

2020-04-22 Thread Steve Dower
Steve Dower added the comment: New changeset 39652cd8bdf7c82b7c6055089a4ed90ee546a448 by Anthony Sottile in branch 'master': bpo-40260: Remove unnecessary newline in compile() call (GH-19641) https://github.com/python/cpython/commit/39652cd8bdf7c82b7c6055089a4ed90ee546a448 -- _

[issue40365] argparse: action "extend" with 1 parameter splits strings into characters

2020-04-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue40358] pathlib's relative_to should behave like os.path.relpath

2020-04-22 Thread Domenico Ragusa
Domenico Ragusa added the comment: Thanks for your answer. Yeah, I'm new, I'm reading the guide, sorry for any faux pas :) Ok, an option would be great as well, a simple True/False switch? Any suggestion for the name? I'll get back with a proper patch this time. On Wed, Apr 22, 2020 at 8:18 P

[issue40260] modulefinder traceback regression starting on Windows

2020-04-22 Thread miss-islington
miss-islington added the comment: New changeset fc45cb4400409572f05c8b54f2c6f06cbefb1b4e by Miss Islington (bot) in branch '3.8': bpo-40260: Remove unnecessary newline in compile() call (GH-19641) https://github.com/python/cpython/commit/fc45cb4400409572f05c8b54f2c6f06cbefb1b4e --

[issue40364] asyncio: replace _compute_returncode() with os.waitstatus_to_exitcode()

2020-04-22 Thread Kyle Stanley
Kyle Stanley added the comment: Victor Stinner wrote: > Is there someone interested to propose a PR for that? I would be interested in looking into this, although I'm not entirely certain either as to how it should be tested at the moment. I'll have to look further into the existing ones. -

[issue40364] asyncio: replace _compute_returncode() with os.waitstatus_to_exitcode()

2020-04-22 Thread Kyle Stanley
Change by Kyle Stanley : -- assignee: -> aeros ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

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

2020-04-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Should this issue be closed, possibly as superseded by #36346, the issue for the new PR-19653? -- ___ Python tracker ___ ___

[issue40365] argparse: action "extend" with 1 parameter splits strings into characters

2020-04-22 Thread paul j3
paul j3 added the comment: This is a consequence of Python's own definition of append vs extend In [730]: alist = [] In [731]: alist.append('astring')

[issue40366] Start giving deprecation warnings for obsoleted flags in compile

2020-04-22 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : We can start deprecating usage of obsoleted flags in compile and slowly remove support for them. An example would be CO_NESTED. https://github.com/python/cpython/blob/master/Python/bltinmodule.c#L748 -- messages: 367046 nosy: BTaskaya priority: n

[issue40358] pathlib's relative_to should behave like os.path.relpath

2020-04-22 Thread Eryk Sun
Eryk Sun added the comment: Note that the implementation of relpath is pure and thus assumes it's working with existing, resolved paths (i.e. "the filesystem is not accessed to confirm the existence or nature of path or start"). For example: >>> os.path.relpath('/some/thing', '/symlink')

[issue40366] Start giving deprecation warnings for obsoleted flags in compile

2020-04-22 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +18986 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19660 ___ Python tracker ___

[issue37157] shutil: add reflink=False to file copy functions to control clone/CoW copies (use copy_file_range)

2020-04-22 Thread desbma
Change by desbma : -- nosy: +desbma ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

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

2020-04-22 Thread Carl Meyer
Change by Carl Meyer : -- pull_requests: +18987 pull_request: https://github.com/python/cpython/pull/19663 ___ Python tracker ___ __

[issue40367] ImportError: libffi.so.6

2020-04-22 Thread YoSTEALTH
New submission from YoSTEALTH : >>> /opt/python/3.8.1/lib/python3 setup.py build_ext --inplace Traceback (most recent call last): File "./setup.py", line 1, in from setuptools import setup, find_packages File "/opt/python/3.8.1/lib/python3.8/site-packages/setuptools/__init__.py", lin

[issue39939] PEP 616: Add str methods to remove prefix or suffix

2020-04-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset a81849b0315277bb39372711745059c0b445 by sweeneyde in branch 'master': bpo-39939: Add str.removeprefix and str.removesuffix (GH-18939) https://github.com/python/cpython/commit/a81849b0315277bb39372711745059c0b445 -- ___

[issue40334] PEP 617: new PEG-based parser

2020-04-22 Thread Guido van Rossum
Guido van Rossum added the comment: VIctor, you were very right about longjmp. See https://github.com/we-like-parsers/cpython/pull/119 -- ___ Python tracker ___ _

  1   2   >