[issue44283] Add jump table for certain safe match-case statements

2021-06-02 Thread Brandt Bucher
Brandt Bucher added the comment: > If I understand your proposal, that would mean that calling a function with a > N-case constant-pattern match would require N hashes and N insertions into a > dict (including memory allocation), followed by O(1) lookup. Wouldn't that > eliminate any hope

[issue44276] Replace if-elif-else structure with match-case (PEP634)

2021-06-02 Thread Kshitiz Arya
Kshitiz Arya added the comment: I have timed the execution of if-else and match-case on Differ().compare from difflib module and here is what I got When both strings are same ** if-else:

[issue44276] Replace if-elif-else structure with match-case (PEP634)

2021-06-02 Thread Kshitiz Arya
Kshitiz Arya added the comment: I have used timeit module. I have also attached the test file with this message -- Added file: https://bugs.python.org/file50081/match_test.py ___ Python tracker

[issue44238] Unable to install Python 3.9.5 - Windows Server

2021-06-02 Thread Ricardo Daniel Fuentes
Ricardo Daniel Fuentes added the comment: Hi Steve, I am attaching the latest log files I see on temp. This is the first version of python I have installed on this server, we do install and uninstall SW on this machine all the time. As we run the operations and need to update sw there often.

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-06-02 Thread Michał Górny
Michał Górny added the comment: The test added for this bug is insufficient to verify the fix. If I revert the Lib/http/client.py change, the test still passes. This is because a subclass of client.HTTPException is still raised. If I add an explicit begin() call to trigger the exception,

[issue44283] Add jump table for certain safe match-case statements

2021-06-02 Thread Dennis Sweeney
Dennis Sweeney added the comment: FWIW PEP 603 includes a graph (Figure 2) of dict.get versus hamt.get performance as the mappings grow, and it seems the hamt is roughly 1.4x slower on inputs of sizes between 10 and 1000. -- ___ Python tracker

[issue44276] Replace if-elif-else structure with match-case (PEP634)

2021-06-02 Thread Steven D'Aprano
Steven D'Aprano added the comment: How did you do the timing? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44225] stop() on a stopped loop inhibits the next run_forever

2021-06-02 Thread megahypex
megahypex added the comment: Can I be assigned this issue? -- nosy: +WhosMega ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44279] doc: contextlib.suppress documentation is imprecise

2021-06-02 Thread Irit Katriel
Irit Katriel added the comment: I see, that’s a good point. Any suggestion regarding the original confusion with warnings? (See PR 26428). -- status: closed -> open ___ Python tracker

[issue44225] stop() on a stopped loop inhibits the next run_forever

2021-06-02 Thread megahypex
Change by megahypex : -- keywords: +patch pull_requests: +25079 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26483 ___ Python tracker ___

[issue44165] [sqlite3] sqlite3_prepare_v2 micro optimisation: pass string size

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

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2021-06-02 Thread Irit Katriel
Irit Katriel added the comment: Following a discussion on PR24976 we opted for "cannot access local variable 'x' where it is not associated with a value" This is because binding it not always related to assignment. I don't know whether this completely resolves this issue, or whether there

[issue44165] [sqlite3] sqlite3_prepare_v2 micro optimisation: pass string size

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

[issue43921] test_ssl fails on Windows buildbots

2021-06-02 Thread STINNER Victor
STINNER Victor added the comment: On the main branch, I can reproduce test_pha_required_nocert() failure: vstinner@DESKTOP-DK7VBIL C:\vstinner\python\main>python -m test test_ssl -u all -v -F -j5 -m test_pha_required_nocert test_pha_required_nocert (test.test_ssl.TestPostHandshakeAuth) ...

[issue44285] Coverity scan: Modules/getpath.c. "calculate_open_pyenv" allocates memory that is stored into "env_file".

2021-06-02 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset bdb56902a3bfe12b10f85a941d5dd0eae739f1a8 by stratakis in branch 'main': bpo-44285: getpath.c: Assert that env_file is NULL during an error check (GH-26486) https://github.com/python/cpython/commit/bdb56902a3bfe12b10f85a941d5dd0eae739f1a8

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread Tal Einat
Tal Einat added the comment: Please note that the referenced PR is not the correct one. I'll add a link to the right one shortly. -- ___ Python tracker ___

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

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

[issue44112] [buildbot] test_asyncio hangs (killed after 3 hours) on Refleak buildbots

2021-06-02 Thread STINNER Victor
STINNER Victor added the comment: > Refleak buildbots should get a longer timeout for the "test" step. I changed buildbot Test step timeout from 3 hours to 4 hours: * https://github.com/python/buildmaster-config/commit/9e0c812694d6fa599b4c8890045ed006fe7c1f6b *

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-02 Thread STINNER Victor
New submission from STINNER Victor : x86-64 macOS 3.x: https://buildbot.python.org/all/#/builders/366/builds/322 The build 322 is the first error. Build 320 was fine, 321 failed with "retry lost connection test (retry)". (...) gcc -c -Wno-unused-result -Wsign-compare -g -O0 -Wall

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-02 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread Tal Einat
Tal Einat added the comment: The latest PR where changes were made to IDLE's colorizer and its tests, including specifically adding the problematic test, is GH-25851. -- ___ Python tracker

[issue44289] tarfile.is_tarfile() modifies file object's current position

2021-06-02 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +25084 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26488 ___ Python tracker

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread Tal Einat
Tal Einat added the comment: I'm investigating this now. If nothing obvious comes up, I'll revert that PR. -- ___ Python tracker ___

[issue44288] unittest: _is_relevant_tb_level() fails because tb.tb_frame.f_globals=None

2021-06-02 Thread STINNER Victor
New submission from STINNER Victor : Sometimes, when a test fails in the main branch, unittest fails with the following error: ... File "C:\vstinner\python\main\lib\unittest\result.py", line 205, in _is_relevant_tb_level return '__unittest' in tb.tb_frame.f_globals TypeError: argument

[issue44289] tarfile.is_tarfile() modifies file object's current position

2021-06-02 Thread Andrzej Mateja
New submission from Andrzej Mateja : Since Python 3.9 tarfile.is_tarfile accepts not only paths but also files and file-like objects (bpo-29435). Verification if a file or file-like object is a tar file modifies file object's current position. Imagine a function listing names of all tar

[issue43921] test_ssl fails on Windows buildbots

2021-06-02 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +25085 pull_request: https://github.com/python/cpython/pull/26489 ___ Python tracker ___

[issue43921] test_ssl fails on Windows buildbots

2021-06-02 Thread STINNER Victor
STINNER Victor added the comment: > FAIL: test_pha_required_nocert (test.test_ssl.TestPostHandshakeAuth) When this bug occurs, s.recv(1024) returns an empty byte string (b''). I wrote PR 26489 to handle this case. -- ___ Python tracker

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread Tal Einat
Tal Einat added the comment: On Ubuntu 20.04, I've managed to occasionally get this issue to reproduce locally by running the test many times in parallel, repeatedly: parallel -n8 -N0 './python -m test -ugui test_idle -m test_colorizer' ::: $(seq 20) This appears to be an issue with our

[issue44165] [sqlite3] sqlite3_prepare_v2 micro optimisation: pass string size

2021-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a384b6c04054a2c5050a99059836175cf73e2016 by Erlend Egeberg Aasland in branch 'main': bpo-44165: Optimise sqlite3 statement preparation by passing string size (GH-26206)

[issue44285] Coverity scan: Modules/getpath.c. "calculate_open_pyenv" allocates memory that is stored into "env_file".

2021-06-02 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +25082 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26486 ___ Python tracker

[issue39170] Sqlite3 row_factory for attribute access: NamedRow

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

[issue20393] Docs: mark deprecated items in the TOC

2021-06-02 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 2.7, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker ___ ___

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread STINNER Victor
STINNER Victor added the comment: Buildbots are very unstable these days. I propose to revert the change to give more time to IDLE developers to investigate the issue, and to be able to identify other regressions on buildbots. https://pythondev.readthedocs.io/ci.html#revert-on-fail I

[issue41611] IDLE: problems with completions on Mac

2021-06-02 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 7.0 -> 8.0 pull_requests: +25083 pull_request: https://github.com/python/cpython/pull/26487 ___ Python tracker ___

[issue44165] [sqlite3] sqlite3_prepare_v2 micro optimisation: pass string size

2021-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Erlend, check out https://github.com/python/cpython/pull/26206#discussion_r643910263. After that we can close this issue -- ___ Python tracker

[issue44165] [sqlite3] sqlite3_prepare_v2 micro optimisation: pass string size

2021-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset fbf25b8c0dd1e62db59117d53bbd2d4131a06867 by Erlend Egeberg Aasland in branch 'main': bpo-44165: pysqlite_statement_create now returns a Py object, not an int (GH-26484)

[issue44285] Coverity scan: Modules/getpath.c. "calculate_open_pyenv" allocates memory that is stored into "env_file".

2021-06-02 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : This is an issue as it seems with coverity as it's an error case where the file was not actually opened. This warning can be silenced and the code be made more explicit by adding an assertion. Python-3.9.1/Modules/getpath.c:1264: alloc_arg:

[issue13299] namedtuple row factory for sqlite3

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

[issue44287] test_asyncio: test_popen() failed on AMD64 Windows8.1 Refleaks 3.9

2021-06-02 Thread STINNER Victor
New submission from STINNER Victor : AMD64 Windows8.1 Refleaks 3.9: https://buildbot.python.org/all/#/builders/6/builds/31 2:16:22 load avg: 7.33 [364/425/2] test_asyncio crashed (Exit code 1) -- running: test_decimal (2 min 33 sec), test_dbm (2 min 53 sec), test_bufio (18 min 18 sec)

[issue44165] [sqlite3] sqlite3_prepare_v2 micro optimisation: pass string size

2021-06-02 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Erlend, check out > https://github.com/python/cpython/pull/26206#discussion_r643910263. After > that we can close this issue See msg393857: I'll add a PR for _pysqlite_connection_begin as well. After that, we can close this. --

[issue44285] Coverity scan: Modules/getpath.c. "calculate_open_pyenv" allocates memory that is stored into "env_file".

2021-06-02 Thread Petr Viktorin
Petr Viktorin added the comment: +1, for adding the assertion. It's not trivial to see that env_file must be NULL here, even for me (a human). -- nosy: +petr.viktorin ___ Python tracker

[issue44284] Python references wrong line but correct line number in traceback

2021-06-02 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Unupdated source file in traceback ___ Python tracker ___

[issue44286] venv activate script would be good to show failure.

2021-06-02 Thread john kim
New submission from john kim : I changed the path of the project using venv, so it didn't work properly. I thought it worked successfully because there was a (venv) on the terminal line. However, the __VENV_DIR__ in the set "VIRTUAL_ENV=__VENV_DIR__" in the activate script did not work

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2021-06-02 Thread Irit Katriel
Irit Katriel added the comment: New changeset 7b1f527d5b37dc3aa085ebbe11a1a2dd29ef210f by Irit Katriel in branch 'main': bpo-17792: more accurate error message for unbound variable access exceptions (GH-24976) https://github.com/python/cpython/commit/7b1f527d5b37dc3aa085ebbe11a1a2dd29ef210f

[issue44285] Coverity scan: Modules/getpath.c. "calculate_open_pyenv" allocates memory that is stored into "env_file".

2021-06-02 Thread STINNER Victor
STINNER Victor added the comment: I still plan to rewrite getpath.c C file in Python: https://bugs.python.org/issue42260 But it's an incompatible change and a low priority for me. -- nosy: +vstinner versions: -Python 3.8 ___ Python tracker

[issue44283] Add jump table for certain safe match-case statements

2021-06-02 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44280] unittest filters out too many assertion stack frames from context/cause chains

2021-06-02 Thread Irit Katriel
Irit Katriel added the comment: Agreed. -- nosy: +iritkatriel resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> unittest swallows part of stack trace when raising AssertionError in a TestCase ___ Python tracker

[issue40199] Invalid escape sequence DeprecationWarnings don't trigger by default

2021-06-02 Thread Aaron Gallagher
Aaron Gallagher <_...@habnab.it> added the comment: This is definitely not windows-specific. On macos: $ python3.9 Python 3.9.4 (default, Apr 5 2021, 01:47:16) [Clang 11.0.0 (clang-1100.0.33.17)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> '\s' '\\s'

[issue44276] Replace if-elif-else structure with match-case (PEP634)

2021-06-02 Thread Brandt Bucher
Brandt Bucher added the comment: Hm, that benchmark seems really noisy. Looking at your code, it appears that you aren't actually iterating over the results. I've attached a version of your benchmark rewritten to use pyperf. Here are the results on a system with a fresh PGO/LTO build of

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg394871 ___ Python tracker ___ ___ Python-bugs-list

[issue40199] Invalid escape sequence DeprecationWarnings don't trigger by default

2021-06-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, there is a difference between debug and regular builds. I tested with the debug build. -- components: +Interpreter Core -Windows nosy: +ncoghlan, vstinner -paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.10, Python 3.11,

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: The other thing I thought is parameterizing the decorator to pass in a delay only for this test, but that require another layer of wrapping, which I cannot do right now. So I think we should just add skiptest for now. In fact, we only need to run it when

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +25087 pull_request: https://github.com/python/cpython/pull/26491 ___ Python tracker ___

[issue28937] str.split(): allow removing empty strings (when sep is not None)

2021-06-02 Thread Andrei Kulakov
Andrei Kulakov added the comment: I'm not sure I understand why the discussion was focused on removing *all* empty values. Consider this in a context of a cvs-like string: 1. 'a,b,c' => [a,b,c]# of course 2. ',,'=> ['','',''] # follows naturally from above 3. '' => [] #

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-02 Thread Ned Deily
Ned Deily added the comment: I can't reproduce that failure with that checkout and I'm not even entirely sure where that error is coming from. My guess it that something went wrong during the previous build that resulted in the connection lost (a system crash perhaps?) that left the build

[issue44286] venv activate script would be good to show failure.

2021-06-02 Thread Ned Deily
Change by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41611] IDLE: problems with completions on Mac

2021-06-02 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -25083 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-02 Thread Matt Billenstein
Matt Billenstein added the comment: Hmm, digging, afaict the buildbot-worker is up and running - something on the master? I just updated my setup to use python3 instead of python2... On Wed, Jun 02, 2021 at 06:24:23PM +, Ned Deily wrote: > > Ned Deily added the comment: > > Hmm, I just

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: The confusion is my fault: PR-26404 is where I first saw this failure, for the previously added tests, not where the test was added. I unlinked the erroneous message. Running 12 duplicate tests in parallel on Windows on a 6 core (12 CPU) machine with

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-02 Thread Ned Deily
Ned Deily added the comment: Can you say at what point you did the upgrade, i.e. between which two builds here? https://buildbot.python.org/all/#/builders/366 -- ___ Python tracker

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread Tal Einat
Tal Einat added the comment: > Running 12 duplicate tests in parallel on Windows on a 6 core (12 CPU) > machine with [...] resulted in nearly all failing. Yes, running test_idle in parallel with itself usually causes some failures due to UI focus being stolen from one instance by another.

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread Tal Einat
Tal Einat added the comment: See PR GH-26491. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44279] doc: contextlib.suppress documentation is imprecise

2021-06-02 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +25088 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/26492 ___ Python tracker ___

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I don't see anything relevant in the logs. These are the last messages regarding this worker: 2021-06-02 18:38:26+ [-] Worker billenstein-macos detached from x86-64 macOS 3.7 2021-06-02 18:38:26+ [-] Worker billenstein-macos detached from

[issue44295] self.assertDictContainsSubset warning is unhelpful

2021-06-02 Thread Anthony Sottile
New submission from Anthony Sottile : it's missing stacklevel= -- mostly creating a bpo issue to link to -- messages: 394953 nosy: Anthony Sottile priority: normal severity: normal status: open title: self.assertDictContainsSubset warning is unhelpful versions: Python 3.11

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-02 Thread STINNER Victor
STINNER Victor added the comment: > Hmm, I just tried to restart it from the builbot page but the build request > is just sitting there ATM. > https://buildbot.python.org/all/#/builders/366 Not sure what happened. I restarted the buildbot server manually. I cancelled the old manual build

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-02 Thread Matt Billenstein
Matt Billenstein added the comment: Hmm, yeah, it did seem to me like the server was wedged or something... glad to see it going. M -- Matt Billenstein m...@vazor.com > On Jun 2, 2021, at 6:13 PM, STINNER Victor wrote: > >  > STINNER Victor added the comment: > >> Hmm, I just tried to

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

2021-06-02 Thread STINNER Victor
Change by STINNER Victor : -- title: Intermittent connection errors in ssl tests on macOS CI -> test_ssl: test_get_server_certificate() and test_msg_callback_deadlock_bpo43577() fail randomly on the macOS CI ___ Python tracker

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-06-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +25102 pull_request: https://github.com/python/cpython/pull/26506 ___ Python tracker ___

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-06-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +25103 pull_request: https://github.com/python/cpython/pull/26507 ___ Python tracker ___

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-06-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset e60ab843cbb016fb6ff8b4f418641ac05a9b2fcc by Gregory P. Smith in branch 'main': bpo-44022: Improve the regression test. (GH-26503) https://github.com/python/cpython/commit/e60ab843cbb016fb6ff8b4f418641ac05a9b2fcc --

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-06-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +25104 pull_request: https://github.com/python/cpython/pull/26508 ___ Python tracker ___

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-06-02 Thread miss-islington
miss-islington added the comment: New changeset 5df4abd6b033a5f1e48945c6988b45e35e76f647 by Miss Islington (bot) in branch '3.9': bpo-44022: Improve the regression test. (GH-26503) https://github.com/python/cpython/commit/5df4abd6b033a5f1e48945c6988b45e35e76f647 --

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-06-02 Thread Ned Deily
Ned Deily added the comment: New changeset 1b6f4e5e13ebd1f957b47f7415b53d0869bdbac6 by Miss Islington (bot) in branch '3.6': bpo-44022: Improve the regression test. (GH-26503) (GH-26508) https://github.com/python/cpython/commit/1b6f4e5e13ebd1f957b47f7415b53d0869bdbac6 --

[issue43921] test_ssl fails on Windows buildbots

2021-06-02 Thread miss-islington
miss-islington added the comment: New changeset e5e93e6145090a636e67766a53b758d7ac78e3ad by Miss Islington (bot) in branch '3.10': bpo-43921: Fix test_ssl.test_pha_required_nocert() (GH-26489) https://github.com/python/cpython/commit/e5e93e6145090a636e67766a53b758d7ac78e3ad --

[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-06-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +25094 pull_request: https://github.com/python/cpython/pull/26498 ___ Python tracker ___

[issue44296] Should warnings.warn default to stacklevel=2?

2021-06-02 Thread Anthony Sottile
New submission from Anthony Sottile : I have yet to come across a usecase where `stacklevel=1` makes sense -- usually it is more helpful to point at the calling code than the function which is itself warning my proposal is to update the default for `stacklevel=` from `1` to `2` an example

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9c89d62073fa0bcfe68e59add5b55fbcbf7672ab by Miss Islington (bot) in branch '3.10': bpo-44282: Fix occasional test_incremental_editing failures on buildbots (GH-26491) (GH-26499)

[issue44293] PEP 585 breaks inspect.isclass

2021-06-02 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: The reason for this is that types.GenericAlias.__getattribute__ delegates to the alias's origin (in the `ga_getattro` function). As a result, `list[int].__class__` calls `list.__class__` and returns `type`. And the implementation of `isinstance(obj, type)`

[issue44283] Add jump table for certain safe match-case statements

2021-06-02 Thread Dennis Sweeney
Dennis Sweeney added the comment: Very interesting -- that is shorter than I thought also! If we really wanted to optimize the tar out of this, we could probably find a way to re-use just the PyDictKeysObject to find the index into a C-array of integer jump targets and not have to worry

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-02 Thread Matt Billenstein
Matt Billenstein added the comment: So, I'd been trying various things before the master restart and I was using python3 supplied by homebrew - I decided I didn't like that dependency and switched it back to /usr/bin/python3 as supplied by the system [1]. I did a rebuild on 325 a couple more

[issue44292] contextmanager + ExitStack.pop_all()

2021-06-02 Thread Luca Mattiello
New submission from Luca Mattiello : Reading the contextlib documentation, one might assume the following to be functionally equivalent, when used in a with statement: @contextlib.contextmanager def managed_resource(): resource = acquire() try: yield resource finally:

[issue44279] doc: contextlib.suppress documentation is imprecise

2021-06-02 Thread Eric V. Smith
Eric V. Smith added the comment: I'm not sure the original version needs improving. This sounds like a problem understanding how warnings work. Do you really want to say that for warnings, they're sometimes handled by the warning machinery and therefore don't get passed along to the calling

[issue44294] 3.9.5 Windows 64-bit installer says v3.8.10 in startup window.

2021-06-02 Thread Sunny Jamshedji
New submission from Sunny Jamshedji : Downloaded Windows 64 bit installer from: https://www.python.org/downloads/windows/ Link said: https://www.python.org/ftp/python/3.9.5/python-3.9.5-amd64.exe It downloaded what appears to be 3.8.10 installer. I launched it and I got the attached

[issue44285] Coverity scan: Modules/getpath.c. "calculate_open_pyenv" allocates memory that is stored into "env_file".

2021-06-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +25092 pull_request: https://github.com/python/cpython/pull/26496 ___ Python tracker ___

[issue42914] pprint numbers with underscore

2021-06-02 Thread miss-islington
miss-islington added the comment: New changeset 4846ea95d1a121df5e8081e2a290f63d1419cad8 by Wm. Keith van der Meulen in branch 'main': Add bpo-42914 to What's New (GH-25124) https://github.com/python/cpython/commit/4846ea95d1a121df5e8081e2a290f63d1419cad8 -- nosy: +miss-islington

[issue42914] pprint numbers with underscore

2021-06-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +25105 pull_request: https://github.com/python/cpython/pull/26509 ___ Python tracker ___

[issue43776] Popen with shell=True yield mangled repr output

2021-06-02 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +25106 pull_request: https://github.com/python/cpython/pull/26510 ___ Python tracker ___

[issue44022] urllib http client possible infinite loop on a 100 Continue response

2021-06-02 Thread Ned Deily
Ned Deily added the comment: New changeset fee96422e6f0056561cf74fef2012cc066c9db86 by Miss Islington (bot) in branch '3.7': bpo-44022: Improve the regression test. (GH-26503) (GH-26507) https://github.com/python/cpython/commit/fee96422e6f0056561cf74fef2012cc066c9db86 --

[issue37741] importlib.metadata docs not showing up in the module index

2021-06-02 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +25096 pull_request: https://github.com/python/cpython/pull/26500 ___ Python tracker ___

[issue43921] test_ssl fails on Windows buildbots

2021-06-02 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +25097 pull_request: https://github.com/python/cpython/pull/26501 ___ Python tracker ___

[issue43921] test_ssl fails on Windows buildbots

2021-06-02 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +25098 pull_request: https://github.com/python/cpython/pull/26502 ___ Python tracker ___

[issue44290] x86-64 macOS 3.x buildbot build failed with: No such file or directory: '/Users/buildbot/buildarea/3.x.billenstein-macos/build/target/include/python3.11d/pyconfig.h'

2021-06-02 Thread STINNER Victor
STINNER Victor added the comment: The 2 latest builds are green (success), so I close the issue. https://buildbot.python.org/all/#/builders/366 Thanks for the help! -- resolution: -> out of date stage: -> resolved status: open -> closed ___

[issue42914] pprint numbers with underscore

2021-06-02 Thread miss-islington
miss-islington added the comment: New changeset 41317801a95c758c3fc04c4fb332ac453c9e3ad3 by Miss Islington (bot) in branch '3.10': Add bpo-42914 to What's New (GH-25124) https://github.com/python/cpython/commit/41317801a95c758c3fc04c4fb332ac453c9e3ad3 --

[issue44295] self.assertDictContainsSubset warning is unhelpful

2021-06-02 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +25093 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26497 ___ Python tracker ___

[issue39573] [C API] Make PyObject an opaque structure in the limited C API

2021-06-02 Thread STINNER Victor
STINNER Victor added the comment: Most projects broken by Py_TYPE and Py_SIZE changes have been fixed since last year. I succeeded to use my new pythoncapi_compat project on multiple C extensions. So I propose again to convert Py_TYPE and Py_SIZE macros to static inline functions:

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset adef445dc34685648bd0ea1c125df2ef143912ed by Tal Einat in branch 'main': bpo-44282: Fix occasional test_incremental_editing failures on buildbots (GH-26491) https://github.com/python/cpython/commit/adef445dc34685648bd0ea1c125df2ef143912ed

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25095 pull_request: https://github.com/python/cpython/pull/26499 ___ Python tracker

[issue43921] test_ssl: test_wrong_cert_tls13() and test_pha_required_nocert() fail randomly on Windows

2021-06-02 Thread STINNER Victor
Change by STINNER Victor : -- title: test_ssl fails on Windows buildbots -> test_ssl: test_wrong_cert_tls13() and test_pha_required_nocert() fail randomly on Windows ___ Python tracker

[issue43921] test_ssl: test_wrong_cert_tls13() and test_pha_required_nocert() fail randomly on Windows

2021-06-02 Thread STINNER Victor
STINNER Victor added the comment: In Python 3.9, test_pha_required_nocert() looks more strict, it requires read() to fail with the 'tlsv13 alert certificate required' error message: # receive alert with self.assertRaisesRegex( ssl.SSLError,

  1   2   >