[issue44482] Possible resource leeak in glob in non-refcount implementations

2021-06-21 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue44482] Possible resource leeak in glob in non-refcount implementations

2021-06-21 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

There is possible resource leak in glob on alternate Python implementation 
witch do not use reference counting to immediate releasing resources.

It is in the code

names = list(_iterdir(dirname, dir_fd, dironly))

where _iterdir() is a generator function which calls os.scandir() and yields 
entry names after some filtering. If an exception happens inside _iterdir(), 
the scandir iterator will be immediately closed, because of using the with 
statement. But an exception can happens outside of _iterdir(), in the list 
constructor (MemoryError). In this case the generator will be closed 
immediately in CPython because of reference counting (newly created generator 
has only one reference), but on other implementation it can be deferred on 
arbitrary time. And even in CPython we rely on garbage collector if there 
reference loops in the generator frame. This issue has very small chance to 
occur but still.

The right way is to close the generator explicitly:

it = _iterdir(dirname, dir_fd, dironly)
try:
names = list(it)
finally:
it.close()

or

with contextlib.closing(_iterdir(dirname, dir_fd, dironly)) as it:
names = list(it)

We should analyze all other generator functions which acquire some resources 
and ensure that they are always properly closed.

--
components: Library (Lib)
messages: 396306
nosy: gvanrossum, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Possible resource leeak in glob in non-refcount implementations
type: resource usage
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



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

2021-06-21 Thread Ma Lin


Ma Lin  added the comment:

I am checking all the .py files in `Lib` folder.
hmac.py has two len() bugs:
https://github.com/python/cpython/blob/v3.10.0b3/Lib/hmac.py#L212
https://github.com/python/cpython/blob/v3.10.0b3/Lib/hmac.py#L214

I think PR 26764 is prepared, it fixes the len() bugs in bz2.py/lzma.py files.

--
nosy: +christian.heimes
title: PickleBuffer doesn't have __len__ method -> stdlib wrongly uses len() 
for bytes-like object

___
Python tracker 

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



[issue25381] Update doc of three C exception values.

2021-06-21 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
stage: needs patch -> patch review

___
Python tracker 

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



[issue25381] Update doc of three C exception values.

2021-06-21 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
stage: patch review -> needs patch
title: Doc: Use of old description of raise in Python3 -> Update doc of three C 
exception values.

___
Python tracker 

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



[issue44287] test_asyncio: test_popen() failed on AMD64 Windows8.1 Refleaks 3.9

2021-06-21 Thread miss-islington


miss-islington  added the comment:


New changeset 0ff487b8abe70f091285acf367b795861eed8049 by Miss Islington (bot) 
in branch '3.9':
bpo-44287: asyncio test_popen() uses longer timeout (GH-26832)
https://github.com/python/cpython/commit/0ff487b8abe70f091285acf367b795861eed8049


--

___
Python tracker 

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



[issue44287] test_asyncio: test_popen() failed on AMD64 Windows8.1 Refleaks 3.9

2021-06-21 Thread miss-islington


miss-islington  added the comment:


New changeset c032a12cbb7d6e2d6a292b0e9220c33ef7349d28 by Miss Islington (bot) 
in branch '3.10':
bpo-44287: asyncio test_popen() uses longer timeout (GH-26832)
https://github.com/python/cpython/commit/c032a12cbb7d6e2d6a292b0e9220c33ef7349d28


--

___
Python tracker 

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



[issue44287] test_asyncio: test_popen() failed on AMD64 Windows8.1 Refleaks 3.9

2021-06-21 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25423
pull_request: https://github.com/python/cpython/pull/26842

___
Python tracker 

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



[issue44287] test_asyncio: test_popen() failed on AMD64 Windows8.1 Refleaks 3.9

2021-06-21 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue44287] test_asyncio: test_popen() failed on AMD64 Windows8.1 Refleaks 3.9

2021-06-21 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset be1cb3214d09d4bf0288bc45f3c1f167f67e4514 by Victor Stinner in 
branch 'main':
bpo-44287: asyncio test_popen() uses longer timeout (GH-26832)
https://github.com/python/cpython/commit/be1cb3214d09d4bf0288bc45f3c1f167f67e4514


--

___
Python tracker 

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



[issue44481] Tkinter config() minor documentation bug for shorthand options

2021-06-21 Thread Jeff S


New submission from Jeff S :

The documentation page https://docs.python.org/3/library/tkinter.html states 
"Passing the config() method the name of a shorthand option will return a 
2-tuple, not 5-tuple."  While config() without argument does return a map that 
yields references like this, if config() is given the shorthand name as an 
argument, it follows the reference to the long option name and does yield the 
full 5-tuple.

To demonstrate the difference:

from tkinter import Tk

Tk().config()['bg']

Tk().config('bg')

--
components: Tkinter
messages: 396301
nosy: spirko
priority: normal
severity: normal
status: open
title: Tkinter config() minor documentation bug for shorthand options
type: behavior
versions: Python 3.6, Python 3.9

___
Python tracker 

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



[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-21 Thread STINNER Victor


STINNER Victor  added the comment:

inittab-bug.c uses the Python C API in 3 threads:

* Thread A (init_proc) calls Py_InitializeFromConfig()
* Thread B (run_proc) calls Py_RunMain()
* The main thread (main) calls Py_FinalizeEx()

Problem: the thread B (run_proc) doesn't hold the GIL and so I get a fatal 
error with Python built in debug mode:

$ gcc inittab-bug.c -ggdb -pthread -lpython3.11d -L. -I. -I Include/
$ PYTHONPATH=$PWD/Lib LD_LIBRARY_PATH=$PWD ./a.out
-- Modules: --
#0 'posix'
#1 'errno'
#2 'pwd'
--
Could not find platform independent libraries 
Could not find platform dependent libraries 
Consider setting $PYTHONHOME to [:]
Run Python Script
Fatal Python error: _PyMem_DebugMalloc: Python memory allocator called without 
holding the GIL
Python runtime state: initialized

Thread 0x7f61ce5c1640 (most recent call first):

Abandon (core dumped)


If I remove the thread B (comment the comment), I get a similar error in the 
main thread which calls Py_FinalizeEx().

Please fix your usage of the GIL. For example, you can try to use:

* https://docs.python.org/dev/c-api/init.html#c.PyGILState_Ensure
* https://docs.python.org/dev/c-api/init.html#c.PyGILState_Release

Usually, Python initialization and Python finalization is done in the same 
thread, but another thread can use the Python C API if it acquires the GIL 
using PyGILState_Ensure().

--

___
Python tracker 

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



[issue44479] Windows build doesn't regenerate some files

2021-06-21 Thread Guido van Rossum


New submission from Guido van Rossum :

The new PCbuild\build.bat script is much better at regenerating necessary 
files. However I just found out that there are some more files that need to be 
regenerated occasionally:

- Programs/test_frozenmain.h
- Python/frozen_hello.h

Could you add rules for these?

--

___
Python tracker 

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



[issue44480] test_compile killed by signal 9 on AMD64 FreeBSD Non-Debug 3.x

2021-06-21 Thread STINNER Victor


New submission from STINNER Victor :

It looks like bpo-44360 which was a Linux OOM Killer issue since the Linux 
machine memory was too low.

AMD64 FreeBSD Non-Debug 3.x:
https://buildbot.python.org/all/#/builders/172/builds/387

...
test_single_statement (test.test_compile.TestSpecifics) ... ok
test_stack_overflow (test.test_compile.TestSpecifics) ... *** Signal 9
Stop.
make: stopped in /usr/home/buildbot/python/3.x.koobs-freebsd-9e36.nondebug/build
program finished with exit code 1
elapsedTime=855.058198

--
components: Tests
messages: 396298
nosy: koobs, vstinner
priority: normal
severity: normal
status: open
title: test_compile killed by signal 9 on AMD64 FreeBSD Non-Debug 3.x
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



[issue28533] Replace asyncore

2021-06-21 Thread STINNER Victor


STINNER Victor  added the comment:

Irit:
> If the tests are the only thing blocking removal, does it make sense to move 
> asyncore and asynchat to test.support and get on with removing them from the 
> stdlib?

Yes, it makes sense and it can be done right now, since asynchat/asyncore is 
deprecated since Python 3.6.

--

___
Python tracker 

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



[issue44479] Windows build doesn't regenerate some files

2021-06-21 Thread Guido van Rossum


Change by Guido van Rossum :


--
components: Windows
nosy: gvanrossum, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Windows build doesn't regenerate some files

___
Python tracker 

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



[issue41249] TypedDict inheritance doesn't work with get_type_hints and postponed evaluation of annotations across modules

2021-06-21 Thread Guido van Rossum


Guido van Rossum  added the comment:

Note that this issue is now only a problem of you use `from __future__ import 
annotations` -- we rolled the default behavior for 3.10 back to what it was in 
3.9.

I am out of time to argue about why we chose this behavior, alas.

--

___
Python tracker 

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



[issue28533] Replace asyncore

2021-06-21 Thread Irit Katriel


Irit Katriel  added the comment:

If the tests are the only thing blocking removal, does it make sense to move 
asyncore and asynchat to test.support and get on with removing them from the 
stdlib?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-06-21 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
pull_requests: +25421
pull_request: https://github.com/python/cpython/pull/26840

___
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-06-21 Thread Guido van Rossum


Change by Guido van Rossum :


--
pull_requests: +25420
pull_request: https://github.com/python/cpython/pull/26839

___
Python tracker 

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



[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread Terry J. Reedy


Change by Terry J. Reedy :


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



[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 1e16217204c0e8e595c4d1e869c81899bfe3376b by Miss Islington (bot) 
in branch '3.10':
bpo-13814: Explain why generators are not context managers (GH-26835)
https://github.com/python/cpython/commit/1e16217204c0e8e595c4d1e869c81899bfe3376b


--

___
Python tracker 

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



[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset d881002fbdf12ddbd93db3e182dc5cdeb1f90386 by Miss Islington (bot) 
in branch '3.9':
bpo-13814: Explain why generators are not context managers (GH-26835)
https://github.com/python/cpython/commit/d881002fbdf12ddbd93db3e182dc5cdeb1f90386


--

___
Python tracker 

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



[issue25381] Doc: Use of old description of raise in Python3

2021-06-21 Thread Terry J. Reedy


Change by Terry J. Reedy :


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

___
Python tracker 

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



[issue25381] Doc: Use of old description of raise in Python3

2021-06-21 Thread Irit Katriel


Irit Katriel  added the comment:

Yes, I thought since we need a PR the keyword was wrong. Thanks for the 
correction.

--

___
Python tracker 

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



[issue25381] Doc: Use of old description of raise in Python3

2021-06-21 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

On 2007 Aug 15, extending.rst was merged into master (early 2.6 alpha)  and 
early 3.0 alpha.  The only change to this paragraph since the initial 2.6 
version was Serhiy changing "*NULL*" to "``NULL``" in 3.x on 2019 Oct 30.  I 
will post a PR with what I think is true now.

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

___
Python tracker 

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



[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25418
pull_request: https://github.com/python/cpython/pull/26837

___
Python tracker 

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



[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 51f45d085dad3b708f6fe166af517aba69e7e9f7 by Terry Jan Reedy in 
branch 'main':
bpo-13814: Explain why generators are not context managers (GH-26835)
https://github.com/python/cpython/commit/51f45d085dad3b708f6fe166af517aba69e7e9f7


--

___
Python tracker 

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



[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 8.0 -> 9.0
pull_requests: +25417
pull_request: https://github.com/python/cpython/pull/26836

___
Python tracker 

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



[issue30238] 2to3 doesn't detect or fix Exception indexing

2021-06-21 Thread Daniel Lenski


Daniel Lenski  added the comment:

> There is no way to know through static analysis that the subscript is on an 
> object of type exception. I think this should be closed as won't fix.

In almost all cases, the variable in question will receive its value via 
`except ... as e:`.

   try:
   ...
   except (Exception1, Exception2, ...) as e:
   e[0]

Seems to me that it should be possible for 2to3 to handle this large subset of 
applicable cases via static analysis.

--
status: pending -> open

___
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-06-21 Thread Guido van Rossum


Guido van Rossum  added the comment:


New changeset 355f5dd36a0f53175517f35798aa874564d1113a by Guido van Rossum in 
branch 'main':
bpo-43693: Turn localspluskinds into an object (GH-26749)
https://github.com/python/cpython/commit/355f5dd36a0f53175517f35798aa874564d1113a


--

___
Python tracker 

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



[issue43749] venv module does not copy the correct python exe

2021-06-21 Thread Niklas Rosenstein


Niklas Rosenstein  added the comment:

To complete my previous comment, patching the function to see the command that 
is invoked, you can see it tries to invoke 'python3.exe' (seemingly derived 
from sys.executable) in the venv but the venv only contains 'python.exe'.

['C:\\Users\\niklas\\dotfiles\\.venv\\Scripts\\python3.exe', '-Im', 
'ensurepip', '--upgrade', '--default-pip']

--

___
Python tracker 

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



[issue43749] venv module does not copy the correct python exe

2021-06-21 Thread Niklas Rosenstein


Niklas Rosenstein  added the comment:

I just encountered the same behavior. Steps to reproduce:

* Install Python 3 (I used 3.9.5) on Windows
* Use the Admin console to create a python3.exe link, e.g.

cd "c:/Users/niklas/AppData/Local/Programs/Python/Python39"
mklink python3.exe python.exe

* Use python3.exe to create a venv, e.g.

python3 -m venv

The environment is created up until the point _setup_pip() is called in venv, 
which causes the following error to be printed:

Error: [WinError 2] The system cannot find the file specified

Running venv from the interpreter gives the full stack trace.

$ python3 -c 'import venv; venv.main([".venv"])'
Traceback (most recent call last):
  File "", line 1, in 
  File 
"C:\Users\niklas\AppData\Local\Programs\Python\Python39\lib\venv\__init__.py", 
line 491, in main
builder.create(d)
  File 
"C:\Users\niklas\AppData\Local\Programs\Python\Python39\lib\venv\__init__.py", 
line 75, in create
self._setup_pip(context)
  File 
"C:\Users\niklas\AppData\Local\Programs\Python\Python39\lib\venv\__init__.py", 
line 299, in _setup_pip
subprocess.check_output(cmd, stderr=subprocess.STDOUT)
  File 
"C:\Users\niklas\AppData\Local\Programs\Python\Python39\lib\subprocess.py", 
line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File 
"C:\Users\niklas\AppData\Local\Programs\Python\Python39\lib\subprocess.py", 
line 505, in run
with Popen(*popenargs, **kwargs) as process:
  File 
"C:\Users\niklas\AppData\Local\Programs\Python\Python39\lib\subprocess.py", 
line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
  File 
"C:\Users\niklas\AppData\Local\Programs\Python\Python39\lib\subprocess.py", 
line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

--
nosy: +n_rosenstein

___
Python tracker 

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



[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I added a simplified answer after a similar question about assignment and CMs.

--
keywords:  -easy

___
Python tracker 

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



[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
keywords: +patch
pull_requests: +25416
pull_request: https://github.com/python/cpython/pull/26835

___
Python tracker 

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



[issue43905] dataclasses.astuple does deepcopy on all fields

2021-06-21 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

I've added a PR here: https://github.com/python/cpython/pull/26154

--

___
Python tracker 

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



[issue22167] iglob() has misleading documentation (does indeed store names internally)

2021-06-21 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

I have put up a PR here: https://github.com/python/cpython/pull/25767

--

___
Python tracker 

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



[issue42588] Improvements to graphlib.TopologicalSorter.static_order() documentation

2021-06-21 Thread Andrei Kulakov


Andrei Kulakov  added the comment:

I'm not sure it's worth it to complicate the logic by raising the error before 
iteration since iteration is normally done soon after method call.

I agree the doc change is helpful, since the ticket was dormant for a ~month, 
I've put up a PR with this change as well as clarifying that an iterator obj is 
returned rather than an iterable.

I've given credit to Ran in the PR description.

--

___
Python tracker 

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



[issue42588] Improvements to graphlib.TopologicalSorter.static_order() documentation

2021-06-21 Thread Andrei Kulakov


Change by Andrei Kulakov :


--
keywords: +patch
nosy: +andrei.avk
nosy_count: 5.0 -> 6.0
pull_requests: +25415
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/26834

___
Python tracker 

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



[issue44466] faulthandler should indicate if the fault happened in garbage collection

2021-06-21 Thread Maxwell Ballenger


Maxwell Ballenger  added the comment:

Thank you Victor, sounds great!

--

___
Python tracker 

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



[issue25381] Doc: Use of old description of raise in Python3

2021-06-21 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Irit, it is unclear why you unchecked 'patch'.  Because no PR? The keyword  
includes a patch file attached to an issue.  Someone can convert it to a PR.  
From the tracker doc:
"patch There is a patch or pull request attached to the issue."

Because the 2nd patch was, in essence rejected as is?  A different matter, 
though most .patch or .diff files attached need revision when made a PR.

--

___
Python tracker 

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



[issue44468] Shouldn't `typing.get_type_hints()` default `globalns` to `{}` instead of skipping base classes?

2021-06-21 Thread Guido van Rossum


Guido van Rossum  added the comment:

I agree with the OP, we can do better here. Ken, if you feel like it, a fix
should not be too complicated, right?

--

___
Python tracker 

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



[issue22472] OSErrors should use str and not repr on paths

2021-06-21 Thread Antoine Pitrou


Antoine Pitrou  added the comment:

I'll close as rejected. Unfortunately, we have to make an exclusive choice here 
:-(

--

___
Python tracker 

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



[issue22472] OSErrors should use str and not repr on paths

2021-06-21 Thread Antoine Pitrou


Change by Antoine Pitrou :


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



[issue27547] Crash or freeze trying to execute b'a' * 0xFFFFFFFFFFFFFFF

2021-06-21 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Concur with Martin. Most likely it is an OS bug, the same as issue5614.

--
nosy: +serhiy.storchaka
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Malloc errors in test_io

___
Python tracker 

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



[issue13814] Document why generators don't support the context management protocol

2021-06-21 Thread Irit Katriel


Change by Irit Katriel :


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

___
Python tracker 

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



[issue44477] Remove ma_version_tag in dict?

2021-06-21 Thread Ken Jin


Ken Jin  added the comment:

Closing this for now as it seems PEP 509 may need to be repealed:
https://github.com/faster-cpython/ideas/issues/30#issuecomment-858615678

Sorry for the noise everyone :(.

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



[issue25381] Doc: Use of old description of raise in Python3

2021-06-21 Thread Irit Katriel


Change by Irit Katriel :


--
keywords:  -patch
versions: +Python 3.11 -Python 3.5, Python 3.6

___
Python tracker 

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



[issue44478] I can't

2021-06-21 Thread Zachary Ware


Zachary Ware  added the comment:

This site is not a help forum, it is for tracking bugs in the implementation of 
the CPython reference interpreter.  You'll have better luck somewhere like 
https://discuss.python.org/c/users/7, the python-l...@python.org mailing list, 
or the #python IRC channel on Libera.Chat.  If you take your query to one of 
these other forums, it's best to copy and paste error messages as text to avoid 
excluding people who can help you but either can't see a posted image or refuse 
to open an image that could turn out to be anything at all :)

That said, my suspicion is that things are going wrong with OneDrive somehow, 
or possibly (but less likely) with the non-ascii path.  Try creating your venv 
somewhere like `C:\Users\oz180\venv_test` instead.

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



[issue44476] "subprocess not supported for isolated subinterpreters" when running venv

2021-06-21 Thread Brian Curtin


Brian Curtin  added the comment:

I think there was either something stale that got linked wrong or some other 
kind of build failure, as I just built v3.10.0b3 tag again from a properly 
cleaned environment and this is no longer occurring. Sorry for the noise.

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



[issue27547] Crash or freeze trying to execute b'a' * 0xFFFFFFFFFFFFFFF

2021-06-21 Thread Irit Katriel


Irit Katriel  added the comment:

I get a MemoryError on Windows 10:

>>> float(array.array("L",b"a"*0xFFF+10**80))
Traceback (most recent call last):
  File "", line 1, in 
MemoryError
>>>

--
nosy: +iritkatriel

___
Python tracker 

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



[issue44478] I can't

2021-06-21 Thread Oz Mouchtar


New submission from Oz Mouchtar :

Hey I'm new to Python (just started to learn this magnificent language) and 
during my online course I tried to create a virtual environment and got the 
error on the attached file.
I tried even to re-install Python and Visual Studio and yet I get this error. 
Can someone help me?  
I'm using Visual Studio code and Python version 3.9.5

--
components: Windows
files: problem.jpg
messages: 396272
nosy: oz1804, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: I can't
type: crash
versions: Python 3.9
Added file: https://bugs.python.org/file50123/problem.jpg

___
Python tracker 

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



[issue28661] Fix code example in Python 3.5 telnetlib documentation

2021-06-21 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +easy
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6, Python 
3.7

___
Python tracker 

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



[issue37514] french translation Spelling mistake on datetime python's library documentation online

2021-06-21 Thread Irit Katriel


Irit Katriel  added the comment:

This sentence is no longer there (with or without the typo).

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



[issue44476] "subprocess not supported for isolated subinterpreters" when running venv

2021-06-21 Thread Brian Curtin


Brian Curtin  added the comment:

Hmm. I asked around about this and someone installed 3.10.0-beta3 via pyenv and 
this worked fine. 

For whatever it's worth, this was built from source on OS X 10.14.6 via a 
pretty normal setup of `./configure` with no extra flags and then `make install`

--

___
Python tracker 

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



[issue44475] Dataclass Causes Infinite Recursion when using type of bytes

2021-06-21 Thread Eric V. Smith


Eric V. Smith  added the comment:

Please give a complete example that we can execute.

--

___
Python tracker 

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



[issue38825] shutil.disk_usage - Lacking documentation

2021-06-21 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +easy
versions: +Python 3.10, Python 3.11 -Python 3.5, Python 3.6, Python 3.7, Python 
3.8

___
Python tracker 

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



[issue44477] Remove ma_version_tag in dict?

2021-06-21 Thread Ken Jin


Ken Jin  added the comment:

Hmm I'm suddenly having second thoughts. I wonder if there's future use cases I 
might be missing here from PEP 509?

--
nosy: +vstinner

___
Python tracker 

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



[issue44344] Documentation for pow() should include the possibility of complex numbers as a return type

2021-06-21 Thread Mark Dickinson


Mark Dickinson  added the comment:

> Perhaps we should just borrow from the documentation for the power operator, 
> which says [...]

That sounds good to me.

--

___
Python tracker 

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



[issue22472] OSErrors should use str and not repr on paths

2021-06-21 Thread Irit Katriel


Irit Katriel  added the comment:

Should this be closed as rejected, or is there anything left to do?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue44470] 3.11 docs.python.org in Polish not English?

2021-06-21 Thread Julien Palard


Julien Palard  added the comment:

I added a git clean in docsbuild scripts to switch from one version to another:

https://github.com/python/docsbuild-scripts/commit/1397a8dbe4c73744757ad24764baeb393842f30b

It should be enough to correctly start fresh from one lang to another and from 
one version to another.

Let's check next time the cron runs (daily) if it's fixed.

--

___
Python tracker 

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



[issue44477] Remove ma_version_tag in dict?

2021-06-21 Thread Ken Jin


Change by Ken Jin :


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

___
Python tracker 

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



[issue44477] Remove ma_version_tag in dict?

2021-06-21 Thread Ken Jin


New submission from Ken Jin :

issue44206, issue44337, and issue44338 converted things dependent on 
ma_version_tag to ma_keys->dk_version.

I propose to remove ma_version_tag and save 8 bytes of space in dict. I've 
prepared a draft PR to do that. However, I'd like to wait for some time before 
merging it. This will make it easier to revert a PR in one of those issues 
should the need arise.

--
messages: 396264
nosy: Mark.Shannon, kj, methane
priority: normal
severity: normal
status: open
title: Remove ma_version_tag in dict?
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



[issue24948] Multiprocessing not timely flushing stack trace to stderr

2021-06-21 Thread Irit Katriel


Change by Irit Katriel :


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



[issue44470] 3.11 docs.python.org in Polish not English?

2021-06-21 Thread Julien Palard


Julien Palard  added the comment:

Hi all! Thanks for reporting! I'm taking a look at it.

--
assignee: docs@python -> mdk

___
Python tracker 

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



[issue44287] test_asyncio: test_popen() failed on AMD64 Windows8.1 Refleaks 3.9

2021-06-21 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue44476] "subprocess not supported for isolated subinterpreters" when running venv

2021-06-21 Thread Brian Curtin

New submission from Brian Curtin :

I'm currently trying to run my `tox` testing environment—all of which runs 
under `coverage`—against 3.10b3 and am running into some trouble. I initially 
thought it was something about tox or coverage, but it looks lower level than 
that as the venv script in the stdlib isn't working. I'm not actually sure if 
the direct problem I'm experiencing is the same as what I'm listing below, but 
it reproduces the same result:

$ python3.10 -m venv ~/.envs/test
Error: subprocess not supported for isolated subinterpreters

Here's the version I'm running: Python 3.10.0b3 (tags/v3.10.0b3:865714a117, Jun 
17 2021, 17:37:28) [Clang 10.0.1 (clang-1001.0.46.4)] on darwin


In case it's helpful, here's a full traceback from tox:

action: py310-unit, msg: getenv
cwd: /Users/briancurtin/elastic/cloud/python-services-v3
cmd: 
/Users/briancurtin/elastic/cloud/python-services-v3/.tox/py310-unit/bin/python 
-m pip install coverage -rrequirements.txt -rtest-requirements.txt
Collecting coverage
  Using cached coverage-5.5.tar.gz (691 kB)
ERROR: Error subprocess not supported for isolated subinterpreters while 
executing command python setup.py egg_info
ERROR: Exception:
Traceback (most recent call last):
  File 
"/Users/briancurtin/elastic/cloud/python-services-v3/.tox/py310-unit/lib/python3.10/site-packages/pip/_internal/cli/base_command.py",
 line 188, in _main
status = self.run(options, args)
  File 
"/Users/briancurtin/elastic/cloud/python-services-v3/.tox/py310-unit/lib/python3.10/site-packages/pip/_internal/cli/req_command.py",
 line 185, in wrapper
return func(self, options, args)
  File 
"/Users/briancurtin/elastic/cloud/python-services-v3/.tox/py310-unit/lib/python3.10/site-packages/pip/_internal/commands/install.py",
 line 332, in run
requirement_set = resolver.resolve(
  File 
"/Users/briancurtin/elastic/cloud/python-services-v3/.tox/py310-unit/lib/python3.10/site-packages/pip/_internal/resolution/legacy/resolver.py",
 line 179, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File 
"/Users/briancurtin/elastic/cloud/python-services-v3/.tox/py310-unit/lib/python3.10/site-packages/pip/_internal/resolution/legacy/resolver.py",
 line 362, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
  File 
"/Users/briancurtin/elastic/cloud/python-services-v3/.tox/py310-unit/lib/python3.10/site-packages/pip/_internal/resolution/legacy/resolver.py",
 line 314, in _get_abstract_dist_for
abstract_dist = self.preparer.prepare_linked_requirement(req)
  File 
"/Users/briancurtin/elastic/cloud/python-services-v3/.tox/py310-unit/lib/python3.10/site-packages/pip/_internal/operations/prepare.py",
 line 487, in prepare_linked_requirement
abstract_dist = _get_prepared_distribution(
  File 
"/Users/briancurtin/elastic/cloud/python-services-v3/.tox/py310-unit/lib/python3.10/site-packages/pip/_internal/operations/prepare.py",
 line 91, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(finder, build_isolation)
  File 
"/Users/briancurtin/elastic/cloud/python-services-v3/.tox/py310-unit/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py",
 line 40, in prepare_distribution_metadata
self.req.prepare_metadata()
  File 
"/Users/briancurtin/elastic/cloud/python-services-v3/.tox/py310-unit/lib/python3.10/site-packages/pip/_internal/req/req_install.py",
 line 550, in prepare_metadata
self.metadata_directory = self._generate_metadata()
  File 
"/Users/briancurtin/elastic/cloud/python-services-v3/.tox/py310-unit/lib/python3.10/site-packages/pip/_internal/req/req_install.py",
 line 525, in _generate_metadata
return generate_metadata_legacy(
  File 
"/Users/briancurtin/elastic/cloud/python-services-v3/.tox/py310-unit/lib/python3.10/site-packages/pip/_internal/operations/build/metadata_legacy.py",
 line 70, in generate_metadata
call_subprocess(
  File 
"/Users/briancurtin/elastic/cloud/python-services-v3/.tox/py310-unit/lib/python3.10/site-packages/pip/_internal/utils/subprocess.py",
 line 185, in call_subprocess
proc = subprocess.Popen(
  File "/usr/local/lib/python3.10/subprocess.py", line 962, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/lib/python3.10/subprocess.py", line 1773, in _execute_child
self.pid = _posixsubprocess.fork_exec(
RuntimeError: subprocess not supported for isolated subinterpreters
WARNING: You are using pip version 20.1.1; however, version 21.1.2 is available.
You should consider upgrading via the 
'/Users/briancurtin/elastic/cloud/python-services-v3/.tox/py310-unit/bin/python 
-m pip install --upgrade pip' command.

--
messages: 396262
nosy: brian.curtin
priority: normal
severity: normal
status: open
title: "subprocess not supported for isolated subinterpreters" when running venv
type: behavior
versions: Python 3.10

___
Python tracker 

[issue44442] Globals (and presumably builtins) are cleared premuturely in FrameObject

2021-06-21 Thread STINNER Victor


STINNER Victor  added the comment:

The bpo number is missing from the merged commit, it's:

commit ba2f32a983a08c4f64c23c187432e38908639c12
Author: Mark Shannon 
Date:   Thu Jun 17 16:29:15 2021 +0100

Do not clear globals or builtins when calling clear() on a frame object. 
Reverts behavior to that of 3.10 and earlier. (GH-26768)

--

___
Python tracker 

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



[issue44288] unittest: _is_relevant_tb_level() fails because tb.tb_frame.f_globals=None

2021-06-21 Thread STINNER Victor


STINNER Victor  added the comment:

Is it possible that bpo-2 is a duplicate of this issue? Is it already fixed 
by GH-26768, commit ba2f32a983a08c4f64c23c187432e38908639c12?

--

___
Python tracker 

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



[issue44442] Globals (and presumably builtins) are cleared premuturely in FrameObject

2021-06-21 Thread STINNER Victor


STINNER Victor  added the comment:

See also bpo-44288: can it be a duplicate?

--

___
Python tracker 

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



[issue44470] 3.11 docs.python.org in Polish not English?

2021-06-21 Thread Henk-Jaap Wagenaar


Henk-Jaap Wagenaar  added the comment:

@Mark, I don't know about Samuel, but when I tried, I could get the bug with 
other languages, but not on other pages (which seems to agree with your point 
of reasoning).

--

___
Python tracker 

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



[issue44297] Frame with -1 line number

2021-06-21 Thread STINNER Victor


STINNER Victor  added the comment:

Oh, I can still reproduce the issue on the main branch with this patch:

diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index cee97a8302..3f66818ae1 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -4499,7 +4499,7 @@ def msg_cb(conn, direction, version, content_type, 
msg_type, data):
 # server aborts connection with an error.
 with self.assertRaisesRegex(
 ssl.SSLError,
-'(certificate required|EOF occurred)'
+'x'
 ):
 # receive CertificateRequest
 data = s.recv(1024)



$ ./python -m test test_ssl -m test_pha_required_nocert -v
(...)
FAIL: test_pha_required_nocert (test.test_ssl.TestPostHandshakeAuth)
--
(...)
Traceback (most recent call last):
  File "/home/vstinner/python/main/Lib/test/test_ssl.py", line -1, in 
test_pha_required_nocert
AssertionError: (...)
...


=> "line -1"

--

___
Python tracker 

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



[issue44470] 3.11 docs.python.org in Polish not English?

2021-06-21 Thread Mark Dickinson


Mark Dickinson  added the comment:

The bug here is that https://docs.python.org/3.11/library/parser.html is 
visible at all, given that the parser module no longer exists in 3.10 or 3.11.

@Samuel: Do you see this on any other documentation nodes, or just on 
parser.html? I can reproduce the confusion on parser.html, but I don't see it 
anywhere else.

--
nosy: +mark.dickinson

___
Python tracker 

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



[issue44297] Frame with -1 line number

2021-06-21 Thread STINNER Victor


STINNER Victor  added the comment:

Can the issue be closed?

I'm not sure which assertion failed in test_ssl.test_pha_required_nocert(). I 
bet on this one:

with self.assertRaisesRegex(
ssl.SSLError,
'(certificate required|EOF occurred)'
):

I don't know if the commit 82e5c28af7049c4f5343c808f172cbe2e145f49b is 
supported is to fix issue or not.

--

___
Python tracker 

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



[issue44344] Documentation for pow() should include the possibility of complex numbers as a return type

2021-06-21 Thread Erik Y. Adams


Erik Y. Adams  added the comment:

I still think the most important aspect of this is that pow() will return 
complex numbers, contrary to what is implied by the statement I quoted at the 
beginning of this thread. 

Perhaps we should just borrow from the documentation for the power operator, 
which says:

Raising 0.0 to a negative power results in a ZeroDivisionError. Raising a 
negative number to a fractional power results in a complex number. (In earlier 
versions it raised a ValueError.)

https://docs.python.org/3/reference/expressions.html#the-power-operator

--

___
Python tracker 

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



[issue44358] AMD64 RHEL8 LTO + PGO 3.x build failed with: /usr/bin/ld: Dwarf Error: Offset (2487097600) greater than or equal to .debug_str size (571933).

2021-06-21 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +cstratak

___
Python tracker 

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



[issue44475] Dataclass Causes Infinite Recursion when using type of bytes

2021-06-21 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +eric.smith

___
Python tracker 

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



[issue26693] Exception ignored in: in _shutdown, assert tlock.locked()

2021-06-21 Thread Irit Katriel


Change by Irit Katriel :


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



[issue44394] [security] CVE-2013-0340 "Billion Laughs" fixed in Expat >=2.4.0: Update vendored copy to expat 2.4.1

2021-06-21 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +lukasz.langa, ned.deily, pablogsal

___
Python tracker 

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



[issue44470] 3.11 docs.python.org in Polish not English?

2021-06-21 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +mdk

___
Python tracker 

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



[issue26693] Exception ignored in: in _shutdown, assert tlock.locked()

2021-06-21 Thread STINNER Victor


STINNER Victor  added the comment:

Yeah, I consider that the issue can be closed.

I'm ok to investigate the issue if another reproducer code is written only 
using fully initialized (sub)interpreters.

--

___
Python tracker 

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



[issue44472] ltrace functionality doesn't work if there is an exception set

2021-06-21 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue44472] ltrace functionality doesn't work if there is an exception set

2021-06-21 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 06cda808f149fae9b4c688f752b6eccd0d455ba4 by Pablo Galindo in 
branch 'main':
bpo-44472: Fix ltrace functionality when exceptions are raised (GH-26822)
https://github.com/python/cpython/commit/06cda808f149fae9b4c688f752b6eccd0d455ba4


--

___
Python tracker 

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



[issue44472] ltrace functionality doesn't work if there is an exception set

2021-06-21 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25412
pull_request: https://github.com/python/cpython/pull/26831

___
Python tracker 

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



[issue44472] ltrace functionality doesn't work if there is an exception set

2021-06-21 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 1.0 -> 2.0
pull_requests: +25411
pull_request: https://github.com/python/cpython/pull/26830

___
Python tracker 

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



[issue26693] Exception ignored in: in _shutdown, assert tlock.locked()

2021-06-21 Thread Irit Katriel


Irit Katriel  added the comment:

Can we close this as not a bug, as the reproducer includes unsupported code?

--
nosy: +iritkatriel

___
Python tracker 

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



[issue21760] inspect documentation describes module type inaccurately

2021-06-21 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +easy -patch
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



[issue18233] SSLSocket.getpeercertchain()

2021-06-21 Thread J.P


Change by J.P :


--
nosy: +jamespo

___
Python tracker 

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



[issue44475] Dataclass Causes Infinite Recursion when using type of bytes

2021-06-21 Thread Andrew C


New submission from Andrew C :

Hello,

When given a `Field` on a Dataclass, the `__repr__` throws an infinite 
recursive error when the data type is bytes.

In the `Field` class, the __repr__ is as follows:

```
def __repr__(self):
return (
'Field('
f'name={self.name!r},'
f'type={self.type!r},'
f'default={self.default!r},'
f'default_factory={self.default_factory!r},'
f'init={self.init!r},'
f'repr={self.repr!r},'
f'hash={self.hash!r},'
f'compare={self.compare!r},'
f'metadata={self.metadata!r},'
f'_field_type={self._field_type}'
')'
)
```

The issue is the f'type={self.type!r}, part of the code.

--
components: Windows
messages: 396250
nosy: andrewonboe, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Dataclass Causes Infinite Recursion when using type of bytes
versions: Python 3.7, Python 3.8

___
Python tracker 

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



[issue44395] email.message as_string() not writing unixfrom

2021-06-21 Thread miss-islington


miss-islington  added the comment:


New changeset 67b3a9995368f89b7ce4a995920b2a83a81c599b by Miss Islington (bot) 
in branch '3.9':
bpo-44395: Fix MIMEPart.as_string to pass unixfrom properly (GH-26685)
https://github.com/python/cpython/commit/67b3a9995368f89b7ce4a995920b2a83a81c599b


--

___
Python tracker 

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



[issue44395] email.message as_string() not writing unixfrom

2021-06-21 Thread Dong-hee Na


Change by Dong-hee Na :


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



[issue44395] email.message as_string() not writing unixfrom

2021-06-21 Thread miss-islington


miss-islington  added the comment:


New changeset 20a1495b8a93596b322ea19bb09008db036eb7e6 by Miss Islington (bot) 
in branch '3.10':
bpo-44395: Fix MIMEPart.as_string to pass unixfrom properly (GH-26685)
https://github.com/python/cpython/commit/20a1495b8a93596b322ea19bb09008db036eb7e6


--

___
Python tracker 

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



[issue26329] os.path.normpath("//") returns //

2021-06-21 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 
3.6

___
Python tracker 

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



[issue30966] Add multiprocessing.queues.SimpleQueue.close()

2021-06-21 Thread Irit Katriel


Change by Irit Katriel :


--
versions: +Python 3.9 -Python 3.10

___
Python tracker 

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



[issue44395] email.message as_string() not writing unixfrom

2021-06-21 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25410
pull_request: https://github.com/python/cpython/pull/26829

___
Python tracker 

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



[issue44395] email.message as_string() not writing unixfrom

2021-06-21 Thread Dong-hee Na


Dong-hee Na  added the comment:


New changeset 30f7a77f359a0fc6e37988b0f317a77a15d66b7b by Dong-hee Na in branch 
'main':
bpo-44395: Fix MIMEPart.as_string to pass unixfrom properly (GH-26685)
https://github.com/python/cpython/commit/30f7a77f359a0fc6e37988b0f317a77a15d66b7b


--

___
Python tracker 

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



[issue44395] email.message as_string() not writing unixfrom

2021-06-21 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +25409
pull_request: https://github.com/python/cpython/pull/26828

___
Python tracker 

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



[issue30966] Add multiprocessing.queues.SimpleQueue.close()

2021-06-21 Thread Antoine Pitrou


Change by Antoine Pitrou :


--
versions: +Python 3.10 -Python 2.7, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue30966] Add multiprocessing.queues.SimpleQueue.close()

2021-06-21 Thread Antoine Pitrou


Change by Antoine Pitrou :


--
stage: patch review -> resolved
status: pending -> closed
type:  -> resource usage

___
Python tracker 

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



[issue30966] Add multiprocessing.queues.SimpleQueue.close()

2021-06-21 Thread Irit Katriel


Irit Katriel  added the comment:

This seems complete, can it be closed?

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

___
Python tracker 

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



  1   2   >