[issue45022] Update libffi to 3.4.2

2021-08-26 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +26430 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27982 ___ Python tracker _

[issue45022] Update libffi to 3.4.2

2021-08-26 Thread Steve Dower
Steve Dower added the comment: This first PR is just to avoid accidentally upgrading old builds. Otherwise, as soon as I push the new build into the cpython-bin-deps repository, it'll take precedence. This one needs backporting into 3.10 and 3.9, but should be a no-op. -- _

[issue43468] functools.cached_property incorrectly locks the entire descriptor on class instead of per-instance locking

2021-08-26 Thread Alessio Bogon
Change by Alessio Bogon : -- nosy: +youtux ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue44140] WeakKeyDictionary should support lookup by id instead of hash

2021-08-26 Thread Alessio Bogon
Change by Alessio Bogon : -- nosy: +youtux ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue45023] Python doesn't exit with proper resultcode on SIGINT in multiprocessing.Process

2021-08-26 Thread Amber Wright
New submission from Amber Wright : The return code of python on linux/MacOS when the program is ended with a KeyboardInterrupt should be -2, when running with multiprocessing the exitcode is 1. I've attached a reproduced example. >From The Process.join() docs: >https://docs.python.org/3/lib

[issue45022] Update libffi to 3.4.2

2021-08-26 Thread Steve Dower
Steve Dower added the comment: New changeset 969ae7f7356584e30667b4e490ffa2ffa1810429 by Steve Dower in branch 'main': bpo-45022: Pin current libffi build to fixed version in preparation for upcoming update (GH-27982) https://github.com/python/cpython/commit/969ae7f7356584e30667b4e490ffa2ffa

[issue45022] Update libffi to 3.4.2

2021-08-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +26431 pull_request: https://github.com/python/cpython/pull/27984 ___ Python tracker _

[issue45022] Update libffi to 3.4.2

2021-08-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +26432 pull_request: https://github.com/python/cpython/pull/27985 ___ Python tracker ___ __

[issue45020] Freeze all modules imported during startup.

2021-08-26 Thread Guido van Rossum
Guido van Rossum added the comment: I noticed nedbat un-nosied himself. Probably he didn't realize you were calling him out because it's possible this would affect coverage.py? -- ___ Python tracker

[issue45024] Cannot extend collections ABCs with protocol

2021-08-26 Thread Anup Parikh
New submission from Anup Parikh : Since the container ABCs are normal classes, and Protocol cannot subclass normal classes, there's no way to create a protocol that extends the ABCs without explicitly listing out all the methods needed for the collection. e.g., can't do this: from typing imp

[issue44993] enum.auto() starts with one instead of zero

2021-08-26 Thread Eric V. Smith
Change by Eric V. Smith : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue45025] Reliance on C bit fields is C API is undefined behavior

2021-08-26 Thread Gregory Szorc
New submission from Gregory Szorc : At least the PyASCIIObject struct in Include/cpython/unicodeobject.h uses bit fields. Various preprocessor macros like PyUnicode_IS_ASCII() and PyUnicode_KIND() access this struct's bit field. This is problematic because according to the C specification, th

[issue45025] Reliance on C bit fields in C API is undefined behavior

2021-08-26 Thread Gregory Szorc
Change by Gregory Szorc : -- title: Reliance on C bit fields is C API is undefined behavior -> Reliance on C bit fields in C API is undefined behavior ___ Python tracker ___ _

[issue41818] Lib/pty.py major revision

2021-08-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset ae224bb566301d3602e9b090e37c1dcf5a48c914 by Soumendra Ganguly in branch 'main': bpo-41818: Add termios.tcgetwinsize(), termios.tcsetwinsize(). (GH-23686) https://github.com/python/cpython/commit/ae224bb566301d3602e9b090e37c1dcf5a48c914 -

[issue45026] More compact range iterator

2021-08-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR provides more compact implementation of the range iterator. It consumes less memory and produces smaller pickles. It is presumably faster because it performs simpler arithmetic operations on iteration (no multiplications). -- com

[issue45026] More compact range iterator

2021-08-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26433 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27986 ___ Python tracker ___

[issue41818] Lib/pty.py major revision

2021-08-26 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +26434 pull_request: https://github.com/python/cpython/pull/27987 ___ Python tracker ___

[issue45027] Allow basicConfig to configure any logger, not just root

2021-08-26 Thread Greg Werbin
New submission from Greg Werbin : Hello all! I am proposing to add a "logger=" kwarg to logging.basicConfig(), which would cause the configuration to be applied to the specified logger. The value of this parameter could be a string or a logging.Logger object. Omitting logger= or passing logg

[issue45026] More compact range iterator

2021-08-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Currently the range iterator contains four integers: index, start, step and len. On iteration index is increased until achieve len, the result is calculated as start+index*step. In the proposed PR the range iterator contains only three integers: index was

[issue41818] Lib/pty.py major revision

2021-08-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 245f1f260577a005fd631144b4377febef0b47ed by Gregory P. Smith in branch 'main': bpo-41818: ++ termios versionadded markers. (GH-27987) https://github.com/python/cpython/commit/245f1f260577a005fd631144b4377febef0b47ed -- _

[issue45020] Freeze all modules imported during startup.

2021-08-26 Thread Guido van Rossum
Guido van Rossum added the comment: > The big time consumer is turning marshal'ed code objects back > into Python objects, though. If that could be made faster by > e.g. using a more efficient storage format such as one which is > platform dependent, it'd be a much bigger win than the freezing

[issue44974] Warning about "Unknown child process pid" in test_asyncio

2021-08-26 Thread Ryan Mast (nightlark)
Ryan Mast (nightlark) added the comment: I haven't gotten a chance to narrow it down much yet, it might be that it is occurs more often on systems with a low core count/higher load -- a bit hard to tell with it being intermittent though. -- ___ Py

[issue45026] More compact range iterator

2021-08-26 Thread Dennis Sweeney
Dennis Sweeney added the comment: Is it worth removing the len field as well and lazily using get_len_of_range() as needed? Then the hot function can look something like: static PyObject * rangeiter_next(rangeiterobject *r) { long result = r->start if (result < r->stop) { r->

[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-26 Thread Ryan Mast (nightlark)
Ryan Mast (nightlark) added the comment: > How is manually dispatched workflows different from just opening a PR to your > own fork? I do that from time to time in order to run the CI before opening a > PR against the CPython repo. Here are a few thoughts on how it is different: - They can b

[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-26 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Neat! Thanks :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue43513] venv: recreate symlinks on --upgrade

2021-08-26 Thread Scott Macpherson
Change by Scott Macpherson : -- nosy: +macpherson.scott ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

<    1   2