[issue43220] Argparse: Explicit default required arguments with add_mutually_exclusive_group are rejected

2021-05-11 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: rhettinger -> paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-05-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately commit b05955d6f5f149523b5855a335444b7c6324bdb7 has broken all refleak buildbots: https://buildbot.python.org/all/#/builders/259/builds/25/steps/5/logs/stdio See example:

[issue44111] 404 link on python webpage

2021-05-11 Thread Unknown Simonsen
Change by Unknown Simonsen <0lsimon...@tawacollege.school.nz>: -- components: -Documentation type: -> behavior ___ Python tracker ___

[issue44111] 404 link on python webpage

2021-05-11 Thread Unknown Simonsen
New submission from Unknown Simonsen <0lsimon...@tawacollege.school.nz>: https://www.python.org/community-landing/diversity shows 404 The page is shown when going python.org > Community > Diversity Statement -- assignee: docs@python components: Documentation messages: 393483 nosy:

[issue44107] HTTPServer can't close http client completely

2021-05-11 Thread ueJone
ueJone <775844...@qq.com> added the comment: The HTTPServers run on win10 20H2. The HTTP client is a embed device. The client often fails to connect to the HTTP server when reboot after close socket. Test as follows: 1. The client close socket when HTTP_GET request is done.(Now you can see

[issue43933] Regression in python3.10 with traceback frame having lineno of -1

2021-05-11 Thread Ned Batchelder
Ned Batchelder added the comment: BTW, I created a separate issue about this: https://bugs.python.org/issue44088 because I wasn't sure if I should continue on this one, sorry. Feel free to close either one. -- ___ Python tracker

[issue44002] Use functools.lru_cache in urllib.parse instead of 1996 custom caching

2021-05-11 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker ___

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-11 Thread Irit Katriel
Irit Katriel added the comment: The 3.9 backport failed because of test failures like: == ERROR: test_checkline_is_not_executable (test.test_pdb.ChecklineTests)

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-11 Thread Irit Katriel
Irit Katriel added the comment: New changeset c90ed8e2e79ebd64f72c621b5a2ab06ec4c7210c by Miss Islington (bot) in branch '3.10': bpo-28528: Fix pdb.checkline() attribute error when 'curframe' is None. (GH-25438) (#26050)

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-11 Thread Steve Dower
Steve Dower added the comment: Thanks for the patch! I don't think this meets the 3.8 bar now, but if Łukasz wants it then it should be easy. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-11 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +24692 pull_request: https://github.com/python/cpython/pull/26052 ___ Python tracker ___

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +24691 pull_request: https://github.com/python/cpython/pull/26051 ___ Python tracker ___

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +24690 pull_request: https://github.com/python/cpython/pull/26050 ___ Python tracker

[issue28528] Pdb.checkline() attribute error when 'curframe' is None

2021-05-11 Thread Irit Katriel
Change by Irit Katriel : -- title: Pdb.checkline() attribute error when 'curframe' is missing -> Pdb.checkline() attribute error when 'curframe' is None ___ Python tracker

[issue10548] document (lack of) interaction between @expectedFailure on a test_method and setUp

2021-05-11 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue10548] document (lack of) interaction between @expectedFailure on a test_method and setUp

2021-05-11 Thread Irit Katriel
Irit Katriel added the comment: New changeset 1e4ca09d825cc8059bbf80c8137164816b84cfe7 by Miss Islington (bot) in branch '3.10': bpo-10548: expectedFailure does not apply to fixtures (GH-23201) (#26044) https://github.com/python/cpython/commit/1e4ca09d825cc8059bbf80c8137164816b84cfe7

[issue10548] document (lack of) interaction between @expectedFailure on a test_method and setUp

2021-05-11 Thread Irit Katriel
Irit Katriel added the comment: New changeset c9049cf0aa9917abfd51b27e4258c395c5f66ff4 by Miss Islington (bot) in branch '3.9': bpo-10548: expectedFailure does not apply to fixtures (GH-23201) (#26045) https://github.com/python/cpython/commit/c9049cf0aa9917abfd51b27e4258c395c5f66ff4

[issue10548] document (lack of) interaction between @expectedFailure on a test_method and setUp

2021-05-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10548] document (lack of) interaction between @expectedFailure on a test_method and setUp

2021-05-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +24688 pull_request: https://github.com/python/cpython/pull/26044 ___ Python tracker

[issue10548] document (lack of) interaction between @expectedFailure on a test_method and setUp

2021-05-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +24689 pull_request: https://github.com/python/cpython/pull/26045 ___ Python tracker ___

[issue28528] Pdb.checkline() attribute error when 'curframe' is missing

2021-05-11 Thread Irit Katriel
Change by Irit Katriel : -- title: Pdb.checkline() -> Pdb.checkline() attribute error when 'curframe' is missing ___ Python tracker ___

[issue28528] Pdb.checkline()

2021-05-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue23750] doc: Clarify difference between os.system/subprocess.call in section "Replacing os.system()"

2021-05-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 390bfe044531a813722919933116ed37fe321861 by Miss Islington (bot) in branch '3.9': bpo-23750: Document os-system, subprocess. Patch by Martin Panter. (GH-26016) (GH-26041)

[issue23750] doc: Clarify difference between os.system/subprocess.call in section "Replacing os.system()"

2021-05-11 Thread Senthil Kumaran
Change by Senthil Kumaran : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue23750] doc: Clarify difference between os.system/subprocess.call in section "Replacing os.system()"

2021-05-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 6fc6f4366d02412e3424d2a6da43a28d8f479d7b by Miss Islington (bot) in branch '3.10': bpo-23750: Document os-system, subprocess. Patch by Martin Panter. (GH-26016) (GH-26040)

[issue44110] Improve string's __getitem__ error message

2021-05-11 Thread Miguel Brito
Change by Miguel Brito : -- keywords: +patch pull_requests: +24687 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26042 ___ Python tracker ___

[issue44110] Improve string's __getitem__ error message

2021-05-11 Thread Miguel Brito
New submission from Miguel Brito : I noticed that __getitem__ message, although helpful, could be improved a bit further. This will also make it consistent with other error messages such as the ones raised by `str.count`, `str.split`, `str.endswith` and so many others. Currently, the error

[issue23750] doc: Clarify difference between os.system/subprocess.call in section "Replacing os.system()"

2021-05-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +24685 pull_request: https://github.com/python/cpython/pull/26040 ___ Python tracker

[issue23750] doc: Clarify difference between os.system/subprocess.call in section "Replacing os.system()"

2021-05-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +24686 pull_request: https://github.com/python/cpython/pull/26041 ___ Python tracker ___

[issue44107] HTTPServer can't close http client completely

2021-05-11 Thread Jonathan Schweder
Jonathan Schweder added the comment: @ueJone according to the (RFC)[https://datatracker.ietf.org/doc/html/rfc6455#section-1.4] the FIN/ACK is not normative, in other words is recommended but not required, I've checked the syscalls of the server, see it below: ``` ... 1561 15143 write(2,

[issue21261] Teach IDLE to Autocomplete dictionary keys

2021-05-11 Thread Tal Einat
Change by Tal Einat : -- keywords: -easy, patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21261] Teach IDLE to Autocomplete dictionary keys

2021-05-11 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-11 Thread Tomasz Magulski
Change by Tomasz Magulski : -- nosy: +magul ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21261] Teach IDLE to Autocomplete dictionary keys

2021-05-11 Thread Tal Einat
Tal Einat added the comment: Note that I've created a new version of the latest PR, with support for dict keys of type bytes removed. -- ___ Python tracker ___

[issue21261] Teach IDLE to Autocomplete dictionary keys

2021-05-11 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +24684 pull_request: https://github.com/python/cpython/pull/26039 ___ Python tracker ___

[issue40222] "Zero cost" exception handling

2021-05-11 Thread Stefan Behnel
Stefan Behnel added the comment: Just a comment regarding the change to "PyCode_NewWithPosOnlyArgs()". As Pablo mentioned, this has happened before. And that's OK! Exactly because this has happened before, it's clearly not a part of the API that is meant to be stable. I can easily adapt

[issue23750] doc: Clarify difference between os.system/subprocess.call in section "Replacing os.system()"

2021-05-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: Does anyone know what the return value 768 signify here? -- nosy: +orsenthil ___ Python tracker ___

[issue25821] Documentation for threading.enumerate / threading.Thread.is_alive is contradictory.

2021-05-11 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue25821] Documentation for threading.enumerate / threading.Thread.is_alive is contradictory.

2021-05-11 Thread Irit Katriel
Irit Katriel added the comment: New changeset bde14f7fbd5f11bb40d9c314bd74eaa231236c6b by Miss Islington (bot) in branch '3.9': bpo-25821: Fix inaccuracy in threading.enumerate/is_alive documentation (GH-23192) (#26036)

[issue25821] Documentation for threading.enumerate / threading.Thread.is_alive is contradictory.

2021-05-11 Thread Irit Katriel
Irit Katriel added the comment: New changeset 7bef7a180da56e0399f4dec2c992bb101470fc73 by Miss Islington (bot) in branch '3.10': bpo-25821: Fix inaccuracy in threading.enumerate/is_alive documentation (GH-23192) (#26035)

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-05-11 Thread Stefan Behnel
Stefan Behnel added the comment: For the same reason that motivated this ticket, I think the functions should be inline functions. They should also take the current thread-state as argument, because that's probably known on the caller side already. I guess a macro would be fine, too. :)

[issue44069] pathlib.Path.glob's generator is not a real generator

2021-05-11 Thread Elijah Rippeth
Change by Elijah Rippeth : -- versions: +Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue25821] Documentation for threading.enumerate / threading.Thread.is_alive is contradictory.

2021-05-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +24683 pull_request: https://github.com/python/cpython/pull/26036 ___ Python tracker ___

[issue25821] Documentation for threading.enumerate / threading.Thread.is_alive is contradictory.

2021-05-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +24682 pull_request: https://github.com/python/cpython/pull/26035 ___ Python tracker

[issue25821] Documentation for threading.enumerate / threading.Thread.is_alive is contradictory.

2021-05-11 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2021-05-11 Thread Filipe Laíns
Filipe Laíns added the comment: Another idea, would it be possible to add a flag to turn on reproducibility, sacrificing performance? This flag could be set when generating bytecode, where the performance hit shouldn't be that relevant. -- ___

[issue40222] "Zero cost" exception handling

2021-05-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > It is very little effort to add back the old function, so that isn't the > problem. It won't work properly, but it never did anyway. So I guess that's > sort of compatible. It won't work properly is an incompatible change. Before, if you extract

[issue40222] "Zero cost" exception handling

2021-05-11 Thread Mark Shannon
Mark Shannon added the comment: It is very little effort to add back the old function, so that isn't the problem. It won't work properly, but it never did anyway. So I guess that's sort of compatible. Maybe the best thing is to put a big red warning in the docs and hope that warns away

[issue28708] Low FD_SETSIZE limit on Windows

2021-05-11 Thread Zachary Ware
Change by Zachary Ware : -- Removed message: https://bugs.python.org/msg393447 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40222] "Zero cost" exception handling

2021-05-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I think API breaks like this do need coordination at the project level. Absolutely, that's why I said before: > As I mentioned, I simphatise with your argument and I think it makes sense, but we cannot just do it in a BPO issue, I'm afraid.

[issue36216] CVE-2019-9636: urlsplit does not handle NFKC normalization

2021-05-11 Thread Larry Hastings
Change by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40222] "Zero cost" exception handling

2021-05-11 Thread Petr Viktorin
Petr Viktorin added the comment: Then, according to PEP 387, "The steering council may grant exceptions to this policy." I think API breaks like this do need coordination at the project level. -- ___ Python tracker

[issue40222] "Zero cost" exception handling

2021-05-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > The PyAPI_FUNC makes it part of the public *API*. It needs to be source- > compatible; the number of arguments can't change. Could yo u add a new > function? Unfortunately, no: new functions cannot be added easily because the new field that

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-05-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +24681 pull_request: https://github.com/python/cpython/pull/26034 ___ Python tracker ___

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-05-11 Thread Miro Hrončok
Miro Hrončok added the comment: A Cython issue report: https://github.com/cython/cython/issues/4153 -- ___ Python tracker ___ ___

[issue40222] "Zero cost" exception handling

2021-05-11 Thread Petr Viktorin
Petr Viktorin added the comment: PyCode_NewWithPosOnlyArgs is not part of the stable ABI. It is OK to break its ABI in a minor version (i.e. 3.11). The PyAPI_FUNC makes it part of the public *API*. It needs to be source- compatible; the number of arguments can't change. Could yo u add a new

[issue39766] unittest's assertRaises removes locals from tracebacks

2021-05-11 Thread Jackson Riley
Jackson Riley added the comment: +1 - I was surprised not to be able to get locals from many of the frames in pdb upon an unexpected exception being raised inside an assertRaises. Thanks for raising this issue Daniel. -- nosy: +jacksonriley ___

[issue40222] "Zero cost" exception handling

2021-05-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: In any case, if we decide to let it stay, at the very least this behaviour (that these functions are not stable) needs to be documented everywhere: what's new, C-API docs...etc And probably we need to somehow add it to the future deprecations of 3.10

[issue40222] "Zero cost" exception handling

2021-05-11 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I agree with you but we already went through this when I added positional-only arguments and everyone complained that Cython and other projects were broken and we changed a stable API function so I am just mentioning that we are here again.

[issue44109] missing dataclass decorator in match-statement example

2021-05-11 Thread Ahmet Burak
New submission from Ahmet Burak : Using Point class as in the documentation example, raises TypeError: Point() takes no arguments https://docs.python.org/3.10/whatsnew/3.10.html#patterns-and-classes Also there is same example in the PEP 636's latests parts, Point class used with dataclass

[issue44108] [sqlite3] normalise SQL quoted literals in sqlite3 test suite

2021-05-11 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Digression: test_unicode_content should be named test_trace_unicode_content, in order to express the purpose of the test more clearly, should it fail. -- ___ Python tracker

[issue44108] [sqlite3] normalise SQL quoted literals in sqlite3 test suite

2021-05-11 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +24680 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26032 ___ Python tracker

[issue44108] [sqlite3] normalise SQL quoted literals in sqlite3 test suite

2021-05-11 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : Most of the SQL statements in the sqlite3 test suite correctly uses single quote literals, except test_unicode_content in Lib/sqlite3/test/hooks.py, which uses double quote literals (not ANSI SQL compatible, IIRC). Adapting this test to also use single

[issue44107] HTTPServer can't close http client completely

2021-05-11 Thread ueJone
New submission from ueJone <775844...@qq.com>: # HTTP Server from http.server import HTTPServer, SimpleHTTPRequestHandler port = 80 httpd = HTTPServer(('', port), SimpleHTTPRequestHandler) print("Starting simple_httpd on port: " + str(httpd.server_port)) httpd.serve_forever()

[issue36216] CVE-2019-9636: urlsplit does not handle NFKC normalization

2021-05-11 Thread Kubilay Kocak
Kubilay Kocak added the comment: Fix meta (not incl 2.7 which is no longer available to select). -- components: +Unicode -FreeBSD versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue21501] docs: mmap example for use in documentation

2021-05-11 Thread Douwe Hoekstra
Douwe Hoekstra added the comment: Hi! I'd like to convert this to reST for the documentation. Additionally, I think this example would benefit from additional explanation about how it functions. -- nosy: +dhoekstra ___ Python tracker

[issue40222] "Zero cost" exception handling

2021-05-11 Thread Mark Shannon
Mark Shannon added the comment: I know PyCode_NewWithPosOnlyArgs is declared as "PyAPI_FUNC" but that can't make it part of the ABI unless it has stable behavior. It can't have stable behavior because its inputs are complex, undefined, have altered semantics and are interlinked in complex

[issue28708] Low FD_SETSIZE limit on Windows

2021-05-11 Thread Nicole Allen
Nicole Allen added the comment: Thanks for putting that all together. Besides for amazing digital marketing plans visit us now https://www.seobrisk.com/locations/seo-detroit/ -- nosy: +nicoleallen ___ Python tracker

[issue44105] tempfile.TemporaryDirectory deleted after sleep in threads

2021-05-11 Thread Colas Le Guernic
Colas Le Guernic added the comment: I guess this will be a `won't fix` as python3.8 is now in security-fix only mode. I was misled by https://www.python.org/downloads/ that still indicates a bugfix maintenance status. -- ___ Python tracker

[issue44105] tempfile.TemporaryDirectory deleted after sleep in threads

2021-05-11 Thread Colas Le Guernic
Change by Colas Le Guernic : -- versions: +Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44105] tempfile.TemporaryDirectory deleted after sleep in threads

2021-05-11 Thread Colas Le Guernic
Colas Le Guernic added the comment: Actually, it has nothing to do with subprocess.run, replacing that line with sleep(random()) exhibits the same behavior. -- title: tempfile.TemporaryDirectory deleted after call to subprocess.run in threads -> tempfile.TemporaryDirectory deleted

[issue44099] [c-api] Introduce a new slot in PyModuleDef to hold the classes

2021-05-11 Thread Shreyan Avigyan
Change by Shreyan Avigyan : -- title: Introduce a new slot in PyModuleDef to hold the classes -> [c-api] Introduce a new slot in PyModuleDef to hold the classes ___ Python tracker

[issue44106] [sqlite3] don't use politicians in examples/docs

2021-05-11 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Ditto for Doc/includes/sqlite3/insert_more_people.py -- ___ Python tracker ___ ___

[issue44106] [sqlite3] don't use politicians in examples/docs

2021-05-11 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Berker, the following files are not included by Doc/library/sqlite3.rst: - Doc/includes/sqlite3/countcursors.py - Doc/includes/sqlite3/createdb.py # never referenced by docs - Doc/includes/sqlite3/execsql_fetchonerow.py -