[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 ago so the HEAD is on 
f3fa63ec75fdbb4a08a10957a5c631bf0c4a5970. Don't know if these are fixed already 
but reported them here since there were no commits for any issue based on 
test_asyncio, test_subprocess recently. And most surprisingly I got a timeout 
error also but it was for "2:03:30 load avg: 0.52 running: test_ssl (1 hour 54 
min), test_largefile (1 hour 18 min), test_io (1 hour 30 min)". I attached the 
log for full details. (I use WSL 1 so note it's written ./python.exe instead of 
./python)

--
Added file: https://bugs.python.org/file50092/wsl_log.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 missing backports to 3.9 and 3.10

--
resolution: fixed -> 
stage: resolved -> needs patch
status: closed -> open
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 scrypt. It is supported on most 
Linux distributions, that ship with libxcrypt as a replacement for the glibc 
crypt library: Fedora, Debian, Ubuntu, OpenSUSE and many others.

--
components: Library (Lib)
messages: 395073
nosy: besser82
priority: normal
pull_requests: 25120
severity: normal
status: open
title: Add support for yescrypt in crypt.
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
engineered to notice, and so will not behave as you expect.

As venv's aren't meant to be moved, there's no particular reason to engineer 
for that possibility.

OK to close this issue as "not a bug"?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 colected, all its cache entries expire as unreachable. This 
is not the case.

# Solutions 

1. I think it is worth at least mentioning this behavior in de documentation. 
2. I also think it would be good if the LRU cache actually uses weak 
references. 

I will try to make a PR for this.

--
components: Library (Lib)
messages: 395075
nosy: Wouter De Borger2
priority: normal
severity: normal
status: open
title: lru_cache memory leak
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 identity function is such a function.

>>> f(r'foo\bar') == 'foo\\bar'
True

Nicholas: presumably you're after something more than the identity function. 
Can you clarify what the input and output types to your proposed function would 
be, and then give example input and output values?

--
nosy: +mark.dickinson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, but it failed. If you consider 
that it should be backported, please go ahead :-)
https://github.com/python/cpython/pull/26520#issuecomment-854148173


"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."

I am not convinced that getting an SSLEOFError on Windows is a bug. I cannot 
explain it why 3.10 and main branches behave differently, but I'm not 
interested to investigate.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

  (a) f("\012"), and
  (b) f("\n")?

(And yes, this is a trick question: "\012" and "\n" are the same string.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/sqlite3/test/dbapi.py
index 77fafe0930..d7a3b249ab 100644
--- a/Lib/sqlite3/test/dbapi.py
+++ b/Lib/sqlite3/test/dbapi.py
@@ -555,6 +555,17 @@ def test_last_row_id_insert_o_r(self):
 ]
 self.assertEqual(results, expected)
 
+def test_column_count(self):
+# Check that column count is updated correctly for cached statements
+select = "select * from test"
+res = self.cu.execute(select)
+old_count = len(res.description)
+# Add a new column and execute the cached select query again
+self.cu.execute("alter table test add newcol")
+res = self.cu.execute(select)
+new_count = len(res.description)
+self.assertEqual(old_count - new_count, 1)
+
 
 class ThreadTests(unittest.TestCase):
 def setUp(self):

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 websockets asynchronously, 
but having hard time showing the results of several coins.
 - The desired output example is as follows, being printed at the same time :
```python
XRP-BTC : The most favorable ask price is 0.00023
ETH-BTC : The most favorable ask price is 0.04
LTC-BTC : The most favorable ask price is 0.001
```
- Each line is a result of each websocket, so what I want to do is to merge the 
results of several webscokets

## Code Example

```python
import asyncio
import websockets
import ast
import time
import json

# websocket address for the cryptocurrency exchange OKEx
url = "wss://ws.okex.com:8443/ws/v5/public"

# function to download orderbook data, using websocket asynchronously
async def ws_orderbook5(crypto_pair):
while True:
try:
async with websockets.connect(url) as ws:
channels = [{'channel': 'books5', 'instId': 
f'{crypto_pair}'}]
sub_param = {"op": "subscribe", "args": channels}
sub_str = json.dumps(sub_param)
await ws.send(sub_str)
print(f"send: {sub_str}")
res = await asyncio.wait_for(ws.recv(), timeout=25)

while True:
try:
res = await asyncio.wait_for(ws.recv(), timeout=25)
res = ast.literal_eval(res) 
print(f"{crypto-pair} : Most favorable ask price is 
{res['data'][0]['asks'][0][0]}")

time.sleep(1)

except (asyncio.TimeoutError, 
websockets.exceptions.ConnectionClosed) as e:
try:
await ws.send('ping')
print("")
print("ping")
res = await ws.recv()
continue
except Exception as e:
print("Failure due to an unknown error. Stopped 
working")
break
except Exception as e:
print("Failure due to an unknown error. Try working again")
continue
```

- The variable `res`, which is the data downloaded from OKEx websocket looks 
like the following dictionary, when the argument `crypto_pair` = 'XRP-BTC' .

```python
{'arg': {'channel': 'books5', 'instId': 'XRP-BTC'}, 
 'data': [{'asks': [['0.2585', '4514.84', '0', '2'], 
['0.2586', '5845.946', '0', '5'],
['0.2587', '30306.155', '0', '5'], 
['0.2588', '9974.105', '0', '7'], 
['0.2589', '3104.84', '0', '5']], 
   'bids': [['0.2582', '3988', '0', '2'], 
['0.2581', '23349.817', '0', '4'], 
['0.258', '18735.565', '0', '8'], 
['0.2579', '6429.196', '0', '6'], 
['0.2578', '3492.795', '0', '5']], 
 'instId': 'XRP-BTC', 
 'ts': '1622805157064'}]}
```

- As such what is printed on console is as follows. The argument here, for 
example, is "XRP-BTC" again.

``` python
XRP-BTC : The most favorable ask price is 0.00023
```

- Can anyone tell me how I can merge the result of websockets so that they can 
be printed at the same time?

--
components: asyncio
messages: 395082
nosy: asvetlov, hellojinwoo, yselivanov
priority: normal
severity: normal
status: open
title: How to print results of asyncio websockets at the same time?
type: behavior
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: Changing WinPython 3.9.4 to WinPython 3.7.7 with 
mod_wsgi-4.7.1-cp37-cp37m-win_amd64 and all works fine!

Perhaps it's useful to have a stack trace? Here we are:

**
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819] mod_wsgi (pid=6556): Failed to exec Python script file 
'C:/.../.../.../wsgi.py'.
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819] mod_wsgi (pid=6556): Exception occurred processing WSGI 
script 'C:/.../.../.../wsgi.py'.
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819] Traceback (most recent call last):\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819]   File "C:/.../.../.../wsgi.py", line 19, in \r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819] application = get_wsgi_application()\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819]   File 
"C:\\Winpython\\WPy64-3940\\python-3.9.4.amd64\\lib\\site-packages\\django\\core\\wsgi.py",
 line 13, in get_wsgi_application\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819] return WSGIHandler()\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819]   File 
"C:\\Winpython\\WPy64-3940\\python-3.9.4.amd64\\lib\\site-packages\\django\\core\\handlers\\wsgi.py",
 line 127, in __init__\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819] self.load_middleware()\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819]   File 
"C:\\Winpython\\WPy64-3940\\python-3.9.4.amd64\\lib\\site-packages\\django\\core\\handlers\\base.py",
 line 58, in load_middleware\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819] mw_instance = middleware(adapted_handler)\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819]   File 
"C:\\Users\\mail\\OneDrive\\Dokumente\\Privat\\Python\\Django\\Applications\\groupregister\\middleware\\sessions.py",
 line 54, in __init__\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819] self.user_reg = get_user_model().objects \\\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819]   File 
"C:\\Winpython\\WPy64-3940\\python-3.9.4.amd64\\lib\\site-packages\\django\\db\\models\\query.py",
 line 399, in aggregate\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819] return query.get_aggregation(self.db, kwargs)\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819]   File 
"C:\\Winpython\\WPy64-3940\\python-3.9.4.amd64\\lib\\site-packages\\django\\db\\models\\sql\\query.py",
 line 502, in get_aggregation\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819] result = compiler.execute_sql(SINGLE)\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819]   File 
"C:\\Winpython\\WPy64-3940\\python-3.9.4.amd64\\lib\\site-packages\\django\\db\\models\\sql\\compiler.py",
 line 1173, in execute_sql\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819] cursor = self.connection.cursor()\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819]   File 
"C:\\Winpython\\WPy64-3940\\python-3.9.4.amd64\\lib\\site-packages\\django\\utils\\asyncio.py",
 line 19, in inner\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819] event_loop = asyncio.get_event_loop()\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819]   File 
"C:\\Winpython\\WPy64-3940\\python-3.9.4.amd64\\lib\\asyncio\\events.py", line 
639, in get_event_loop\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819] self.set_event_loop(self.new_event_loop())\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819]   File 
"C:\\Winpython\\WPy64-3940\\python-3.9.4.amd64\\lib\\asyncio\\events.py", line 
659, in new_event_loop\r
[Fri Jun 04 15:31:37.428939 2021] [wsgi:error] [pid 6556:tid 1140] [client 
111.222.333.444:50819] return self._loop_factory()\r
[Fri Jun 0

[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 backwards incompatible change and limiting the cache quite a lot.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 anywhere. So I think your suggestion to amend the docs is an 
improvement, thanks!

--
nosy: +kj, rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

with tempfile.TemporaryFile() as f:
# do stuff

Back to the issue. Your code boils down to:

fd = tempfile.TemporaryFile()
with open(fd.fileno()) as f:
pass
fd = tempfile.TemporaryFile()
fd.seek(0)

You had fd.name rather than fd.fileno(). On *nix, these are the same for a 
TemporaryFile, which has no name. (On Windows, open(fd.name) fails)

What happens? open(fd.fileno()) creates a new file object for the same 
low-level file descriptor. At the end of the with block, this file is closed. 
This is fine, but the object returned by TemporaryFile doesn't know this 
happened.

You then call tempfile.TemporaryFile() again, which opens a new file. The OS 
uses the next available file descriptor, which happens to be the one you just 
closed. THEN, the old TemporaryFile object gets deleted. It doesn't know you 
already closed its file, so it calls close(). On the FD that has just been 
reused.

This has nothing to do with reusing the same name, it's just about what order 
things happen in. This achieves the same effect:

tmp1 = tempfile.TemporaryFile()
os.close(tmp1.fileno())
tmp2 = tempfile.TemporaryFile()
del tmp1
tmp2.seek(0)

Deleting the first file object before creating the second one (like in your 
test_5) solves this problem. I'm not sure why your test_6 works.

As for why id(fd.name) was the same for you? It's because fd.name is just 
fd.fileno() in this case, which is an integer.

TL;DR:
 - having two file objects for the same file descriptor is asking for trouble
 - I'd say "not a bug"

--
nosy: +tjollans

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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_asyncio.test_subprocess.SubprocessMultiLoopWatcherTests.test_cancel_make_subprocess_transport_exec
 -v -F -j20 --timeout=30.0
...
0:00:37 load avg: 10.97 [163] test_asyncio passed -- running: test_asyncio 
(30.9 sec)
test_cancel_make_subprocess_transport_exec 
(test.test_asyncio.test_subprocess.SubprocessMultiLoopWatcherTests) ... ok

--

Ran 1 test in 0.032s

OK
0:00:37 load avg: 10.97 [164] test_asyncio passed -- running: test_asyncio 
(31.0 sec)
test_cancel_make_subprocess_transport_exec 
(test.test_asyncio.test_subprocess.SubprocessMultiLoopWatcherTests) ... ok

--

Ran 1 test in 0.036s

OK
0:00:37 load avg: 10.97 [165/1] test_asyncio crashed (Exit code 1)
test_cancel_make_subprocess_transport_exec 
(test.test_asyncio.test_subprocess.SubprocessMultiLoopWatcherTests) ...
Timeout (0:00:30)!
Thread 0x7fb583cbd740 (most recent call first):
  File "/home/vstinner/python/main/Lib/selectors.py", line 469 in select
  File "/home/vstinner/python/main/Lib/asyncio/base_events.py", line 1845 in 
_run_once
  File "/home/vstinner/python/main/Lib/asyncio/base_events.py", line 595 in 
run_forever
  File "/home/vstinner/python/main/Lib/asyncio/base_events.py", line 628 in 
run_until_complete
  File "/home/vstinner/python/main/Lib/test/test_asyncio/test_subprocess.py", 
line 442 in test_cancel_make_subprocess_transport_exec
...


Test complete in less than 1 second, but sometimes it hangs for at least 30 
seconds.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

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

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 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 latest commits though.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 latest commits though.

Your logs don't show this error. This error is test_asyncio hanging, but in 
your logs the test fails (multiple test do, actually).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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_asyncio failure).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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_collections
test_coroutines test_exceptions test_idle test_import test_inspect
test_modulefinder test_types
== Tests result: FAILURE then FAILURE ==
403 tests OK.
10 slowest tests:
- test_signal: 31 min 10 sec
- test_pydoc: 29 min 41 sec
- test_asyncio: 20 min 3 sec
- test_concurrent_futures: 17 min 35 sec
- test_peg_generator: 13 min 38 sec
- test_gdb: 12 min 20 sec
- test_multiprocessing_spawn: 9 min 33 sec
- test_multiprocessing_forkserver: 6 min 49 sec
- test_nntplib: 6 min 20 sec
- test_multiprocessing_fork: 5 min 41 sec
11 tests failed:
test_asyncgen test_asyncio test_code test_collections
test_coroutines test_exceptions test_idle test_import test_inspect
test_modulefinder test_types
13 tests skipped:
test_devpoll test_ioctl test_kqueue test_msilib test_ossaudiodev
test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio
test_winreg test_winsound test_zipfile64
11 re-run tests:
test_asyncgen test_asyncio test_code test_collections
test_coroutines test_exceptions test_idle test_import test_inspect
test_modulefinder test_types

Example failure:

https://buildbot.python.org/all/#/builders/384/builds/50/steps/5/logs/stdio

--
messages: 395096
nosy: pablogsal, vstinner
priority: normal
severity: normal
status: open
title: test_asyncio leaked [1533, 1531, 1533] references, sum=4597

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: Eric Snow 
Date:   Thu Jun 3 10:28:27 2021 -0600

bpo-43693: Add new internal code objects fields: co_fastlocalnames and 
co_fastlocalkinds. (gh-26388)


https://buildbot.python.org/all/#/builders/384/builds/50/steps/5/logs/stdio




As this is affecting all test, I am proceeding with a revert of commit 
2c1e2583fdc4db6b43d163239ea42b0e8394171f directly to not mask other issues.

--
nosy: +pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

Though this will make things harder for specializing the LOAD_ATTR for modules 
since now the handling of LOAD_METHOD for that case is necessary so for the 
imports that we can infer during the symbol analysis pass, we'll generate 
LOAD_ATTR+CALL_ATTR instead of LOAD_METHOD+CALL_METHOD and hopefully the 
generated code will get specialized via the PEP 659.

Ref: https://github.com/faster-cpython/ideas/issues/55#issuecomment-853101039

--
assignee: BTaskaya
components: Interpreter Core
messages: 395099
nosy: BTaskaya, Mark.Shannon
priority: normal
severity: normal
status: open
title: Generate LOAD_ATTR+CALL_FUNCTION instead of LOAD_METHOD+CALL_METHOD for 
imports
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 affecting your 
system.

> I didn't include this error. 

Sorry Shreyan, but unfortunately I find your messages very confusing. You seem 
to be mixing several different problems and your logs don't seem to be directly 
related to the issue at hand. Please, in the future, add some context to your 
messages if possible.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 find. Some of the issues seem to be related 
to commit 2c1e2583fdc4db6b43d163239ea42b0e8394171f calling _PyCode_GetVarnames 
and _PyCode_GetFreevars without decrementing the reference after use but there 
are more.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/f8f8fcee4d1480970c356eec0f23c326b9fe674d)
 and also might help you to specialize other cases too (e.g importing 
submodules, from concurrent import futures).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/commit/17c4edc4e0692fe55e185755ea8a2f5238f3ef08


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.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


--
nosy: +pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 also fine.)

This doesn't look like a bug in Python, but like a bug in glibc (and Apple's 
libc?) (or Linux?) that is fixed in current versions.

This C program produces the same result - segfault on old Linux, error message 
on new Linux.

#include 
#include 
#include 
#include 

static const char *FRAGMENT =  "abs/";
#define REPEATS 1000

int main()
{
size_t fragment_len = strlen(FRAGMENT);
size_t len = fragment_len * REPEATS;
char *name = malloc(len + 1);
name[len] = '\0';
for (char *p = name; p < name + len; p += fragment_len) {
memcpy(p, FRAGMENT, fragment_len);
}

void *handle = dlopen(name, RTLD_LAZY);
if (handle == NULL) {
printf("Failed:\n%s\n", dlerror());
free(name);
return 1;
} else {
printf("Success.");
dlclose(handle);
free(name);
return 0;
}
}

--
nosy: +tjollans

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/docs/manmaster/man1/openssl-ciphers.html#CIPHER-LIST-FORMAT

Currently at:
https://github.com/python/cpython/blame/main/Doc/library/ssl.rst#L1680

--
assignee: docs@python
components: Documentation
messages: 395108
nosy: cjmayo, docs@python
priority: normal
severity: normal
status: open
title: [doc] SSLContext.set_ciphers() link to OpenSSL cipher list format is 
outdated
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--
nosy: +pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/3f4d801bf907a5fcab50f3b64475d1410b90a80f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
sys *does* have.

When you have questions about using python, please post first to python-list or 
other question-answering forums.

--
nosy: +terry.reedy
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 reason 
is that the hang is closely tied to MultiLoopChildWatcher's documented purpose. 
The only way I could see to fix MultiLoopChildWatcher would change its 
documented behavior and make it the same as SafeChildWatcher, which would 
defeat the purpose of having a separate class: 
https://github.com/python/cpython/pull/20142#issuecomment-712417912
Maybe there is a way to sidestep the hangs in the tests without fixing 
MultiLoopChildWatcher, but I didn't look into that.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 encoding settings.  Use a Start menu icon or

> pyw -m idlelib

'py' works too.  It blocks, but displays the occasional tk/tkinter/IDLE error 
message as sys.__stderr__, etc, are the console stream instead of None.

Long output such as the 240 lines for COMPARISON is, by default, 'squeezed' to 
a little box.  Double click to expand or right click to move it to a separate 
window.

If there is still a problem with garbage in the text, we should try to fix it.

PS: one can select more than one Component, but Documentation usually refers to 
the content, not the means of displaying it.

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 `fromtimestamp` in 
`date.today`, but rather call `date_fromtimestamp` in the fast path. I believe 
that incurs the overhead of creating one additional Python object (an integer), 
but if it's a sufficiently significant speedup, we could possibly refactor 
`date_fromtimestamp` to a version that accepts a C integer and a version that 
accepts a Python integer, then call the version accepting a C integer.

I think this won't give any speedup to `datetime.today`, since `datetime.today` 
will still take the slow path. If we care about this, we *may* be able to 
implement `datetime.today` as an alias for `datetime.now(None)`, assuming there 
are no behavioral differences between the two.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--
assignee: erlendaasland
components: Extension Modules
messages: 395117
nosy: erlendaasland
priority: low
severity: normal
status: open
title: [sqlite3] remove unused connection argument from pysqlite_step()
type: enhancement
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/7459208de194db6222d7e3aa301c2b831dbe566d


--
nosy: +pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.select(), it doesn't matter). I 
guess that the selector is interrupted by a signal (even if asyncio calls 
signal.setinterrupt(SIGCHLD, False)), but since the signal handler doesn't 
raise an exception, the syscall is restarted: see the PEP 475.

I understood that the asyncio event loop only gets the opportunity to call the 
Python signal handler if there is a pending asyncio event (call_soon, 
call_timer, event on a tracked FD, whatever). If the signal arrives when the 
event loop is idle, the Python signal handler will never be called since the 
selector is called with timeout=0 (blocking mode).

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, rather than calling directly signal.signal().

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 ordered for best reading and comprehension speed, and I 
think the above is an improvement.

Ordering for execution speed would instead start with the most frequently true 
conditions.  An advantage of match over 'if' is that patterns are apparently 
easier to re-order or otherwise automatically optimize.

I agree that replacement should only be done when there is significant 
improvement in reading and/or execution speed.  To avoid backport issues, they 
should best be preceded by a check for bug reports and especially PRs that will 
or do affect the same area of code.

The proposal for a general, +- global replacement has been and will be 
rejected. I think that this issue should therefore be closed, fairly soon, as 
such.

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 need to do a manual binary search.  (This is as much 
as I know.)

If you get an OS 'traceback' longer than a dozen line or so, please attach it 
as a file rather than pasting in a message.

--
nosy: +terry.reedy
type:  -> crash

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
symlinks etc.

normpath(), on the other handle, /always/ eliminates '..' entries, which can 
change the meaning of the path.

We could add a new argument to `normpath()` and `abspath()` that leaves '..' 
entries intact. This was closed as "won't fix" back in bpo-2289, but I think 
it's worth re-considering.

This enhancement would be helpful for my longer-term work to make pathlib an 
OOP wrapper of os + os.path, rather than a parallel implementation.

--
components: Library (Lib)
messages: 395122
nosy: barneygale
priority: normal
severity: normal
status: open
title: Support preserving path meaning in os.path.normpath() and abspath()
type: enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 conclusion I came to, too. But changing MultiLoopChildWatcher to 
use loop.add_signal_handler() would contradict the class's documented purpose 
and make it the same as SafeChildWatcher. This is why I think a maintainer 
needs to weigh in. The class's purpose / design might fundamentally not be 
workable. If it can't be made to work, maybe it should be removed or be 
documented as susceptible to hangs.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
== b->b_iused -1);`) that jumps only occur as the last instruction of a block.

Does the devguide need updating, or do I have a misunderstanding?

--
nosy: +Dennis Sweeney

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/1065ba66b535b786d6dc5f7d912c6486d9a834ae


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >