[issue46059] Typo in match Statement example

2021-12-13 Thread Alex Waygood


Change by Alex Waygood :


--
keywords: +patch
nosy: +AlexWaygood
nosy_count: 2.0 -> 3.0
pull_requests: +28300
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30079

___
Python tracker 

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



[issue45840] Improve cross-references in the data model documentation

2021-12-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 7da90251ae80f5faac938b659675ff159d565537 by Alex Waygood in 
branch '3.10':
bpo-45840: Improve cross-references in the data model documentation (GH-29633) 
(GH-30077)
https://github.com/python/cpython/commit/7da90251ae80f5faac938b659675ff159d565537


--

___
Python tracker 

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



[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2021-12-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset e08c0d8eec528f1d7a282ee19bcadb9aae9ec123 by Serhiy Storchaka in 
branch 'main':
bpo-27718: Fix help for the signal module (GH-30063)
https://github.com/python/cpython/commit/e08c0d8eec528f1d7a282ee19bcadb9aae9ec123


--

___
Python tracker 

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



[issue46061] Journal execution gives fatal error in Python 3.10.1

2021-12-13 Thread Ajaya Sutar


New submission from Ajaya Sutar :

+++ General Fault Exception
+++ Invalid read from 
rsp:   74b27f8a10, rip: 7ffe704e2f93, rbp:   74b27f8ce9
rsi:0, rdi:0
rax:0, rbx:   7f, rcx:  194b6e9, rdx:   
   194b6e9
r8:   194b6db96c0, r9: 1, r10: 8000, r11:   
74b27f8a00
r12:0, r13:0, r14:  19484550e40, r15:   
 0
[ 1] 7FFE704E2F93 pylifecycle\fatal_output_debug Line 2492 +0x43   
(python310) 
[ 2] 7FFE704E3CCA pylifecycle\fatal_error Line 2734 +0x2ba 
(python310) 
[ 3] 7FFE704E3E4C pylifecycle\_Py_FatalErrorFormat Line 2784 +0xec 
(python310) 
[ 4] 7FFE704E6F52 pystate\PyThreadState_Delete Line 930 +0x52  
(python310) 
[ 5] 7FFE704E1BF9 pylifecycle\new_interpreter Line 1967 +0x269 
(python310) 
[ 6] 7FFE704E1CDF pylifecycle\Py_NewInterpreter Line 1988 +0x1f
(python310)

--
components: C API
messages: 408431
nosy: eaqrzn
priority: normal
severity: normal
status: open
title: Journal execution gives fatal error in Python 3.10.1
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



[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2021-12-13 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +28301
pull_request: https://github.com/python/cpython/pull/30080

___
Python tracker 

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



[issue46061] Journal execution gives fatal error in Python 3.10.1

2021-12-13 Thread Eric V. Smith

Eric V. Smith  added the comment:

Please show the code that causes this problem. There’s not enough information 
here to reproduce this failure.

--
nosy: +eric.smith

___
Python tracker 

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



[issue45840] Improve cross-references in the data model documentation

2021-12-13 Thread Alex Waygood


Change by Alex Waygood :


--
pull_requests: +28302
pull_request: https://github.com/python/cpython/pull/30081

___
Python tracker 

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



[issue1525919] email package content-transfer-encoding behaviour changed

2021-12-13 Thread Thomas Arendsen Hein

Thomas Arendsen Hein  added the comment:

Default python3 on Debian buster:
$ python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import email.mime.text
>>> mt = email.mime.text.MIMEText('Ta mère', 'plain', 'utf-8')
>>> print(mt.as_string())
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64

VGEgbcOocmU=

>>> email.encoders.encode_quopri(mt)
>>> print(mt.as_string())
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Transfer-Encoding: quoted-printable

Ta=20m=C3=A8re

So the encoded text looks good now, but there are still duplicate headers.

Old output (python2.7) is identical to what Asheesh Laroia (paulproteus)
reported for python2.5:
---
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Transfer-Encoding: quoted-printable

VGEgbcOocmU=3D
---

--
status: pending -> open

___
Python tracker 

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



[issue45919] Use WinAPI GetFileType() in is_valid_fd()

2021-12-13 Thread Dong-hee Na


Change by Dong-hee Na :


--
keywords: +patch
nosy: +corona10
nosy_count: 5.0 -> 6.0
pull_requests: +28303
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/30082

___
Python tracker 

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



[issue1525919] email package content-transfer-encoding behaviour changed

2021-12-13 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3, Python 3.4

___
Python tracker 

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



[issue37602] nonzero fixer problem

2021-12-13 Thread Irit Katriel


Irit Katriel  added the comment:


New changeset 481f3ffdbe40bd19677a1ba0ac2e7cece8949b47 by Irit Katriel in 
branch 'main':
bpo-37602: Clarify that the lib2to3 nonzero fixer changes only definitions 
(GH-30075)
https://github.com/python/cpython/commit/481f3ffdbe40bd19677a1ba0ac2e7cece8949b47


--

___
Python tracker 

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



[issue37602] nonzero fixer problem

2021-12-13 Thread miss-islington


Change by miss-islington :


--
keywords: +patch
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +28304
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/30083

___
Python tracker 

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



[issue46056] Cannot use virtual environment on Windows 10 in corporate security settings

2021-12-13 Thread wolfgang kuehn


wolfgang kuehn  added the comment:

symlinks do not work for me, this may be another bug (should I create a new 
issue?):

python -m venv --without-pip --symlinks venv

Unable to symlink 
'C:\\Users\\\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\idle.exe'
 to 'C:\\\venv\\Scripts\\idle.exe'
Error: [Errno 22] Invalid argument: 
'C:\\Users\\\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\idle.exe'

--

___
Python tracker 

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



[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2021-12-13 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 7.0 -> 8.0
pull_requests: +28305
pull_request: https://github.com/python/cpython/pull/30084

___
Python tracker 

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



[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2021-12-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset e55deaabd8de338138cf29aea6890996e794c997 by Serhiy Storchaka in 
branch '3.10':
[3.10] bpo-27718: Fix help for the signal module (GH-30063) (GH-30080)
https://github.com/python/cpython/commit/e55deaabd8de338138cf29aea6890996e794c997


--

___
Python tracker 

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



[issue46062] In IDLE, 'File > Save As' seems not to allow creation of a new folder

2021-12-13 Thread Martin Whitehead


New submission from Martin Whitehead :

The problem: In both the IDLE shell and the editor,  'File > Save As' seems not 
to allow creation of a new folder.  

My system: 
IDLE v3.8.10 (64 bit)
Python 3.8.10 Tk version 8.6.10
Linus Mint  20.2 Uma (64 bit), which is based on Ubuntu 20.04 LTS (Focal Fossa)

--
assignee: terry.reedy
components: IDLE
messages: 408437
nosy: suffolkpunch, terry.reedy
priority: normal
severity: normal
status: open
title: In IDLE,  'File > Save As' seems not to allow creation of a new folder
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



[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

2021-12-13 Thread miss-islington


miss-islington  added the comment:


New changeset 80f98b1614cc8e58d8a5ec72c94d27f663e23035 by Miss Islington (bot) 
in branch '3.9':
[3.10] bpo-27718: Fix help for the signal module (GH-30063) (GH-30080)
https://github.com/python/cpython/commit/80f98b1614cc8e58d8a5ec72c94d27f663e23035


--

___
Python tracker 

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



[issue37602] nonzero fixer problem

2021-12-13 Thread Irit Katriel


Change by Irit Katriel :


--
pull_requests: +28306
pull_request: https://github.com/python/cpython/pull/30085

___
Python tracker 

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



[issue37602] nonzero fixer problem

2021-12-13 Thread Irit Katriel


Irit Katriel  added the comment:


New changeset 80eb8ab81fbe46497f16071b311c9d8e13ec2d3b by Miss Islington (bot) 
in branch '3.9':
bpo-37602: Clarify that the lib2to3 nonzero fixer changes only definitions 
(GH-30075) (GH-30083)
https://github.com/python/cpython/commit/80eb8ab81fbe46497f16071b311c9d8e13ec2d3b


--

___
Python tracker 

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



[issue37602] nonzero fixer problem

2021-12-13 Thread Irit Katriel


Irit Katriel  added the comment:


New changeset 310bae628a9b065d29dbdbf4f7f5beb9fcc72ace by Irit Katriel in 
branch '3.10':
[3.10] bpo-37602: Clarify that the lib2to3 nonzero fixer changes only 
definitions (GH-30075) (GH-30085)
https://github.com/python/cpython/commit/310bae628a9b065d29dbdbf4f7f5beb9fcc72ace


--

___
Python tracker 

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



[issue37602] nonzero fixer problem

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



[issue46056] Cannot use virtual environment on Windows 10 in corporate security settings

2021-12-13 Thread Eryk Sun


Eryk Sun  added the comment:

> symlinks do not work for me

Sorry, I forgot that you're using the store app. The store app has to use the 
copied venv launchers. 

When a store app is run from the command line, the system executes an appexec 
link from "%LocalAppData%\Microsoft\WindowsApps". Unfortunately appexec links 
have to be executed directly in order for CreateProcessW() to find the required 
app information that's in the link. The API doesn't manually reparse symlinks 
until it reaches an appexec link.

--

___
Python tracker 

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



[issue46061] Journal execution gives fatal error in Python 3.10.1

2021-12-13 Thread Ajaya Sutar


Ajaya Sutar  added the comment:

It is a simply python script. Even if you will run a simply python script 
without any content that is giving error. Just for example journal.py if we run 
it is also giving error. In python 3.8, we are able to create // create 
sub-interpreter using Py_NewInterpreter  and it is working fine. but in python 
3.10.1 it is not working fine. it is giving fatal error.

--

___
Python tracker 

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



[issue27718] help('signal') incomplete (e.g: signal.signal not visible)

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



[issue46056] Cannot use virtual environment on Windows 10 in corporate security settings

2021-12-13 Thread wolfgang kuehn


wolfgang kuehn  added the comment:

Currently we have a glitch in our internal access rights system. This resulted 
in me loosing my Admin-privileges.
I can only install python from the app-store, which is ok.
But without venv support I am stuck for the time being.

--

___
Python tracker 

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



[issue46061] Journal execution gives fatal error in Python 3.10.1

2021-12-13 Thread Christian Heimes


Christian Heimes  added the comment:

We cannot help you unless you show us your code and provide a reproducer.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue46061] Journal execution gives fatal error in Python 3.10.1

2021-12-13 Thread Eric V. Smith


Change by Eric V. Smith :


--
status: open -> pending

___
Python tracker 

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



[issue10850] inconsistent behavior concerning multiprocessing.manager.BaseManager._Server

2021-12-13 Thread Bar Harel


Change by Bar Harel :


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

___
Python tracker 

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



[issue46063] TimedRotatingFileHandler deletes wrong files

2021-12-13 Thread Sami Salonen


New submission from Sami Salonen :

https://bugs.python.org/issue45628 breaks file rotation.

I name my log files after module name, run the modules in separate processes, 
use the same log config in them, and store the log files in one common 
directory. For example, for modules `a.b` and `a.b.c` I have the following log 
files:

a.b.log
a.b.c.log

Now after bpo-45628 fix, `getFilesToDelete` treats the rotated log files from 
those modules the same, and deletes wrong files. If `backupCount` is set to 
e.g. 7, only total of 7 files are stored instead of 7 of each.

--
components: Library (Lib)
messages: 408445
nosy: Sami Salonen
priority: normal
severity: normal
status: open
title: TimedRotatingFileHandler deletes wrong files
type: behavior
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



[issue46063] TimedRotatingFileHandler deletes wrong files

2021-12-13 Thread Sami Salonen


Sami Salonen  added the comment:

Breaking PR: https://github.com/python/cpython/pull/29310

--

___
Python tracker 

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



[issue16594] SocketServer should set SO_REUSEPORT along with SO_REUSEADDR when present

2021-12-13 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset b56774bd93822e1598bb5d6c1d0b1fe8c45a750d by AN Long in branch 
'main':
bpo-16594: Add allow_reuse_port on socketserver (GH-30072)
https://github.com/python/cpython/commit/b56774bd93822e1598bb5d6c1d0b1fe8c45a750d


--
nosy: +asvetlov

___
Python tracker 

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



[issue45840] Improve cross-references in the data model documentation

2021-12-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 2029c58097e49b5aedc152ab65958a9db35ebd1e by Alex Waygood in 
branch '3.9':
 [3.9] bpo-45840: Improve cross-references in the data model documentation 
(GH-29633) (GH-30081)
https://github.com/python/cpython/commit/2029c58097e49b5aedc152ab65958a9db35ebd1e


--

___
Python tracker 

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



[issue45840] Improve cross-references in the data model documentation

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



[issue46060] Clarify asyncio.new_event_loop return value

2021-12-13 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue32849] Fatal Python error: Py_Initialize: can't initialize sys standard streams

2021-12-13 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10
nosy_count: 5.0 -> 6.0
pull_requests: +28310
pull_request: https://github.com/python/cpython/pull/30082

___
Python tracker 

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



[issue30225] EBADF error on x86 Tiger 3.x buildbot

2021-12-13 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10
nosy_count: 4.0 -> 5.0
pull_requests: +28309
pull_request: https://github.com/python/cpython/pull/30082

___
Python tracker 

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



[issue45919] Use WinAPI GetFileType() in is_valid_fd()

2021-12-13 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset 191c431de7d9b23484dd16f67e62c6e85a1fac7f by Dong-hee Na in branch 
'main':
bpo-45919: Use WinAPI GetFileType() in is_valid_fd() (GH-30082)
https://github.com/python/cpython/commit/191c431de7d9b23484dd16f67e62c6e85a1fac7f


--

___
Python tracker 

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



[issue45919] Use WinAPI GetFileType() in is_valid_fd()

2021-12-13 Thread Dong-hee Na


Change by Dong-hee Na :


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



[issue45840] Improve cross-references in the data model documentation

2021-12-13 Thread Alex Waygood


Alex Waygood  added the comment:

Thanks, Serhiy!

--

___
Python tracker 

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



[issue46064] Permalinks to underscored documentation entries don't work.

2021-12-13 Thread Fabian Dill


New submission from Fabian Dill :

As an example, go to https://docs.python.org/3/library/constants.html and 
request a permalink to __debug__. The link you get will not jump to it.
The link I get is https://docs.python.org/3/library/constants.html#debug__

--
assignee: docs@python
components: Documentation
messages: 408451
nosy: Fabian Dill, docs@python
priority: normal
severity: normal
status: open
title: Permalinks to underscored documentation entries don't work.
type: behavior
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



[issue46064] Permalinks to underscored documentation entries don't work.

2021-12-13 Thread Alex Waygood


Alex Waygood  added the comment:

I can't reproduce this -- the permalink to __debug__ that I get is the same as 
the one you have posted here, and works fine for me on my laptop, phone and 
iPad.

--
nosy: +AlexWaygood

___
Python tracker 

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



[issue45915] Use fcntl(fd, F_GETFD) to check whether an fd is valid

2021-12-13 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10
nosy_count: 3.0 -> 4.0
pull_requests: +28311
pull_request: https://github.com/python/cpython/pull/30082

___
Python tracker 

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



[issue46060] Clarify asyncio.new_event_loop return value

2021-12-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +28312
pull_request: https://github.com/python/cpython/pull/30089

___
Python tracker 

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



[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Ramzi Trabelsi


New submission from Ramzi Trabelsi :

parsing emails from this text took forever and never ends. Here the code 
 and the file res.html is attached.
The Behavior is same on Windows 10, 11 and Ubuntu 18.04

CODE:

import re
pattern_email  = r"[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]{2,3}"
with open("res.html","r",encoding="utf-8") as FF:
TEXT = FF.read()
matched_email  = re.findall(pattern_email,TEXT)

--
components: macOS
files: res.zip
messages: 408453
nosy: ned.deily, ramzitra, ronaldoussoren
priority: normal
severity: normal
status: open
title: re.findall takes forever and never ends
type: crash
versions: Python 3.9
Added file: https://bugs.python.org/file50488/res.zip

___
Python tracker 

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



[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Ramzi Trabelsi


Change by Ramzi Trabelsi :


--
components:  -macOS

___
Python tracker 

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



[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Ned Deily


Change by Ned Deily :


--
components: +Regular Expressions
nosy: +ezio.melotti, mrabarnett, serhiy.storchaka -ned.deily, ronaldoussoren
type: crash -> behavior

___
Python tracker 

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



[issue16594] SocketServer should set SO_REUSEPORT along with SO_REUSEADDR when present

2021-12-13 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.11 -Python 2.7

___
Python tracker 

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



[issue14484] missing return in win32_kill?

2021-12-13 Thread STINNER Victor


STINNER Victor  added the comment:

IMO trying to mimic POSIX behavior on Windows in the single function os.kill() 
was a bad design idea. Windows should have its own specific function.

--

___
Python tracker 

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



[issue45919] Use WinAPI GetFileType() in is_valid_fd()

2021-12-13 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +28313
pull_request: https://github.com/python/cpython/pull/30090

___
Python tracker 

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



[issue46059] Typo in match Statement example

2021-12-13 Thread Alex Waygood


Change by Alex Waygood :


--
type:  -> behavior
versions: +Python 3.11

___
Python tracker 

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



[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

It ends, but it tooks several minutes to complete.

It is a limitation of the regular expression implementation in Python. Your 
input contains a sequence of 588431 characters which match the pattern 
[a-zA-Z0-9_.+-] not following by '@'. The engine finds the first character in 
this sequence, then scans 588431 characters matching this pattern, but does not 
find '@' after them. So it backtracks, steps back by one character and tries to 
match '@', fails, and continue stepping back until returns to the initial 
character. 588431 steps forward and 588431 steps back are needed to find that 
no matches starting at this position. So it steps forward and try the 
proce3dure from a new position. No it does 588430 steps in both direction. 
Totally it needs to do 588431+588430+588429+...+1 ~ 588431**2/2 ~ 173e9 steps. 
It takes a long time.

--

___
Python tracker 

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



[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

The simplest example is:

re.search('a@', 'a'*10)

--

___
Python tracker 

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



[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Ramzi Trabelsi


Ramzi Trabelsi  added the comment:

thanks for the answer. Is there any workaround for this ?

--

___
Python tracker 

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



[issue46066] Docs: TypedDict alternative definition syntax with keyword args is confusing

2021-12-13 Thread 97littleleaf11


New submission from 97littleleaf11 <97littlelea...@gmail.com>:

According to the docs: 
https://docs.python.org/3/library/typing.html?#typing.TypedDict, there are two 
additional equivalent syntax for TypedDict definition.

Point2D = TypedDict('Point2D', x=int, y=int, label=str)
Point2D = TypedDict('Point2D', {'x': int, 'y': int, 'label': str})

However, the former one is quite confusing since we have the `total` keyword 
arg for TypedDict. In addition, 
PEP589(https://www.python.org/dev/peps/pep-0589/#id19) doesn't have this.

I think we could discard the definition syntax using keyword args in the doc.

--
assignee: docs@python
components: Documentation
messages: 408458
nosy: 97littleleaf11, docs@python
priority: normal
severity: normal
status: open
title: Docs: TypedDict alternative definition syntax with keyword args is 
confusing
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 

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



[issue46066] [doc] TypedDict alternative definition syntax with keyword args is confusing

2021-12-13 Thread 97littleleaf11


Change by 97littleleaf11 <97littlelea...@gmail.com>:


--
title: Docs: TypedDict alternative definition syntax with keyword args is 
confusing -> [doc] TypedDict alternative definition syntax with keyword args is 
confusing

___
Python tracker 

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



[issue46063] TimedRotatingFileHandler deletes wrong files

2021-12-13 Thread Irit Katriel


Change by Irit Katriel :


--
nosy: +vinay.sajip

___
Python tracker 

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



[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Limit the number of repetitions. For example use "{1,100}" (or what is the 
expected maximal length of email) instead of "+".

--

___
Python tracker 

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



[issue45615] Missing test for type of error when printing traceback for non-exception

2021-12-13 Thread Irit Katriel


Change by Irit Katriel :


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

___
Python tracker 

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



[issue20392] Inconsistency with uppercase file extensions in MimeTypes.guess_type

2021-12-13 Thread Irit Katriel


Irit Katriel  added the comment:

Reproduced on 3.11.

--
keywords: +easy -patch
nosy: +iritkatriel
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5

___
Python tracker 

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



[issue12411] cgi.parse_multipart is broken on 3.x

2021-12-13 Thread Irit Katriel


Irit Katriel  added the comment:

Senthil, was this last part done in issue29979?

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



[issue21390] readline: setlocale() returns NULL on Android

2021-12-13 Thread Irit Katriel


Irit Katriel  added the comment:

Neither of the patches were applied. Is this still needed?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2021-12-13 Thread Irit Katriel


Irit Katriel  added the comment:

Shall we close this? I don't think 3.6 test failures will still be looked into.

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



[issue46052] IDLE: make Ctrl, Alt + IME non-ascii letter work on Windows

2021-12-13 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Thank you Eryk.  The X/Ubuntu behavior is what I want to simulate.  I can only 
wonder why tk has not fixed that for non-X systems.  Are Alt+letter 
combinations also fixed on Ubuntu, so that, for instance, Alt+M-key is seen as 
Alt-M even with Russian layout?

--

___
Python tracker 

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



[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2021-12-13 Thread Terry J. Reedy


Change by Terry J. Reedy :


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



[issue33099] test_poplib hangs with the changes done in PR

2021-12-13 Thread Irit Katriel


Irit Katriel  added the comment:

#32706 is now fixed, does that resolve this issue as well?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue40927] ./python -m test test___all__ test_binhex fails

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



[issue46067] SSLContext.set_npn_protocols broken in Python 3.10, tries to call non-existing _set_npn_protocols

2021-12-13 Thread Jonas Witschel


New submission from Jonas Witschel :

Consider the following minimal example:

import ssl
context = ssl.create_default_context()
context.set_npn_protocols(['http/1.1', 'spdy/2'])

In Python 3.10, it fails with the following error:

AttributeError: 'SSLContext' object has no attribute '_set_npn_protocols'. Did 
you mean: 'set_npn_protocols'?

This is because bpo-43669 
(https://github.com/python/cpython/commit/39258d3595300bc7b952854c915f63ae2d4b9c3e)
 removed _set_npn_protocols, while it is still used by 
SSLContext.set_npn_protocols: 
https://github.com/python/cpython/blob/191c431de7d9b23484dd16f67e62c6e85a1fac7f/Lib/ssl.py#L551

Note that the function is already deprecated in Python 3.10 and throws a

DeprecationWarning: ssl NPN is deprecated, use ALPN instead

but should still probably continue working for now.

--
assignee: christian.heimes
components: SSL
messages: 408466
nosy: christian.heimes, diabonas
priority: normal
severity: normal
status: open
title: SSLContext.set_npn_protocols broken in Python 3.10, tries to call 
non-existing _set_npn_protocols
type: compile error
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



[issue45643] SIGSTKFLT is missing from the signals module on Linux

2021-12-13 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset a62be77266b1beadd42d4952186332bc0847b7d6 by Gareth Rees in branch 
'main':
bpo-45643: Add signal.SIGSTKFLT on platforms where this is defined (GH-29266)
https://github.com/python/cpython/commit/a62be77266b1beadd42d4952186332bc0847b7d6


--

___
Python tracker 

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



[issue45643] Add signal.SIGSTKFLT constant (Linux)

2021-12-13 Thread STINNER Victor


Change by STINNER Victor :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
title: SIGSTKFLT is missing from the signals module on Linux -> Add 
signal.SIGSTKFLT constant (Linux)

___
Python tracker 

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



[issue45643] Add signal.SIGSTKFLT constant (Linux)

2021-12-13 Thread STINNER Victor


STINNER Victor  added the comment:

I merged your PR, thanks!

I'm curious how people use this signal :-)

--

___
Python tracker 

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



[issue40927] ./python -m test test___all__ test_binhex fails

2021-12-13 Thread STINNER Victor


STINNER Victor  added the comment:

Oh thanks Irit! It's too easy to forget closing an issue!

--

___
Python tracker 

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



[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2021-12-13 Thread STINNER Victor


STINNER Victor  added the comment:

It seems like this issue has been fixed in bpo-27425.

--
resolution: out of date -> duplicate
superseder:  -> Tests fail because of git's newline preferences on Windows

___
Python tracker 

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



[issue21390] readline: setlocale() returns NULL on Android

2021-12-13 Thread STINNER Victor


STINNER Victor  added the comment:

Since 2014, Android got getter support for Unix locales.

Since nobody was able to say if the issue still exists on Android since 2014, 
nor if my patch fix the issue, I perfer to close the issue as out of date.

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



[issue12411] cgi.parse_multipart is broken on 3.x

2021-12-13 Thread STINNER Victor


Change by STINNER Victor :


--
nosy:  -vstinner
status: pending -> open

___
Python tracker 

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



[issue12411] cgi.parse_multipart is broken on 3.x

2021-12-13 Thread Irit Katriel


Change by Irit Katriel :


--
status: open -> pending

___
Python tracker 

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



[issue46066] [doc] TypedDict alternative definition syntax with keyword args is confusing

2021-12-13 Thread Alex Waygood


Change by Alex Waygood :


--
nosy: +gvanrossum, kj

___
Python tracker 

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



[issue23747] [doc] platform module exposes win32_ver function on posix systems

2021-12-13 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +easy
title: platform module exposes win32_ver function on posix systems -> [doc] 
platform module exposes win32_ver function on posix systems
versions: +Python 3.10, Python 3.11, Python 3.9 -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



[issue39757] EmailMessage bad encoding for international domain

2021-12-13 Thread Irit Katriel


Irit Katriel  added the comment:

Reproduced on 3.11.

--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5

___
Python tracker 

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



[issue46057] argparse: embedded groups may prevent options from being in help output

2021-12-13 Thread László Attila Tóth

László Attila Tóth  added the comment:

my idea regarding _ArgumentGroup,add_argument_group is in the attached file. 
This doesn't solve the complete help output issue, but addresses the 
incorrectly called _ArgumentGroup.add_argument_group - a warn() call and return 
self.
As a result the help output for embedded groups (not mutually exclusive groups) 
work as expected. If the title parameter is specified, this
scenario is not checked, and so on.

--
keywords: +patch
Added file: 
https://bugs.python.org/file50489/argparse-add-arg_grp-deprecation.diff

___
Python tracker 

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



[issue45653] Freeze the encodings module.

2021-12-13 Thread Christian Heimes


Christian Heimes  added the comment:

Eric, I have a simple reproducer for the issue:

This works:

$ LC_ALL=en_US.utf-8 TESTPATH=$(pwd)/Lib:$(pwd)/build/lib.linux-x86_64-3.11 
./Programs/_testembed test_init_setpath_config

This fails because it cannot load ISO-8859-1 / latin-1 codec

$ LC_ALL=en_US.latin1 TESTPATH=$(pwd)/Lib:$(pwd)/build/lib.linux-x86_64-3.11 
./Programs/_testembed test_init_setpath_config
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = 'conf_program_name'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  is in build tree = 0
  stdlib dir = ''
  sys._base_executable = 'conf_executable'
  sys.base_prefix = ''
  sys.base_exec_prefix = ''
  sys.platlibdir = 'lib'
  sys.executable = 'conf_executable'
  sys.prefix = ''
  sys.exec_prefix = ''
  sys.path = [
'/home/heimes/dev/python/cpython/Lib',
'/home/heimes/dev/python/cpython/build/lib.linux-x86_64-3.11',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the 
filesystem encoding
Python runtime state: core initialized
LookupError: unknown encoding: ISO-8859-1

Current thread 0x7f9c42be6740 (most recent call first):
  



With this patch I'm seeing that encodings.__path__ is not absolute and that 
__spec__ has an empty submodule_search_locations.

--- a/Lib/encodings/__init__.py
+++ b/Lib/encodings/__init__.py
@@ -98,9 +98,12 @@ def search_function(encoding):
 # module with side-effects that is not in the 'encodings' package.
 mod = __import__('encodings.' + modname, fromlist=_import_tail,
  level=0)
-except ImportError:
+except ImportError as e:
 # ImportError may occur because 'encodings.(modname)' does not 
exist,
 # or because it imports a name that does not exist (see mbcs and 
oem)
+sys.stderr.write(f"exception: {e}\n")
+sys.stderr.write(f"encodings.__path__: {__path__}\n")
+sys.stderr.write(f"encodings.__spec__: {__spec__}\n")
 pass
 else:
 break


$ LC_ALL=en_US.latin1 TESTPATH=$(pwd)/Lib:$(pwd)/build/lib.linux-x86_64-3.11 
./Programs/_testembed test_init_setpath_config
exception: No module named 'encodings.latin_1'
encodings.__path__: ['encodings']
encodings.__spec__: ModuleSpec(name='encodings', loader=, origin='frozen', 
submodule_search_locations=[])
exception: No module named 'encodings.iso_8859_1'
encodings.__path__: ['encodings']
encodings.__spec__: ModuleSpec(name='encodings', loader=, origin='frozen', 
submodule_search_locations=[])


It should have this search location:

>>> import encodings
>>> encodings.__spec__
ModuleSpec(name='encodings', loader=, 
origin='frozen', 
submodule_search_locations=['/home/heimes/dev/python/cpython/Lib/encodings'])

--

___
Python tracker 

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



[issue46060] Clarify asyncio.new_event_loop return value

2021-12-13 Thread Paul Bryan


Change by Paul Bryan :


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



[issue46062] tkinter.filedialog.SaveAs: create new folder on Ubuntu?

2021-12-13 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

This is not an IDLE issue, as IDLE merely calls 
tkinter.filedialog.SaveAS(args).show() and uses the returned path to open and 
write the file.  

This is likely not a tkinter issue either, but I will leave it open for now for 
others to comment.  SaveAs subclasses _Dialog, which subclasses 
tkinter.commondialog.Dialog.  For SaveAs .show calls tk_getSaveFile. This "pops 
up a dialog box for the user to select a file to save" and returns a full path 
or "".
https://www.tcl.tk/man/tcl8.6/TkCmd/getOpenFile.html makes little promise about 
the dialog.  On Windows, it opens a standard system SaveAs dialog, which allows 
directory navigation and creation.  On macOS it opens a macOS dialog.  I don't 
know about other systems.

You might want to ask or python-list or idledev list about the experience of 
others with newer Python versions.

--
assignee: terry.reedy -> 
components: +Tkinter -IDLE
nosy: +serhiy.storchaka
title: In IDLE,  'File > Save As' seems not to allow creation of a new folder 
-> tkinter.filedialog.SaveAs: create new folder on Ubuntu?

___
Python tracker 

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



[issue21910] [doc] File protocol should document if writelines must handle generators sensibly

2021-12-13 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +easy
title: File protocol should document if writelines must handle generators 
sensibly -> [doc] File protocol should document if writelines must handle 
generators sensibly
versions: +Python 3.10, Python 3.11, Python 3.9 -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



[issue16392] [doc] import crashes on circular imports in ext modules

2021-12-13 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +easy
title: import crashes on circular imports in ext modules -> [doc] import 
crashes on circular imports in ext modules
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



[issue17505] [doc] email.header.Header.__unicode__ does not decode header

2021-12-13 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +easy
title: email.header.Header.__unicode__ does not decode header -> [doc] 
email.header.Header.__unicode__ does not decode header
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2, Python 
3.3, Python 3.4

___
Python tracker 

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



[issue24116] --with-pydebug has no effect when the final python binary is compiled

2021-12-13 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue19888] Three argument type() super call sets __name__ but not __qualname__

2021-12-13 Thread Irit Katriel


Change by Irit Katriel :


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



[issue46066] [doc] TypedDict alternative definition syntax with keyword args is confusing

2021-12-13 Thread Guido van Rossum


Guido van Rossum  added the comment:

This is not really just a doc issue then, is it? Maybe we should just deprecate 
the feature?

--

___
Python tracker 

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



[issue45949] Provide pure-Python implementation of Programs/_freeze_module for cross building

2021-12-13 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset eb483c46d62707bdf705491f76cf1fa9642fb47e by Christian Heimes in 
branch 'main':
bpo-45949: Pure Python freeze module for cross builds (GH-29899)
https://github.com/python/cpython/commit/eb483c46d62707bdf705491f76cf1fa9642fb47e


--

___
Python tracker 

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



[issue45949] Provide pure-Python implementation of Programs/_freeze_module for cross building

2021-12-13 Thread Christian Heimes


Christian Heimes  added the comment:

Thanks for your review, Eric!

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



[issue46062] tkinter.filedialog.SaveAs: create new folder on Ubuntu?

2021-12-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

On other systems it opens a simple dialog window implemented in Tk. AFAIK it 
does not support creating new directories. Ask Tk core developers for a new 
feature.

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



[issue20949] Missing platform security integrations

2021-12-13 Thread Ammar Askar


Ammar Askar  added the comment:

Hi Jeffrey, your second solution where you omit `-pie` is almost there. Instead 
of modifying the Makefile you can pass `-pie` in `LINKFORSHARED`:


export CFLAGS="-fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2"
export CXXFLAGS="-fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2"
export LDFLAGS="-Wl,-z,noexecstack -Wl,-z,noexecheap -Wl,-z,now -Wl,-z,relro"
export LINKFORSHARED="-pie"

$ checksec ./python
[*] '/home/ammar/workspace/cpython/python'
Arch: amd64-64-little
RELRO:Full RELRO
Stack:Canary found
NX:   NX enabled
PIE:  PIE enabled
FORTIFY:  Enabled

--
nosy: +ammar2

___
Python tracker 

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



[issue45949] Provide pure-Python implementation of Programs/_freeze_module for cross building

2021-12-13 Thread Eric Snow


Eric Snow  added the comment:

You're welcome!  Thanks for doing the work!

--

___
Python tracker 

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



[issue45953] Statically allocate interpreter states as much as possible.

2021-12-13 Thread Eric Snow


Change by Eric Snow :


--
pull_requests: +28315
pull_request: https://github.com/python/cpython/pull/30092

___
Python tracker 

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



[issue16392] [doc] import crashes on circular imports in ext modules

2021-12-13 Thread Stefan Behnel


Stefan Behnel  added the comment:

Given that PEP-489 has landed in Py3.5, which is already retired and has been 
for more than a year, I think we can just close this issue as outdated.

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



[issue46063] TimedRotatingFileHandler deletes wrong files

2021-12-13 Thread Vinay Sajip


Change by Vinay Sajip :


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

___
Python tracker 

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



[issue45959] Teach pprint about dict views

2021-12-13 Thread David Peled


Change by David Peled :


--
nosy: +david-peled

___
Python tracker 

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



[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-13 Thread Steve Dower


Steve Dower  added the comment:

> $ cat venv_a3/pyvenv.cfg
> home = /home/ss/.pyenv/versions/3.11.0a3/bin

> $ venv_a3/bin/python -c "import sys,os.path; print(e := 
> sys._base_executable); print(os.path.exists(e))"
> /home/ss/.pyenv/versions/3.11.0a3/bin/python
> True

This is the intended behaviour, and yes it's changed from previous versions 
(but not on Windows, where it was always correct). The previous value was 
incorrect, hence it was marked as an internal field.

If your venv doesn't have a "python" binary in the directory set as "home" in 
pyvenv.cfg (which by definition, according to Lib/venv/__init__.py, is 
dirname(sys.executable) ), then there's some other issue with venv on your 
platform.

--
nosy: +vinay.sajip

___
Python tracker 

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



[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-13 Thread Steve Dower


Steve Dower  added the comment:

I'm downgrading this from release blocker. If Vinay thinks there's a 
venv-related release blocker here he's welcome to raise the priority again, but 
I only see an intentional change to an internal value. Tools relying on 
internal fields will have to adapt for 3.11.

--
priority: release blocker -> normal

___
Python tracker 

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



[issue46056] Cannot use virtual environment on Windows 10 in corporate security settings

2021-12-13 Thread Steve Dower


Steve Dower  added the comment:

If you execute "python -m venv --without-pip ..." to create, then as a 
workaround you can set the __PYVENV_LAUNCHER__ environment variable to the full 
path to the venv's python.exe and run the normal python3.10.exe.

As Eryk mentioned, you'll need to run everything through "-m" instead of the 
script wrappers that pip would install. This includes "-m ensurepip", which 
should be able to install pip into the venv normally.

Note that this is an undocumented/unsupported environment variable, and so it 
may change in later releases. But it should work fine throughout 3.10's 
lifetime (and it hasn't changed _yet_ in 3.11).

--

___
Python tracker 

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



  1   2   >