[issue47031] math.nan should note that NANs do not compare equal to anything

2022-03-18 Thread Vedran Čačić

Vedran Čačić  added the comment:

I'm not satisfied with "and" formulation. For all practical purposes, math.nan 
is the "same" object as float('nan'), they just represent two ways of referring 
to it (or constructing it). To me it sounds a bit like "2 and 1+1 are the only 
even prime numbers." I suggest the docs only speak of math.nan here, and 
elsewhere to say that they can also be constructed by float('nan').

--
nosy: +veky

___
Python tracker 

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



[issue47063] SimpleHTTPRequestHandler has hard coded index page list.

2022-03-18 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
nosy: +python-dev
nosy_count: 1.0 -> 2.0
pull_requests: +30076
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/31985

___
Python tracker 

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



[issue47063] SimpleHTTPRequestHandler has hard coded index page list.

2022-03-18 Thread Myron Walker


Myron Walker  added the comment:

I am adding a Github PR for this issue.

--

___
Python tracker 

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



[issue47063] SimpleHTTPRequestHandler has hard coded index page list.

2022-03-18 Thread Myron Walker


New submission from Myron Walker :

SimpleHTTPRequestHandler has hard coded index page list in the send_head 
method.  The fixed hard-coded list means that if you want to have a custom 
index page that is not named "index.htm" or "index.html" then you have to 
override the send_head method.  There is alot of code in send_head so 
overriding it is not optimal just to have a custom indexer filename.

--
components: Library (Lib)
messages: 415534
nosy: Myron Walker
priority: normal
severity: normal
status: open
title: SimpleHTTPRequestHandler has hard coded index page list.
type: enhancement
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



[issue47031] math.nan should note that NANs do not compare equal to anything

2022-03-18 Thread Stanley


Stanley  added the comment:

How does this sound instead? The unequalness is pushed to the front and the 
IEEE part back so it's less likely missed:

Math.nan and float('nan') are never equal to any other value, including 
themselves, as per IEEE 754. Use math.isnan to test for NANs.

--
nosy: +slateny

___
Python tracker 

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



[issue31552] IDLE: Convert browswers to use ttk.Treeview

2022-03-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

ttk.Treeview also has problems, at least on some systems and versions.

https://mail.python.org/pipermail/tkinter-discuss/2022-March/004226.html
HiDPI displays and tkinter [cont]
https://mail.python.org/pipermail/tkinter-discuss/attachments/20220316/843e7076/attachment-0001.png
Apparently on linux.

https://mail.python.org/pipermail/tkinter-discuss/2022-March/004228.html
https://www.tcl.tk/man/tcl/TkCmd/ttk_treeview.html

under "Styling Options'
there is parameter to set the -rowheight
that needs to be defined as

ttk::style configure Treeview \
 -rowheight [expr {[font metrics font -linespace] + 2}]

however I could not find how to call this command, and when
If I do the following

style = ttk.Style()
style.configure("Treeview", rowheight="30")

it works, but it is not dynamic with the font size/dpi

Response has suggestion.

--

___
Python tracker 

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



[issue47056] turtle.write() causes flickering when the tracer is turned off.

2022-03-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

On Win10, running 3.11.0a5+ from command line, upper ABC and boxes flicker when 
strings are displayed.  (When run with from IDLE editor, there is no flicker 
except sometimes when moving  mouse over or off title bar buttons.)  (3.8 only 
gets security fixes.)

--
nosy: +terry.reedy
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.8

___
Python tracker 

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



[issue47054] "SyntaxError: non-default argument follows default argument" confuses

2022-03-18 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
title: "SyntaxError: non-default argument follows default argument" should be 
"parameter" -> "SyntaxError: non-default argument follows default argument" 
confuses

___
Python tracker 

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



[issue47054] "SyntaxError: non-default argument follows default argument" should be "parameter"

2022-03-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Current message same in 3.11 and 3.9, but I am not sure about backporting to 
old parser.  However merges a change, if any, can decide.

--
nosy: +pablogsal, terry.reedy
stage:  -> needs patch
type:  -> behavior
versions: +Python 3.11 -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



[issue47060] importlib.metadata.version can return None

2022-03-18 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

Thanks for the report.

Yes, the issues are related, where .version and .name returning None are 
specific manifestations of the metadata not having that key and the behavior 
being ill-defined.

I haven't yet decided if metadata items being undefined should result in None 
or raise an Exception (maybe KeyError).

For the specific case of a missing Name or Version, however, the packaging spec 
says that these fields are required 
(https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata-specifications),
 so it may be reasonable for the behavior when the specification is not met 
that the resulting behavior would be undefined (i.e. importlib.metadata should 
be able to assume the specification). It's outside the scope of 
importlib.metadata to detect, report, and repair invalid metadata. I would 
welcome and even encourage a third-party package to take on the responsibility 
of validating all distributions in an environment and reporting on 
non-compliant aspects.

In that sense, the type declaration is correct. `.name` and `.version` should 
always return `str` or raise an exception.

This additional example leads me stronger toward the position that 
`.metadata[missing]` should raise a KeyError, which would also fix this issue.

I'd also argue that if the metadata file is missing altogether, that should 
perhaps be a different error. That is, missing metadata is different from null 
metadata. Right now, the two are indistinguishable from the interface.

> I'd expect there to be a PackageNotFoundError raised in this situation

That doesn't sound quite right to me. If there's a `.dist-info` directory, that 
implies a package is present. e.g.:

```
~ $ mkdir foo.dist-info
~ $ py -c "import importlib.metadata as md; print(md.distribution('foo'))"

```

I'm going to ponder this one some more and probably address the `.metadata` 
issue(s) first before making any pronouncements on the best approach here.

--

___
Python tracker 

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



[issue44439] stdlib wrongly uses len() for bytes-like object

2022-03-18 Thread Irit Katriel


Irit Katriel  added the comment:

Can this be closed now or is there anything else to do?

--
nosy: +iritkatriel
status: open -> pending

___
Python tracker 

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



[issue47062] Implement asyncio.Runner context manager

2022-03-18 Thread Andrew Svetlov


Change by Andrew Svetlov :


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

___
Python tracker 

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



[issue47062] Implement asyncio.Runner context manager

2022-03-18 Thread Andrew Svetlov


New submission from Andrew Svetlov :

Sometimes asyncio.run() is not enough.

For example, unittest test case needs to call several async functions (setup, 
test, teardown) from the synchronous code using the same execution context and 
event loop.

The proposal provides the following:

with Runner() as runner:
  runner.run(async_func())

--
components: asyncio
messages: 415527
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Implement asyncio.Runner context manager
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



[issue47054] "SyntaxError: non-default argument follows default argument" should be "parameter"

2022-03-18 Thread Bluenix


Bluenix  added the comment:

Yes I agree, that would be the best.

--

___
Python tracker 

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



[issue47061] Deprecate modules listed in PEP 594

2022-03-18 Thread Brett Cannon


Change by Brett Cannon :


--
priority: normal -> deferred blocker

___
Python tracker 

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



[issue47061] Deprecate modules listed in PEP 594

2022-03-18 Thread Brett Cannon


Brett Cannon  added the comment:

The first PR for documenting the modules is up. Once this gets merged and 
backported I will add a helper function in `warnings` and then make the 
appropriate code changes.

--

___
Python tracker 

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



[issue47061] Deprecate modules listed in PEP 594

2022-03-18 Thread Brett Cannon


Change by Brett Cannon :


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

___
Python tracker 

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



[issue47022] PEP 594: Document removal of asynchat, asyncore and smtpd

2022-03-18 Thread Alex Waygood


Change by Alex Waygood :


--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python
stage: patch review -> backport needed
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



[issue47022] PEP 594: Document removal of asynchat, asyncore and smtpd

2022-03-18 Thread Brett Cannon


Brett Cannon  added the comment:

Merged into `main`, but the backports to 3.10 and 3.9 failed.

--
nosy: +brett.cannon

___
Python tracker 

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



[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2022-03-18 Thread Daniël van Noord

Daniël van Noord  added the comment:

@Bayard Randel, do you want to make this patch into a GitHub PR? If not, I 
could help by doing so and try to get this landed.

--
nosy: +danielnoord

___
Python tracker 

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



[issue47061] Deprecate modules listed in PEP 594

2022-03-18 Thread Barry A. Warsaw


Change by Barry A. Warsaw :


--
nosy: +barry

___
Python tracker 

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



[issue47061] Deprecate modules listed in PEP 594

2022-03-18 Thread Brett Cannon


Change by Brett Cannon :


--
title: Document PEP 594 deprecations -> Deprecate modules listed in PEP 594

___
Python tracker 

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



[issue16845] warnings.simplefilter should validate input

2022-03-18 Thread Daniël van Noord

Daniël van Noord  added the comment:

I have submitted the path by @berker.peksag with one additional test case in a 
new PR.

@nanjekyejoannah I saw you responded to the other PR, but that died down. Would 
you mind taking a look at mine? I'm happy to help land this :)

--
nosy: +danielnoord

___
Python tracker 

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



[issue16845] warnings.simplefilter should validate input

2022-03-18 Thread Roundup Robot


Change by Roundup Robot :


--
nosy: +python-dev
nosy_count: 5.0 -> 6.0
pull_requests: +30073
pull_request: https://github.com/python/cpython/pull/31983

___
Python tracker 

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



[issue47061] Document PEP 594 deprecations

2022-03-18 Thread Brett Cannon


New submission from Brett Cannon :

https://peps.python.org/pep-0594/

The SC has asked that all modules deprecated by PEP 594 have the documented 
deprecation backported. The message should also not have any specific removal 
version to avoid any potential delay, but then making the bugfix-only docs 
incorrect.

- [ ] aifc
- [ ] asynchat: https://bugs.python.org/issue47022
- [ ] asyncore: https://bugs.python.org/issue47022
- [ ] audioop
- [ ] cgi
- [ ] cgitb
- [ ] chunk
- [ ] crypt
- [ ] imghdr
- [ ] msilib
- [ ] nntplib
- [ ] nis
- [ ] ossaudiodev
- [ ] pipes
- [ ] smtpd: https://bugs.python.org/issue47022
- [ ] sndhdr
- [ ] spwd
- [ ] sunau
- [ ] telnetlib
- [ ] uu
- [ ] xdrlib

--
assignee: brett.cannon
components: Library (Lib)
messages: 415521
nosy: brett.cannon
priority: normal
severity: normal
stage: needs patch
status: open
title: Document PEP 594 deprecations
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



[issue47061] Document PEP 594 deprecations

2022-03-18 Thread Brett Cannon


Change by Brett Cannon :


--
dependencies: +PEP 594: Document removal of asynchat, asyncore and smtpd

___
Python tracker 

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



[issue47022] PEP 594: Document removal of asynchat, asyncore and smtpd

2022-03-18 Thread miss-islington


miss-islington  added the comment:


New changeset 77473846439b8a3eae66de1a1cfe931619f38513 by Hugo van Kemenade in 
branch 'main':
bpo-47022: Document asynchat, asyncore and smtpd removals in 3.12 (GH-31891)
https://github.com/python/cpython/commit/77473846439b8a3eae66de1a1cfe931619f38513


--
nosy: +miss-islington

___
Python tracker 

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



[issue433030] SRE: Atomic Grouping (?>...) is not supported

2022-03-18 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
assignee: effbot -> 

___
Python tracker 

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



[issue433030] SRE: Atomic Grouping (?>...) is not supported

2022-03-18 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +30072
pull_request: https://github.com/python/cpython/pull/31982

___
Python tracker 

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



[issue40296] help(list[int]) fails

2022-03-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset a5b7678a67ac99edd50822827b772e7d9afc8e64 by Serhiy Storchaka in 
branch '3.10':
[3.10] bpo-40296: Fix supporting generic aliases in pydoc (GH-30253). (GH-31976)
https://github.com/python/cpython/commit/a5b7678a67ac99edd50822827b772e7d9afc8e64


--

___
Python tracker 

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



[issue40296] help(list[int]) fails

2022-03-18 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue47015] Update tests from asyncore to asyncio

2022-03-18 Thread Oleg Iarygin


Oleg Iarygin  added the comment:

The PR is ready for a review; I sorted out all bugs.

--

___
Python tracker 

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



[issue46114] OpenSSL 3.0 uses different version scheme

2022-03-18 Thread Charalampos Stratakis


Charalampos Stratakis  added the comment:

3.8 builds are still running on the buildbots so not fixing 3.8 will cause them 
to fail.

--
nosy: +cstratak

___
Python tracker 

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



[issue47060] importlib.metadata.version can return None

2022-03-18 Thread Zachary Ware


Change by Zachary Ware :


--
nosy: +jaraco

___
Python tracker 

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



[issue47060] importlib.metadata.version can return None

2022-03-18 Thread David Robertson


New submission from David Robertson :

Originally written up at the typeshed repo: 
https://github.com/python/typeshed/issues/7513. The conclusion was that this is 
a bug in the implementation rather than an incorrect annotation.

To my surprise, I discovered in 
https://github.com/matrix-org/synapse/issues/12223 that it is possible for 
`importlib.metadata.version(...)` to return `None`. To reproduce this:

1. Create a new virtual environment. I'm using CPython 3.10.2 as my interpreter.
2. Within the venv, `pip install bottle`. (Any package will do; I choose 
`bottle` because it's small and doesn't have any dependencies).
3. Check importlib reports the `version` of `bottle`:
   ```python
   >>> import importlib.metadata as m
   >>> m.version('bottle')
   '0.12.19'
   ```
4. Here's the dirty bit: remove the metadata files for that package but keep 
the metadata directory.
   - Use `pip show bottle` to find the `site-packages` location
   - From there, remove all files in the `bottle-VERSION-.dist-info` directory: 
`rm /path/to/site-packages/bottle-VERSION.dist-info/*'.
5. The `version` of `bottle` is now judged to be `None`:
   ```python
   >>> import importlib.metadata as m
   >>> m.version("bottle") is None
   True
   ```
   `pip show bottle` now determines that `bottle` isn't installed:
   ```shell
   $ pip show bottle
   WARNING: Package(s) not found: bottle
   ```

As well as importlib.metadata.version, importlib.metadata.Distribution.version 
and importlib.metadata.Distribution.name return None in this situation.

I couldn't see any suggestion in the stdlib docs 
(https://docs.python.org/3.10/library/importlib.metadata.html#distribution-versions)
 that this was possible. (Aside: it'd be great if the docs mention that 
PackageNotFoundError is raised if a package is not installed.)

No-one in their right mind should do step 4 willingly, but I have seen it 
happen in the wild (https://github.com/matrix-org/synapse/issues/12223). We 
suspected a botched backup or similar was to blame.

I'm not familiar with all the machinery of Python package management, but I 
think I'd expect there to be a PackageNotFoundError raised in this situation? 
(I can imagine a package that doesn't declare its version, where `version()` 
returning `None` might make sense; but that feels odd.) Is the behaviour as 
intended?

It looks like this might be related to 
https://github.com/python/importlib_metadata/issues/371?

--
components: Library (Lib)
messages: 415516
nosy: David Robertson
priority: normal
severity: normal
status: open
title: importlib.metadata.version can return None
type: behavior
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



[issue47059] Mechanism to enable __weakref__ slot on dataclass(slots=True)

2022-03-18 Thread Arie Bovenberg


New submission from Arie Bovenberg :

As discussed in bpo-46382, dataclasses may want to support the __weakref__ slot.

Currently, automatically slotted dataclasses are not given a __weakref__ slot. 
This makes auto-slotted dataclasses incompatible with weakref.

The attrs library has chosen for the following approeach:
- when slots are generated, a __weakref__ slot is added by default
- this may be optionally disabled with the weakref_slot=False flag

See this discussion on why that approach was taken: 
https://github.com/python-attrs/attrs/pull/420

The question for dataclass is: do we want to follow suit? Or perhaps make 
__weakref__ slot opt-in instead of opt-out?

--
components: Library (Lib)
messages: 415515
nosy: ariebovenberg, eric.smith
priority: normal
severity: normal
status: open
title: Mechanism to enable __weakref__ slot on dataclass(slots=True)
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



[issue43224] Add support for PEP 646

2022-03-18 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:


New changeset 3a2b89580ded72262fbea0f7ad24096a90c42b9c by Jelle Zijlstra in 
branch 'main':
bpo-43224: Add TypeVarTuple.__name__ (GH-31954)
https://github.com/python/cpython/commit/3a2b89580ded72262fbea0f7ad24096a90c42b9c


--

___
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-18 Thread Steve Dower


Steve Dower  added the comment:


New changeset d0a91bd277d1122b41d59e8022b596e3b3ae24fe by Steve Dower in branch 
'main':
bpo-47037: Test debug builds on Windows in CI so that native assertions are 
noticed sooner (GH-31965)
https://github.com/python/cpython/commit/d0a91bd277d1122b41d59e8022b596e3b3ae24fe


--

___
Python tracker 

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



[issue47048] Python 3.10.3 + Osx Lion : fatal error (make) signalmodule or more

2022-03-18 Thread Laurent Delphin


Laurent Delphin  added the comment:

I didn't expect to buy in a very next future a new Mac. The main reason 
8s,because I have too much third parties to rebuild, and needing some months to 
spend. But it is forecasted.
Besides, the Compiler Gcc 4.9.4 I built with clang seems working. But with a 
new bug, even though Python is built. 
Thank you very much for your reply.

--

___
Python tracker 

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



[issue46824] use AI_NUMERICHOST | AI_NUMERICSERV to skip getaddrinfo thread in asyncio

2022-03-18 Thread Ben Darnell


Ben Darnell  added the comment:

On MacOS in 2015, getaddrinfo was found to be much slower than inet_pton. 
Unless that's changed, this patch would be a performance regression on that 
platform. Data and benchmark script in 
https://groups.google.com/g/python-tulip/c/-SFI8kkQEj4/m/m1-oCMSABgAJ

--

___
Python tracker 

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



[issue46824] use AI_NUMERICHOST | AI_NUMERICSERV to skip getaddrinfo thread in asyncio

2022-03-18 Thread Ben Darnell


Ben Darnell  added the comment:

To summarize the justification, this patch does two things: it moves an 
optimization from create_connection to getaddrinfo, which makes it apply to 
more callers (including Tornado), and it makes the code simpler and less 
redundant (net reduction of 47 non-test lines in the patch). 

As far as we can tell, the reason it wasn't done this way in the first place is 
that at the time getaddrinfo held a global lock on some platforms, but this is 
no longer true. If there's still some locking in or around getaddrinfo on some 
platforms (or some libc implementations), this patch would be a bad idea. Is 
there a good way to test for that? I suppose we could set up a 
deliberately-slow DNS server and try to call getaddrinfo with AI_NUMERICHOST 
while another thread is blocked talking to that server, but that seems like a 
lot of test infrastructure to build out.

--
nosy: +Ben.Darnell

___
Python tracker 

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



[issue46382] dataclass(slots=True) does not account for slots in base classes

2022-03-18 Thread Arie Bovenberg


Change by Arie Bovenberg :


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

___
Python tracker 

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



[issue45413] Add install scheme for virtual environments

2022-03-18 Thread Filipe Laíns

Filipe Laíns  added the comment:

With PR 31034 merged, we can now mark this as resolved.

As mentioned in the PR, there are still some concerns about maintainability and 
avoiding similar issues to happen in the future. That can be done later, as 
people find time to work on it.

Thanks!

--
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-18 Thread Eryk Sun


Eryk Sun  added the comment:

The main entry point for python[_d].exe should support a command-line -X option 
or environment variable that suppresses Windows error/assert/warn reporting, or 
redirects it to stderr in verbose mode. This would be useful to simplify 
everyone's automated testing. It should require opting in, both for backward 
compatibility and also because the dialogs are useful for interactive testing.

--

___
Python tracker 

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



[issue22628] Idle: Tree lines are spaced too close together.

2022-03-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

We started using ttk widgets in 3.6.  As I said above, the real solution should 
be to use ttk.Treeview.  This is issue 31552.

--
resolution:  -> fixed
status: open -> closed
superseder:  -> IDLE: Convert browswers to use ttk.Treeview

___
Python tracker 

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



[issue31552] IDLE: Convert browswers to use ttk.Treeview

2022-03-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

3. continued. As noted in #22628, idlelib.tree has line spacing and other stuff 
hardcoded so it will not work properly on all monitors.

--

___
Python tracker 

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



[issue44405] add program passed as string to dis module.

2022-03-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Neither of tokenize, ast or symtable modules support passing the source string 
as argument. If add this feature in the dis module, we will need to add it in 
all other modules with similar CLI. I do not think it is practical. You always 
can pass the source string via stdin. And you do not even need to pass 
/dev/stdin as argument, stdin is the default.

I usually use it with rlwrap. It allows to use some editing and history.

rlwrap ./python -m dis

I propose to close this issue and open a new issue for documenting the CLI of 
the dis module.

--

___
Python tracker 

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



[issue46114] OpenSSL 3.0 uses different version scheme

2022-03-18 Thread Miro Hrončok

Miro Hrončok  added the comment:

Ack, will do it downstream-only.

--

___
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-18 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I recompiled, retested, and all tests are ok, with no unexpected box.  Thank 
you all.

The vcruntime warnings are also gone, so I will chalk them up to a onetime 
glitch.

--

___
Python tracker 

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



[issue46114] OpenSSL 3.0 uses different version scheme

2022-03-18 Thread Christian Heimes


Christian Heimes  added the comment:

Correct, I didn't backport this fix and several other OpenSSL 3.0 related fixes 
to Python 3.8 because 3.8 is in security-only mode.

--

___
Python tracker 

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



[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2022-03-18 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.11 -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



[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2022-03-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 4d2099f455229b10f88846dbe9fe6debbee55356 by Serhiy Storchaka in 
branch '3.9':
[3.9] bpo-14156: Make argparse.FileType work correctly for binary file modes 
when argument is '-' (GH-13165) (GH-31979)
https://github.com/python/cpython/commit/4d2099f455229b10f88846dbe9fe6debbee55356


--

___
Python tracker 

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



[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-18 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks for the fix Pablo.

--
priority: release blocker -> 

___
Python tracker 

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



[issue46114] OpenSSL 3.0 uses different version scheme

2022-03-18 Thread Miro Hrončok

Miro Hrončok  added the comment:

3.8 is security only, so I suppose there is no chance of getting the test fixed 
as well?

--
nosy: +hroncok

___
Python tracker 

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



[issue46343] Add PyErr_GetActiveException and PyErr_SetActiveException

2022-03-18 Thread Irit Katriel


Irit Katriel  added the comment:

We should make throw accept an exception instance, the same thing was done in 
the traceback module.

--

___
Python tracker 

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



[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2022-03-18 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +30069
pull_request: https://github.com/python/cpython/pull/31979

___
Python tracker 

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



[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-18 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



[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-18 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 6fd9737373f2bed03f409440b4fd50b9f8f121cb by Pablo Galindo Salgado 
in branch '3.10':
[3.10] bpo-46968: Check for 'sys/auxv.h' in the configure script (GH-31961). 
(GH-31974)
https://github.com/python/cpython/commit/6fd9737373f2bed03f409440b4fd50b9f8f121cb


--

___
Python tracker 

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



[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-18 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset a12ef81231d65da5efbef4fa1434716270a19af6 by Pablo Galindo Salgado 
in branch '3.9':
[3.9] bpo-46968: Check for 'sys/auxv.h' in the configure script (GH-31961). 
(GH-31975)
https://github.com/python/cpython/commit/a12ef81231d65da5efbef4fa1434716270a19af6


--

___
Python tracker 

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



[issue22628] Idle: Tree lines are spaced too close together.

2022-03-18 Thread Jean-Paul Calderone


Jean-Paul Calderone  added the comment:

This is still/again broken, probably because the "fixed" version still 
hard-codes all of the geometry values and these will certainly not be correct 
for all combinations of display dpi, font configuration, etc.

Instead, `TreeNode.draw` and `TreeNode.drawtext` (at least) need to consider 
the size of the children and space them accordingly.

--
nosy: +exarkun
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue47055] `issubclass` on two different subclasses of abstract base class like `os.PathLike` returns unexpected value on early versions of Py3.7 and Py3.8

2022-03-18 Thread Eric V. Smith


Eric V. Smith  added the comment:

Since those releases are no longer supported, I don't think there's any place 
you could put this that would be seen. And we wouldn't want to put a note in a 
current release about a bug in a non-supported version that was fixed in 
another non-supported version.

--
nosy: +eric.smith

___
Python tracker 

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



[issue47058] Skip tests failing on Solaris

2022-03-18 Thread Jakub Kulik


Change by Jakub Kulik :


--
title: Skip tests failing on Solaris worker -> Skip tests failing on Solaris

___
Python tracker 

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



[issue47058] Skip tests failing on Solaris worker

2022-03-18 Thread Jakub Kulik


Change by Jakub Kulik :


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

___
Python tracker 

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



[issue47058] Skip tests failing on Solaris worker

2022-03-18 Thread Jakub Kulik


New submission from Jakub Kulik :

There are several tests failing on the recently added Solaris buildbot worker. 
This Issue aims to fix/skip the to make Solaris green on buildbot.


## test_posix ##


Issues with the `os.sched_get_priority_min`; fix offered here: 
https://bugs.python.org/issue41839

#
## test_shutil ##
#

Issues with `sendfile` being disabled on Solaris (and test suite not being able 
to handle that); fix offered here: https://bugs.python.org/issue41843

#
## test_locale ##
#

Strxfrm does not work in the current implementation due to the difference in 
Solaris locale encoding (most of which was solved with 
https://bugs.python.org/issue43667).

Internally we have fixed this issue with:
https://github.com/oracle/solaris-userland/blob/master/components/python/python39/patches/24-strxfrm-fix.patch

But this idea was previously rejected in https://bugs.python.org/issue16258

Because of that, those tests are skipped on Solaris in the attached PR.

#
## test_re ##
#

On SPARC there are some weird matches in some regexes:
Traceback (most recent call last):
  File ".../build/Lib/test/test_re.py", line 1907, in test_locale_caching
self.check_en_US_utf8()
  File ".../build/Lib/test/test_re.py", line 1924, in check_en_US_utf8
self.assertIsNone(re.match(b'\xc5', b'\xe5', re.L|re.I))
AssertionError:  is not None

I have no idea why this is happening. I presume it is locale related, but I 
didn't find anything problematic yet.

The simplest way to reproduce this is (meaning that this probably isn't caching 
related):
```
import locale
import re

locale.setlocale(locale.LC_CTYPE, 'en_US.utf8')
print(re.match(b'\xc5', b'\xe5', re.L|re.I))
```

This returns:
 on Solaris and None on Linux.

I am happy to investigate it further; any pointers as for where to look would 
be appreciated as I am stuck a little bit.

#
## test_socket ##
#

There are two issues here. The first one is similar to what BSD, Darwin and AIX 
experience with testFDPass tests:
https://bugs.python.org/issue22397
https://bugs.python.org/issue12958
These tests are skipped on Solaris in the attached PR.

The other one is an incorrect assumption about CMSG_SPACE on SPARC Solaris; it 
grows slightly sooner when increasing length compared to other platforms I 
tested.

with toobig == 2147483632
length socket.CMSG_SPACE output
2147483619 2147483632
2147483620 2147483632
2147483621 2147483640
2147483622 2147483640
2147483623 2147483640
2147483624 2147483640
2147483625 2147483640
2147483626 2147483640
2147483627 2147483640
2147483628 2147483640
2147483629  <- OverflowError

==
ERROR: testCMSG_SPACE (test.test_socket.CmsgMacroTests)
--
Traceback (most recent call last):
  File 
"/builds/jkulik/testing/components/python/python39/Python-3.9.9/Lib/test/test_socket.py",
 line 3360, in testCMSG_SPACE
ret = socket.CMSG_SPACE(n)
OverflowError: CMSG_SPACE() argument out of range

(on other platforms, increases generally happen with lengths divisible by 8, 
meaning that it gets all the way to 2147483631).

I am unsure how to fix this (currently, PR includes change we use internally 
but is likely not acceptable) as I don't know how to correctly guess the 
largest CMSG_SPACE on all platforms. Is it even necessary though (it can test 
OverflowError on other values than just the first failing one and can end 
slightly sooner)?

###
## test_time ##
###

This was recently fixed with: https://bugs.python.org/issue46099

--
components: Tests
messages: 415493
nosy: kulikjak
priority: normal
severity: normal
status: open
title: Skip tests failing on Solaris worker
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



[issue42238] Deprecate suspicious.py?

2022-03-18 Thread Julien Palard


Change by Julien Palard :


--
pull_requests: +30067
pull_request: https://github.com/python/cpython/pull/31977

___
Python tracker 

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



[issue40296] help(list[int]) fails

2022-03-18 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +30066
pull_request: https://github.com/python/cpython/pull/31976

___
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-18 Thread miss-islington


miss-islington  added the comment:


New changeset d27af88c1bcf3c6c185f81218b7bf86b38128ea9 by Miss Islington (bot) 
in branch '3.10':
bpo-45979: Fix Tkinter tests with old Tk (>= 8.5.12) (GH-31938)
https://github.com/python/cpython/commit/d27af88c1bcf3c6c185f81218b7bf86b38128ea9


--

___
Python tracker 

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



[issue46343] Add PyErr_GetActiveException and PyErr_SetActiveException

2022-03-18 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

I have a side question.
generator.throw() and coroutine.throw() have throw(type[, value[, traceback]]) 
signature.

Is there a plan to update generators somehow to accept the exception value only?
The change can go in line with other exception API changes.

--
nosy: +asvetlov

___
Python tracker 

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



[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-18 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +30065
pull_request: https://github.com/python/cpython/pull/31975

___
Python tracker 

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



[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-18 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +30064
pull_request: https://github.com/python/cpython/pull/31974

___
Python tracker 

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



[issue47043] Argparse can't parse subparsers with parse_known_args

2022-03-18 Thread rive_n


rive_n  added the comment:

Hi again. 

previous solution with:

```python3
try:
namespace, args = self._parse_known_args(args, namespace)
if hasattr(namespace, _UNRECOGNIZED_ARGS_ATTR):
args.extend(getattr(namespace, _UNRECOGNIZED_ARGS_ATTR))
delattr(namespace, _UNRECOGNIZED_ARGS_ATTR)
return namespace, args
except ArgumentError:
err = _sys.exc_info()[1]
self.error(str(err))
```

Is not working at all. So i spent some time (a lot of time) to make changes in 
source code. 
I figured out exactly how the algorithm works, I read about 3,000 lines of 
code. And here's what I came up with:
argparse.py:
line 1774:  parse_known_args
basically this function calling protected one on line 1800: 
amespace, args = self._parse_known_args(args, namespace)

This one is making magic. But we need to check line 1856: 
def take_action(action, argument_strings, option_string=None):

This function creating objects of necessary classes. For example:
_SubParsersAction (problem in it). 

Before fix:

```python3
def __call__(self, parser, namespace, values, option_string=None):
parser_name = values[0]
arg_strings = values[1:]

# set the parser name if requested
if self.dest is not SUPPRESS:
setattr(namespace, self.dest, parser_name)

# select the parser
try:
parser = self._name_parser_map[parser_name]
except KeyError:
args = {'parser_name': parser_name,
'choices': ', '.join(self._name_parser_map)}
msg = _('unknown parser %(parser_name)r (choices: %(choices)s)') % 
args
raise ArgumentError(self, msg)

# parse all the remaining options into the namespace
# store any unrecognized options on the object, so that the top
# level parser can decide what to do with them

# In case this subparser defines new defaults, we parse them
# in a new namespace object and then update the original
# namespace for the relevant parts.
subnamespace, arg_strings = parser.parse_known_args(arg_strings, None)
for key, value in vars(subnamespace).items():
setattr(namespace, key, value)

if arg_strings:
vars(namespace).setdefault(_UNRECOGNIZED_ARGS_ATTR, [])
getattr(namespace, _UNRECOGNIZED_ARGS_ATTR).extend(arg_strings)
```

After fix:
```python3
def __call__(self, parser, namespace, values, option_string=None, 
arg_strings_pattern:list =None):
o_amount = arg_strings_pattern.count("O")
if not o_amount:
raise ValueError("No Os found")
o_start, o_stop, indexes = arg_strings_pattern.index('O'), 
len(arg_strings_pattern), []
print(parser)
try:
while arg_strings_pattern.index('O', o_start, o_stop):
indexes.append(arg_strings_pattern.index('O', o_start, o_stop))
o_start = arg_strings_pattern.index('O', o_start + 1, o_stop)
except ValueError:
pass

for parser in range(o_amount):
parser_name = values[indexes[parser] - 1] # indexes[parser] could 
give int (real index)
arg_strings = values[indexes[parser]: indexes[(parser + 1)] - 1]  
if parser < len(indexes) - 1 else \
values[indexes[parser]:] # could give all data

# set the parser name if requested
if self.dest is not SUPPRESS:
setattr(namespace, self.dest, parser_name)

# select the parser
try:
parser = self._name_parser_map[parser_name]
except KeyError:
args = {'parser_name': parser_name,
'choices': ', '.join(self._name_parser_map)}
msg = _('unknown parser %(parser_name)r (choices: 
%(choices)s)') % args
raise ArgumentError(self, msg)

# parse all the remaining options into the namespace
# store any unrecognized options on the object, so that the top
# level parser can decide what to do with them

# In case this subparser defines new defaults, we parse them
# in a new namespace object and then update the original
# namespace for the relevant parts.
subnamespace, arg_strings = parser.parse_known_args(arg_strings, 
None)
for key, value in vars(subnamespace).items():
setattr(namespace, key, value)

if arg_strings:
vars(namespace).setdefault(_UNRECOGNIZED_ARGS_ATTR, [])
getattr(namespace, _UNRECOGNIZED_ARGS_ATTR).extend(arg_strings)
```

That's not the best solution but this solution works.

--

___
Python tracker 

___
___
Python-bug

[issue47057] Use FASTCALL convention for FutureIter.throw()

2022-03-18 Thread Andrew Svetlov


New submission from Andrew Svetlov :

All other asyncio functions are converted to fast calls already.

--
components: asyncio
messages: 415489
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Use FASTCALL convention for FutureIter.throw()
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



[issue45979] Fix Tkinter tests with old Tk

2022-03-18 Thread miss-islington


Change by miss-islington :


--
pull_requests: +30062
pull_request: https://github.com/python/cpython/pull/31972

___
Python tracker 

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



[issue47057] Use FASTCALL convention for FutureIter.throw()

2022-03-18 Thread Andrew Svetlov


Change by Andrew Svetlov :


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

___
Python tracker 

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



[issue47042] Fix test_html_doc in test_pydoc

2022-03-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

It is 3.11 only issue.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-18 Thread László Kiss Kollár

Change by László Kiss Kollár :


--
nosy: +lkollar

___
Python tracker 

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



[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-18 Thread miss-islington


miss-islington  added the comment:


New changeset 8e3fde728f547f1d32bde8adf62b4c50bb877b9d by Pablo Galindo Salgado 
in branch 'main':
bpo-46968: Check for 'sys/auxv.h' in the configure script (GH-31961)
https://github.com/python/cpython/commit/8e3fde728f547f1d32bde8adf62b4c50bb877b9d


--
nosy: +miss-islington

___
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-18 Thread Steve Dower


Steve Dower  added the comment:


New changeset d190a9351be577a534a84fd1899f02a9f50f7276 by Christian Heimes in 
branch 'main':
bpo-47037: Don't test for strftime('%4Y') on Windows (GH-31945)
https://github.com/python/cpython/commit/d190a9351be577a534a84fd1899f02a9f50f7276


--

___
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-18 Thread STINNER Victor


STINNER Victor  added the comment:

Python 3.10 didn't get a fix? https://github.com/python/cpython/pull/31939 was 
closed, not merged.

--
nosy: +vstinner

___
Python tracker 

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



[issue46994] Accept explicit contextvars.Context in asyncio create_task() API

2022-03-18 Thread STINNER Victor


STINNER Victor  added the comment:

Nice enhancement!

--
nosy: +vstinner

___
Python tracker 

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



[issue18309] Make python slightly more relocatable

2022-03-18 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



[issue46968] Insufficient sigaltstack size used by CPython prevents extensions from using new ISA

2022-03-18 Thread STINNER Victor


STINNER Victor  added the comment:

> Commit 393e2bf6bc6effbfe821f051a230978f0edd70df has broken CPython in RedHat 6

Too bad that we want to support RHEL 6 but have no buildbot for that.

--

___
Python tracker 

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



[issue47048] Python 3.10.3 + Osx Lion : fatal error (make) signalmodule or more

2022-03-18 Thread Christian Heimes


Christian Heimes  added the comment:

It does not look like a Python problem. "fatal error: error in backend" 
suggests that clang is crashing with an internal error. macOS 10.7 is about a 
decade old. Can you update to a more recent macOS and Xcode version?

--
components: +macOS
nosy: +christian.heimes, ned.deily, ronaldoussoren

___
Python tracker 

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



[issue42838] Wait for cleanup coroutines before event loop is closed.

2022-03-18 Thread xloem


Change by xloem <0xl...@gmail.com>:


--
resolution: wont fix -> out of date

___
Python tracker 

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



[issue42838] Wait for cleanup coroutines before event loop is closed.

2022-03-18 Thread xloem


Change by xloem <0xl...@gmail.com>:


--
resolution: out of date -> wont fix

___
Python tracker 

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



[issue42838] Wait for cleanup coroutines before event loop is closed.

2022-03-18 Thread xloem


xloem <0xl...@gmail.com> added the comment:

hey, I don't have the capacity to stay on this, but thanks for the attention, 
time, and clear response.

there are of course other situations such as returning a resource to library 
code or manual loop management, but I don't have the use case present any more.

maybe an aatexit library could patch this in if needed.

--
status: open -> closed

___
Python tracker 

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



[issue45786] Avoid allocating when exiting frame; it may be unsafe.

2022-03-18 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 2217462bda1865a047d358306088682ee6a091ed by Victor Stinner in 
branch 'main':
bpo-45786: Remove _PyFrame_Fini() and _PyFrame_DebugMallocStats() (GH-31874)
https://github.com/python/cpython/commit/2217462bda1865a047d358306088682ee6a091ed


--

___
Python tracker 

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



[issue45924] Incorrect traceback when future's exception is raised multiple times

2022-03-18 Thread lilydjwg


Change by lilydjwg :


--
nosy: +lilydjwg

___
Python tracker 

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



[issue45413] Add install scheme for virtual environments

2022-03-18 Thread Petr Viktorin

Petr Viktorin  added the comment:


New changeset 48d926269963cfe7a49c0a4f34af4fe9b832399b by Miro Hrončok in 
branch 'main':
bpo-45413: Define "posix_venv", "nt_venv" and "venv" sysconfig installation 
schemes (GH-31034)
https://github.com/python/cpython/commit/48d926269963cfe7a49c0a4f34af4fe9b832399b


--

___
Python tracker 

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



[issue45924] Incorrect traceback when future's exception is raised multiple times

2022-03-18 Thread Irit Katriel


Irit Katriel  added the comment:

Closed issue42682 as duplicate of this.

--

___
Python tracker 

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



[issue42682] awaiting a wrapped asyncio.Task multiple times gives long, repeative tracebacks

2022-03-18 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Incorrect traceback when future's exception is raised multiple 
times

___
Python tracker 

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



[issue42682] awaiting a wrapped asyncio.Task multiple times gives long, repeative tracebacks

2022-03-18 Thread Irit Katriel


Irit Katriel  added the comment:

>>> asyncio.run(main())
Traceback (most recent call last):
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 2, in wait
  File "", line 2, in wait
  File "", line 2, in wait
  [Previous line repeated 7 more times]
  File "", line 2, in crash
Exception: crash!
Traceback (most recent call last):
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 2, in wait
  File "", line 2, in wait
  File "", line 2, in wait
  [Previous line repeated 7 more times]
  File "", line 2, in crash
Exception: crash!
Traceback (most recent call last):
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 2, in wait
  File "", line 2, in wait
  File "", line 2, in wait
  [Previous line repeated 7 more times]
  File "", line 2, in crash
Exception: crash!
Traceback (most recent call last):
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 2, in wait
  File "", line 2, in wait
  File "", line 2, in wait
  [Previous line repeated 7 more times]
  File "", line 2, in crash
Exception: crash!
Traceback (most recent call last):
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 2, in wait
  File "", line 2, in wait
  File "", line 2, in wait
  [Previous line repeated 7 more times]
  File "", line 2, in crash
Exception: crash!
Traceback (most recent call last):
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 6, in main
  File "C:\Users\User\src\cpython\Lib\asyncio\tasks.py", line 597, in 
_wait_for_one
return f.result()  # May raise f.exception().
   ^^
  File "", line 2, in wait
  F

[issue42682] awaiting a wrapped asyncio.Task multiple times gives long, repeative tracebacks

2022-03-18 Thread Irit Katriel


Irit Katriel  added the comment:

I don't think the OP is complaining about the internal asyncio machinery 
frames, but rather about the repetition of the "return f.result()  # May raise 
f.exception()." frame.

I will paste the output of the script in the next comment.

--
nosy: +iritkatriel

___
Python tracker 

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



[issue47056] turtle.write() causes flickering when the tracer is turned off.

2022-03-18 Thread Shin-Myoung-Serp


New submission from Shin-Myoung-Serp :

When implementing an animation with turtle, usually the tracer is turned off 
via turtle.tracer(0, 0) and turtle.update() is called manually.

When the tracer is off, most of drawing functions skips update() calls on the 
underlying Canvas. But turtle.write() does not do that.
(See the implementation of TurtleScreenBase._write().)

This causes flickering, as can be seen when you run the attached script. (Press 
space key to hide/show texts.)

--
components: Library (Lib)
files: test_anim_write.py
messages: 415475
nosy: relent95
priority: normal
severity: normal
status: open
title: turtle.write() causes flickering when the tracer is turned off.
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file50690/test_anim_write.py

___
Python tracker 

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



[issue46382] dataclass(slots=True) does not account for slots in base classes

2022-03-18 Thread Eric V. Smith


Eric V. Smith  added the comment:

I thought there was an existing issue that covered this, but now I can't find 
it.

I'd prefer #2, create a separate issue.

--

___
Python tracker 

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



[issue40296] help(list[int]) fails

2022-03-18 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset cd44afc573e2e2de8d7e5a9119c347373066cd10 by Serhiy Storchaka in 
branch 'main':
bpo-40296: Fix supporting generic aliases in pydoc (GH-30253)
https://github.com/python/cpython/commit/cd44afc573e2e2de8d7e5a9119c347373066cd10


--

___
Python tracker 

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



[issue46996] Drop support of Tcl/Tk older than 8.5.12

2022-03-18 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Terry: tkinter on macOS already effectively does not support Tk 8.5, or 
basically anything bug the latest 8.6.x release. That's because older versions 
have too many bugs that affect Python users, which mostly show up on our 
tracker as bug reports about IDLE.

Because of this we generally close issues that mention using tkinter with 8.5 
on macOS unless the problem can be reproduced using 8.6 as well (using the 
installer on python.org).

--

___
Python tracker 

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