[issue44470] 3.11 docs.python.org in Polish not English?

2021-06-23 Thread Samuel Marks
Samuel Marks added the comment: Yep exactly like my screenshot but now the Polish has turned Korean… my family was never Korean! -- ___ Python tracker ___

[issue43988] Add test.support.check_disallow_instantiation()

2021-06-23 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42853] `OverflowError: signed integer is greater than maximum` in ssl.py for files larger than 2GB

2021-06-23 Thread Matan Perelman
Matan Perelman added the comment: A bit of extra context to save clicking through: the PR which introduced the regression: https://github.com/python/cpython/pull/12698 and the bug: https://bugs.python.org/issue36050 Maybe some people have context about why we couldn't just roll back that PR

[issue43352] Add a Barrier object in asyncio lib

2021-06-23 Thread Yves Duprat
Yves Duprat added the comment: This last version includes the propositions, remarks from @asveltov and @eamanu This PR is always stuck, so could you please approve the 3 running workflows ? -- status: pending -> open ___ Python tracker

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

2021-06-23 Thread Andrei Kulakov
Andrei Kulakov added the comment: Josh: thanks for the explanation, this makes sense. -- ___ Python tracker ___ ___ Python-bugs-lis

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

2021-06-23 Thread Josh Rosenberg
Josh Rosenberg added the comment: Andrei: If designed appropriately, a weakref callback attached to the actual object would delete the associated ID from the dictionary when the object was being deleted to avoid that problem. That's basically how WeakKeyDictionary works already; it doesn't s

[issue44470] 3.11 docs.python.org in Polish not English?

2021-06-23 Thread Josh Rosenberg
Josh Rosenberg added the comment: I just visited the link, and it's now *mostly* English, but with random bits of Korean in it (mostly in links and section headers). The first warning block for instance begins: 경고: The parser module is deprecated... Then a few paragraphs later I'm told: For

[issue44452] Allow paths to be joined without worrying about a leading slash

2021-06-23 Thread Eric V. Smith
Eric V. Smith added the comment: You should bring this up on the python-ideas mailing list if you want some discussion. -- nosy: +eric.smith ___ Python tracker ___ __

[issue43988] Add test.support.check_disallow_instantiation()

2021-06-23 Thread miss-islington
miss-islington added the comment: New changeset 0a3452e7cf00c51ab1af0f674b670520b09f0e39 by Erlend Egeberg Aasland in branch '3.10': [3.10] bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757) (GH-26885) https://github.com/python/cpython/commit/0a3452e7cf00c51ab1af0f674b6705

[issue43553] [sqlite3] Improve test coverage

2021-06-23 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25464 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26886 ___ Python tracker ___ ___

[issue43988] Add test.support.check_disallow_instantiation()

2021-06-23 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: fixed -> status: closed -> open versions: +Python 3.10 ___ Python tracker ___ ___ Pyth

[issue43988] Add test.support.check_disallow_instantiation()

2021-06-23 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25463 pull_request: https://github.com/python/cpython/pull/26885 ___ Python tracker ___ ___

[issue42514] Relocatable framework for macOS

2021-06-23 Thread Greg Neagle
Greg Neagle added the comment: While checking this issue hoping there might be updates, I realized that I didn't share a link to the script I use to convert python.org's Python framework into one that can be relocated. It's here: https://github.com/gregneagle/relocatable-python --

[issue44498] add deprecation warnings for asynchat, asyncore and smtpd

2021-06-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > but only whether to issue the warning in 3.10 or 3.11. Is that correct? Correct. It can also be mentioned in a more general message as long as people know that this is the plan and they have a chance to voice any concern to start on 3.10 --

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-06-23 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25462 pull_request: https://github.com/python/cpython/pull/26884 ___ Python tracker ___ ___

[issue44501] Packing constant call arguments

2021-06-23 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Here is my branch for the reference (I didn't worked on about it much, so still lacks some error handling etc); https://github.com/isidentical/cpython/blob/b556d1172b08c65b88093f7ff1dadc985ce72f62/Python/ast_opt.c#L634-L698 -- _

[issue44501] Packing constant call arguments

2021-06-23 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > I already experimented with this in issue33325. It does not worth an effort. Yea, that is what the results for the CFG optimization shows to me (1.13x at best, ~1.03x in real cases). > For optimizing calls with constant arguments, it looks more interesti

[issue39452] Improve the __main__ module documentation

2021-06-23 Thread Zachary Ware
Change by Zachary Ware : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39452] Improve the __main__ module documentation

2021-06-23 Thread Jack DeVries
Change by Jack DeVries : -- versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python

[issue39452] Improve the __main__ module documentation

2021-06-23 Thread Jack DeVries
Jack DeVries added the comment: Hi All, As I wrote on the PR:: I am picking up the torch on 39452, continuing where @maggyero left off, and also implementing my discourse proposal, which seemed to be well-liked. Feel free to leave any feedback for me on the GitHub PR, I'm looki

[issue39452] Improve the __main__ module documentation

2021-06-23 Thread Jack DeVries
Change by Jack DeVries : -- keywords: +patch nosy: +jack__d nosy_count: 6.0 -> 7.0 pull_requests: +25460 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26883 ___ Python tracker _

[issue44494] Overhaul of Doc/library/__main__.rst

2021-06-23 Thread Jack DeVries
Change by Jack DeVries : -- pull_requests: +25461 pull_request: https://github.com/python/cpython/pull/26883 ___ Python tracker ___

[issue43564] ftp tests in test_urllib2net should skip on unreachable network

2021-06-23 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue44498] add deprecation warnings for asynchat, asyncore and smtpd

2021-06-23 Thread Irit Katriel
Irit Katriel added the comment: Pablo, to be clear - my understanding is that the question to python-dev is not whether to deprecate or not (they have been deprecated for a long time), but only whether to issue the warning in 3.10 or 3.11. Is that correct? -- ___

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-23 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: See also bpo-33450. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44501] Packing constant call arguments

2021-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > folding all contiguous LOAD_CONSTs (within some sort of limit ofc) into a > single tuple load and then adding an UNPACK_SEQUENCE I already experimented with this in issue33325. It does not worth an effort. For optimizing calls with constant arguments, it

[issue44498] add deprecation warnings for asynchat, asyncore and smtpd

2021-06-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I'm fine with a 3.10 backport as long as this is mentioned in python-dev to give time for folks to raise concerns. Additionally, please make sure that: *The test site runs with -Werror as these warnings may make it fail so tests may need to be adapted

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Only on MacOS afaik -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue44490] PEP 604 Union (int | str) doesn't have __parameters__

2021-06-23 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue44498] add deprecation warnings for asynchat, asyncore and smtpd

2021-06-23 Thread Irit Katriel
Change by Irit Katriel : -- assignee: iritkatriel -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue44501] Packing constant call arguments

2021-06-23 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : It is a common scenario to make calls with only constant arguments (e.g to datetime.datetime/os.path.join/re.match.group/nox.session.run etc) and the bytecode that we currently generate looks like this; f(1,2,3,4,5,6) 1 0 LOAD_NAME

[issue44498] add deprecation warnings for asynchat, asyncore and smtpd

2021-06-23 Thread Irit Katriel
Change by Irit Katriel : -- title: move deprecated asynchat, asyncore and smtpd from the stdlib to test.support -> add deprecation warnings for asynchat, asyncore and smtpd ___ Python tracker ___

[issue44498] move deprecated asynchat, asyncore and smtpd from the stdlib to test.support

2021-06-23 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- pull_requests: +25459 pull_request: https://github.com/python/cpython/pull/26882 ___ Python tracker ___ _

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-23 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Has these issues (ConnectionRefusedError/ConnectionResetError during handshake) been reported on other systems than macOS? AFAICS, they've only been reported for the macOS CI. -- ___ Python tracker

[issue36243] Python os.listdir fails with FileNotFoundError when directory exists

2021-06-23 Thread Irit Katriel
Irit Katriel added the comment: Geoff, it's been over two years. Do you think there is a chance you will want to follow up with a reproducer, or shall we close this issue? -- nosy: +iritkatriel status: pending -> open ___ Python tracker

[issue41515] typing.get_type_hints generates KeyError

2021-06-23 Thread Will Chen
Change by Will Chen : -- nosy: +WCA nosy_count: 6.0 -> 7.0 pull_requests: +25458 pull_request: https://github.com/python/cpython/pull/26862 ___ Python tracker ___ _

[issue40620] [doc] Range tutorial shorthand could be made clearer

2021-06-23 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: Range tutorial shorthand could be made clearer -> [doc] Range tutorial shorthand could be made clearer versions: +Python 3.10, Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker

[issue44404] tkinter's after() AttributeError with functools.partial (no attribute __name__)

2021-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was thinking the same. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-23 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 769d7d0c66c5b86e2dd29b9ce67ac2daaab1bb38 by Guido van Rossum in branch 'main': bpo-43693 Get rid of CO_NOFREE -- it's unused (GH-26839) https://github.com/python/cpython/commit/769d7d0c66c5b86e2dd29b9ce67ac2daaab1bb38 -- ___

[issue44470] 3.11 docs.python.org in Polish not English?

2021-06-23 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue44500] Document changes to code object.

2021-06-23 Thread Mark Shannon
New submission from Mark Shannon : We are making lots of changes to the code object. We should clearly document all the changes in one place and explain the new design well before 3.11 beta. -- assignee: docs@python components: Documentation messages: 396432 nosy: Mark.Shannon, docs@p

[issue44486] Modules should alway have a dictionary

2021-06-23 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Although I simphatise with the frustration and I would really like to skip them myself, as a release manager I am quite concerned that skip them would masks an actual regression, as these failures are not present in previous versions. --

[issue44297] Frame with -1 line number

2021-06-23 Thread Mark Shannon
Mark Shannon added the comment: Thanks for the reproducer. -- assignee: -> Mark.Shannon ___ Python tracker ___ ___ Python-bugs-lis

[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-23 Thread STINNER Victor
STINNER Victor added the comment: Thanks kryheb for your bug report, reproducer and your fix! The bug should now be fixed in 3.9, 3.10 and main branches. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 ___

[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5ed7827b1620f5b3729bc9767158d24a33863fa9 by Victor Stinner in branch '3.9': bpo-1: _PyImport_Fini2() resets PyImport_Inittab (GH-26874) (GH-26878) https://github.com/python/cpython/commit/5ed7827b1620f5b3729bc9767158d24a33863fa9 --

[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset ece3841d3ddf38875b997eb919488cbb911a66e2 by Victor Stinner in branch '3.10': bpo-1: _PyImport_Fini2() resets PyImport_Inittab (GH-26874) (GH-26877) https://github.com/python/cpython/commit/ece3841d3ddf38875b997eb919488cbb911a66e2 -

[issue41621] Document collections.defaultdict parameter default_factory

2021-06-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue41621] Document collections.defaultdict parameter default_factory

2021-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 88a3342314c8b9ff40a2b6fd4759cfbf64712c67 by Miss Islington (bot) in branch '3.10': bpo-41621: Document defaultdict's default_factory parameter (GH-21945) https://github.com/python/cpython/commit/88a3342314c8b9ff40a2b6fd4759cfbf64712c67 ---

[issue44229] test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI

2021-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Two GHI test macOS failures yesterday, once on main, this is on 3.10 backport https://github.com/python/cpython/pull/26850/checks?check_run_id=2885797677 ERROR: test_get_server_certificate (test.test_ssl.SimpleBackgroundTests) -

[issue44480] test_compile killed by signal 9 on AMD64 FreeBSD Non-Debug 3.x

2021-06-23 Thread STINNER Victor
STINNER Victor added the comment: https://buildbot.python.org/all/#/builders/172/builds/399 test_sequence_unpacking_error (test.test_compile.TestSpecifics) ... ok test_single_statement (test.test_compile.TestSpecifics) ... ok test_stack_overflow (test.test_compile.TestSpecifics) ... *** Signal

[issue44482] Possible resource leeak in glob in non-refcount implementations

2021-06-23 Thread Guido van Rossum
Guido van Rossum added the comment: I think this may be worth bringing up on python-dev. The solution currently is rather verbose. I like adding the with-protocol to generators. -- nosy: +Guido.van.Rossum ___ Python tracker

[issue42862] Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module

2021-06-23 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 34356a0a4bad0be124ae892cda6c30a38f5f1061 by Erlend Egeberg Aasland in branch 'main': bpo-42862: Strip stale sqlite3 cache ignores from c-analyzer (GH-26876) https://github.com/python/cpython/commit/34356a0a4bad0be124ae892cda6c30a38f5f1061 ---

[issue39947] [C API] Make the PyThreadState structure opaque (move it to the internal C API)

2021-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset db532a09990c837ec1348e6e6bd2719f5d4a8216 by Victor Stinner in branch 'main': bpo-39947: Remove old private trashcan C API functions (GH-26869) https://github.com/python/cpython/commit/db532a09990c837ec1348e6e6bd2719f5d4a8216 -- __

[issue43770] Rework C types initialization

2021-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2a396d65b8e63300ff05e217adacf0765c502ba3 by Victor Stinner in branch 'main': bpo-43770: Cleanup PyModuleDef_Init() (GH-26879) https://github.com/python/cpython/commit/2a396d65b8e63300ff05e217adacf0765c502ba3 -- __

[issue44498] move deprecated asynchat, asyncore and smtpd from the stdlib to test.support

2021-06-23 Thread Christian Heimes
Christian Heimes added the comment: I'm with Petr, please follow PEP 4 and PEP 387. At a bare minimum you should have one minor Python version with deprecation warnings. You could ask Pablo if he allows to add deprecation warnings to Python 3.10 beta. -- nosy: +christian.heimes

[issue44498] move deprecated asynchat, asyncore and smtpd from the stdlib to test.support

2021-06-23 Thread Petr Viktorin
Petr Viktorin added the comment: Please follow the backwards compatibility policy (PEP 387): - Have a discussion - Raise deprecation warnings - Wait at least two minor Python versions where warnings are raised - Consider any feedback - Then remove stuff (Or ask the SC for an exception, but thes

[issue44499] [sqlite3] make sqlite3.Connection exception refs strong

2021-06-23 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : Currently, pysqlite_Connection keeps borrowed references to all the sqlite3 exception types. Suggesting to convert these to strong refs. See comments on GH-26745: https://github.com/python/cpython/pull/26745#issuecomment-866810269 -- assignee:

[issue43770] Rework C types initialization

2021-06-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +25457 pull_request: https://github.com/python/cpython/pull/26881 ___ Python tracker ___ __

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-06-23 Thread miss-islington
miss-islington added the comment: New changeset a50e28377bcf37121b55c2de70d95a5386c478f8 by Erlend Egeberg Aasland in branch 'main': bpo-42064: Move `sqlite3` exceptions to global state, part 1 of 2 (GH-26745) https://github.com/python/cpython/commit/a50e28377bcf37121b55c2de70d95a5386c478f8

[issue44498] move deprecated asynchat, asyncore and smtpd from the stdlib to test.support

2021-06-23 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: +1 for removal -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue43770] Rework C types initialization

2021-06-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +25456 pull_request: https://github.com/python/cpython/pull/26880 ___ Python tracker ___ __

[issue43770] Rework C types initialization

2021-06-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +25455 pull_request: https://github.com/python/cpython/pull/26879 ___ Python tracker ___ __

[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +25454 pull_request: https://github.com/python/cpython/pull/26878 ___ Python tracker ___ __

[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +25453 pull_request: https://github.com/python/cpython/pull/26877 ___ Python tracker ___ __

[issue42862] Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module

2021-06-23 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25452 pull_request: https://github.com/python/cpython/pull/26876 ___ Python tracker ___ ___

[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 489699ca05bed5cfd10e847d8580840812b476cd by Victor Stinner in branch 'main': bpo-1: _PyImport_Fini2() resets PyImport_Inittab (GH-26874) https://github.com/python/cpython/commit/489699ca05bed5cfd10e847d8580840812b476cd --

[issue44494] Overhaul of Doc/library/__main__.rst

2021-06-23 Thread Irit Katriel
Irit Katriel added the comment: That's a good plan! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue44237] test_ssl randomly fails on macOS GH Action: test_get_server_certificate_sni() and test_get_server_certificate_timeout()

2021-06-23 Thread STINNER Victor
STINNER Victor added the comment: https://github.com/python/cpython/pull/26874/checks?check_run_id=2893904059 ERROR: test_connect_cadata (test.test_ssl.SimpleBackgroundTests) -- Traceback (most recent call last): File "/User

[issue44498] move deprecated asynchat, asyncore and smtpd from the stdlib to test.support

2021-06-23 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +25451 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26875 ___ Python tracker ___ ___

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-06-23 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 019ad62afd20e80c74f879aa716e339b992a0bb9 by Erlend Egeberg Aasland in branch 'main': bpo-42064: Remove stale extern declarations in `sqlite3` headers (GH-26840) https://github.com/python/cpython/commit/019ad62afd20e80c74f879aa716e339b992a0bb9 ---

[issue44496] string.Formatter class not allowing {.field}

2021-06-23 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue44494] Overhaul of Doc/library/__main__.rst

2021-06-23 Thread Jack DeVries
Change by Jack DeVries : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue44494] Overhaul of Doc/library/__main__.rst

2021-06-23 Thread Jack DeVries
Jack DeVries added the comment: @iritkatriel, ok, I will close this issue, close PR26867, and move the work I have over there. I probably can merge in and build upon the work from the contributor on bpo-39452. -- ___ Python tracker

[issue20012] Re: Allow Path.relative_to() to accept non-ancestor paths

2021-06-23 Thread Antony Lee
Change by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue34389] CPython may fail to build in the presence of a ~/.pydistutils.cfg

2021-06-23 Thread Antony Lee
Change by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue20859] Context of documentation for conditional expressions

2021-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > "and exponentiation and conditional expressions, which group from right to > left". LGTM > "Python evaluates expressions from left to right (except for conditional > expressions)." LGTM. It would be nice to add also examples for conditional and assignm

[issue42234] pathlib relative_to behaviour change

2021-06-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> pathlib's relative_to should behave like os.path.relpath ___ Python tracker ___

[issue20012] Re: Allow Path.relative_to() to accept non-ancestor paths

2021-06-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> pathlib's relative_to should behave like os.path.relpath ___ Python tracker ___

[issue44404] tkinter's after() AttributeError with functools.partial (no attribute __name__)

2021-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is on borderline between new feature and bugfix (depends on your interpretation of the documentation), so I decided to backport it to not yet released 3.10, but not to 3.9 which has been already used for a year. -- stage: patch review -> type:

[issue44404] tkinter's after() AttributeError with functools.partial (no attribute __name__)

2021-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e9c8f784fa13ea3a51df3b72a498a3896ec9e768 by E-Paine in branch 'main': bpo-44404: tkinter `after` support callable classes (GH-26812) https://github.com/python/cpython/commit/e9c8f784fa13ea3a51df3b72a498a3896ec9e768 -- __

[issue44482] Possible resource leeak in glob in non-refcount implementations

2021-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 38e021ab90b595945f15c59273c788f2f24053dc by Miss Islington (bot) in branch '3.10': bpo-44482: Fix very unlikely resource leak in glob in non-CPython implementations (GH-26843) (GH-26872) https://github.com/python/cpython/commit/38e021ab90b595

[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-23 Thread STINNER Victor
STINNER Victor added the comment: Oh, I didn't notice your PR 26767 fix! Thanks. I wrote PR 26874 which includes the same fix, but adds also a regression test. -- ___ Python tracker

[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-23 Thread STINNER Victor
STINNER Victor added the comment: Thanks for inittab-bug_no-threads.c reproducer. I managed to reproduce the issue and I wrote PR 26767 to fix with a regression test. -- ___ Python tracker _

[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +25449 pull_request: https://github.com/python/cpython/pull/26874 ___ Python tracker ___ __

[issue44498] move deprecated asynchat, asyncore and smtpd from the stdlib to test.support

2021-06-23 Thread Irit Katriel
Irit Katriel added the comment: There are some tests that use asynchat, asyncore and smtpd so we first move them to test.support and document their removal from the stdlib. -- title: remove deprecated smtpd from the stdlib -> move deprecated asynchat, asyncore and smtpd from the stdl

[issue44482] Possible resource leeak in glob in non-refcount implementations

2021-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes. I added you Guido to the nosy list to attract attention to a general issue. If the generator owns resources, it should be guaranteed closed. Since generator do not support the context manager protocol, we need to use closing(). Using generators is com

[issue28395] Remove unnecessary semicolons in tests

2021-06-23 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue28395] Remove unnecessary semicolons in tests

2021-06-23 Thread miss-islington
miss-islington added the comment: New changeset fcde2c6a8c99a56576b25733d5cc60bce6d51f46 by Miss Islington (bot) in branch '3.9': bpo-28395: Remove unnecessary semicolons in tests (GH-26868) https://github.com/python/cpython/commit/fcde2c6a8c99a56576b25733d5cc60bce6d51f46 -- __

[issue28395] Remove unnecessary semicolons in tests

2021-06-23 Thread miss-islington
miss-islington added the comment: New changeset 280425d41797f9c0b20fb02a22341937a13a8987 by Miss Islington (bot) in branch '3.10': bpo-28395: Remove unnecessary semicolons in tests (GH-26868) https://github.com/python/cpython/commit/280425d41797f9c0b20fb02a22341937a13a8987 -- _

[issue44498] remove deprecated smtpd from the stdlib

2021-06-23 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue44497] distutil findall can choke with recursive symlinks (performance)

2021-06-23 Thread Sorin Sbarnea
Change by Sorin Sbarnea : -- keywords: +patch pull_requests: +25448 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26873 ___ Python tracker ___ __

[issue44498] remove deprecated smtpd from the stdlib

2021-06-23 Thread Irit Katriel
New submission from Irit Katriel : smtpd uses asynchat which has been deprecated since 3.6. See discussion at https://mail.python.org/archives/list/python-committ...@python.org/thread/KNF6YQE2O4OLJDNKSGAT4NLZUNCQ5QSH/#KNF6YQE2O4OLJDNKSGAT4NLZUNCQ5QSH -- messages: 396399 nosy: iritkatri

[issue44483] Fatal error in type union

2021-06-23 Thread Ken Jin
Ken Jin added the comment: Oh, that's a good point too. Thanks for the explanation, reviews and merge Serhiy. -- ___ Python tracker ___ __

[issue44482] Possible resource leeak in glob in non-refcount implementations

2021-06-23 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +25447 pull_request: https://github.com/python/cpython/pull/26872 ___ Python tracker _

[issue44482] Possible resource leeak in glob in non-refcount implementations

2021-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5c7940257e1f611e7284fd504887bd29a63d0a94 by Serhiy Storchaka in branch 'main': bpo-44482: Fix very unlikely resource leak in glob in non-CPython implementations (GH-26843) https://github.com/python/cpython/commit/5c7940257e1f611e7284fd504887b

[issue44483] Fatal error in type union

2021-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, Checking each result individually is a right way. Not only because performance, but because calling any Python code while an error is set will cause a crash in debug build and weird bugs in release build. It is better to return as fast as you have an

[issue44483] Fatal error in type union

2021-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7e6cad7e303b3991360a0fe332b0d21aa0f6fe5e by Miss Islington (bot) in branch '3.10': bpo-44483: Fix crash in union object with bad ``__module__`` (GH-26848) (GH-26852) https://github.com/python/cpython/commit/7e6cad7e303b3991360a0fe332b0d21aa0f

[issue44497] distutil findall can choke with recursive symlinks (performance)

2021-06-23 Thread Sorin Sbarnea
Change by Sorin Sbarnea : -- type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue44497] distutil findall can choke with recursive symlinks (performance)

2021-06-23 Thread Sorin Sbarnea
New submission from Sorin Sbarnea : As the results of investigating a very poor performance of pip while trying to install some code I was able to identify that the root cause was the current implementation of distutils.filelist.findall or to be more precise the _find_all_simple function, whi

  1   2   >