[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 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: 2.5049004761

[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 Unsubscri

[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 _

[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 l

[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, th

[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 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) https://github.com/python/cpython/commit/a384b6c04054a2c5050a9905983

[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 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: 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

[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 is

[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) https://github.com/python/cpython/commit/fbf25b8c0dd1e62db59117d53bb

[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. -- __

[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 ___ ___

[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: "calcula

[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 __

[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

[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: https://mail.python.org/mail

[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 pr

[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 ___ _

[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 <

[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 ___ ___ Python

[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: h

[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: h

[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' -

[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 ___ ___

[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 created

[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) ["test_a

[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 ___ __

[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 _

[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 o

[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 ___ __

[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 arch

[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: https://mail.pytho

[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 _

[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 * https://github.com/python/buil

[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 new

[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 -Qunused-ar

[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: https:/

[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 CPyt

[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: https://

[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. '' => [] #

[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 mailing

[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 ar

[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: https://mail.pyth

[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: I rebuilt it a while ago which could have caused this - can you re-run the affected build? thx m On Wed, Jun 02, 2021 at 06:08:16PM +, Ned Deily wrote: > > Ned Deily added the comment: > > I can't reproduce that failure with that checkout and I'm no

[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: 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 -- ___ Python tracker

[issue44291] Unify logging.handlers.SysLogHandler behavior with SocketHandlers

2021-06-02 Thread Kirill Pinchuk
New submission from Kirill Pinchuk : Probably we should make the behavior of SysLogHandler consistent with other Socket handlers. Right now SocketHandler and DatagramHandler implement such behavior: 1) on `close` set `self.socket = None` 2) when trying to send - make socket when it is None

[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, Pytho

[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

[issue44291] Unify logging.handlers.SysLogHandler behavior with SocketHandlers

2021-06-02 Thread Kirill Pinchuk
Kirill Pinchuk added the comment: UPD: right now it has reconnection logic for unixsocket but not for tcp/udp -- ___ Python tracker ___ ___

[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 f:\d

[issue44291] Unify logging.handlers.SysLogHandler behavior with SocketHandlers

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

[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 e

[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. T

[issue44277] cpython forks are spammed with dependabot PRs

2021-06-02 Thread Dominic Davis-Foster
Dominic Davis-Foster added the comment: There's an open issue on GitHub, but it hasn't gone anywhere. https://github.com/dependabot/dependabot-core/issues/2804 -- nosy: +domdfcoding ___ Python tracker _

[issue44282] IDLE: ColorDelegatorTest test_incremental_editing failures

2021-06-02 Thread Tal Einat
Tal Einat added the comment: On my machine it running the test many times with parallelization no longer causes any failures with this change. Also, running other tests which us the @run_in_tk_mainloop decorator, with the same 1ms delay as before, doesn't cause any such failures. PR forthc

[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 ___ ___

[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: https://mai

[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: Probably at 321 where it lost connection - I would have shut it down and wiped the buildarea. I'm not sure what's going on now, I'm walking back versions of buildbot-worker and they seem to never connect to the master... m On Wed, Jun 02, 2021 at 07:25:49P

[issue43921] test_ssl fails on Windows buildbots

2021-06-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset 320eaa7f42b413cd5e5436ec92d4dc5ba150395f by Victor Stinner in branch 'main': bpo-43921: Fix test_ssl.test_pha_required_nocert() (GH-26489) https://github.com/python/cpython/commit/320eaa7f42b413cd5e5436ec92d4dc5ba150395f -- __

[issue44277] cpython forks are spammed with dependabot PRs

2021-06-02 Thread Zachary Ware
Zachary Ware added the comment: In that case, closing as third-party. -- resolution: -> third party stage: -> resolved status: open -> closed ___ 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 Ned Deily
Ned Deily added the comment: Perhaps one of the buildbot experts can help? Zach? Pablo? Victor? -- nosy: +pablogsal, zach.ware ___ Python tracker ___

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-06-02 Thread Brandon Weeks
Change by Brandon Weeks : -- nosy: +bweeks ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

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

2021-06-02 Thread jakirkham
jakirkham added the comment: Would it be possible to check for these newer OpenSSL symbols during the builds of Python 3.8 & 3.9 (using them when available and otherwise falling back to the older API otherwise)? This would allow people to build Python 3.8 & 3.9 with the newer OpenSSL benefit

[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: resource.rel

[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

[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 ___

[issue44293] PEP 585 breaks inspect.isclass

2021-06-02 Thread Joseph Perez
New submission from Joseph Perez : PEP 585 has the side-effect of making `list[int]` an instance of `type`. This is not the case for other generic aliases. It also implies that `inspect.isclass(list[int]) is True`, while `list[int]` is not a class; as a proof of this statement `issubclass(lis

[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 screens

[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 x86-

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

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

[issue43921] test_ssl fails on Windows buildbots

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

[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 : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25091 pull_request: https://github.com/python/cpython/pull/26495 ___ Python tracker _

[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 ___ __

[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

[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: https://gi

[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 ___ __

[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 --

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

2021-06-02 Thread miss-islington
miss-islington added the comment: New changeset 0e9af8cae314e4b0e770fe48d5f7b5f540c0b257 by Miss Islington (bot) in branch '3.10': bpo-44285: getpath.c: Assert that env_file is NULL during an error check (GH-26486) https://github.com/python/cpython/commit/0e9af8cae314e4b0e770fe48d5f7b5f540c0

[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: New changeset 85b587a38dcf5d0ef1e275510001e22425d65977 by Miss Islington (bot) in branch '3.9': bpo-44285: getpath.c: Assert that env_file is NULL during an error check (GH-26486) (GH-26496) https://github.com/python/cpython/commit/85b587a38dcf5d0ef1e2755100

[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: Thanks Charalampos, it's now fixed in 3.9, 3.10 and main branches. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[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 _

[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 bp

[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 and

[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) https://github.com/python/cpython/commit/9c89d62073fa0bcfe68e59add

[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)` u

[issue43568] Drop support for Mac OS X < 10.3 module linking

2021-06-02 Thread Ned Deily
Ned Deily added the comment: New changeset 991693a217363243b0bd33887852d6b3959b99a1 by Joshua Root in branch '3.9': [3.9] bpo-43568: Relax distutils MACOSX_DEPLOYMENT_TARGET check (GH-25827) (GH-26001) https://github.com/python/cpython/commit/991693a217363243b0bd33887852d6b3959b99a1 --

[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 ___ _

  1   2   >