[issue34861] Improve cProfile standard output

2022-03-16 Thread Roundup Robot


Change by Roundup Robot :


--
nosy: +python-dev
nosy_count: 2.0 -> 3.0
pull_requests: +30020
pull_request: https://github.com/python/cpython/pull/31929

___
Python tracker 

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



[issue46507] enabling cProfile to profile code given as an argument "à la" timeit

2022-03-16 Thread Daniël van Noord

Daniël van Noord  added the comment:

There were some comments on the (now closed) PR associated to this report.

One was about requiring a new flag to tell cProfile to consider the code in 
question code instead of a file path. `-c` was proposed, I presume abbreviating 
`--code`. Is this indeed the way to go? Allow `cProfile` to profile code 
directly by supplying the `-c` or `--code` argument, which indicates that the 
last argument should be considered code instead of a file path?

--
nosy: +danielnoord

___
Python tracker 

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



[issue25804] Make Profile.print_stats support sorting by mutiple values

2022-03-16 Thread Daniël van Noord

Daniël van Noord  added the comment:

@wdv4758h, do you think you will be able to resubmit the patch to Github? This 
would probably still be a useful addition and some review has already been done.

If not, I could pick up the patch and re-submit, but I don't want to take 
credit for your work unnecessarily.

--
nosy: +danielnoord

___
Python tracker 

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



[issue26545] [doc] os.walk is limited by python's recursion limit

2022-03-16 Thread Irit Katriel


Irit Katriel  added the comment:

I agree with Stanley. The documentation for os is clear that recursion is used 
and the documentation for RecursionError links to getrecursionlimit(). This 
seems sufficient.

--
nosy: +iritkatriel
resolution:  -> wont fix
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



[issue46948] [CVE-2022-26488] Escalation of privilege via Windows Installer

2022-03-16 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 2b97cfdce8df9d0d455f65a22b1e0d34a29dc200 by Miss Islington (bot) 
in branch '3.8':
bpo-46948: Fix launcher installer build failure due to first part of fix 
(GH-31920) (GH-31924)
https://github.com/python/cpython/commit/2b97cfdce8df9d0d455f65a22b1e0d34a29dc200


--

___
Python tracker 

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



[issue31327] [doc] Add example of platform-specific support for negative timestamps to the time doc

2022-03-16 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 4d8e08b21ce5d2cc08da82cf9f3ca50d9617cbdc by Miss Islington (bot) 
in branch '3.8':
bpo-31327: Update time documentation to reflect possible errors (GH-31460) 
(GH-31827)
https://github.com/python/cpython/commit/4d8e08b21ce5d2cc08da82cf9f3ca50d9617cbdc


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue45382] platform() is not able to detect windows 11

2022-03-16 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 0b0609d0d1a2f231c94bab2177095dd9a46fc137 by Miss Islington (bot) 
in branch '3.9':
[3.10] bpo-45382: test.pythoninfo logs more Windows versions (GH-30891) 
(GH-30894)
https://github.com/python/cpython/commit/0b0609d0d1a2f231c94bab2177095dd9a46fc137


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue31327] [doc] Add example of platform-specific support for negative timestamps to the time doc

2022-03-16 Thread Irit Katriel


Change by Irit Katriel :


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



[issue46890] getpath problems with framework build

2022-03-16 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

> However, it's the site.py module that actually updates sys.prefix for the 
> venv. So you may just be inspecting at the wrong point? Or possibly it's in a 
> codepath that doesn't run on macOS because *previously* it was being set 
> correctly in getpath instead of being deferred until later?

I just noticed the same. Is this intentional? This means that "python -S" 
doesn't work with a virtual environment. I also noticed that site.py's venv 
support contains some special code for framework builds that shouldn't be 
necessary. But I guess that's something for some other tickets.

I'm pretty sure I now just have to clean up my patch and create a PR from it.

--

___
Python tracker 

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



[issue46890] getpath problems with framework build

2022-03-16 Thread Steve Dower


Steve Dower  added the comment:

> I just noticed the same. Is this intentional?

Honestly, no idea. I just copied how it was designed before, and had 
nothing to do with the original venv implementation.

At a guess, I think virtualenv did everything with a patched site.py, so 
when it was absorbed as venv it was retained. Changing this to calculate 
more in getpath.py was a goal of the rewrite, it just wasn't one that I 
wanted to do at the same time as the conversion, and am not particularly 
motivated to do myself anyway (when I hack install layouts, I don't use 
venvs at all ;) )

--

___
Python tracker 

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



[issue45150] Add a file_digest() function in hashlib

2022-03-16 Thread Christian Heimes


Christian Heimes  added the comment:

Before we continue hacking on an implementation, let's discuss some API design.

- Multiple functions or multiple dispatch (name, fileobj) are confusing to 
users. Let's keep it simple and only implement one function that operates on 
file objects.

- The function should work with most binary file-like including open(..., 
"rb"), BytesIO, SocketIO. mmap.mmap() is not file-like enough. Anon mapping 
doesn't provide a fileno and the mmap object has no readinto().

- The function should accept either digest name, digest constructor, or a 
callable that returns a digest object. The latter makes it possible to reuse 
file_digest() with MAC constructs like HMAC.

- Don't do any I/O in C unless you are prepared to enter a world of pain and 
suffering. It's hard to get it right across platforms. For example your C code 
does not work for SocketIO on Windows.

- If we decide to implement an accelerator in C, then we don't have to bother 
with our fallback copies like _sha256module.c. They are slow and only used when 
OpenSSL is not available.

--
assignee: tarek -> christian.heimes

___
Python tracker 

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



[issue45150] Add a file_digest() function in hashlib

2022-03-16 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +30021
pull_request: https://github.com/python/cpython/pull/31930

___
Python tracker 

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



[issue35212] Expressions with format specifiers in f-strings give wrong code position in AST

2022-03-16 Thread Daniël van Noord

Daniël van Noord  added the comment:

This was fixed by https://github.com/python/cpython/pull/27729.

On 3.10:
```console
>>> ast.parse("f'{a}'").body[0].value.values[0].value.col_offset
3
>>> ast.parse("f'{a:b}'").body[0].value.values[0].value.col_offset
3
```

The other issue also no longer reproduces.

--
message_count: 3.0 -> 4.0
nosy: +danielnoord
nosy_count: 5.0 -> 6.0
pull_requests: +30022
pull_request: https://github.com/python/cpython/pull/27729

___
Python tracker 

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



[issue43253] asyncio open_connection fails when a socket is explicitly closed

2022-03-16 Thread Maximilian Hils


Maximilian Hils  added the comment:

Thank you for the super quick turnaround.
My heart goes out to you and everyone else in Ukraine.

--

___
Python tracker 

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



[issue47032] CI does not detect launcher installer build failure

2022-03-16 Thread Steve Dower


Change by Steve Dower :


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



[issue46948] [CVE-2022-26488] Escalation of privilege via Windows Installer

2022-03-16 Thread Steve Dower


Change by Steve Dower :


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



[issue35212] Expressions with format specifiers in f-strings give wrong code position in AST

2022-03-16 Thread Eric V. Smith


Change by Eric V. Smith :


--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> Incorrect exception highlighting for fstring format

___
Python tracker 

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



[issue2604] doctest.DocTestCase fails when run repeatedly

2022-03-16 Thread Roundup Robot


Change by Roundup Robot :


--
nosy: +python-dev
nosy_count: 5.0 -> 6.0
pull_requests: +30023
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/31932

___
Python tracker 

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



[issue9736] doctest.DocTestSuite doesn't handle test globs correctly

2022-03-16 Thread Roundup Robot


Change by Roundup Robot :


--
nosy: +python-dev
nosy_count: 4.0 -> 5.0
pull_requests: +30024
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/31932

___
Python tracker 

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



[issue2604] doctest.DocTestCase fails when run repeatedly

2022-03-16 Thread Daniël van Noord

Daniël van Noord  added the comment:

I have created a PR that combines the patch here with the patch from issue9736.

--
nosy: +danielnoord

___
Python tracker 

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



[issue46329] Split up the CALL_NO_KW and CALL_KW instructions.

2022-03-16 Thread Mark Shannon


Change by Mark Shannon :


--
pull_requests: +30025
pull_request: https://github.com/python/cpython/pull/31933

___
Python tracker 

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



[issue47025] bytes do not work on sys.path

2022-03-16 Thread Thomas Grainger


Thomas Grainger  added the comment:

> I'd advocate for not supporting bytes paths and instead updating the 
> documentation to require strings.

I've got PR GH-31934 started to do this

--
message_count: 8.0 -> 9.0
pull_requests: +30026
pull_request: https://github.com/python/cpython/pull/31934

___
Python tracker 

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



[issue47034] pickle not working correctly when custom field is directly initialized by constructors

2022-03-16 Thread jeffersonqin


New submission from jeffersonqin <1247006...@qq.com>:

For the following code piece:

```
import pickle

class Child:
def __init__(self, field):
self.field = field

class Parent:
child = Child(0.5)

if __name__ == '__main__':
i = input()
if i == 'd':
parent = Parent()
parent.child.field = 0.6
pickle.dump(parent, open('test.pkl', 'wb+'))
else:
parent = pickle.load(open('test.pkl', 'rb'))
print(parent.child.field)
```

After dumping, when we load the file throught `pickles.load`, 
`parent.child.field` is 0.5, and is not 0.6, which we intend it to be.

However, after removing the line `child = Child(0.5)` and moving it to 
`__init__(self)` of `Parent`, everything works fine.

I'm not sure whether this is indeed an issue. If not, sorry for take your time.

--
components: Library (Lib)
files: test.py
messages: 415341
nosy: jeffersonqin
priority: normal
severity: normal
status: open
title: pickle not working correctly when custom field is directly initialized 
by constructors
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file50682/test.py

___
Python tracker 

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



[issue47035] Rewrite asyncio queue tests with IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


New submission from Andrew Svetlov :

It can help with future maintenance a lot.  Current tests are cumbersome.

--
components: asyncio
messages: 415342
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Rewrite asyncio queue tests with IsolatedAsyncioTestCase
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

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



[issue46890] getpath problems with framework build

2022-03-16 Thread Eryk Sun


Eryk Sun  added the comment:

> This means that "python -S" doesn't work with a virtual environment. 

Does that matter? I've only used a virtual environment to override or extend 
the system site packages. Is there a reason to use one without site packages?

--
nosy: +eryksun

___
Python tracker 

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



[issue47035] Rewrite asyncio queue tests with IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
keywords: +patch
pull_requests: +30027
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/31935

___
Python tracker 

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



[issue46180] Button clicked failed when mouse hover tooltip and tooltip destroyed

2022-03-16 Thread PySimpleGUI


PySimpleGUI  added the comment:

We've been able to verify this is a problem on Windows, Mac and Linux using the 
code that Jason posted earlier.

Here's a video of the behavior on Linux.  The problem you'll see is that button 
click events stop being generated.

I'm hoping this is a symptom of a larger problem as there are other problems 
we've seen on 8.6.12.  This is unusual as tkinter has been rock solid since 
I've been using it over the past few years.

https://user-images.githubusercontent.com/46163555/158422534-964b7edb-f845-468b-adba-57f9139009c4.mp4

--

___
Python tracker 

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



[issue46939] Specialize calls for Python classes

2022-03-16 Thread Ken Jin


Change by Ken Jin :


--
pull_requests: +30028
pull_request: https://github.com/python/cpython/pull/31936

___
Python tracker 

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



[issue47034] pickle not working correctly when custom field is directly initialized by constructors

2022-03-16 Thread Eric V. Smith


Eric V. Smith  added the comment:

child is not an attribute of a Parent instance, but rather of the Parent class. 
So it's not going to be saved when you dump "parent", which is an instance of 
Parent.

I'm not sure what you're doing when you create a Parent.__init__ method, but 
presumably setting self.child, which will then create an instance attribute 
which will get saved by pickle.

--
nosy: +eric.smith

___
Python tracker 

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



[issue46890] getpath problems with framework build

2022-03-16 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

venv requiring site isn't really a problem, although it is a bit weird that 
sys.prefix changes when using the -S flag.

--

___
Python tracker 

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



[issue47035] Rewrite asyncio queue tests with IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
versions:  -Python 3.10, Python 3.9

___
Python tracker 

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



[issue47035] Rewrite asyncio queue tests with IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


Change by Andrew Svetlov :


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



[issue47034] pickle not working correctly when custom field is directly initialized by constructors

2022-03-16 Thread jeffersonqin


jeffersonqin <1247006...@qq.com> added the comment:

Thanks! This fully answers my question. Sorry, but I've got another question 
regards to your answer. It is that when I deal with other fields in class 
Parent similar to child, with the only difference is that their types are 
builtin types such as integer and boolean, everything works fine and can be 
correctly serialized after been modified. What's the difference between these 
two cases?
Again, sorry for disturbing and thanks a lot for your detailed answer.

--

___
Python tracker 

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



[issue46769] Improve documentation for `typing.TypeVar`

2022-03-16 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:


New changeset 81b425d4dc43b60dd11a3e9abc5c84a4b8b384db by Alex Waygood in 
branch 'main':
bpo-46769: Improve documentation for `typing.TypeVar` (GH-31712)
https://github.com/python/cpython/commit/81b425d4dc43b60dd11a3e9abc5c84a4b8b384db


--

___
Python tracker 

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



[issue47034] pickle not working correctly when custom field is directly initialized by constructors

2022-03-16 Thread Eric V. Smith


Eric V. Smith  added the comment:

You're probably doing something like:

parent.i = 3

instead of:

parent.child.field = 0.6

In the first one, you're setting an instance attribute on parent, on the 
second, you're modifying an attribute of the class attribute.

In any event, there's no bug here, so I'm going to close this. If you have 
followup questions, I suggest you use the python-list mailing list or 
https://discuss.python.org/c/users

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



[issue47029] Fix a BrokenPipeError when a multiprocessing.Queue is garbage collected

2022-03-16 Thread Géry

Géry  added the comment:

I forgot to include the output of the above program:

```
Traceback (most recent call last):
  File 
"/usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/queues.py",
 line 251, in _feed
send_bytes(obj)
  File 
"/usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/connection.py",
 line 205, in send_bytes 
self._send_bytes(m[offset:offset + size])
  File 
"/usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/connection.py",
 line 416, in _send_bytes 
self._send(header + buf)
  File 
"/usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/connection.py",
 line 373, in _send
n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe
```

--

___
Python tracker 

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



[issue45979] Fix Tkinter tests with old Tk

2022-03-16 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +30029
pull_request: https://github.com/python/cpython/pull/31938

___
Python tracker 

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



[issue38435] Start the deprecation cycle for subprocess preexec_fn

2022-03-16 Thread Mark Mentovai


Mark Mentovai  added the comment:

Another use case for preexec_fn: establishing a new controlling terminal, 
typically in conjunction with start_new_session=True. A preexec_fn may do 
something like

os.close(os.open(os.ttyname(sys.stdin.fileno(), os.O_RDWR)))

with discussion at 
https://chromium-review.googlesource.com/c/chromium/src/+/3524204/comments/59f03e7c_f103cd7e.

--
nosy: +markmentovai

___
Python tracker 

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



[issue47036] Nested list in Dict, multiprocessing manager

2022-03-16 Thread munky


New submission from munky :

Sorry for this post but I found an unusual behaviour.

from multiprocessing import Manager
manager = Manager()

managerdict = manager.dict()

managerdict["first"]= {"stat" : [0,1]}

managerdict["first"]["stat"][0] += 1
managerdict["first"]["stat"][1] += 1

print(managerdict)

anotherdict = {}
anotherdict['foo'] = {"stat" : [0, 1]}
anotherdict['foo']["stat"][0] += 1
anotherdict['foo']["stat"][1] += 1

print(anotherdict)

Which outputs:

{'first': {'stat': [0, 1]}}
{'foo': {'stat': [1, 2]}}

What am I doing wrong?

Thanks!

--
components: Library (Lib)
messages: 415353
nosy: munky9
priority: normal
severity: normal
status: open
title: Nested list in Dict, multiprocessing manager
type: behavior

___
Python tracker 

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



[issue30080] Add the --duplicate option for timeit

2022-03-16 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> rejected
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



[issue45979] Fix Tkinter tests with old Tk

2022-03-16 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset dbbe4d2d0075fa0e95b069fb4780d79aae3514c7 by Serhiy Storchaka in 
branch 'main':
bpo-45979: Fix Tkinter tests with old Tk (>= 8.5.12) (GH-31938)
https://github.com/python/cpython/commit/dbbe4d2d0075fa0e95b069fb4780d79aae3514c7


--

___
Python tracker 

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



[issue46817] Add a line-start table to the code object.

2022-03-16 Thread Brandt Bucher


Change by Brandt Bucher :


--
nosy: +brandtbucher

___
Python tracker 

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



[issue47036] Nested list in Dict, multiprocessing manager

2022-03-16 Thread munky


Change by munky :


--
resolution:  -> duplicate
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



[issue47037] Build problems on Windows

2022-03-16 Thread Terry J. Reedy


New submission from Terry J. Reedy :

3.11 apparently builds without error, and 'python' and 'python -m idlelib' 
appears to start normally, but there is a new problem.
  python -m test
raises OS box with 'Debug Assertion Failed!', program python_d.exe,
File minkernal\crts\ucrt\src\time\wcsftime.exe
Line 1184, expression false.
Dismiss box and a few tests run until box repeats and Command Prompt eventually 
locks.
...test test_idle finished OK once after dismissing box.  On retry, test ran OK 
but CP locked instead of showing new prompt.

3.10 and 3.9 (but not 3.11): compiling show a newish warning.
  pythonw.vcxproj -> f:\dev\310\PCbuild\amd64\pythonw_d.exe
  pythonw.vcxproj -> f:\dev\310\PCbuild\amd64\pythonw_d.pdb (Full PDB)
f:\dev\310\PCbuild\pythoncore.vcxproj(554,5): warning : A copy of 
vcruntime140.dll is also required

Does not 3.11 also require this? (wherever it is supposed to be?).  Aside from 
the warning, 3.10 appear to be working normally.  There is no error box when 
starting tests and 50 have run so far without a box.

--
components: Build, Windows
messages: 415355
nosy: lukasz.langa, pablogsal, paul.moore, steve.dower, terry.reedy, 
tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Build problems on Windows
type: compile error
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

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



[issue45979] Fix Tkinter tests with old Tk

2022-03-16 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 3.0 -> 4.0
pull_requests: +30030
pull_request: https://github.com/python/cpython/pull/31940

___
Python tracker 

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



[issue46769] Improve documentation for `typing.TypeVar`

2022-03-16 Thread Alex Waygood


Change by Alex Waygood :


--
pull_requests: +30031
pull_request: https://github.com/python/cpython/pull/31941

___
Python tracker 

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



[issue45979] Fix Tkinter tests with old Tk

2022-03-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +30032
pull_request: https://github.com/python/cpython/pull/31939

___
Python tracker 

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



[issue45150] Add a file_digest() function in hashlib

2022-03-16 Thread Aur Saraf


Aur Saraf  added the comment:

I don't think HMAC of a file is a common enough use case to support, but I have 
absolutely no problem conceding this point, the cost of supporting it is very 
low.

I/O in C is a world of pain in general. In the specific case of `io.RawIOBase` 
objects (non-buffered binary files) to my understanding it's not _that_ 
terrible (am I right? Does my I/O code work as-is?). To my understanding, 
providing a fast path *just for this case* that calculates the hash without 
taking the GIL for every chunk would be very nice to have for many use cases.

Now, we could just be happy with `file_digest()` having an `if` for 
`isinstance(io.RawIOBase)` that chooses a fast code path silently. But since 
non-buffered binary files are so hard to tell apart from other types of 
file-like objects, as a user of this code I would like to have a way to say "I 
want the fast path, please raise if I accidentally passed the wrong things and 
got the regular path". We could have `file_digest('sha256', open(path, 'rb', 
buffered=0), ensure_fast_io=True)`, but I think for this use case 
`raw_file_digest('sha256', open(path, 'rb', buffered=0))` is cleaner.

In all other cases you just call `file_digest()`, probably get the Python I/O 
and not the C I/O, and are still happy to have that loop written for you by 
someone who knows what they're doing.

For the same reason I think the fast path should only support hash names and 
not constructors/functions/etc', which would complicate it because 
new-object-can-be-accessed-without-GIL wouldn't necessarily apply.

Does this make sense?

--

___
Python tracker 

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



[issue47037] Build problems on Windows

2022-03-16 Thread Steve Dower


Steve Dower  added the comment:

This sounds more like recent installation changes on your machine. Have 
you updated Visual Studio or something like that? Perhaps the debug UCRT 
has gone missing.

I'm not aware of any recent compilation changes that would cause this.

--

___
Python tracker 

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



[issue47037] Build problems on Windows

2022-03-16 Thread Tim Peters


Tim Peters  added the comment:

Actually, I see this ('Debug Assertion Failed!' in the same spot) every time I 
try to run the test suite with a debug build, starting yesterday.

Didn't have time to track it down. It _appeared_ to an obscure consequence of 
this commit:

"""
$ git log timemodule.c
commit a4674f0194067a801f6c6bdb4fc6448e3a40e069
Author: Christian Heimes 
Date:   Tue Mar 15 22:55:35 2022 +0200

bpo-40280: Detect presence of time.tzset and thread_time clock (GH-31898)
"""

--
nosy: +tim.peters

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


New submission from Andrew Svetlov :

It simplifies future maintenance.

--
components: Tests, asyncio
messages: 415359
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
keywords: +patch
pull_requests: +30033
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/31942

___
Python tracker 

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



[issue47037] Build problems on Windows

2022-03-16 Thread Tim Peters


Tim Peters  added the comment:

BTW, the frequency of this new failure mode appears to be vastly increased if 
running the debug tests with "-j0". For example, the box popping up is reliably 
the very first sign of life if I run this from the PCBuild directory:

rt -q -d -j0

--

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset dd0082c627713634c7fd88ad33d18b5cc9f4a7b8 by Andrew Svetlov in 
branch 'main':
bpo-47038: Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase 
(GH-31942)
https://github.com/python/cpython/commit/dd0082c627713634c7fd88ad33d18b5cc9f4a7b8


--

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +30034
pull_request: https://github.com/python/cpython/pull/31943

___
Python tracker 

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



[issue47037] Build problems on Windows

2022-03-16 Thread Eryk Sun


Eryk Sun  added the comment:

bpo-46587 added top-level code to "Lib/test/support/__init__.py" to check 
whether time.strftime("%4Y") works. Since "Lib/test/libregrtest/setup.py" 
imports the support module, that code executes before suppress_msvcrt_asserts() 
is called by setup_tests().

--
nosy: +eryksun

___
Python tracker 

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



[issue47037] Build problems on Windows

2022-03-16 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

indeed, bisected to

2cf7f865f099db11cc6903b334d9c376610313e8 is the first bad commit
commit 2cf7f865f099db11cc6903b334d9c376610313e8
Author: Christian Heimes 
Date:   Tue Mar 15 11:41:04 2022 +0200

bpo-46587: Skip tests if strftime does not support glibc extension 
(GH-31873)

Co-authored-by: Victor Stinner 

--
nosy: +Dennis Sweeney

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
pull_requests: +30035
pull_request: https://github.com/python/cpython/pull/31944

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 4186dd662cf22613b21af948163978af4243a8d6 by Miss Islington (bot) 
in branch '3.10':
bpo-47038: Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase 
(GH-31942) (GH-31943)
https://github.com/python/cpython/commit/4186dd662cf22613b21af948163978af4243a8d6


--

___
Python tracker 

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



[issue47037] Build problems on Windows

2022-03-16 Thread Christian Heimes


Christian Heimes  added the comment:

Ouch, is Python crashes because of an unsupported strftime call?

--
nosy: +christian.heimes

___
Python tracker 

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



[issue47037] Build problems on Windows

2022-03-16 Thread Tim Peters


Tim Peters  added the comment:

Christian, yes, but only in a debug build. See Eryk Sun's message a bit above: 
the machinery to prevent this is already present, but isn't getting called 
early enough.

--

___
Python tracker 

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



[issue47037] Build problems on Windows

2022-03-16 Thread Christian Heimes


Change by Christian Heimes :


--
keywords: +patch
pull_requests: +30036
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/31945

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 3244659521798417810100904f39ae5dabe60a7f by Andrew Svetlov in 
branch '3.9':
[3.9] bpo-47038: Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase 
(GH-31942). (GH-31944)
https://github.com/python/cpython/commit/3244659521798417810100904f39ae5dabe60a7f


--

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


Change by Andrew Svetlov :


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



[issue47037] Build problems on Windows

2022-03-16 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Re the 3.9/3.10 warnings: I have not intentionally touched my C install in 
years.  I don't know what Windows' updates do (most recently yesterday) .  I 
presume vcruntime140.dll is on my C: ssd, which has shown no problems.  Debug 
runs w/o -j0 normally take about 18 minutes.  After 51 minutes, the 3.10 test 
run froze CP (as in, had to close with [X] and reopen).  Output ends with

"0:51:02 load avg: 0.01 [407/427] test_winconsoleio




Ä^Z"

--

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

test_cancel_blocking_wait_for() / test_cancel_wait_for() is not converted still.

--
resolution: fixed -> 
stage: resolved -> 
status: closed -> open

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
pull_requests: +30037
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/31946

___
Python tracker 

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



[issue47037] Build problems on Windows

2022-03-16 Thread Eryk Sun


Eryk Sun  added the comment:

> Ouch, is Python crashes because of an unsupported strftime call?

It's not a crash. It's a CRT error report dialog, which is enabled by default 
for the _CRT_ASSERT and _CRT_ERROR macros in debug builds. This dialog can be 
helpful when debugging interactively. It gives a developer the option to abort, 
retry, or ignore. If a debugger is attached, the retry option breaks into the 
debugger. I attached a debugger to the test runner to diagnose the problem with 
format code "%4Y". For example:

>>> time.strftime('%4Y')
Debug Assertion Failed!
[...]
(Press Retry to debug the application)
(1a6c.101c): Break instruction exception - code 8003 (first chance)
ucrtbased!_Wcsftime_l+0x5af:
7ff8`a582b9af cc  int 3

backtrace:

0:000> kc 4
Call Site
ucrtbased!_Wcsftime_l
ucrtbased!_Strftime_l
ucrtbased!strftime
python311_d!time_strftime

locals:

0:000> dv
  _Expr_val = 0n0
 string = 0x0226`fe38d1c0 ""
   max_size = 0x400
 format = 0x0226`fe37e7d0 "%4Y"
timeptr = 0x0041`c1feeda0
lc_time_arg = 0x`
 locale = 0x`
  locale_update = class _LocaleUpdate
  format_it = 0x0226`fe37e7d2 "4Y"
  remaining = 0x400
lc_time = 0x7ff8`a5868550
 failed = true
  string_it = 0x0226`fe38d1c0 ""

resume, with the STATUS_BREAKPOINT (0x8003) exception handled:

0:000> gh
Traceback (most recent call last):
  File "", line 1, in 
ValueError: Invalid format string
>>> 


For non-interactive testing the report mode needs to be configured to 0 (no 
report) or to report to stderr. For example:

>>> msvcrt.CrtSetReportMode(msvcrt.CRT_ERROR, msvcrt.CRTDBG_MODE_FILE)
4
>>> msvcrt.CrtSetReportFile(msvcrt.CRT_ERROR, msvcrt.CRTDBG_FILE_STDERR)
18446744073709551615
>>> os.abort()
abort() has been called

For time.strftime('%4Y'), the source of the report is _VALIDATE_RETURN(false, 
EINVAL, 0) in _Wcsftime_l(). This macro includes an _ASSERT_EXPR(expr, msg) 
check. In a debug build, this calls _CrtDbgReportW(_CRT_ASSERT, ...) if the 
expression is false. If the latter returns 1 (retry), the __debugbreak() 
intrinsic is called to break into the debugger. To suppress the dialog, either 
temporarily set the CRT_ASSERT report mode to 0, or set it to report to stderr. 
For example:

>>> msvcrt.CrtSetReportMode(msvcrt.CRT_ASSERT, msvcrt.CRTDBG_MODE_FILE)
4
>>> msvcrt.CrtSetReportFile(msvcrt.CRT_ASSERT, msvcrt.CRTDBG_FILE_STDERR)
18446744073709551615

>>> time.strftime('%4Y')
minkernel\crts\ucrt\src\appcrt\time\wcsftime.cpp(1163) : Assertion failed: 
false
Traceback (most recent call last):
  File "", line 1, in 
ValueError: Invalid format string

--

___
Python tracker 

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



[issue40280] Consider supporting emscripten/webassembly as a build target

2022-03-16 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +30038
pull_request: https://github.com/python/cpython/pull/31947

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 3dd9bfac04d3dcdbfd3f8011a6c9d4b9ac8c116a by Andrew Svetlov in 
branch 'main':
bpo-47038: Rewrite missed asyncio.wait_for test to use IsolatedAnsyncioTestCase 
(GH-31946)
https://github.com/python/cpython/commit/3dd9bfac04d3dcdbfd3f8011a6c9d4b9ac8c116a


--

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +30039
pull_request: https://github.com/python/cpython/pull/31948

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +30040
pull_request: https://github.com/python/cpython/pull/31949

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread miss-islington


miss-islington  added the comment:


New changeset 0412e3ae03a694af1e27d4af61ca503a6513394d by Miss Islington (bot) 
in branch '3.9':
bpo-47038: Rewrite missed asyncio.wait_for test to use IsolatedAnsyncioTestCase 
(GH-31946)
https://github.com/python/cpython/commit/0412e3ae03a694af1e27d4af61ca503a6513394d


--

___
Python tracker 

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



[issue47039] Normalize asyncio future and task repr()

2022-03-16 Thread Andrew Svetlov


New submission from Andrew Svetlov :

Return `...` in the case of recursive representation.

Now the only result is replaced with `...`, all other future properties are 
still printed.  
It doesn't follow `repr()` for other stdlib objects.

--
components: asyncio
messages: 415375
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Normalize asyncio future and task repr()
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



[issue47039] Normalize asyncio future and task repr()

2022-03-16 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
keywords: +patch
pull_requests: +30041
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/31950

___
Python tracker 

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



[issue1573931] WSGI, cgi.FieldStorage incompatibility

2022-03-16 Thread Irit Katriel


Irit Katriel  added the comment:

cgi/cgitb are deprecated as per PEP 594, so there won't be further enhancements 
to them.

--
nosy: +iritkatriel
resolution:  -> wont fix
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



[issue24080] asyncio.Event.wait() Task was destroyed but it is pending

2022-03-16 Thread Irit Katriel


Change by Irit Katriel :


--
nosy: +asvetlov

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 36f62c55759c4246f969f60f7470ba756f77b268 by Miss Islington (bot) 
in branch '3.10':
bpo-47038: Rewrite missed asyncio.wait_for test to use IsolatedAnsyncioTestCase 
(GH-31946) (#31948)
https://github.com/python/cpython/commit/36f62c55759c4246f969f60f7470ba756f77b268


--

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
pull_requests: +30042
pull_request: https://github.com/python/cpython/pull/31951

___
Python tracker 

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



[issue45116] Performance regression 3.10b1: inlining issue in the big _PyEval_EvalFrameDefault() function with Visual Studio (MSC)

2022-03-16 Thread Guido van Rossum


Guido van Rossum  added the comment:

I can't yet confirm a regression in 3.11 (the main branch, currently) compared 
to 3.10. See my adventures in 
https://github.com/faster-cpython/ideas/discussions/315.

--

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset a7c54148322781cb0f332d440a3454d550ef6414 by Andrew Svetlov in 
branch 'main':
bpo-47038: Increase a test timeout for slow CI machines (GH-31951)
https://github.com/python/cpython/commit/a7c54148322781cb0f332d440a3454d550ef6414


--

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +30043
pull_request: https://github.com/python/cpython/pull/31952

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread miss-islington


Change by miss-islington :


--
pull_requests: +30044
pull_request: https://github.com/python/cpython/pull/31953

___
Python tracker 

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



[issue47039] Normalize asyncio future and task repr()

2022-03-16 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 30b5d41fabad04f9f34d603f1ce2249452c18c71 by Andrew Svetlov in 
branch 'main':
bpo-47039: Normalize repr() of asyncio future and task objects (GH-31950)
https://github.com/python/cpython/commit/30b5d41fabad04f9f34d603f1ce2249452c18c71


--

___
Python tracker 

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



[issue47039] Normalize asyncio future and task repr()

2022-03-16 Thread Andrew Svetlov


Change by Andrew Svetlov :


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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread miss-islington


miss-islington  added the comment:


New changeset 4e9bb27eaeb8bedcec6f25f4345824b50fc25337 by Miss Islington (bot) 
in branch '3.9':
bpo-47038: Increase a test timeout for slow CI machines (GH-31951)
https://github.com/python/cpython/commit/4e9bb27eaeb8bedcec6f25f4345824b50fc25337


--

___
Python tracker 

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



[issue47038] Rewrite asyncio.wait_for test to use IsolatedAsyncioTestCase

2022-03-16 Thread miss-islington


miss-islington  added the comment:


New changeset ba76f901923d80ad9b24bb1636aa751d55e0c768 by Miss Islington (bot) 
in branch '3.10':
bpo-47038: Increase a test timeout for slow CI machines (GH-31951)
https://github.com/python/cpython/commit/ba76f901923d80ad9b24bb1636aa751d55e0c768


--

___
Python tracker 

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



[issue22859] unittest.TestProgram.usageExit no longer invoked

2022-03-16 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:


New changeset 7c353b7594545fb9403b3123a17ad06cadc2f73d by Carlos Damazio in 
branch 'main':
bpo-22859: deprecate unittest.main.TestProgram.usageExit (GH-30293)
https://github.com/python/cpython/commit/7c353b7594545fb9403b3123a17ad06cadc2f73d


--

___
Python tracker 

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



[issue22859] unittest.TestProgram.usageExit no longer invoked

2022-03-16 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:

It is now marked deprecated, to be removed in 3.13.

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



[issue46480] Implement typing.assert_type

2022-03-16 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:


New changeset 96568e995d840c66edb25b6b9d85e4dcccf5a936 by Jelle Zijlstra in 
branch 'main':
bpo-46480: add typing.assert_type (GH-30843)
https://github.com/python/cpython/commit/96568e995d840c66edb25b6b9d85e4dcccf5a936


--

___
Python tracker 

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



[issue46480] Implement typing.assert_type

2022-03-16 Thread Jelle Zijlstra


Change by Jelle Zijlstra :


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



[issue43224] Add support for PEP 646

2022-03-16 Thread Jelle Zijlstra


Change by Jelle Zijlstra :


--
pull_requests: +30045
pull_request: https://github.com/python/cpython/pull/31954

___
Python tracker 

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



[issue47040] Remove an invalid versionchanged in doc

2022-03-16 Thread Ma Lin


New submission from Ma Lin :

Since CPython 3.0.0, the checksums are always truncated to `unsigned int`:
https://github.com/python/cpython/blob/v3.0/Modules/zlibmodule.c#L930
https://github.com/python/cpython/blob/v3.0/Modules/zlibmodule.c#L950

--
assignee: docs@python
components: Documentation, Library (Lib)
messages: 415386
nosy: docs@python, gregory.p.smith, malin
priority: normal
severity: normal
status: open
title: Remove an invalid versionchanged in doc
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

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



[issue47041] requests module parse url failed

2022-03-16 Thread yonghao hu

New submission from yonghao hu :

Run the following code or report an error, and the URL is a normal URL:
'''
python3 -c "import requests;requests.get('http://183.246.199.100:8321')"
'''
Error code:
'''
requests.exceptions.InvalidURL: Failed to parse: 
http://183.246.199.100:8321:8321/SSO/EnrollList
'''

--
components: Parser
messages: 415387
nosy: cc97654321, lys.nikolaou, pablogsal
priority: normal
severity: normal
status: open
title: requests module parse url failed
versions: Python 3.8

___
Python tracker 

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



[issue47040] Remove an invalid versionchanged in doc

2022-03-16 Thread Ma Lin


Change by Ma Lin :


--
keywords: +patch
pull_requests: +30046
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/31955

___
Python tracker 

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



[issue44859] Improve some sqlite3 errors

2022-03-16 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:


New changeset 4674fd4e938eb4a29ccd5b12c15455bd2a41c335 by Erlend Egeberg 
Aasland in branch 'main':
bpo-44859: Raise more accurate exceptions in `sqlite3` (GH-27695)
https://github.com/python/cpython/commit/4674fd4e938eb4a29ccd5b12c15455bd2a41c335


--
nosy: +JelleZijlstra

___
Python tracker 

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