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

2021-06-04 Thread Dennis Sweeney
Dennis Sweeney added the comment: Hi Brandt, I would welcome your collaboration/mentorship in whatever capacity makes sense. I sent an email to bra...@python.org from sweeney.dennis...@gmail.com. -- ___ Python tracker

[issue40395] Scripts folder is Empty in python 3.8.2 for Windows 7.

2021-06-04 Thread kuzja
Change by kuzja : -- nosy: -kuzja ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

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

2021-06-04 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I ran the test_suite on commit f3fa63ec75fdbb4a08a10957a5c631bf0c4a5970 in my WSL 1 Ubuntu and got some unexpected results. There are huge reference leaks in the tests and test_asyncio, test_subprocess, test_socket, etc., failed. I forked the branch a while

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

2021-06-04 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

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

2021-06-04 Thread Christian Heimes
Christian Heimes added the comment: Reopening * GH-26502 is missing backport to 3.9. I also don't consider the changeset a proper fix. It's a patch that makes the test pass when something goes wrong. We have not yet figured out why something goes wrong on Windows sometimes. * GH-26520 is mi

[issue31664] Add support of new crypt methods

2021-06-04 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 6.0 -> 7.0 pull_requests: +25119 pull_request: https://github.com/python/cpython/pull/26526 ___ Python tracker ___ __

[issue44309] Add support for yescrypt in crypt.

2021-06-04 Thread Björn Esser
New submission from Björn Esser : Proposed PR adds support for a new method in the crypt module: yescrypt. It is considered stronger as SHA512 or blowfish and as strong as argon2 for crypt() purpose. The hashing method was developed by the author of the blowfish crypt method, and was based on

[issue44309] Add support for yescrypt in crypt.

2021-06-04 Thread Björn Esser
Change by Björn Esser : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

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

2021-06-04 Thread Vinay Sajip
Vinay Sajip added the comment: > i thought any warning message or exception handling was necessary. Or (venv) > doesn't show up. No, because these are just scripts created by venv and placed in the venv's directory tree. If you then move the files to a different location, they aren't engine

[issue44309] Add support for yescrypt in crypt.

2021-06-04 Thread Björn Esser
Change by Björn Esser : -- keywords: +patch pull_requests: +25121 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26527 ___ Python tracker ___ _

[issue44310] lru_cache memory leak

2021-06-04 Thread Wouter De Borger
New submission from Wouter De Borger : # Problem the functools.lru_cache decorator locks all arguments to the function in memory (inclusing self), causing hard to find memory leaks. # Expected I had assumed that the lru_cache would keep weak-references and that when an object is garbage

[issue44308] Raw Strings lack parody

2021-06-04 Thread STINNER Victor
STINNER Victor added the comment: You can use br"\n" to get 2 bytes: b"\\" and b"n". IMO it's the best practice, to use raw strings for regular expressions. Converting a regular string to a raw string sounds like a bad idea. -- ___ Python tracker

[issue44310] lru_cache memory leak

2021-06-04 Thread Wouter De Borger
Change by Wouter De Borger : -- type: -> resource usage ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue44308] Raw Strings lack parody

2021-06-04 Thread Mark Dickinson
Mark Dickinson added the comment: > But there's no builtin function for r'foo\bar' that gives you 'foo\\bar'. I'm confused about what's being requested here. r'foo\bar' and 'foo\\bar' are different source code representations of the exact same string (same type, same contents), so the identi

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

2021-06-04 Thread STINNER Victor
STINNER Victor added the comment: Christian: I mostly care about buildbots. I cannot reproduce the issue in 3.9. If it's not broken, I don't want to touch the code :-) For GH-26520, I explained that I don't want to backport it (it's only in main). Moreover, you asked for automated backports,

[issue44308] Raw Strings lack parody

2021-06-04 Thread Mark Dickinson
Mark Dickinson added the comment: Sorry, I missed the definition of f in the last message. Trying again: >>> def f(x): return x ... >>> f(r'foo\bar') == 'foo\\bar' True -- ___ Python tracker __

[issue44308] Raw Strings lack parody

2021-06-04 Thread Mark Dickinson
Mark Dickinson added the comment: Ah, I think I see: you want a function that turns the string "foo\bar" into "foo\\bar". Even if this were a good idea, I don't think it's feasible to do it in a non-surprising way. For example, given such a function f, what outputs would you expect for: (

[issue44041] [sqlite3] optimisation: only call sqlite3_column_count when needed

2021-06-04 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: This change breaks existing behaviour (see test below). Also, sqlite3_column_count() is implemented as a simple lookup in SQLite; it is never an expensive function. Suggests to add the following test instead: diff --git a/Lib/sqlite3/test/dbapi.py b/Lib/

[issue44041] [sqlite3] check that column count is updated correctly for cached statements

2021-06-04 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue44310] lru_cache memory leak

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

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

2021-06-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue44310] lru_cache memory leak

2021-06-04 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah, pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue44311] How to print results of asyncio websockets at the same time?

2021-06-04 Thread Jinwoo PARK NANTIER
New submission from Jinwoo PARK NANTIER : ## Question - How can I merge the results of two or three asynchronous websocket results, defined with the library `asyncio`? - I am downloading order book data (how many people want to buy or sell something at which price) of cryptocurrencies using

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

2021-06-04 Thread john kim
john kim added the comment: Okay. Thank you for the detailed explanation. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue43007] set_wakeup_fd() only works in main thread

2021-06-04 Thread MeneMeneTekel
MeneMeneTekel added the comment: Update: I just tried it again with - Windows 10 Pro, 21H1 - WinPython 3.9.4 - Apache24 - Django 3.2.4 - mod_wsgi-4.8.0-cp39-cp39-win_amd64 Actually, there is no change, it got even worse. i.e. this wake up situation occurs more often. Remember: Changin

[issue44311] How to print results of asyncio websockets at the same time?

2021-06-04 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: This bug tracker is for the Python language and not for asking for help with programming. This bug should be closed. You can go to e.g. stackoverflow.com and ask the question there. -- nosy: +cryvate ___ Pytho

[issue44308] Raw Strings lack parody

2021-06-04 Thread Nicholas Willhite
Nicholas Willhite added the comment: Wow, thanks for all the helpful responses! I see how this was a classic PEBKAC issue on my end. Please closed this ticket at your convenience. -- ___ Python tracker __

[issue44311] How to print results of asyncio websockets at the same time?

2021-06-04 Thread Jinwoo PARK NANTIER
Change by Jinwoo PARK NANTIER : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue44310] lru_cache memory leak

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Using a weak dictionary is not a correct solution as the cache must take string ownership of the arguments and return value to do it's job properly. Moreover, there are many types in Python that don't support weak references so this will be a backward

[issue44310] lru_cache memory leak

2021-06-04 Thread Ken Jin
Ken Jin added the comment: @Wouter Hmm, I thought most use cases of lru_cache benefit from strong references for predictable hit rates? I'm not an expert in this area, so I nosied-in someone else who is. However, I noticed that the current doc doesn't mention the strong reference behavior a

[issue44013] tempfile.TemporaryFile: name of file descriptor cannot be reused in consecutive initialization

2021-06-04 Thread Thomas Jollans
Thomas Jollans added the comment: I think I know what's going on here. The way you're using tempfile.TemporaryFile() is, shall we say, unusual. TemporaryFile() already gives you an open file, there's really no reason why you'd call open() again. In practice you'd usually want to write someth

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread STINNER Victor
STINNER Victor added the comment: This issue is not solved. I can still reproduce the hang using: ./python -m test test_asyncio -m SubprocessMultiLoopWatcherTests -v -F -j20 --timeout=30.0 Example with test_cancel_make_subprocess_transport_exec: $ ./python -m test test_asyncio -m test.test

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

2021-06-04 Thread STINNER Victor
STINNER Victor added the comment: Pablo: > Extending the bot time was done so we can use faulthandler to identify the > test, because buildbot was cancelling the whole build before that :) Right. I increased buildbot timeout to check if buildbots hang because of bpo-38323 or if it's a new re

[issue44308] Raw Strings lack parody

2021-06-04 Thread STINNER Victor
STINNER Victor added the comment: I close the issue. Glad that you found a solution to your issue. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker _

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

2021-06-04 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: > bpo-38323 is not fixed yet, I can still easily reproduce the hang on Linux is > less than 1 minute: https://bugs.python.org/issue38323#msg395090 Yes, with the commands you provided in the https://bugs.python.org/issue38323#msg395090 I also reproduced the

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

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Yes, with the commands you provided in the > https://bugs.python.org/issue38323#msg395090 I also reproduced the crash on > my WSL. And any suggestions on the other test failures in the log I attached? > I don't know if they are fixed already in the

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

2021-06-04 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: > Your logs don't show this error. This error is test_asyncio hanging, but in > your logs the test fails (multiple test do, actually). I didn't include this error. I was just asking if we could do anything about the multiple test failures (especially test_a

[issue44312] test_asyncio leaked [1533, 1531, 1533] references, sum=4597

2021-06-04 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : All refleak buildbots are currently broken in master: .. test_asyncio leaked [1533, 1531, 1533] references, sum=4597 test_asyncio leaked [367, 366, 367] memory blocks, sum=1100 11 tests failed again: test_asyncgen test_asyncio test_code test_c

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately, commit 2c1e2583fdc4db6b43d163239ea42b0e8394171f has broken all the refleak buildbots. Example failure: BISECTION: c1e2583fdc4db6b43d163239ea42b0e8394171f is the first bad commit commit 2c1e2583fdc4db6b43d163239ea42b0e8394171f Author: Er

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Please, in the future, check with the buildbots before merging these kinds of big PRs. -- ___ Python tracker ___

[issue44313] Generate LOAD_ATTR+CALL_FUNCTION instead of LOAD_METHOD+CALL_METHOD for imports

2021-06-04 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : import foo def func(): return foo.bar() The snippet above will generate the following code; 2 0 LOAD_GLOBAL 0 (foo) 2 LOAD_METHOD 1 (bar) 4 CALL_METHOD 0 6 RET

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25123 pull_request: https://github.com/python/cpython/pull/26530 ___ Python tracker ___ ___

[issue44312] test_asyncio leaked [1533, 1531, 1533] references, sum=4597

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This is caused by: https://bugs.python.org/issue43693 -- nosy: +Mark.Shannon, eric.snow ___ Python tracker ___ __

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

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I was just asking if we could do anything about the multiple test failures > (especially test_asyncio failure). We don't see any failures as the ones in your logs in the buildbots or otherwise, so seems something wrong in your system or only affecti

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: PR reverts commits 2c1e2583fdc4db6b43d163239ea42b0e8394171f and b2bf2bc1ece673d387341e06c8d3c2bc6e259747. Please, commit them back once the refleaks are resolved. I took a quick look and seems that there are several issues but there are more I could f

[issue44313] Generate LOAD_ATTR+CALL_FUNCTION instead of LOAD_METHOD+CALL_METHOD for imports

2021-06-04 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: @mark.shannon what do you think about doing this both for `import ` and `from import `. It will definitely simplify the implementation (no need to extra visitors or flags, just using the default DEF_IMPORT one https://github.com/isidentical/cpython/commit

[issue44048] test_hashlib failure for "AMD64 RHEL8 FIPS Only Blake2 Builtin Hash" buildbot

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a46c220edc5cf716d0b71eb80ac29ecdb4ebb430 by stratakis in branch 'main': bpo-44048: Fix two hashlib test cases under FIPS mode (GH-26470) https://github.com/python/cpython/commit/a46c220edc5cf716d0b71eb80ac29ecdb4ebb430 -- nosy:

[issue44048] test_hashlib failure for "AMD64 RHEL8 FIPS Only Blake2 Builtin Hash" buildbot

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44048] test_hashlib failure for "AMD64 RHEL8 FIPS Only Blake2 Builtin Hash" buildbot

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

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 17c4edc4e0692fe55e185755ea8a2f5238f3ef08 by Pablo Galindo in branch 'main': bpo-43693: Revert commits 2c1e2583fdc4db6b43d163239ea42b0e8394171f and b2bf2bc1ece673d387341e06c8d3c2bc6e259747 (GH-26530) https://github.com/python/cpython/com

[issue44041] [sqlite3] check that column count is updated correctly for cached statements

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 8363ac8607eca7398e568e1336154e1262a995a0 by Erlend Egeberg Aasland in branch 'main': bpo-44041: Add test for sqlite3 column count (GH-25907) https://github.com/python/cpython/commit/8363ac8607eca7398e568e1336154e1262a995a0 -- no

[issue44041] [sqlite3] check that column count is updated correctly for cached statements

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue43740] Long paths in imp.load_dynamic() lead to segfault

2021-06-04 Thread Thomas Jollans
Thomas Jollans added the comment: I cannot reproduce this on my OpenSUSE (glibc 2.33, Linux 5.12.4) or Ubuntu 20.04 (glibc 2.31, Linux 5.4.0) machines, but I can reproduce it on an old Debian Stretch VM I happened to have lying around (glibc 2.24, Linux 4.9.0). (FreeBSD 12.2 and Windows 10 a

[issue44314] [doc] SSLContext.set_ciphers() link to OpenSSL cipher list format is outdated

2021-06-04 Thread Chris Mayo
New submission from Chris Mayo : Current link is: https://www.openssl.org/docs/manmaster/man1/ciphers.html Manual page entries without the 'openssl-' prefix have been deprecated, and this link is now directed to a generic page for openssl cmd. Suggest an update to: https://www.openssl.org/doc

[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 006fd869e4798b68e266f5de89c83ddb531a756b by Erlend Egeberg Aasland in branch 'main': bpo-43853: Handle sqlite3_value_text() errors (GH-25422) https://github.com/python/cpython/commit/006fd869e4798b68e266f5de89c83ddb531a756b -- n

[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

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

[issue44048] test_hashlib failure for "AMD64 RHEL8 FIPS Only Blake2 Builtin Hash" buildbot

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 3f4d801bf907a5fcab50f3b64475d1410b90a80f by Miss Islington (bot) in branch '3.10': bpo-44048: Fix two hashlib test cases under FIPS mode (GH-26470) (GH-26531) https://github.com/python/cpython/commit/3f4d801bf907a5fcab50f3b64475d1410b90a8

[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44266] AttributeError: module 'sys' has no attribute 'original_stdout'

2021-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you intend to import the stdlib sys and succeed, the original stdout is called '__stdout__'. See https://docs.python.org/3/library/sys.html#sys.__stdin__, including the note that it may be None on Windows. Also peruse that doc to see what attributes sy

[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-06-04 Thread miss-islington
miss-islington added the comment: New changeset 067d6d46575b5cf30bbf7c812defee1517106a34 by Miss Islington (bot) in branch '3.10': bpo-43853: Handle sqlite3_value_text() errors (GH-25422) https://github.com/python/cpython/commit/067d6d46575b5cf30bbf7c812defee1517106a34 -- _

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread Chris Jerdonek
Chris Jerdonek added the comment: > This issue is not solved. Yes, nothing was changed. After diagnosing this issue and trying some things out in a draft PR, my conclusion is that an asyncio maintainer really needs to weigh in on what to do (especially Andrew who authored the class). The rea

[issue44307] date.today() is 2x slower than datetime.now().date()

2021-06-04 Thread Ruairidh MacLeod
Change by Ruairidh MacLeod : -- nosy: +rkm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue29249] Pathlib glob ** bug

2021-06-04 Thread Barney Gale
Change by Barney Gale : -- nosy: +barneygale ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Jesse or Andre, please test interactive help in IDLE as pydoc then knows that it is *not* talking to Windows console. It then does not use more.com but prints the entire text at once. It should send it 'as is' and should ignore the console language and enc

[issue29249] Pathlib glob ** bug

2021-06-04 Thread Christian Heimes
Change by Christian Heimes : -- nosy: -christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue44275] Is there a mojibake problem rendering interactive help in the REPL on Windows?

2021-06-04 Thread Andre Roberge
Andre Roberge added the comment: Terry: I just checked with Idle on Windows with Python 3.9.5 and the display works perfectly, with no incorrect characters. -- ___ Python tracker ___

[issue44307] date.today() is 2x slower than datetime.now().date()

2021-06-04 Thread Paul Ganssle
Paul Ganssle added the comment: Yeah, I knew this was slower and it's been on my long list to look at it (tied to this is the fact that `datetime.today()` is basically just a slow version of `datetime.now()`, in defiance of user expectations). My inclination is that we shouldn't re-implement

[issue42213] Get rid of cyclic GC hack in sqlite3.Connection and sqlite3.Cache

2021-06-04 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44315] [sqlite3] remove unused connection argument from pysqlite_step()

2021-06-04 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : The code that used the connection argument was removed one year before pysqlite was included in CPython, as far as I can see. It can safely be removed. See also: https://github.com/ghaering/pysqlite/commit/5a009ed6fb2e90b952438f5786f93cd1e8ac8722 --

[issue44315] [sqlite3] remove unused connection argument from pysqlite_step()

2021-06-04 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +25126 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26535 ___ Python tracker __

[issue44315] [sqlite3] remove unused connection argument from pysqlite_step()

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 7459208de194db6222d7e3aa301c2b831dbe566d by Erlend Egeberg Aasland in branch 'main': bpo-44315: Remove unused connection argument from pysqlite_step() (GH-26535) https://github.com/python/cpython/commit/7459208de194db6222d7e3aa301c2b831db

[issue44315] [sqlite3] remove unused connection argument from pysqlite_step()

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread STINNER Victor
STINNER Victor added the comment: When I reproduce test_cancel_make_subprocess_transport_exec() hang, the problem is that the C signal handler is called with SIGCHLD when the child process completes, but the Python signal handler is not called. Python is "blocked" in a selector (maybe select

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

2021-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: To me, Raymond's flattening is a plausible replacement, especially ater a future speedup. However, I would re-order the patterns to None, False, True, str(), int(), ..., _. These independent conditions, other than _ (or else in the if chain), can be ordere

[issue44301] Is there a way to provide destructor for module written using C API?

2021-06-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Coredevs are likely to assume that the problem is in greenlets, especially if it has any C code (I don't know). I suggest you first try to find the commit between releases that resulted in the problem. If it is not deterministicly reproducible, you likely

[issue44307] date.today() is half as fast as datetime.now().date()

2021-06-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: date.today() is 2x slower than datetime.now().date() -> date.today() is half as fast as datetime.now().date() ___ Python tracker ___ _

[issue44309] Add support for yescrypt in crypt.

2021-06-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +jafo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue44310] lru_cache memory leak

2021-06-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue44316] Support preserving path meaning in os.path.normpath() and abspath()

2021-06-04 Thread Barney Gale
New submission from Barney Gale : >>> os.path.normpath('a/./b/../c//.') 'a/c' >>> pathlib.Path('a/./b/../c//.') PosixPath('a/b/../c') pathlib takes care not to change the meaning of the path when normalising. That means preserving '..' entries, as these can't be simplified without resolving s

[issue44307] date.today() is half as fast as datetime.now().date()

2021-06-04 Thread Anthony Sottile
Anthony Sottile added the comment: @terry.reddy -- I believe your title change makes this more difficult to understand -- ___ Python tracker ___ _

[issue44307] date.today() is half as fast as datetime.now().date()

2021-06-04 Thread Anthony Sottile
Anthony Sottile added the comment: *terry.reedy oops typo! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44310] lru_cache memory leak

2021-06-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue44310] Document that lru_cache uses hard references

2021-06-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Also note that many important objects in Python are not weak referenceable, tuples for example. -- title: lru_cache memory leak -> Document that lru_cache uses hard references ___ Python tracker

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread Chris Jerdonek
Chris Jerdonek added the comment: > MultiLoopChildWatcher must ensures that the event loop is awaken when it > receives a signal by using signal.setwakeup(). This is done by > _UnixSelectorEventLoop.add_signal_handler(). Maybe MultiLoopChildWatcher > could reuse this function, This is the

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

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

[issue42349] Compiler front-end produces a broken CFG

2021-06-04 Thread Dennis Sweeney
Dennis Sweeney added the comment: >From https://devguide.python.org/compiler/#source-code-to-ast: > Basic blocks themselves are a block of IR that has a single entry point but > possibly multiple exit points. In particular, compile.c's label_exception_targets has the assertion (`assert(i ==

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-06-04 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +25128 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26537 ___ Python tracker __

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread mike bayer
mike bayer added the comment: yes, if I have time I will begin to undertake that, wanted to put it up here in case anyone has git bisect on speed dial for cpython. -- ___ Python tracker

[issue44279] doc: contextlib.suppress documentation is imprecise

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

[issue44279] doc: contextlib.suppress documentation is imprecise

2021-06-04 Thread Irit Katriel
Irit Katriel added the comment: New changeset dda9ecbfece28aad7b8ba7eaf7951dd9816f78b1 by Irit Katriel in branch 'main': bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' (GH-26492) https://github.com/python/cpython/commit/dda9ecbfece28aad7b8ba7eaf7951dd9816f78b1

[issue44279] doc: contextlib.suppress documentation is imprecise

2021-06-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +25130 pull_request: https://github.com/python/cpython/pull/26539 ___ Python tracker ___ __

[issue44304] segmentation fault appeared in python 3.10.0b2

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

[issue44279] doc: contextlib.suppress documentation is imprecise

2021-06-04 Thread Irit Katriel
Irit Katriel added the comment: New changeset ea298e1e33eb03b2b4ea2f4556e59b11e3bf240f by Miss Islington (bot) in branch '3.9': bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' (GH-26492) (GH-26539) https://github.com/python/cpython/commit/ea298e1e33eb03b2b4ea2f4556e59b11

[issue44279] doc: contextlib.suppress documentation is imprecise

2021-06-04 Thread Irit Katriel
Irit Katriel added the comment: New changeset 1065ba66b535b786d6dc5f7d912c6486d9a834ae by Miss Islington (bot) in branch '3.10': bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' (GH-26492) (GH-26538) https://github.com/python/cpython/commit/1065ba66b535b786d6dc5f7d912c648

[issue44279] doc: contextlib.suppress documentation is imprecise

2021-06-04 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue44265] Create an MSI Package

2021-06-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue44312] test_asyncio leaked [1533, 1531, 1533] references, sum=4597

2021-06-04 Thread STINNER Victor
STINNER Victor added the comment: > This is caused by: https://bugs.python.org/issue43693 You reverted the change: https://bugs.python.org/issue43693#msg395105 Can this issue be closed in this case? -- ___ Python tracker

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2021-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 8.0 -> 9.0 pull_requests: +25131 pull_request: https://github.com/python/cpython/pull/26541 ___ Python tracker ___

[issue44312] test_asyncio leaked [1533, 1531, 1533] references, sum=4597

2021-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Yep -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

  1   2   >