[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-04-02 Thread Inada Naoki


Change by Inada Naoki :


--
pull_requests: +23893
pull_request: https://github.com/python/cpython/pull/25146

___
Python tracker 

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



[issue26053] regression in pdb output between 2.7 and 3.5

2021-04-02 Thread STINNER Victor


STINNER Victor  added the comment:

> If we want to backport then we need both PRs.

Commit 652bfdee9495dca241d48278742fe035b7a82bdb is a bugfix and this issue is 
marked as Python 3.8-3.10, so yeah, a backport is worth it.

You can create a PR for Python 3.9 combining the two commits. I like to use 
"git cherry-pick -x " manually for that. And then, use the label to 
backport this PR to Python 3.8.

--

___
Python tracker 

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



[issue43510] PEP 597: Implemente encoding="locale" option and EncodingWarning

2021-04-02 Thread Inada Naoki


Inada Naoki  added the comment:


New changeset bec8c787ec72d73b39011bde3f3a93e9bb1174b7 by Inada Naoki in branch 
'master':
bpo-43510: Fix emitting EncodingWarning from _io module. (GH-25146)
https://github.com/python/cpython/commit/bec8c787ec72d73b39011bde3f3a93e9bb1174b7


--

___
Python tracker 

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



[issue37804] Remove Thread.isAlive in Python 3.9

2021-04-02 Thread STINNER Victor


STINNER Victor  added the comment:

> The threading documentation for 3.9 still claims "While they are not listed 
> below, the camelCase names used for some methods and functions in this module 
> in the Python 2.x series are still supported by this module." It would be 
> better to mention when isAlive was removed.

Do you want to propose a PR for that?

I see still 4 camelCase methods in threading.Thread:

* 'getName' => Thread.name can be get
* 'setName' => Thread.name can be set
* 'isDaemon' => Thread.name can be get
* 'setDaemon' => Thread.daemon can be set

--

___
Python tracker 

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



[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-04-02 Thread Łukasz Langa

Change by Łukasz Langa :


--
priority: release blocker -> deferred blocker

___
Python tracker 

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



[issue43223] [security] http.server: Open Redirection if the URL path starts with //

2021-04-02 Thread Łukasz Langa

Łukasz Langa  added the comment:

Deferred the blocker to a regular release due to lack of activity in time for 
the current expedited releases.

--
priority: release blocker -> deferred blocker

___
Python tracker 

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



[issue43124] [security] smtplib multiple CRLF injection

2021-04-02 Thread Łukasz Langa

Łukasz Langa  added the comment:

Deferred the blocker to a regular release due to lack of activity in time for 
the current expedited releases.

--
priority: release blocker -> deferred blocker

___
Python tracker 

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



[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-04-02 Thread Łukasz Langa

Łukasz Langa  added the comment:

Deferred the blocker to the next regular release due to lack of activity in 
time for the current expedited releases.

--

___
Python tracker 

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



[issue43687] use unicode_state empty string before unicode_init. without define WITH_DOC_STRINGS

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner
nosy_count: 1.0 -> 2.0
pull_requests: +23894
pull_request: https://github.com/python/cpython/pull/25147

___
Python tracker 

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



[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2021-04-02 Thread Roundup Robot


Change by Roundup Robot :


--
nosy: +python-dev
nosy_count: 11.0 -> 12.0
pull_requests: +23895
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/25148

___
Python tracker 

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



[issue43664] Long computations in pdb.run() lead to segfault

2021-04-02 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

```pdb.run(...)``` is ends up in ```bdb.Bdb.run```, which uses compile and exec 
to run the code.

And indeed:

>>> compile("1+2" * 100, "-", "exec")
zsh: segmentation fault  python3.9

--
components: +Interpreter Core
nosy: +ronaldoussoren

___
Python tracker 

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



[issue26053] regression in pdb output between 2.7 and 3.5

2021-04-02 Thread Irit Katriel


Change by Irit Katriel :


--
pull_requests: +23896
pull_request: https://github.com/python/cpython/pull/25149

___
Python tracker 

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



[issue43703] xml.etree parser does not accept valid control characters

2021-04-02 Thread Romuald Brunet


New submission from Romuald Brunet :

Python XML parser (xml.etree) does not seems to allow control characters that 
are invalid in XML 1.0, but valid in XML 1.1 [1] [2]


Considering the following sample:


import xml.etree.ElementTree as ET

bad = 'bar  baz'
print(ET.fromstring(bad))


The parser raises the following error:
ParseError: reference to invalid character number: line 1, column 30



[1] https://www.w3.org/TR/xml11/Overview.html#charsets
[2] https://www.w3.org/TR/xml11/Overview.html#sec-xml11

--
components: XML
messages: 390050
nosy: Romuald
priority: normal
severity: normal
status: open
title: xml.etree parser does not accept valid control characters
versions: Python 3.9

___
Python tracker 

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



[issue26053] regression in pdb output between 2.7 and 3.5

2021-04-02 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 7ad56e254519047aeb9c669b9ea2f2bf0acfd401 by Irit Katriel in 
branch '3.9':
[3.9] bpo-26053: Fix args echoed by pdb run command  (GH-25149)
https://github.com/python/cpython/commit/7ad56e254519047aeb9c669b9ea2f2bf0acfd401


--

___
Python tracker 

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



[issue26053] regression in pdb output between 2.7 and 3.5

2021-04-02 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +23897
pull_request: https://github.com/python/cpython/pull/25150

___
Python tracker 

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



[issue26053] regression in pdb output between 2.7 and 3.5

2021-04-02 Thread miss-islington


miss-islington  added the comment:


New changeset 2049bb2517c08b0d9eaaa4dd624afa5d60e8b5a8 by Miss Islington (bot) 
in branch '3.8':
[3.9] bpo-26053: Fix args echoed by pdb run command  (GH-25149)
https://github.com/python/cpython/commit/2049bb2517c08b0d9eaaa4dd624afa5d60e8b5a8


--

___
Python tracker 

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



[issue26053] regression in pdb output between 2.7 and 3.5

2021-04-02 Thread Irit Katriel


Irit Katriel  added the comment:

Thanks, Victor.

I created a workflow issue for the CI question:
https://github.com/python/core-workflow/issues/393

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



[issue39947] [C API] Make the PyThreadState structure opaque (move it to the internal C API)

2021-04-02 Thread STINNER Victor


STINNER Victor  added the comment:

About setting frame local variables, see:

* bpo-42197: Disable automatic update of frame locals during tracing
* bpo-30744: Local variable assignment is broken when combined with threads + 
tracing + closures
* PEP 558: Defined semantics for locals()
  https://www.python.org/dev/peps/pep-0558/

--

___
Python tracker 

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



[issue43703] xml.etree parser does not accept valid control characters

2021-04-02 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +eli.bendersky, scoder, serhiy.storchaka

___
Python tracker 

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



[issue43664] Long computations in pdb.run() lead to segfault

2021-04-02 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

This looks like a duplicate of https://bugs.python.org/issue42714 which has 
been fixed.

--
nosy: +xtreak

___
Python tracker 

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



[issue37804] Remove Thread.isAlive in Python 3.9

2021-04-02 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:

Sure, I can submit a PR. While we're at it, we should probably also deprecate 
the setter/getter methods that you mention.

Here's what I propose doing:
- On 3.10 (or 3.11 if it's too late for 3.10), make getName and friends throw a 
DeprecationWarning, scheduling them for removal in 3.12 or 3.13
- On 3.8 and lower, update the docs to explicitly call out the names of the 
deprecated methods
- On 3.9 and higher, update the docs similarly but mention that 
threading.isAlive was already removed

If there's no objection, I'll open separate issues and PRs for these in a few 
days.

--

___
Python tracker 

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



[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-02 Thread STINNER Victor


STINNER Victor  added the comment:

I modified my PR 25131 to only implement Py_INCREF/Py_DECREF as opaque function 
calls under two conditions:

* Python is built in debug mode
* Py_LIMITED_API macro targets Python 3.10 or newer

So this PR 25131 now only has an impact on performance if Python is built in 
debug mode. Performance on Python built in release mode is not affected.

--

___
Python tracker 

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



[issue43568] Drop support for Mac OS X < 10.3 module linking

2021-04-02 Thread Joshua Root


Joshua Root  added the comment:

Here's the PR for pypa/distutils, which is just relaxing the MDT check since it 
has to work with older Python versions: 
https://github.com/pypa/distutils/pull/36

--

___
Python tracker 

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



[issue37804] Remove Thread.isAlive in Python 3.9

2021-04-02 Thread STINNER Victor


STINNER Victor  added the comment:

> we should probably also deprecate the setter/getter methods that you mention

You can deprecate them. Please open a new issue for that, this one is closed 
and specific to Thread.isAlive.

--

___
Python tracker 

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



[issue43687] use unicode_state empty string before unicode_init. without define WITH_DOC_STRINGS

2021-04-02 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 442ad74fc2928b095760eb89aba93c28eab17f9b by Victor Stinner in 
branch 'master':
bpo-43687: Py_Initialize() creates singletons earlier (GH-25147)
https://github.com/python/cpython/commit/442ad74fc2928b095760eb89aba93c28eab17f9b


--

___
Python tracker 

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



[issue43687] use unicode_state empty string before unicode_init. without define WITH_DOC_STRINGS

2021-04-02 Thread STINNER Victor


STINNER Victor  added the comment:

It's now fixed, thanks for the bug report.

--
components: +Interpreter Core
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



[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-02 Thread STINNER Victor


STINNER Victor  added the comment:

In release mode, I get the libraries:

* xxlimited.cpython-310-x86_64-linux-gnu.so
* xxlimited_35.cpython-310-x86_64-linux-gnu.so

In debug mode, I get the libraries:

* xxlimited.cpython-310d-x86_64-linux-gnu.so
* xxlimited_35.cpython-310d-x86_64-linux-gnu.so

It's still a different ABI: "cpython-310" vs "cpython-310d" ("D" for debug). So 
there is risk to be confused between the stable ABI in release mode and the 
stable ABI in debug mode :-) I don't how how to get the ".abi3.so" suffix.

--

___
Python tracker 

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



[issue36465] Make release and debug ABI compatible

2021-04-02 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 3359cab038968935b40344fad7c30d211f9692e4 by Victor Stinner in 
branch 'master':
bpo-43688: Support the limited C API in debug mode (GH-25131)
https://github.com/python/cpython/commit/3359cab038968935b40344fad7c30d211f9692e4


--

___
Python tracker 

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



[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-02 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 3359cab038968935b40344fad7c30d211f9692e4 by Victor Stinner in 
branch 'master':
bpo-43688: Support the limited C API in debug mode (GH-25131)
https://github.com/python/cpython/commit/3359cab038968935b40344fad7c30d211f9692e4


--

___
Python tracker 

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



[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +23898
pull_request: https://github.com/python/cpython/pull/25151

___
Python tracker 

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



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

2021-04-02 Thread Mark Shannon


Change by Mark Shannon :


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

___
Python tracker 

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



[issue43703] xml.etree parser does not accept valid control characters

2021-04-02 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

It is a known issue, see issue11804 and issue39512.

In short, the underlying library for XML parsing (expat) does not support XML 
1.1 and does not have plans to support it. And seems that XML 1.1 is a dead 
standard if it is not supported in popular parsing libraries.

>From where you get your XML data? What programs generated them?

--

___
Python tracker 

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



[issue43703] xml.etree parser does not accept valid control characters

2021-04-02 Thread Romuald Brunet


Romuald Brunet  added the comment:

Thanks for the quick reply

We're getting data from about a hundred different providers around the world; 
some of them not really keen on standards, so we already have some hacks to fix 
invalid XML. We'll add one to the list

In that particular case, the XML was invalid anyway since it was an XML 1.0 
document, and the character was sent as "binary" (\x19)

--

___
Python tracker 

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



[issue43688] [C API] Support the limited C API in debug mode (Py_INCREF and Py_DECREF)

2021-04-02 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 9bb5658bd122d40fff9f34a912be3297b303d18b by Victor Stinner in 
branch 'master':
bpo-43688: Support "make regen-limited-abi" in debug mode (GH-25133)
https://github.com/python/cpython/commit/9bb5658bd122d40fff9f34a912be3297b303d18b


--

___
Python tracker 

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



[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-04-02 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 240bcf82a11fe7433a61da70605e924c53b88096 by Victor Stinner in 
branch 'master':
bpo-4: xxlimited.c defines Py_LIMITED_API (GH-25151)
https://github.com/python/cpython/commit/240bcf82a11fe7433a61da70605e924c53b88096


--

___
Python tracker 

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



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

2021-04-02 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

This doesn't look simpler to me.  We will forever lose mental clock cycles 
disentangling the locals and cells.  So, I don't think they should be 
commingled.

--
nosy: +rhettinger

___
Python tracker 

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



[issue31956] Add start and stop parameters to the array.index()

2021-04-02 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset afd12650580725ac598b2845384771c14c4f952e by Zackery Spytz in 
branch 'master':
bpo-31956: Add start and stop parameters to array.index() (GH-25059)
https://github.com/python/cpython/commit/afd12650580725ac598b2845384771c14c4f952e


--

___
Python tracker 

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



[issue36207] référencement naturel

2021-04-02 Thread Eric Gavrel

Eric Gavrel  added the comment:

Le sujet n'était il pas à l'origine https://myseosimple.com/> le 
référencement naturel ? L'automation peut aussi être d'utilité en SEE si on 
a la bonne librairie.

--
nosy: +EricG -ideeanimationanniversaire, jeanotlapin, nico702
title: robotsparser deny all with some rules -> référencement naturel

___
Python tracker 

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



[issue36207] référencement naturel

2021-04-02 Thread Eric Gavrel

Eric Gavrel  added the comment:

Le sujet n'était il pas à l'origine le référencement naturel comme indiqué sur 
ce site www.myseosimple.com ? L'automation peut aussi être d'utilité en SEE si 
on a la bonne librairie.

--

___
Python tracker 

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



[issue36207] référencement naturel

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg390072

___
Python tracker 

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



[issue36207] référencement naturel

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg390071

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor

Change by STINNER Victor :


--
title: référencement naturel -> robotsparser deny all with some rules

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg381443

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg385859

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg379616

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg379615

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg378070

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg372112

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg374629

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg367546

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg366509

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg374642

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg376032

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg377125

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg377058

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg370275

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg365770

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


STINNER Victor  added the comment:

I removed almost all messages of this issue since most of them looked list 
SPAM. I also blocked user accounts who posted SPAM. If it was a mistake, 
contact me.

This is the Python bug tracker, not a forum to ask questions how to use Python, 
or to report bugs in your website.

Multiple comments were written in French, whereas this bug tracker is in 
English.

I even hesitate to close the issue since it got too many SPAM comments.

--
nosy: +vstinner

___
Python tracker 

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



[issue36207] robotsparser deny all with some rules

2021-04-02 Thread STINNER Victor


Change by STINNER Victor :


--
Removed message: https://bugs.python.org/msg338298

___
Python tracker 

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



[issue41670] ceval traces code differently with USE_COMPUTED_GOTOS

2021-04-02 Thread Ammar Askar


Change by Ammar Askar :


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



[issue34398] Docs search should prominently show definitions and glossary items

2021-04-02 Thread Ammar Askar


Ammar Askar  added the comment:

Thank you to Julien for reviewing, we ended up going with our own solution 
instead of waiting on Sphinx and I think it looks good :)

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



[issue40932] subprocess docs should warn of shlex use on Windows

2021-04-02 Thread Ammar Askar


Ammar Askar  added the comment:

Thank you Steve and Zachary for reviewing, this warning is in the docs now.

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



[issue40705] use-after-free in _zoneinfo.c's module_free function

2021-04-02 Thread Ammar Askar


Change by Ammar Askar :


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



[issue41283] The parameter name for imghdr.what in the documentation is wrong

2021-04-02 Thread Ammar Askar


Change by Ammar Askar :


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



[issue29505] Submit the re, json, csv, & struct modules to oss-fuzz testing

2021-04-02 Thread Ammar Askar


Ammar Askar  added the comment:

All the modules prescribed in the original bug are now actively being fuzzed, 
thank you to Devin for the original work on this and Gregory for reviewing all 
these changes.

I'm closing this now, feel free to make a new bug and nosy me in if there are 
any other C-based modules commonly exposed to user input that should be fuzzed.

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



[issue24160] Pdb sometimes raises exception when trying to remove a breakpoint defined in a different debugger session

2021-04-02 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset ad442a674ca443feec43a88a2d3671784712e550 by Irit Katriel in 
branch 'master':
bpo-24160: Fix breakpoints persistence across multiple pdb sessions (GH-21989)
https://github.com/python/cpython/commit/ad442a674ca443feec43a88a2d3671784712e550


--
nosy: +gvanrossum

___
Python tracker 

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



[issue40012] Avoid Python 2 documentation to appear in Web search results

2021-04-02 Thread Ammar Askar


Ammar Askar  added the comment:

This has been fixed as part of 
https://github.com/python/docsbuild-scripts/pull/99

Thank you to Julien, our Google results are much cleaner now :)

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



[issue33757] Failed separate test_pdb_next_command_in_generator_for_loop in test_pdb

2021-04-02 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> Missing (optional) argument `start` and `end` in documentation 
for list.index

___
Python tracker 

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



[issue24160] Pdb sometimes raises exception when trying to remove a breakpoint defined in a different debugger session

2021-04-02 Thread Irit Katriel


Irit Katriel  added the comment:

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



[issue33757] Failed separate test_pdb_next_command_in_generator_for_loop in test_pdb

2021-04-02 Thread Irit Katriel


Change by Irit Katriel :


--
superseder: Missing (optional) argument `start` and `end` in documentation for 
list.index -> Pdb sometimes raises exception when trying to remove a breakpoint 
defined in a different debugger session

___
Python tracker 

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



[issue43704] ShareableList() raises TypeError when passing "name" keyword

2021-04-02 Thread Steve Newcomb


New submission from Steve Newcomb :

This is especially weird because the Python source code says:

class ShareableList:
[...]
   def __init__(self, sequence=None, *, name=None):

--
components: Library (Lib)
files: shareableListBug.txt
messages: 390080
nosy: steve.newcomb
priority: normal
severity: normal
status: open
title: ShareableList() raises TypeError when passing "name" keyword
type: behavior
versions: Python 3.9
Added file: https://bugs.python.org/file49928/shareableListBug.txt

___
Python tracker 

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



[issue43705] [docs] Document that SyntaxError's offsets are 1-indexed

2021-04-02 Thread Ammar Askar


New submission from Ammar Askar :

As pointed out by Guido in https://bugs.python.org/issue43555, we switched to 
making the column offsets for SyntaxError be 1-indexed consistently in 
https://bugs.python.org/issue34683

The rationale is explained by Guido and expanded upon in follow up comments 
here: https://github.com/python/cpython/pull/9338#pullrequestreview-155989089 

This property however was not actually ever added to SyntaxError's 
documentation: https://docs.python.org/3/library/exceptions.html#SyntaxError

--
assignee: docs@python
components: Documentation
messages: 390081
nosy: ammar2, docs@python, gvanrossum, terry.reedy
priority: normal
severity: normal
status: open
title: [docs] Document that SyntaxError's offsets are 1-indexed
versions: Python 3.9

___
Python tracker 

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



[issue27129] Wordcode, part 2

2021-04-02 Thread STINNER Victor


STINNER Victor  added the comment:

I get two crashes on Windows with Python built in debug mode:

* I got a crash. I wasn't sure if it was an issue of incremental build, so I 
rebuilt Python.
* On a fresh build, Python crashed on the CALL_FUNCTION_KW opcode, when loading 
names, names was equal to 0x:

names = POP();
assert(PyTuple_Check(names)); <=== HERE

  Moreover, f->f_code was equal to 0xCBCBCBCBCBCBCBCB. But it was really weird. 
I added assertion to ensure that f->f_code was not equal 0xCBCBCBCBCBCBCBCB: 
the assertion didn't fail.

* I ran "git clean -fdx" and built again Python. This time, it went fine, 
moreover the whole test suite passed cleanly!? "== Tests result: SUCCESS ==" 
and "386 tests OK."

I build Python with:

   PCbuild\build.bat -d -p x64 -e

--

___
Python tracker 

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



[issue43705] [docs] Document that SyntaxError's offsets are 1-indexed

2021-04-02 Thread Ammar Askar


Change by Ammar Askar :


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

___
Python tracker 

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



[issue43706] enumerate() instantiation time reducing by using PEP 590 vectorcall

2021-04-02 Thread Dong-hee Na


Change by Dong-hee Na :


--
type:  -> performance
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



[issue43706] enumerate() instantiation time reducing by using PEP 590 vectorcall

2021-04-02 Thread Dong-hee Na


New submission from Dong-hee Na :

Finally, I success to implement PEP 590 for enumerate type which is the 
well-used type in Python.

Amazingly enhanced!

+-+++
| Benchmark   | enumerate_bench_master | enumerate_bench_vectorcall |
+=+++
| bench enumerate | 527 ns | 380 ns: 1.39x faster   |
+-+++

--
files: bench_enumerate.py
messages: 390083
nosy: corona10, vstinner, xtreak
priority: normal
severity: normal
status: open
title: enumerate() instantiation time reducing by using PEP 590 vectorcall
Added file: https://bugs.python.org/file49929/bench_enumerate.py

___
Python tracker 

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



[issue43706] enumerate() instantiation time reducing by using PEP 590 vectorcall

2021-04-02 Thread Dong-hee Na


Change by Dong-hee Na :


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

___
Python tracker 

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



[issue43707] onerror in tempfile has an invalid raise expression

2021-04-02 Thread Maximilian Roos

New submission from Maximilian Roos :

The raise expression 
[here](https://github.com/python/cpython/blob/ad442a674ca443feec43a88a2d3671784712e550/Lib/tempfile.py#L826)
 isn't valid, since it isn't in an except block.

It'll still raise, given it's invalid, though not with the exception it should 
be raising with...

I think this diff will fix it, I can put this in as a PR if that's reasonable. 
Though I'm not sure how to test it — we need to generate an error that's not 
covered by the existing cases. 

```diff

diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index efcf7a7fb3..227e25d0fc 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -823,7 +823,7 @@ def resetperms(path):
 pass
 else:
 if not ignore_errors:
-raise
+raise exc_info[1]
 
 _shutil.rmtree(name, onerror=onerror)

```

--
components: Library (Lib)
messages: 390084
nosy: max-sixty
priority: normal
severity: normal
status: open
title: onerror in tempfile has an invalid raise expression
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



[issue27129] Wordcode, part 2

2021-04-02 Thread David Bolen


David Bolen  added the comment:

Ah, Victor, that helps.  I was having trouble reproducing the problem on a 
different system.  I was suspecting a small difference in compiler version, but 
I hadn't considered it being because I started fresh.

>From what I can see, a particular build tree can be successful if it remains 
>on either side of the instruction commit, but you can't cross the boundary - 
>in either direction.  There's clearly some build artifact not being reset 
>properly that gets out of sync.  I've been able to create odd name errors even 
>in older commits as long as the first one I build is at or after the 
>instruction commit.

But a pristine checkout on the buildbot of the latest master works, as does a 
git clean on the tree. 

I always use the buildbot scripts for building and they invoke a full clean 
first.  So either the clean process on Windows is missing something, or there's 
an artifact that is supposed to be kept in sync in the source tree itself that 
isn't.  I'm not familiar enough with the internals to guess at which yet.  I 
suppose given that it's not a problem on other buildbots argues for the clean 
issue, although I suppose it could also be something that is only kept in the 
tree to benefit a subset of systems, like Windows.

(While resetting the checkouts on the buildbot should therefore fix the current 
exceptions, I'm going to leave that alone for the moment, since that leaves it 
positioned to confirm any subsequent fix)

--

___
Python tracker 

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



[issue42380] Build windows binaries with MS VS2019 16.8+ / MSVC 19.28+

2021-04-02 Thread Steve Dower


Steve Dower  added the comment:

Closing this as not a bug, since the toolchain used to build CPython itself has 
no impact on the toolchain that extensions can use.

If your build tool is not detecting newer versions of MSVC, you'll need to file 
that against whichever backend you are using.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue43704] ShareableList() raises TypeError when passing "name" keyword

2021-04-02 Thread Steve Newcomb


Steve Newcomb  added the comment:

I just tried the same thing on Python-3.10.0a6.  Same behavior.

--

___
Python tracker 

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



[issue27129] Wordcode, part 2

2021-04-02 Thread David Bolen


David Bolen  added the comment:

I'm out of time for a bit, but it appears that the root issue is old pyc files 
in Tools/clinic/__pycache__ that aren't removed during a clean process, and 
appear to be the source of all of the errors.  Manually pruning that folder 
fixes things.

I believe the regular (non-Windows) makefile automatically prunes all 
__pycache__ folders in the tree during clean which is probably why that's not 
an issue on other systems.

--

___
Python tracker 

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



[issue31842] pathlib: "Incorrect function" during resolve()

2021-04-02 Thread _


_  added the comment:

Still happening on Python 3.9.2 on Win10 when using a Ram Drive.

Any chance of getting this fixed?

--
nosy: +riffitos

___
Python tracker 

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



[issue43707] onerror in tempfile has an invalid raise expression

2021-04-02 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

Adding Serhiy, who added the code in question in commit 
e9b51c0ad81da1da11ae65840ac8b50a8521373c (GH-10320, bpo-26660, bpo-35144).

--
nosy: +erlendaasland, serhiy.storchaka

___
Python tracker 

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



[issue43707] onerror in tempfile has an invalid raise expression

2021-04-02 Thread Eryk Sun


Eryk Sun  added the comment:

> It'll still raise, given it's invalid, though not with the 
> exception it should be raising with...

onerror() is always called to handle an exception, and `raise` will re-raise 
that exception. Is there a specific case where this isn't working as expected 
for you?

--
nosy: +eryksun

___
Python tracker 

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



[issue43704] ShareableList() raises TypeError when passing "name" keyword

2021-04-02 Thread Steve Newcomb


Steve Newcomb  added the comment:

And again with 3.8.8, with the same result.

I also tried just using the same shared memory manager again within the same 
process, just as shown in the documentation.  Same result:

TypeError: ShareableList() got an unexpected keyword argument 'name'

I must be missing something too obvious for me to see it?  Or has ShareableList 
not worked at least since 3.8.8?

--

___
Python tracker 

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



[issue42248] Raised exception in Enum keeping user objects alive unnecessarily

2021-04-02 Thread Mark Dickinson


Mark Dickinson  added the comment:

I'm running into this, too, on Python 3.9.2; in my case it's causing 
segmentation faults in a wxPython-based application. 

Those segfaults aren't the fault of the reference cycle, of course; they're a 
result of wxPython being finicky about object cleanup order, but the existence 
of the enum reference cycle does make it harder to maneuver wxPython into a 
place where it doesn't crash.

--
nosy: +ethan.furman, mark.dickinson

___
Python tracker 

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



[issue43672] Raise ImportWarning when calling find_loader()

2021-04-02 Thread Brett Cannon


Brett Cannon  added the comment:


New changeset f97dc800689ba98783dac8dc51f87f7c6f413ac6 by Brett Cannon in 
branch 'master':
bpo-43672: raise ImportWarning when calling find_loader() (GH-25119)
https://github.com/python/cpython/commit/f97dc800689ba98783dac8dc51f87f7c6f413ac6


--

___
Python tracker 

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



[issue43672] Raise ImportWarning when calling find_loader()

2021-04-02 Thread Brett Cannon


Change by Brett Cannon :


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



[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-04-02 Thread Brett Cannon


Change by Brett Cannon :


--
title: [importlib] Deprecate find_module() implementations -> [importlib] 
Deprecate find_module() & find_loader() mplementations

___
Python tracker 

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



[issue42248] Raised exception in Enum keeping user objects alive unnecessarily

2021-04-02 Thread Mark Dickinson


Mark Dickinson  added the comment:

Here's a cut-down example, at the prompt:

Python 3.9.2 (default, Mar 31 2021, 05:47:22) 
[Clang 11.0.3 (clang-1103.0.32.62)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import signal
>>> class App: pass
... 
>>> def create_app():
... app = App()
... signal.signal(signal.SIGINT, signal.SIG_DFL)
... 
>>> create_app()

At this point, since the App() instance was local to create_app, and wasn't 
returned, I'd expect there to be no App objects alive in the system. But it 
turns out there's still an App object being kept alive:

>>> import gc
>>> [obj for obj in gc.get_objects() if type(obj) is App]
[<__main__.App object at 0x10acb3d90>]

The cause is a call to _int_to_enum in signal.py which attempts to coerce the 
default signal handler to an element of Handlers. That coercion fails, leaving 
an exception

  ValueError(' is not a valid Handlers')

The traceback on that exception leads to the frame containing the call to 
Enum.__new__, which in turn contains a reference ve_exc back to the exception.

[In the real code, App was a wx.App object, and the App.__init__ method played 
the role of create_app.]

--

___
Python tracker 

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



[issue43707] onerror in tempfile has an invalid raise expression

2021-04-02 Thread Maximilian Roos

Maximilian Roos  added the comment:

I see @eryksun — by convention `onerror` is always called in an except block, 
and so having a bare `raise` outside of an explicit except block is OK.

Thanks for clarifying. I'll close this.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue43708] Tkinter theme settings object schema is missing

2021-04-02 Thread WHK


New submission from WHK :

By example

style = ttk.Style()
style.theme_settings('default', settings={
'.': []
})

Tkinter settings schema or typed data is missing. By example:

_tkinter.TclError: Invalid state name d

This error message does not provide the missing parameter information, by 
example expected: "Tupe is required in .::Map background, not dict"

--
components: Tkinter
messages: 390097
nosy: WHK102
priority: normal
severity: normal
status: open
title: Tkinter theme settings object schema is missing
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



[issue43709] Windows Tools\buildbot\clean.bat misses some needed pyc/pyo removal

2021-04-02 Thread David Bolen


New submission from David Bolen :

The Tools\buildbot\clean.bat script used on Windows only removes pyc/pyo files 
from the Lib tree, leaving some files beneath Tools (clinic and peg_generator) 
and Parser (asdl).  This can cause failures following commits that affect those 
files, such as fcb55c0037baab6f98f91ee38ce84b6f874f034a (in issue #27129) 
leading to subsequent crashes or anomalous behavior.

This appears to have been true for a while, though only the 3.10 branch ran 
into the issue, so any fix might also be back-ported to the other active 
branches.

--
components: Build, Windows
messages: 390098
nosy: db3l, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Windows Tools\buildbot\clean.bat misses some needed pyc/pyo removal
type: crash
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



[issue27129] Wordcode, part 2

2021-04-02 Thread David Bolen


David Bolen  added the comment:

I've opened issue #43709 for fixing the buildbot clean script under Windows.  
It needs to clean the Tools and Parser trees, not just Lib (and there are a few 
other folders involved besides clinic)

--

___
Python tracker 

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



[issue43709] Windows Tools\buildbot\clean.bat misses some needed pyc/pyo removal

2021-04-02 Thread David Bolen


David Bolen  added the comment:

Something like this is a quick 'n dirty minimal fix - at least it seems to 
solve the problem that arose in issue #27129 on the Win10 buildbot:

--- a/Tools/buildbot/clean.bat
+++ b/Tools/buildbot/clean.bat
@@ -11,6 +11,8 @@ call "%pcbuild%\build.bat" -t Clean -k -d %*
 
 echo Deleting .pyc/.pyo files ...
 del /s "%root%\Lib\*.pyc" "%root%\Lib\*.pyo"
+del /s "%root%\Tools\*.pyc" "%root%\Tools\*.pyo"
+del /s "%root%\Parser\*.pyc" "%root%\Parser\*.pyo"
 
 echo Deleting test leftovers ...
 rmdir /s /q "%root%\build"

but since this only covers the buildbot script, someone working within the 
regular VS IDE and just using the clean target of the projects could presumably 
run into the same issue.  Or is there some other way to fully clean a working 
tree from within the IDE?  Not sure how important that is to address in any 
event.

--

___
Python tracker 

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



[issue43684] Add combined opcodes

2021-04-02 Thread Guido van Rossum


Guido van Rossum  added the comment:

Microbench results for ADD_INT:
https://github.com/python/cpython/pull/25090#issuecomment-810441738

I have a few others like this lined up -- Mark recommended submitting them one 
at a time to make review easier.

My philosophy here (which I learned from Tim Peters in the early 2000s) is that 
even though each individual improvement has no measurable effect on a general 
benchmark (as shown in the same comment), the combined effect of a number of 
tiny improvements can be significant.

We have reached a point where there are very few individual changes possible 
that still have a significant effect, but we should not use this as an excuse 
to stop trying to improve performance.

I have mislaid the results that made me think this particular opcode is a good 
candidate; I will go back to reproduce that result and get back to you here.

--

___
Python tracker 

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



[issue43705] [docs] Document that SyntaxError's offsets are 1-indexed

2021-04-02 Thread miss-islington


miss-islington  added the comment:


New changeset b2a91e0c9ee18b50cc86b21211c2258520a9f5d0 by Ammar Askar in branch 
'master':
bpo-43705: Document that SyntaxError's offsets are 1-indexed (GH-25153)
https://github.com/python/cpython/commit/b2a91e0c9ee18b50cc86b21211c2258520a9f5d0


--
nosy: +miss-islington

___
Python tracker 

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



[issue43705] [docs] Document that SyntaxError's offsets are 1-indexed

2021-04-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +23902
pull_request: https://github.com/python/cpython/pull/25155

___
Python tracker 

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



[issue43705] [docs] Document that SyntaxError's offsets are 1-indexed

2021-04-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +23903
pull_request: https://github.com/python/cpython/pull/25156

___
Python tracker 

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



  1   2   >