[issue20658] os.environ.clear() fails with empty keys (posix.unsetenv)

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > For the very specific case of os.environ.clear(), the C function clearenv() > could be used if available. It is bad in any way. The supposed example of using clear(): old_environ = dict(os.environ) os.environ.clear()

[issue45053] MD5SumTests.test_checksum_fodder fails on Windows

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It will not work in all cases. For example if the stdio encoding is UTF-8 and the filesystem encoding is Latin1. Or the stdio encoding is CP1251 and the filesystem encoding is UTF-8. I am not also sure that it gives us the result which we want if it

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44649] dataclasses slots with init=False field raises AttributeException

2021-09-04 Thread Christodoulos Tsoulloftas
Christodoulos Tsoulloftas added the comment: Thanks for the update eric, yeah the new error messages are much more comprehensive and I am glad to hear the original issue will be addressed as well. -- ___ Python tracker

[issue43950] Include column offsets for bytecode instructions

2021-09-04 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +26588 pull_request: https://github.com/python/cpython/pull/28150 ___ Python tracker ___

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-09-04 Thread Brandt Bucher
Change by Brandt Bucher : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45034] Improve struct.pack out of range error messages

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

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26589 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28153 ___ Python tracker

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26590 pull_request: https://github.com/python/cpython/pull/28154 ___ Python tracker ___

[issue45099] asyncio.Task's documentation says that loop arg is removed when it's not

2021-09-04 Thread jack1142
New submission from jack1142 : The documentation here: https://docs.python.org/3.10/library/asyncio-task.html#asyncio.Task Says that `loop` parameter was removed but it's still part of the signature. It gets even more confusing when the deprecation right below it is saying that *not* passing

[issue45099] asyncio.Task's documentation says that loop arg is removed when it's not

2021-09-04 Thread jack1142
Change by jack1142 : -- components: +asyncio nosy: +asvetlov, yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45086] f-string unmatched ']'

2021-09-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > But we've never gotten past just talking about it Stay tuned! :) https://github.com/we-like-parsers/cpython/tree/fstring-grammar -- ___ Python tracker

[issue45034] Improve struct.pack out of range error messages

2021-09-04 Thread Nikita Sobolev
Nikita Sobolev added the comment: I would like to work on this if nobody else has already started :) -- nosy: +sobolevn ___ Python tracker ___

[issue45098] asyncio.CancelledError should contain more information on cancellations

2021-09-04 Thread Sam Bull
New submission from Sam Bull : There are awkward edge cases caused by race conditions when cancelling tasks which make it impossible to reliably cancel a task. For example, in the async-timeout library there appears to be no way to avoid suppressing an explicit t.cancel() if that

[issue45020] Freeze all modules imported during startup.

2021-09-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: FWIW, I've not found the importer for frozen modules to be lacking features. When using frozen modules, you don't expect to see source code, so the whole part about finding source code is not really relevant for that use case. The only lacking part I

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are several calls of gather() and sleep() with the loop argument from the asyncio library. Since all deprecation warnings were silenced in tests it was unnoticed. PR 28153 fixes the asyncio library, enables deprecation warnings in tests, fixes

[issue45086] f-string unmatched ']'

2021-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you Eric. I can see now that the actual process is a somewhat complicated mix of the simple options 1 and 2 I imagined above. It is like option 2, except that everything between '{' and '}' is partially parsed enough to create a format object. This

[issue45030] Integer overflow in __reduce__ of the range iterator

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 936f6a16b9ef85bd56b18a247b962801e954c30e by Serhiy Storchaka in branch 'main': bpo-45030: Fix integer overflow in __reduce__ of the range iterator (GH-28000) https://github.com/python/cpython/commit/936f6a16b9ef85bd56b18a247b962801e954c30e

[issue45030] Integer overflow in __reduce__ of the range iterator

2021-09-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26592 pull_request: https://github.com/python/cpython/pull/28160 ___ Python tracker

[issue45100] Teach help about typing.overload()

2021-09-04 Thread Raymond Hettinger
New submission from Raymond Hettinger : Python's help() function does not display overloaded function signatures. For example, this code: from typing import Union class Smudge(str): @overload def __getitem__(self, index: int) -> str: ...

[issue45030] Integer overflow in __reduce__ of the range iterator

2021-09-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +26593 pull_request: https://github.com/python/cpython/pull/28161 ___ Python tracker ___

[issue44571] itertools: takedowhile()

2021-09-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +26596 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28167 ___ Python tracker

[issue24612] not operator expression raising a syntax error

2021-09-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +26599 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28170 ___ Python tracker

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +26591 pull_request: https://github.com/python/cpython/pull/28159 ___ Python tracker

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c2970fdec52788b6d9ff419ab7e31f255d87433d by Serhiy Storchaka in branch 'main': bpo-45097: Add more tests for shutdown_asyncgens() (GH-28154) https://github.com/python/cpython/commit/c2970fdec52788b6d9ff419ab7e31f255d87433d --

[issue24612] not operator expression raising a syntax error

2021-09-04 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11: >>> 0 + not 0 File "", line 1 0 + not 0 ^^^ SyntaxError: invalid syntax >>> - not 0 File "", line 1 - not 0 ^^^ SyntaxError: invalid syntax -- nosy: +iritkatriel, pablogsal versions: +Python 3.11 -Python

[issue45030] Integer overflow in __reduce__ of the range iterator

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45103] IDLE: make configdialog font page survive font failures

2021-09-04 Thread Terry J. Reedy
New submission from Terry J. Reedy : There were reports on a previous issue that attempting to display some characters from some linux fonts in some distributions resulted in crashing Python. The crash reports mentioned XWindows errors about particular characters being too complex or

[issue24612] not operator expression raising a syntax error

2021-09-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I think the best outcome here is to refine the syntax error. Making it behave a bit better is going to be quite a pain because of how unary "-" and "not" work on the priority level in the grammar. I also don't think that facilitating the

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c967bd523caabb05bf5988449487d7c1717f3ac6 by Serhiy Storchaka in branch '3.9': [3.9] bpo-45097: Remove incorrect deprecation warnings in asyncio. (GH-28153) https://github.com/python/cpython/commit/c967bd523caabb05bf5988449487d7c1717f3ac6

[issue16731] [doc] xxlimited/xxmodule docstrings ambiguous

2021-09-04 Thread Irit Katriel
Change by Irit Katriel : -- title: xxlimited/xxmodule docstrings ambiguous -> [doc] xxlimited/xxmodule docstrings ambiguous versions: +Python 3.11 -Python 3.5, Python 3.6 ___ Python tracker

[issue45101] Small inconsistency in usage message between the python and shell script versions of python-config

2021-09-04 Thread Kien Dang
New submission from Kien Dang : `python-config` outputs a usage instruction message in case either the `--help` option or invalid arguments are provided. However there is a small different in the output I/O between the python and shell script versions of `python-config`. In the python

[issue45101] Small inconsistency in usage message between the python and shell script versions of python-config

2021-09-04 Thread Kien Dang
Change by Kien Dang : -- keywords: +patch pull_requests: +26594 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28162 ___ Python tracker ___

[issue45102] unittest: add tests for skipping and errors in cleanup

2021-09-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR adds tests for skipping and errors in cleanup: after success, after failure, and in combination with the expectedFailure decorator. -- components: Library (Lib) messages: 401056 nosy: ezio.melotti, michael.foord, rbcollins,

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2ad114ddffbeeef1d20f26571b85a66974295667 by Miss Islington (bot) in branch '3.10': [3.10] bpo-45097: Add more tests for shutdown_asyncgens() (GH-28154) (GH-28159)

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45042] Many multiprocessing tests are silently skipped since 3.9

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +26598 pull_request: https://github.com/python/cpython/pull/28169 ___ Python tracker ___

[issue45086] f-string unmatched ']'

2021-09-04 Thread Greg Kuhn
Greg Kuhn added the comment: I see, thank you all for the detailed investigation and explanation!! Agreed Terry, anyone who reads the error should be able to parse it themselves and see what the errors is. Pointing the user to the error site is the most important piece. --

[issue45034] Improve struct.pack out of range error messages

2021-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Go ahead, with the understanding that there is no guaranteed acceptance of the change, even with a good patch. There may be reasons for the status quo that neither Steven nor I are aware of. I don't think that either of the listed experts, added as nosy,

[issue45102] unittest: add tests for skipping and errors in cleanup

2021-09-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +26595 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28166 ___ Python tracker

[issue45030] Integer overflow in __reduce__ of the range iterator

2021-09-04 Thread miss-islington
miss-islington added the comment: New changeset fecd17fbcb68138c6535130dfca2173472d669cd by Miss Islington (bot) in branch '3.9': bpo-45030: Fix integer overflow in __reduce__ of the range iterator (GH-28000) https://github.com/python/cpython/commit/fecd17fbcb68138c6535130dfca2173472d669cd

[issue45030] Integer overflow in __reduce__ of the range iterator

2021-09-04 Thread miss-islington
miss-islington added the comment: New changeset ed9f927527e100b6d1d5758fdd9fc20b313af226 by Miss Islington (bot) in branch '3.10': bpo-45030: Fix integer overflow in __reduce__ of the range iterator (GH-28000) https://github.com/python/cpython/commit/ed9f927527e100b6d1d5758fdd9fc20b313af226

[issue45042] Many multiprocessing tests are silently skipped since 3.9

2021-09-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset dd7b816ac87e468e2fa65ce83c2a03fe1da8503e by Nikita Sobolev in branch 'main': bpo-45042: Now test classes decorated with `requires_hashdigest` are not skipped (GH-28060)

[issue45042] Many multiprocessing tests are silently skipped since 3.9

2021-09-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +26597 pull_request: https://github.com/python/cpython/pull/28168 ___ Python tracker

[issue45042] Many multiprocessing tests are silently skipped since 3.9

2021-09-04 Thread miss-islington
miss-islington added the comment: New changeset e5976dd2e6e966183da59df99978ebcb4b3a32df by Miss Islington (bot) in branch '3.10': bpo-45042: Now test classes decorated with `requires_hashdigest` are not skipped (GH-28060)

[issue24893] Tk occasionally mispositions Text() insert cursor on mouse click.

2021-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://stackoverflow.com/questions/69038343/mouse-pointer-misaligned-when-using-python-in-idle-on-mac reports same issue with 3.9.5. I have requested details to be posted here. -- status: pending -> open ___

[issue45104] Error in __new__ docs

2021-09-04 Thread Kevin Shweh
New submission from Kevin Shweh : The data model docs for __new__ say "If __new__() is invoked during object construction and it returns an instance or subclass of cls, then the new instance’s __init__() method will be invoked..." "instance or subclass of cls" is incorrect - if for some

[issue24612] not operator expression raising a syntax error

2021-09-04 Thread Andre Roberge
Change by Andre Roberge : -- nosy: +aroberge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34093] Reproducible pyc: FLAG_REF is not stable.

2021-09-04 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: +yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34722] Non-deterministic bytecode generation

2021-09-04 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: issue37596 merged a fix to enable deterministic frozensets. I think this issue can be closed? Regarding my last comment msg347820 - it seems similar to one of https://bugs.python.org/issue34033 or https://bugs.python.org/issue34093. I followed those

[issue45097] "The loop argument is deprecated" reported when user code does not use it

2021-09-04 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: Many thanks for the fast and great fix! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44571] itertools: takedowhile()

2021-09-04 Thread miss-islington
miss-islington added the comment: New changeset 656b0bdfaae3a36d386afe3f7b991744528c3ff7 by Miss Islington (bot) in branch '3.10': bpo-44571: Add itertool recipe for a variant of takewhile() (GH-28167) https://github.com/python/cpython/commit/656b0bdfaae3a36d386afe3f7b991744528c3ff7

[issue44571] itertools: takedowhile()

2021-09-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44571] itertools: takedowhile()

2021-09-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 91be41ad933e24bff26353a19f56447e17fb6367 by Raymond Hettinger in branch 'main': bpo-44571: Add itertool recipe for a variant of takewhile() (GH-28167) https://github.com/python/cpython/commit/91be41ad933e24bff26353a19f56447e17fb6367

[issue44571] itertools: takedowhile()

2021-09-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +26600 pull_request: https://github.com/python/cpython/pull/28173 ___ Python tracker

[issue20658] os.environ.clear() fails with empty keys (posix.unsetenv)

2021-09-04 Thread STINNER Victor
STINNER Victor added the comment: POSIX says: (1) "The setenv() function shall fail if: [EINVAL] The name argument is a null pointer, points to an empty string, or points to a string containing an '=' character." https://pubs.opengroup.org/onlinepubs/009604499/functions/setenv.html (2)