[issue44493] Missing terminated NUL in the length of sockaddr_un

2021-07-25 Thread ty
ty added the comment: Changes have been made in this PR, waiting for reviewing. -- resolution: -> fixed ___ Python tracker ___

[issue39812] Avoid daemon threads in concurrent.futures

2021-07-25 Thread Jack DeVries
Jack DeVries added the comment: The regression that @janfrederik.konopka points out also has it's own open issue: bpo-43944. I'm trying to work on a fix for this regression. Slowly but surely. Now I've finally found these threads, this information will be a big help! Any tips are

[issue44732] Rename types.Union to types.UnionType

2021-07-25 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: I agree that UnionType is marginally better so we should rename it. It doesn't seem worth doing if this doesn't make it in in time for 3.10, though. With the advent of PEP 604 typing.Union will hopefully become irrelevant. -- nosy: +Jelle Zijlstra

[issue44737] Mapping from to collections.abc

2021-07-25 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: This sounds like a bug in the third-party library you're using, not in Python itself. Could you report this bug to the library? According to https://docs.python.org/3.9/library/collections.html, aliases like collections.Mapping were removed from the

[issue44737] Mapping from to collections.abc

2021-07-25 Thread Du
New submission from Du <491609...@qq.com>: When using Sanic, referencing Mapping in collections in SANic-Jinja2 brings ImportError: Cannot import name 'Mapping' from 'collections'. When you use Mapping, shouldn't you call from collections.abc? -- messages: 398208 nosy: haitanghuadeng

[issue26153] PyImport_GetModuleDict: no module dictionary! when `__del__` triggers a warning

2021-07-25 Thread Andrei Kulakov
Andrei Kulakov added the comment: 3.6 no longer gets bugfixes, so I think this can be closed. -- nosy: +andrei.avk ___ Python tracker ___

[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: -miss-islington resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 4ce6c5285abd78dc936ec6036e7bb964fd55d955 by Miss Islington (bot) in branch '3.9': bpo-44693: Update __future__ entry in Doc/glossary.rst (GH-27349) (GH-27358) https://github.com/python/cpython/commit/4ce6c5285abd78dc936ec6036e7bb964fd55d955

[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 642d873d672eb1b4ddffd99e665c54ed358a4562 by Miss Islington (bot) in branch '3.10': bpo-44693: Update __future__ entry in Doc/glossary.rst (GH-27349) (GH-27357) https://github.com/python/cpython/commit/642d873d672eb1b4ddffd99e665c54ed358a4562

[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 0363a4014d90df17a29042de008ef0b659f92505 by Steven Hsu in branch 'main': bpo-44693: Update __future__ entry in Doc/glossary.rst (GH-27349) https://github.com/python/cpython/commit/0363a4014d90df17a29042de008ef0b659f92505 --

[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +25899 pull_request: https://github.com/python/cpython/pull/27358 ___ Python tracker ___

[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +25898 pull_request: https://github.com/python/cpython/pull/27357 ___ Python tracker

[issue43944] Processes in Python 3.9 exiting with code 1 when It's created inside a ThreadPoolExecutor

2021-07-25 Thread Jack DeVries
Jack DeVries added the comment: The first bad commit was a fix for bpo-39812. -- ___ Python tracker ___ ___ Python-bugs-list

[issue43944] Processes in Python 3.9 exiting with code 1 when It's created inside a ThreadPoolExecutor

2021-07-25 Thread Jack DeVries
Jack DeVries added the comment: I've identified the first bad commit with git-bisect: commit b61b818d916942aad1f8f3e33181801c4a1ed14b Author: Kyle Stanley Date: Fri Mar 27 15:31:22 2020 -0400 bpo-39812: Remove daemon threads in concurrent.futures (GH-19149) Remove daemon threads

[issue28356] [easy doc] Document os.rename() behavior on Windows when src and dst are on different filesystems

2021-07-25 Thread Ryan Ozawa
Ryan Ozawa added the comment: Hi all, This is my first issue so feedback is welcome. Following @vstinner 's suggestions: > * os.rename() can fail if source and destination are on two different file systems > * Use shutil.move() to support move to a different directory And from @eryksun : >

[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-25 Thread miss-islington
miss-islington added the comment: New changeset 01601aa7360ae51e74a64dbe957288096bb364fd by Miss Islington (bot) in branch '3.10': [3.10] bpo-44600: Fix line numbers for pattern matching cleanup code (GH-27346) (GH-27356)

[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-25 Thread Brandt Bucher
Change by Brandt Bucher : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +25897 pull_request: https://github.com/python/cpython/pull/27356 ___ Python tracker

[issue44600] match/case statements trace incorrectly in 3.10.0b4

2021-07-25 Thread Brandt Bucher
Brandt Bucher added the comment: New changeset 4214f470f0cb9b6fef9a90758756fbc00ba95b5a by Charles Burkland in branch 'main': bpo-44600: Fix line numbers for pattern matching cleanup code (GH-27346) https://github.com/python/cpython/commit/4214f470f0cb9b6fef9a90758756fbc00ba95b5a

[issue19217] Calling assertEquals for moderately long list takes too long

2021-07-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Lukasz, perhaps you can finish this. Too many assistent cooks and no chief cook. At least tell Jack (above) whether to submit his PR. -- nosy: +lukasz.langa, terry.reedy versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8, Python 3.9

[issue43950] Include column offsets for bytecode instructions

2021-07-25 Thread miss-islington
miss-islington added the comment: New changeset 3e235e0447e373d81f195f4292959c7be9c013dc by Batuhan Taskaya in branch 'main': bpo-43950: support some multi-line expressions for PEP 657 (GH-27339) https://github.com/python/cpython/commit/3e235e0447e373d81f195f4292959c7be9c013dc --

[issue41203] Replace references to OS X in documentation with macOS

2021-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patrick, are you interested in reviving your PR? It mostly LGTM, except several not addressed comments. I clarified them. -- nosy: +serhiy.storchaka ___ Python tracker

[issue41203] Replace references to OS X in documentation with macOS

2021-07-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42378] logging reopens file with same mode, possibly truncating

2021-07-25 Thread miss-islington
miss-islington added the comment: New changeset 96cf5a63d2dbadaebf236362b4c7c09c51fda55c by andrei kulakov in branch 'main': bpo-42378: fixed log truncation on logging shutdown (GH-27310) https://github.com/python/cpython/commit/96cf5a63d2dbadaebf236362b4c7c09c51fda55c -- nosy:

[issue44399] log rotator cookbook example might waste disk space

2021-07-25 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 5a0c6abb569cadfc6b418a7d23ecffec01bd234d by Miss Islington (bot) in branch '3.9': [3.9] bpo-44399: Update logging cookbook to document patterns to be avoided. (GH-27348) (GH-27350)

[issue44399] log rotator cookbook example might waste disk space

2021-07-25 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 628baf6fef4d633e756024cf813941a4075360c1 by Miss Islington (bot) in branch '3.10': [3.10] bpo-44399: Update logging cookbook to document patterns to be avoided. (GH-27348) (GH-27352)

[issue43184] Missing docs for LoggerAdapter manager and name property

2021-07-25 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 59058a65a27de434a79adb749637b74a7fe418ba by Miss Islington (bot) in branch '3.10': [3.10] bpo-43184: Add information about added attribute and method. (GH-27347) (GH-27355)

[issue43184] Missing docs for LoggerAdapter manager and name property

2021-07-25 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset ce2033694ef4bf4c304e5c98d19fdeb684cd961b by Miss Islington (bot) in branch '3.9': [3.9] bpo-43184: Add information about added attribute and method. (GH-27347) (GH-27353)

[issue44732] Rename types.Union to types.UnionType

2021-07-25 Thread Guido van Rossum
Guido van Rossum added the comment: Agreed. I think we should do it, Serhiy’s reasoning makes sense. We should just update the PEP and add a note that this was changed during the beta period. -- ___ Python tracker

[issue43184] Missing docs for LoggerAdapter manager and name property

2021-07-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25894 pull_request: https://github.com/python/cpython/pull/27353 ___ Python tracker

[issue43184] Missing docs for LoggerAdapter manager and name property

2021-07-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +25896 pull_request: https://github.com/python/cpython/pull/27355 ___ Python tracker ___

[issue44399] log rotator cookbook example might waste disk space

2021-07-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +25892 pull_request: https://github.com/python/cpython/pull/27351 ___ Python tracker ___

[issue43184] Missing docs for LoggerAdapter manager and name property

2021-07-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +25895 pull_request: https://github.com/python/cpython/pull/27354 ___ Python tracker ___

[issue44399] log rotator cookbook example might waste disk space

2021-07-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +25893 pull_request: https://github.com/python/cpython/pull/27352 ___ Python tracker ___

[issue44399] log rotator cookbook example might waste disk space

2021-07-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25891 pull_request: https://github.com/python/cpython/pull/27350 ___ Python tracker

[issue44693] Unclear definition of the "__future__" module in Docs

2021-07-25 Thread Steven Hsu
Change by Steven Hsu : -- keywords: +patch pull_requests: +25890 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27349 ___ Python tracker ___

[issue44399] log rotator cookbook example might waste disk space

2021-07-25 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 9751f85914e0ef3324671a91da34a635d48b17fb by Vinay Sajip in branch 'main': bpo-44399: Update logging cookbook to document patterns to be avoided. (GH-27348) https://github.com/python/cpython/commit/9751f85914e0ef3324671a91da34a635d48b17fb

[issue43967] Valgrind memcheck on Py_Initialize

2021-07-25 Thread hai shi
hai shi added the comment: Hi, Simon. Thanks for your report. There have an relatived issue in: bpo-43145, this bpo have mentioned `Py_Initialize()`. So I suggest to close this bpo. We can reopen it if we have seperated questions need to be discussed in here. > Running a Valgrind memcheck

[issue44605] functools.total_ordering doesn't work with metaclasses

2021-07-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: To add support for metaclasses, replacing 'self.__lt__(other)' with 'type(self).__lt__(self, other)' will work. The performance degradation for the common case is about 25%: $ py -m timeit -s 'from tmp import a, b' 'a >= b' # op_result =

[issue43184] Missing docs for LoggerAdapter manager and name property

2021-07-25 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 50b72768ffe6413424dc4eba916dd1ff89a2fe7b by Vinay Sajip in branch 'main': bpo-43184: Add information about added attribute and method. (GH-27347) https://github.com/python/cpython/commit/50b72768ffe6413424dc4eba916dd1ff89a2fe7b --

[issue44399] log rotator cookbook example might waste disk space

2021-07-25 Thread Vinay Sajip
Change by Vinay Sajip : -- keywords: +patch pull_requests: +25889 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27348 ___ Python tracker ___

[issue44725] Expose specialization stats in python

2021-07-25 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44732] Rename types.Union to types.UnionType

2021-07-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This is a feature added to 3.10 so if we change it before the release there is no deprecation period needed. On the other hand if we don't get it to 3.10 is going to be much difficult to rename. -- ___

[issue44733] Feature request: maxtasksperchild for ProcessPoolExecutor

2021-07-25 Thread Logan Jones
Change by Logan Jones : -- nosy: +loganasherjones ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43184] Missing docs for LoggerAdapter manager and name property

2021-07-25 Thread Vinay Sajip
Change by Vinay Sajip : -- keywords: +patch pull_requests: +25888 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27347 ___ Python tracker ___

[issue13824] argparse.FileType opens a file and never closes it

2021-07-25 Thread Nils Kattenbeck
Nils Kattenbeck added the comment: A good alternative would be to use pathlib.Path. The only downside would be that one has to manually handle `-` but besides that it solves most problems. Still the fact that file descriptors are kept open should be added as a warning to the docs

[issue44736] '\t' Escape Sequence behaving differently.

2021-07-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: That's not a Python issue, that's a feature of your terminal. That's how tabs are supposed to work. By default, most terminals set tab stops every 8 columns. Printing a tab character jumps to the next tab stop. If you are using Linux or Mac, you can use

[issue44736] '\t' Escape Sequence behaving differently.

2021-07-25 Thread BAHADIR
Change by BAHADIR : Removed file: https://bugs.python.org/file50179/IDLE.jpeg ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44736] '\t' Escape Sequence behaving differently.

2021-07-25 Thread BAHADIR
BAHADIR added the comment: >>> print("1\t1") 1 1 >>> print("12\t1") 12 1 >>> print("123\t1") 123 1 >>> print("1234\t1") 12341 >>> print("12345\t1") 12345 1 >>> print("123456\t1") 123456 1 >>> print("1234567\t1") 1234567 1 >>> print("12345678\t1") 123456781 >>>

[issue44736] '\t' Escape Sequence behaving differently.

2021-07-25 Thread BAHADIR
Change by BAHADIR : Added file: https://bugs.python.org/file50179/IDLE.jpeg ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44736] '\t' Escape Sequence behaving differently.

2021-07-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm sorry, I don't understand what "different results for different values" you are talking about. Can you please copy and paste (not a screen shot) code demonstrating: - what code you ran - what result you expected - why you expected it - and what result

[issue44736] '\t' Escape Sequence behaving differently.

2021-07-25 Thread BAHADIR
New submission from BAHADIR : While working on several examples I noticed that ASCII Horizontal Tab (TAB) gives different results for different values. When I looked at the rfc documents, I couldn't see any result about its calculation. The calculation method I noticed myself is as follows