[issue46005] [doc] replace 'distutils' examples with 'setuptools'

2021-12-07 Thread Elmir


New submission from Elmir :

As the distutils have been deprecated, the documentation on building C/C++ 
extension modules should be updated to use more future proof tool.

I guess the section:

'Building C and C++ Extensions with distutils'

should be replaced with:

'Building C and C++ Extensions with setuptools'

Here is link to the section that needs to be updated/replaced:

https://docs.python.org/3/extending/building.html#building-c-and-c-extensions-with-distutils

--
assignee: docs@python
components: Documentation
messages: 407896
nosy: docs@python, elmjag
priority: normal
severity: normal
status: open
title: [doc] replace 'distutils' examples with 'setuptools'
type: enhancement
versions: Python 3.10, Python 3.11

___
Python tracker 

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



[issue28533] Remove asyncore, asynchat and smtpd modules

2021-12-07 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +28176
pull_request: https://github.com/python/cpython/pull/29951

___
Python tracker 

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



[issue28533] Remove asyncore, asynchat and smtpd modules

2021-12-07 Thread STINNER Victor


STINNER Victor  added the comment:

I reopen the issue: the Steering Council asked to revert the change removing 
the 3 modules, since the DeprecationWarning was only emitted in a single Python 
release (Python 3.10) and so the PEP 387 process was not respected.

I created the PR 29951 to add again the 3 modules to Python 3.11.

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



[issue45929] extend json.tool --json-lines to ignore empty rows

2021-12-07 Thread Alex Waygood


Alex Waygood  added the comment:

I am changing the "version" field to 3.11, as enhancement proposals are 
generally only considered for unreleased versions of Python.

--
nosy: +AlexWaygood, bob.ippolito, ezio.melotti, rhettinger
versions: +Python 3.11 -Python 3.10

___
Python tracker 

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



[issue41174] asyncio.coroutine decorator returns a non-generator function when using PYTHONASYNCIODEBUG

2021-12-07 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Agree, thanks!

--
status: pending -> open

___
Python tracker 

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



[issue28533] Remove asyncore, asynchat and smtpd modules

2021-12-07 Thread STINNER Victor


STINNER Victor  added the comment:

https://github.com/python/steering-council/issues/86

--

___
Python tracker 

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



[issue41174] asyncio.coroutine decorator returns a non-generator function when using PYTHONASYNCIODEBUG

2021-12-07 Thread Irit Katriel


Change by Irit Katriel :


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



[issue27016] BlockingIOError not raised inside function.

2021-12-07 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> works for me
stage:  -> resolved
status: pending -> closed

___
Python tracker 

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



[issue44637] Quoting issue on header Reply-To and other address headers

2021-12-07 Thread Julien Castiaux


Julien Castiaux  added the comment:

Hello there,

There is a pull-request on github, had to modify `_refold_parse_tree` but I 
could keep the diff quite small. It is properly tested and it is waiting a 
review :)

We have a patch at work so it is *absolutely not* urgent, feel free to review 
it *anytime*. Since we are using the Ubuntu LTS version of python, we might be 
interested by a backport till 3.7, quite honestly I'm happy it was flag as a 
security issue :D

--

___
Python tracker 

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



[issue41210] Docs: More description(warning) about LZMA1 + BCJ with FORMAT_RAW

2021-12-07 Thread bendupndo


bendupndo  added the comment:

Candy Crush Saga MOD APK

If you have not yet played the legendary Candy Crush Saga, you should 
definitely try its MOD APK version. This cheat is a third party application 
that lets you have unlimited lives, moves, and collect stuff. It also allows 
you to purchase extra moves and boosters in the game. The main benefit of the 
MOD APK is that you can play the game without any limitations. So, how does it 
work? Well, it works just like the official version of the game.

Link download: https://apksunny.com/candy-crush-saga/

In Candy Crush Saga MOD APK, you will get unlimited elixir, gold, and gems. 
This means that you can purchase as many boosters as you want. With this cheat, 
you can also have access to VIP GUI, which will give you unlimited power-ups. 
It's the perfect way to play without paying for anything. In addition, it will 
also let you play the game with an unlimited amount of time and without 
worrying about running out of elixir.

Using the Candy Crush Saga MOD APK is simple. It will give you unlimited lives, 
unlimited moves, and infinite boosters. You just need to close the message 
asking you to buy a booster and choose one. You'll also have unlimited lollypop 
and hand switch boosters, plus endless owl candies. You can also use the MOD 
APK to get more levels and unlock extra special candies.

You can also use this Candy Crush Saga MOD APK to get unlimited boosts. To buy 
the boosters, you simply need to click the 'buy' button in the pop-up message 
and then select the 'booster' you want. After this, you'll be able to have 
infinite lollypops, hand switches, and unlimited owl candies. You can also get 
endless owl candies. The MOD APK is not available in all versions of the game, 
but it's worth a try.

In Candy Crush Saga MOD APK, you can save your progress to cloud services. This 
is a great feature for people who don't want to risk losing their progress. The 
MOD APK is free, safe, and very easy to install. It's recommended that you 
uninstall the PlayStore version of the game if you're using a different version 
of the game. Once you've uninstalled the PlayStore version of the app, simply 
download the MOD version of the game and restart the game.

The Candy Crush Saga MOD APK gives you unlimited lives and is similar to the 
PlayStore version. It has the same features as the PlayStore version, but with 
a few exceptions. For example, you'll get a daily booster wheel and 
time-limited challenges. You'll have more lives than you need to complete the 
levels. The Bomb Counter will be set to 99 double all the time.

--
nosy: +sakaranata

___
Python tracker 

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



[issue45620] A misleading url in 'Floating Point Arithmetic' page

2021-12-07 Thread Akuli


Akuli  added the comment:

Thanks! Works for me in browser now.

--

___
Python tracker 

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



[issue45929] extend json.tool --json-lines to ignore empty rows

2021-12-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Both JSON Lines (https://jsonlines.org/) and Newline Delimited JSON 
(http://ndjson.org/) formats require that Each Line is a Valid JSON Value.

If you want to ignore empty lines you can filter them out with `sed /^$/d`.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue46000] NetBSD curses compatibility

2021-12-07 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue45995] string formatting: normalize negative zero

2021-12-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Well, it makes sense for negative zero produced by rounding.

But if we add a special support for this case, it would be useful to have some 
control on the type of rounding. Currently floats are rounded to the nearest 
decimal number, but in some cases it would be better to round up, down, toward 
zero or infinity (seed for example issue44884).

You can round explicitly before formatting, but this solution is also 
applicable for this issue:

>>> '%5.1f' % (round(-.1, 1) + 0.0)
'  0.0'

--

___
Python tracker 

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



[issue46001] JSON module documentation mentions OverflowError for case that raises RecursionError

2021-12-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 8db06528cacc94e67eb1fb2e4c2acc061a515671 by James Gerity in 
branch 'main':
bpo-46001: Change OverflowError to RecursionError in JSON library docstrings 
(GH-29943)
https://github.com/python/cpython/commit/8db06528cacc94e67eb1fb2e4c2acc061a515671


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue46001] JSON module documentation mentions OverflowError for case that raises RecursionError

2021-12-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +28178
pull_request: https://github.com/python/cpython/pull/29953

___
Python tracker 

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



[issue46001] JSON module documentation mentions OverflowError for case that raises RecursionError

2021-12-07 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue46001] JSON module documentation mentions OverflowError for case that raises RecursionError

2021-12-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Thank you for your contribution James!

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



[issue46001] JSON module documentation mentions OverflowError for case that raises RecursionError

2021-12-07 Thread miss-islington


miss-islington  added the comment:


New changeset 15da2a2723245710f1bd2c7cbd5b450532ae7728 by Miss Islington (bot) 
in branch '3.10':
bpo-46001: Change OverflowError to RecursionError in JSON library docstrings 
(GH-29943)
https://github.com/python/cpython/commit/15da2a2723245710f1bd2c7cbd5b450532ae7728


--

___
Python tracker 

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



[issue46001] JSON module documentation mentions OverflowError for case that raises RecursionError

2021-12-07 Thread miss-islington


miss-islington  added the comment:


New changeset 2e360832d7ed2697d715e93cb9f859a52264d60b by Miss Islington (bot) 
in branch '3.9':
bpo-46001: Change OverflowError to RecursionError in JSON library docstrings 
(GH-29943)
https://github.com/python/cpython/commit/2e360832d7ed2697d715e93cb9f859a52264d60b


--

___
Python tracker 

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



[issue45582] Rewrite getpath.c in Python

2021-12-07 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +28179
pull_request: https://github.com/python/cpython/pull/29954

___
Python tracker 

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



[issue45963] Embed interpreter frame in generator.

2021-12-07 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Unfortunately, all refleak buildbots are failing after 
299483c95d601ddcfdce2f96418b6499c1fc7b9f was merged. I bisected the problem to 
it:

299483c95d601ddcfdce2f96418b6499c1fc7b9f is the first bad commit
commit 299483c95d601ddcfdce2f96418b6499c1fc7b9f
Author: Mark Shannon 
Date:   Mon Dec 6 10:13:49 2021 +

bpo-45963: Make space for the InterpreterFrame of a generator in that 
generator. (GH-29891)

* Make generator, coroutine and async gen structs all the same size.

* Store interpreter frame in generator (and coroutine). Reduces the number 
of allocations neeeded for a generator from two to one.

 Include/cpython/genobject.h |  23 ++---
 Include/internal/pycore_ceval.h |   2 +-
 Include/internal/pycore_frame.h |   2 +-
 Lib/test/test_sys.py|   2 +-
 Objects/genobject.c | 183 ++--
 Python/ceval.c  |  41 +++--
 Python/frame.c  |  18 ++--
 7 files changed, 127 insertions(+), 144 deletions(-)

Following out buildbot policy, the change will need to be reverted if is not 
fixed in 24 hours.

--
nosy: +pablogsal

___
Python tracker 

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



[issue45963] Embed interpreter frame in generator.

2021-12-07 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

This is also unfortunately blocking the 3.11.a3 release :(

--
priority: normal -> release blocker

___
Python tracker 

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



[issue46001] JSON module documentation mentions OverflowError for case that raises RecursionError

2021-12-07 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue45890] Add tests for tracing try-except-finally blocks

2021-12-07 Thread Mark Shannon


New submission from Mark Shannon :


New changeset a310fd83a014484b8c680de83540c4908b344c6c by Irit Katriel in 
branch 'main':
bpo-45890: Add tests for tracing try-except-finally blocks (GH-29746)
https://github.com/python/cpython/commit/a310fd83a014484b8c680de83540c4908b344c6c


--
nosy: +Mark.Shannon

___
Python tracker 

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



[issue45620] A misleading url in 'Floating Point Arithmetic' page

2021-12-07 Thread Eric V. Smith


Eric V. Smith  added the comment:

@Akuli: thanks for checking. And thanks so much for the awesome debugging with 
curl: that was the key to solving the problem.

I didn't hear back from lahey.com what the problem was, but I'd sure be curious 
to know!

--
resolution:  -> third party
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



[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-12-07 Thread Petr Viktorin


Change by Petr Viktorin :


--
pull_requests: +28180
pull_request: https://github.com/python/cpython/pull/29956

___
Python tracker 

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



[issue35821] Clarify when logging events are propagated when propagate is true

2021-12-07 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +28181
pull_request: https://github.com/python/cpython/pull/29957

___
Python tracker 

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



[issue35821] Clarify when logging events are propagated when propagate is true

2021-12-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +28182
pull_request: https://github.com/python/cpython/pull/29958

___
Python tracker 

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



[issue35821] Clarify when logging events are propagated when propagate is true

2021-12-07 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset 2bf551757e0a7e3cc6ce2ebed2178b82438ac6b5 by Vinay Sajip in branch 
'main':
bpo-35821: Add an example to Logger.propagate documentation. (GH-29841)
https://github.com/python/cpython/commit/2bf551757e0a7e3cc6ce2ebed2178b82438ac6b5


--

___
Python tracker 

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



[issue45890] Add tests for tracing try-except-finally blocks

2021-12-07 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



[issue46004] Incorrect bad token identified in 3.10.1

2021-12-07 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue46004] Incorrect bad token identified in 3.10.1

2021-12-07 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
keywords: +patch, patch
pull_requests: +28183, 28184
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29959

___
Python tracker 

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



[issue28533] Remove asyncore, asynchat and smtpd modules

2021-12-07 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset cf7eaa4617295747ee5646c4e2b7e7a16d7c64ab by Victor Stinner in 
branch 'main':
Revert "bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)" 
(GH-29951)
https://github.com/python/cpython/commit/cf7eaa4617295747ee5646c4e2b7e7a16d7c64ab


--

___
Python tracker 

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



[issue45986] 3.10.0 ships with older tcl/tk DLLs than 3.9.9 causing Windows Installer problems

2021-12-07 Thread Athanasius


Athanasius  added the comment:

I can confirm that things are now working properly for us with Python 3.10.1.

This can be closed with regards to the immediate issue, but perhaps the release 
team might want to implement some checks/policy to avoid such an issue in 
future ?

--

___
Python tracker 

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



[issue33080] regen-importlib is causing build races against other regen-all targets in Makefile.pre.in

2021-12-07 Thread Christian Heimes


Christian Heimes  added the comment:

May I ask why you are running the regen-all target at all? A normal end-user 
build of CPython does not need make regen-all. It's only used for CI and 
internal development.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue33080] regen-importlib is causing build races against other regen-all targets in Makefile.pre.in

2021-12-07 Thread Alexander Kanavin


Alexander Kanavin  added the comment:

We have long ago updated to a much newer python and removed the workaround, so 
the whatever the issue was, it is completely obsolete. Thanks!

--
resolution:  -> works for me
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



[issue35821] Clarify when logging events are propagated when propagate is true

2021-12-07 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset f78c229b4ec8621a9b15c6396b6c91518e8975d6 by Miss Islington (bot) 
in branch '3.10':
[3.10] bpo-35821: Add an example to Logger.propagate documentation. (GH-29841) 
(GH-29957)
https://github.com/python/cpython/commit/f78c229b4ec8621a9b15c6396b6c91518e8975d6


--

___
Python tracker 

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



[issue33080] regen-importlib is causing build races against other regen-all targets in Makefile.pre.in

2021-12-07 Thread Alexander Kanavin


Alexander Kanavin  added the comment:

(removed both the workaround, and regen-all itself)

--

___
Python tracker 

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



[issue35821] Clarify when logging events are propagated when propagate is true

2021-12-07 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset e688568cdfe758a2316ecaf0c8df868d5dde0d83 by Miss Islington (bot) 
in branch '3.9':
[3.9] bpo-35821: Add an example to Logger.propagate documentation. (GH-29841) 
(GH-29958)
https://github.com/python/cpython/commit/e688568cdfe758a2316ecaf0c8df868d5dde0d83


--

___
Python tracker 

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



[issue35821] Clarify when logging events are propagated when propagate is true

2021-12-07 Thread Vinay Sajip


Change by Vinay Sajip :


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



[issue45963] Embed interpreter frame in generator.

2021-12-07 Thread Mark Shannon


Mark Shannon  added the comment:

I'll look into it now, and fix or revert it.

--

___
Python tracker 

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



[issue24253] pydoc for namespace packages indicates FILE as built-in

2021-12-07 Thread Irit Katriel


Irit Katriel  added the comment:

Reproduce on 3.11.

--
nosy: +iritkatriel
type:  -> behavior
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4, Python 3.5

___
Python tracker 

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



[issue33080] regen-importlib is causing build races against other regen-all targets in Makefile.pre.in

2021-12-07 Thread Christian Heimes


Christian Heimes  added the comment:

Fantasic!

--

___
Python tracker 

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



[issue26120] pydoc: move __future__ imports out of the DATA block

2021-12-07 Thread Irit Katriel


Irit Katriel  added the comment:

Reproduced on 3.11.

--
nosy: +iritkatriel
type:  -> enhancement
versions: +Python 3.11 -Python 3.5, Python 3.6

___
Python tracker 

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



[issue45664] resolve_bases() and new_class() do not work with type alias of a built-in type

2021-12-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset bffce2cbb5543bc63a67e33ad599328a12f2b00a by Miss Islington (bot) 
in branch '3.9':
bpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as a 
base (GH-29298) (GH-29928)
https://github.com/python/cpython/commit/bffce2cbb5543bc63a67e33ad599328a12f2b00a


--

___
Python tracker 

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



[issue45664] resolve_bases() and new_class() do not work with type alias of a built-in type

2021-12-07 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue45663] is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias

2021-12-07 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue45436] test_tk.test_configure_type() fails with Tcl/Tk 8.6.11

2021-12-07 Thread E. Paine


E. Paine  added the comment:

Fix merged upstream: https://core.tcl-lang.org/tk/tktview/be8f5b9f
Can issue be closed now?

--

___
Python tracker 

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



[issue45995] string formatting: normalize negative zero

2021-12-07 Thread John Belmonte


John Belmonte  added the comment:

> changing %-formatting doesn't seem viable

I'm concerned about treating %-formatting specially.  As far as float/complex, 
the logical and efficient place to put this change seems to be 
PyOS_double_to_string(), which affects all three formatting options.

For example, the dtoa case is as simple as this change to format_float_short():

/* coerce negative zero to positive */
if (sign == 1 && ((digits_len == 0 && decpt == -1) ||
  (digits_len == 1 && digits[0] == '0'))) {
sign = 0;
}

--

___
Python tracker 

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



[issue45995] string formatting: normalize negative zero

2021-12-07 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

Sorry John, I don't understand your comment about "treating %-formatting 
specifically". Isn't the point here not to change %-formatting at all?

--

___
Python tracker 

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



[issue45995] string formatting: normalize negative zero

2021-12-07 Thread Eric V. Smith


Eric V. Smith  added the comment:

%-formatting already doesn't support some formats that float.__format__ does, 
for example ','.

So I agree we shouldn't modify %-formatting. I don't have much of an opinion on 
whether changing __format__ is a good idea or not.

--

___
Python tracker 

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



[issue45963] Embed interpreter frame in generator.

2021-12-07 Thread Mark Shannon


Change by Mark Shannon :


--
pull_requests: +28185
pull_request: https://github.com/python/cpython/pull/29960

___
Python tracker 

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



[issue28141] shutil.copystat utime lookup fails on certain Android file systems

2021-12-07 Thread Irit Katriel


Irit Katriel  added the comment:

Jerry, is this still a problem with current python versions? (2.7/3.5 are no 
longer being maintained).

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



[issue38579] 'u' formatted arrays mostly prevent appends of 4 byte characters

2021-12-07 Thread Irit Katriel


Irit Katriel  added the comment:

Can you include a code snippet to demonstrate the problem?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue46004] Incorrect bad token identified in 3.10.1

2021-12-07 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 1c7a1c3be08ee911d347fffd2716f3911ba751f9 by Pablo Galindo Salgado 
in branch 'main':
bpo-46004: Fix error location for loops with invalid targets (GH-29959)
https://github.com/python/cpython/commit/1c7a1c3be08ee911d347fffd2716f3911ba751f9


--

___
Python tracker 

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



[issue46004] Incorrect bad token identified in 3.10.1

2021-12-07 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +28186
pull_request: https://github.com/python/cpython/pull/29961

___
Python tracker 

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



[issue45995] string formatting: normalize negative zero

2021-12-07 Thread John Belmonte


John Belmonte  added the comment:

I see now.  PyOS_double_to_string() could gain the extra flag to coerce 
negative zero but, out of the three formatting methods, only format() and 
f-string would use the flag.

--

___
Python tracker 

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



[issue24253] pydoc for namespace packages indicates FILE as built-in

2021-12-07 Thread Antony Lee


Change by Antony Lee :


--
nosy:  -Antony.Lee

___
Python tracker 

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



[issue26120] pydoc: move __future__ imports out of the DATA block

2021-12-07 Thread Antony Lee


Change by Antony Lee :


--
nosy:  -Antony.Lee

___
Python tracker 

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



[issue45755] Specialized generic class does not return class attributes in dir

2021-12-07 Thread Ken Jin


Change by Ken Jin :


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

___
Python tracker 

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



[issue35821] Clarify when logging events are propagated when propagate is true

2021-12-07 Thread Ken Jin


Change by Ken Jin :


--
nosy: +kj
nosy_count: 5.0 -> 6.0
pull_requests: +28188
pull_request: https://github.com/python/cpython/pull/29963

___
Python tracker 

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



[issue36850] shutil.copy2 fails with even with source network filesystem not supporting extended attributes

2021-12-07 Thread Irit Katriel


Irit Katriel  added the comment:

This seems fixed, can it be closed?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue45703] importlib.invalidate_caches() does not invalidate _NamespacePath's _last_parent_path-based cache

2021-12-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +28189
pull_request: https://github.com/python/cpython/pull/29964

___
Python tracker 

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



[issue45703] importlib.invalidate_caches() does not invalidate _NamespacePath's _last_parent_path-based cache

2021-12-07 Thread Petr Viktorin


Petr Viktorin  added the comment:

Sadly, the backport is non-trivial. I'm putting on my TODO list, but I doubt 
I'll get to it soon :(

--

___
Python tracker 

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



[issue22910] test_pydoc test_synopsis_sourceless is a flaky test

2021-12-07 Thread Irit Katriel


Irit Katriel  added the comment:

Shall we close this? It's pretty old and if the test is still flaky it will let 
us know.

--
nosy: +iritkatriel

___
Python tracker 

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



[issue23469] Delete Misc/*.wpr files

2021-12-07 Thread Irit Katriel


Irit Katriel  added the comment:

Closing as this seems abandoned. Feel free to reopen if not.

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



[issue26120] pydoc: move __future__ imports out of the DATA block

2021-12-07 Thread Vedran Čačić

Vedran Čačić  added the comment:

I thought that _Feature starts with an underscore precisely to evade such 
listings. Do other "private" module data also get listed?

--
nosy: +veky

___
Python tracker 

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



[issue24393] Test urllib2_localnet fails depending on host proxy configuration

2021-12-07 Thread Irit Katriel


Irit Katriel  added the comment:

I'm closing this as there was no activity for 6 years and 3.5 is no longer 
maintained. Furthermore, it's not clear what problem the patch trying to solve. 
If this problem still exists on current versions (>= 3.9), please create a new 
issue and explain in more detail the scenario in which you had a problem with 
this test.

--
nosy: +iritkatriel
resolution:  -> out of date
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



[issue46004] Incorrect bad token identified in 3.10.1

2021-12-07 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset c52141200364898818956a73b955f7c04f634dc8 by Pablo Galindo Salgado 
in branch '3.10':
[3.10] bpo-46004: Fix error location for loops with invalid targets (GH-29959). 
(GH-29961)
https://github.com/python/cpython/commit/c52141200364898818956a73b955f7c04f634dc8


--

___
Python tracker 

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



[issue46004] Incorrect bad token identified in 3.10.1

2021-12-07 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



[issue46004] Incorrect bad token identified in 3.10.1

2021-12-07 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

>From 
> (https://friendly-traceback.github.io/docs/syntax_tracebacks_en_3.10.html#for-loop-missing-in-operator),
>  this is what was shown for Python 3.10.0

Yeah, we are not showing that anymore as we only trigger the error when it 
happens inside collections to avoid many of the false positives we were seeing.

This PR fixes the problem to point to the correct token, but still show "syntax 
error"

--

___
Python tracker 

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



[issue35821] Clarify when logging events are propagated when propagate is true

2021-12-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +28190
pull_request: https://github.com/python/cpython/pull/29965

___
Python tracker 

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



[issue35821] Clarify when logging events are propagated when propagate is true

2021-12-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +28191
pull_request: https://github.com/python/cpython/pull/29966

___
Python tracker 

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



[issue35821] Clarify when logging events are propagated when propagate is true

2021-12-07 Thread Ken Jin


Ken Jin  added the comment:


New changeset c7e7a4b969b5728d4b4f3c59bf98e1e830d5c6d6 by Ken Jin in branch 
'main':
bpo-35821: Fix restructuredtext code formatting in logging.rst (GH-29963)
https://github.com/python/cpython/commit/c7e7a4b969b5728d4b4f3c59bf98e1e830d5c6d6


--

___
Python tracker 

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



[issue25726] [doc] sys.setprofile / sys.getprofile asymetry

2021-12-07 Thread Irit Katriel


Change by Irit Katriel :


--
title: sys.setprofile / sys.getprofile asymetry -> [doc] sys.setprofile / 
sys.getprofile asymetry
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4

___
Python tracker 

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



[issue35821] Clarify when logging events are propagated when propagate is true

2021-12-07 Thread miss-islington


miss-islington  added the comment:


New changeset 14f03ce6e8a33cc8b45f11c4d428193fc7c4a145 by Miss Islington (bot) 
in branch '3.10':
[3.10] bpo-35821: Fix restructuredtext code formatting in logging.rst 
(GH-29963) (GH-29965)
https://github.com/python/cpython/commit/14f03ce6e8a33cc8b45f11c4d428193fc7c4a145


--

___
Python tracker 

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



[issue35821] Clarify when logging events are propagated when propagate is true

2021-12-07 Thread miss-islington


miss-islington  added the comment:


New changeset db42809d299d1bc3a07b29fabe8f74fa02a7e59e by Miss Islington (bot) 
in branch '3.9':
bpo-35821: Fix restructuredtext code formatting in logging.rst (GH-29963)
https://github.com/python/cpython/commit/db42809d299d1bc3a07b29fabe8f74fa02a7e59e


--

___
Python tracker 

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



[issue45947] Place dict (and values) pointers at a fixed (negative) offset from the base of the object.

2021-12-07 Thread Mark Shannon


Mark Shannon  added the comment:


New changeset 8319114feedd2a5b77378bba24eb9fb2689c5033 by Mark Shannon in 
branch 'main':
bpo-45947: Place dict and values pointer at fixed (negative) offset just before 
GC header. (GH-29879)
https://github.com/python/cpython/commit/8319114feedd2a5b77378bba24eb9fb2689c5033


--

___
Python tracker 

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



[issue23947] Add mechanism to import stdlib package bypassing user packages

2021-12-07 Thread Irit Katriel


Change by Irit Katriel :


--
type:  -> enhancement
versions: +Python 3.11 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue45635] Tidy up error handling in traceback.c / python run.c

2021-12-07 Thread Irit Katriel


Irit Katriel  added the comment:


New changeset d596acbd3b4f6716ed98895eb0b48e9830e0b320 by Irit Katriel in 
branch 'main':
bpo-45635: standardize error handling in traceback.c (GH-29905)
https://github.com/python/cpython/commit/d596acbd3b4f6716ed98895eb0b48e9830e0b320


--

___
Python tracker 

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



[issue19745] TEST_DATA_DIR for out-of-tree builds

2021-12-07 Thread Irit Katriel


Irit Katriel  added the comment:

It does seem to be used here: 

https://github.com/python/cpython/blob/a6c3b0faa1d55e36539caf19bd3bcf1dea12df84/Lib/test/support/__init__.py#L553

--
nosy: +iritkatriel

___
Python tracker 

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



[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-12-07 Thread Christian Heimes


Christian Heimes  added the comment:

I just noticed that the PKG_CHECK_MODULES() fallbacks override the PKG_CONFIG 
environment variables. We should do something like

   ZLIB_CFLAGS=${ZLIB_CFLAGS:-""}
   ZLIB_LIBS=${ZLIB_LIBS:-"-lz"}

for all env vars. I prefer the syntax over ${ZLIB_CFLAGS:=""} because it is 
more obvious what is happening.

Env vars:

  LIBUUID_CFLAGS
  C compiler flags for LIBUUID, overriding pkg-config
  LIBUUID_LIBS
  linker flags for LIBUUID, overriding pkg-config
  LIBFFI_CFLAGS
  C compiler flags for LIBFFI, overriding pkg-config
  LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
  LIBNSL_CFLAGS
  C compiler flags for LIBNSL, overriding pkg-config
  LIBNSL_LIBS linker flags for LIBNSL, overriding pkg-config
  LIBSQLITE3_CFLAGS
  C compiler flags for LIBSQLITE3, overriding pkg-config
  LIBSQLITE3_LIBS
  linker flags for LIBSQLITE3, overriding pkg-config
  GDBM_CFLAGS C compiler flags for gdbm
  GDBM_LIBS   additional linker flags for gdbm
  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
  BZIP2_CFLAGS
  C compiler flags for BZIP2, overriding pkg-config
  BZIP2_LIBS  linker flags for BZIP2, overriding pkg-config
  LIBLZMA_CFLAGS
  C compiler flags for LIBLZMA, overriding pkg-config
  LIBLZMA_LIBS
  linker flags for LIBLZMA, overriding pkg-config
  LIBCRYPT_CFLAGS
  C compiler flags for LIBCRYPT, overriding pkg-config
  LIBCRYPT_LIBS
  linker flags for LIBCRYPT, overriding pkg-config

--

___
Python tracker 

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



[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-07 Thread STINNER Victor


New submission from STINNER Victor :

_PyUnicode_EqualToASCIIId() seems to be incompatible with subinterpreter: it 
makes the assumption that if direct pointer comparison fails and the string is 
interned, the two strings are not equal.

--

super_init_without_args() of Objects/typeobject.c calls 
_PyUnicode_EqualToASCIIId(name, &PyId___class__) to test if the Unicode string 
'name' is equal to "__class__".

int
_PyUnicode_EqualToASCIIId(PyObject *left, _Py_Identifier *right)
{
right_uni = _PyUnicode_FromId(right);
...
if (left == right_uni)
return 1;
if (PyUnicode_CHECK_INTERNED(left))
return 0;
...
return unicode_compare_eq(left, right_uni);
}

_PyUnicode_EqualToASCIIId() makes the assumption that left and right are not 
equal if left and _PyUnicode_FromId(right) pointers are not equal and left is 
an interned string.

In the reproducer, left object is abc.ABCMeta.__new__.__code__.co_freevars[0].

Depending on how the stdlib abc.py file was loaded (in the main interpreter and 
in the subinterpreter), __code__.co_freevars[0] may or may not be an interned 
string.

If __code__.co_freevars[0] is an interned string, _PyUnicode_EqualToASCIIId() 
fails in a subinterpreter if the direct pointer comparison fails (if left and 
right_uni pointers are not equal).

--

Reproducer from: https://github.com/ninia/jep/issues/358#issuecomment-988090696

* Build Python 3.10 with "./configure --enable-shared --prefix /opt/py310" and 
install it.
* Download attached reproducer.c.
* Build the reproducer with: 
  gcc -o reproducer reproducer.c $(/opt/py310/bin/python3.10-config --embed 
--cflags --ldflags)
* Remove all stdlib .pyc files:
  find /opt/py310 -type d -name __pycache__|xargs rm -rf
* Run the reproducer with:
  LD_LIBRARY_PATH=/opt/py310/lib ./reproducer

Output:
---
Before creating sub interpreter
Traceback (most recent call last):
  File "/opt/py310/lib/python3.10/io.py", line 52, in 
  File "/opt/py310/lib/python3.10/abc.py", line 184, in 
  File "/opt/py310/lib/python3.10/abc.py", line 106, in __new__
RuntimeError: super(): __class__ cell not found
Fatal Python error: _PyThreadState_Delete: tstate 0x7f9f2001c710 is still 
current
Python runtime state: initialized

Current thread 0x7f9f27c99640 (most recent call first):
  
Abandon (core dumped)
---

py-bt command in gdb:
---
(gdb) py-bt
Traceback (most recent call first):
  File "/opt/py310/lib/python3.10/abc.py", line 106, in __new__
cls = super().__new__(mcls, name, bases, namespace, **kwargs)
  
  File "/opt/py310/lib/python3.10/abc.py", line 184, in 
class ABC(metaclass=ABCMeta):
  
  File "", line 241, in _call_with_frames_removed
  File "", line 883, in exec_module
  File "", line 688, in _load_unlocked
  File "", line 1006, in _find_and_load_unlocked
  File "", line 1027, in _find_and_load
  File "/opt/py310/lib/python3.10/io.py", line 52, in 
import abc
  
  File "", line 241, in _call_with_frames_removed
  File "", line 883, in exec_module
  File "", line 688, in _load_unlocked
  File "", line 1006, in _find_and_load_unlocked
  File "", line 1027, in _find_and_load
  
---

--
components: C API, Subinterpreters
files: reproducer.c
messages: 407950
nosy: corona10, erlendaasland, vstinner
priority: normal
severity: normal
status: open
title: [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters
versions: Python 3.10, Python 3.11
Added file: https://bugs.python.org/file50482/reproducer.c

___
Python tracker 

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



[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-07 Thread STINNER Victor


STINNER Victor  added the comment:

In Python 3.9, the code works because the _Py_IDENTIFIER() API shares Python 
Unicode objects between all interpreters.

_PyUnicode_FromId() was modified to be per-interpreter in bpo-39465 by:

New changeset ba3d67c2fb04a7842741b1b6da5d67f22c579f33 by Victor Stinner in 
branch 'master':
bpo-39465: Fix _PyUnicode_FromId() for subinterpreters (GH-20058)
https://github.com/python/cpython/commit/ba3d67c2fb04a7842741b1b6da5d67f22c579f33

--

___
Python tracker 

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



[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-07 Thread STINNER Victor


STINNER Victor  added the comment:

Serhiy: Do you recall the idea of the PyUnicode_CHECK_INTERNED() optimization?

The PyUnicode_CHECK_INTERNED() test is as old as the 
_PyUnicode_EqualToASCIIId() function.

commit f5894dd646f5e39918377b37b8c8694cebdca103
Author: Serhiy Storchaka 
Date:   Wed Nov 16 15:40:39 2016 +0200

Issue #28701: Replace _PyUnicode_CompareWithId with 
_PyUnicode_EqualToASCIIId.

The latter function is more readable, faster and doesn't raise exceptions.

Based on patch by Xiang Zhang.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-07 Thread STINNER Victor


STINNER Victor  added the comment:

> Depending on how the stdlib abc.py file was loaded (in the main interpreter 
> and in the subinterpreter), __code__.co_freevars[0] may or may not be an 
> interned string.

When the bug occurs, I see that the Python stdlib abc.py file is loaded twice: 
the main interpreter builds a code object, and then subinterpreter builds its 
own code object: same content, but different Python object (at different memory 
addresses so inequal pointers!).

I modified reproducer.c to add "Py_VerboseFlag = 1;" before the Py_Initialize() 
call. Truncated output:
---
...
# code object from /opt/py310/lib/python3.10/abc.py
...
# code object from /opt/py310/lib/python3.10/abc.py
Traceback (most recent call last):
  File "", line 1027, in _find_and_load
...
RuntimeError: super(): __class__ cell not found
...
---

--

___
Python tracker 

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



[issue39465] [subinterpreters] Design a subinterpreter friendly alternative to _Py_IDENTIFIER

2021-12-07 Thread STINNER Victor


STINNER Victor  added the comment:

This change introduced a subtle regression: bpo-46006 "[subinterpreter] 
_PyUnicode_EqualToASCIIId() issue with subinterpreters".

--

___
Python tracker 

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



[issue46007] [C API] PyUnicode_CHECK_INTERNED() doesn't work in the limited C API

2021-12-07 Thread STINNER Victor


New submission from STINNER Victor :

The PyUnicode_CHECK_INTERNED() macro uses the PyASCIIObject structure which is 
*excluded* from the limited C API:

/* Use only if you know it's a string */
#define PyUnicode_CHECK_INTERNED(op) \
(((PyASCIIObject *)(op))->state.interned)

Using this macro in the limited C API doesn't work.

I propose to remove it from the limited C API.

IMO it's not a good idea to fix the function in the limited C API by converting 
it to a regular function hiding the implementation details and so working at 
the ABI level. We should not expose such "implementation detail" (if a string 
is "interned or not") in the *limited* C API.

--
components: C API
messages: 407955
nosy: vstinner
priority: normal
severity: normal
status: open
title: [C API] PyUnicode_CHECK_INTERNED() doesn't work in the limited C API
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



[issue46007] [C API] PyUnicode_CHECK_INTERNED() doesn't work in the limited C API

2021-12-07 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +petr.viktorin

___
Python tracker 

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



[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-07 Thread STINNER Victor


STINNER Victor  added the comment:

There are around 27 _PyUnicode_EqualToASCIIId() calls in the Python code base. 
I don't think that avoiding _PyUnicode_EqualToASCIIId() is a good solution :-)

Fixing _PyUnicode_EqualToASCIIId() to make it compatible with subinterpreters 
sound more reasonable: remove the PyUnicode_CHECK_INTERNED() test optimization.

--

___
Python tracker 

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



[issue17780] the test suite should use a TEMPDIR in the build directory, not the source directory

2021-12-07 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> TEST_DATA_DIR for out-of-tree builds

___
Python tracker 

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



[issue45999] Links to packaging broken

2021-12-07 Thread Ned Deily


Ned Deily  added the comment:

Perhaps I'm misunderstanding to which links you are referring but I am not 
seeing any broken links in that section at the moment. Could you retry and, if 
so, list exactly which links do not work for you?

--
nosy: +ned.deily
status: open -> pending

___
Python tracker 

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



[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-12-07 Thread Christian Heimes


Change by Christian Heimes :


--
pull_requests: +28192
pull_request: https://github.com/python/cpython/pull/29967

___
Python tracker 

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



[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2021-12-07 Thread Irit Katriel


Change by Irit Katriel :


--
pull_requests: +28193
pull_request: https://github.com/python/cpython/pull/29968

___
Python tracker 

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



[issue23469] Delete Misc/*.wpr files

2021-12-07 Thread Berker Peksag


Change by Berker Peksag :


--
stage: resolved -> 
status: closed -> open
versions: +Python 3.11 -Python 3.4, Python 3.5

___
Python tracker 

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



[issue45986] 3.10.0 ships with older tcl/tk DLLs than 3.9.9 causing Windows Installer problems

2021-12-07 Thread Ned Deily


Change by Ned Deily :


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

___
Python tracker 

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



[issue27062] `inspect` doesn't have `__all__`

2021-12-07 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +easy
type: behavior -> enhancement
versions: +Python 3.11 -Python 3.5, Python 3.6

___
Python tracker 

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



[issue22910] test_pydoc test_synopsis_sourceless is a flaky test

2021-12-07 Thread Gregory P. Smith


Change by Gregory P. Smith :


--
resolution:  -> out of date
stage: needs patch -> 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



[issue45847] Port module setup to PY_STDLIB_MOD() macro and addext()

2021-12-07 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

After PR29747, some buildbots are failing:

https://buildbot.python.org/all/#/builders/58/builds/1217

for example:

```
0:35:41 load avg: 3.70 Re-running failed tests in verbose mode
0:35:41 load avg: 3.70 Re-running test_code in verbose mode
test_bad_index (test.test_code.CoExtra) ... ok
test_free_called (test.test_code.CoExtra) ... Fatal Python error: Illegal 
instruction
Current thread 0xb7bd4700 (most recent call first):
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/test_code.py",
 line 575 in test_free_called
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/unittest/case.py",
 line 547 in _callTestMethod
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/unittest/case.py",
 line 591 in run
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/unittest/case.py",
 line 646 in __call__
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/unittest/suite.py",
 line 122 in run
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/unittest/suite.py",
 line 84 in __call__
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/unittest/suite.py",
 line 122 in run
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/unittest/suite.py",
 line 84 in __call__
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/unittest/suite.py",
 line 122 in run
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/unittest/suite.py",
 line 84 in __call__
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/unittest/runner.py",
 line 197 in run
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/support/__init__.py",
 line 1009 in _run_suite
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/support/__init__.py",
 line 1135 in run_unittest
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/libregrtest/runtest.py",
 line 273 in _test_module
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/libregrtest/runtest.py",
 line 309 in _runtest_inner2
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/libregrtest/runtest.py",
 line 352 in _runtest_inner
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/libregrtest/runtest.py",
 line 227 in _runtest
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/libregrtest/runtest.py",
 line 257 in runtest
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/libregrtest/main.py",
 line 337 in rerun_failed_tests
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/libregrtest/main.py",
 line 715 in _main
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/libregrtest/main.py",
 line 658 in main
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/libregrtest/main.py",
 line 736 in main
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/test/__main__.py",
 line 2 in 
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/runpy.py", 
line 86 in _run_code
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.nondebug/build/Lib/runpy.py", 
line 196 in _run_module_as_main
```

unfortunately, this is blocking the release of Python 3.11 :(

--
nosy: +pablogsal
priority: normal -> release blocker

___
Python tracker 

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



  1   2   >