[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-28 Thread Nikita Sobolev

Nikita Sobolev  added the comment:

Thanks, Łukasz!

чт, 28 окт. 2021 г. в 23:04, Łukasz Langa :

>
> Change by Łukasz Langa :
>
>
> --
> resolution:  -> fixed
> stage: patch review -> resolved
> status: open -> closed
> versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2021-10-28 Thread Eryk Sun


Eryk Sun  added the comment:

If only force_hide is implemented, based on `wShowWindow=SW_HIDE`, please 
ensure that it's clearly documented that this option hides the main window 
(i.e. first top-level window) of any application that doesn't bypass the 
default behavior of the window manager.

This means a script can't simply use `force_hide=True` universally when running 
arbitrary commands, since hiding the main window of a GUI app is probably 
undesired behavior. If it's unknown in advance whether an executable is a 
console or GUI app, it can be determined via SHGetFileInfoW(). For example:

import ctypes
shell32 = ctypes.WinDLL('shell32', use_last_error=True)
SHGFI_EXETYPE = 0x2000

def is_gui_exe(path):
result = shell32.SHGetFileInfoW(path, 0, None, 0, SHGFI_EXETYPE)
# the high word is non-zero for a GUI app
return (result >> 16) > 0

>>> is_gui_exe(r'C:\Windows\pyw.exe')
True
>>> is_gui_exe(r'C:\Windows\py.exe')
False

Regarding the effect of wShowWindow:

If the STARTUPINFO record defines wShowWindow, the value gets used as the 
normal show command for the first top-level window that's shown in the process. 
In particular, it overrides the first use (and only the first use) of the 
commands SW_SHOW, SW_SHOWNORMAL, and SW_SHOWDEFAULT (yes, only the first use of 
the latter; the documentation is wrong). This affects showing the first 
top-level window regardless of whether it's explicit via ShowWindow() or 
implicit via the WS_VISIBLE window style. For the latter, the implicit command 
is SW_SHOW, which one can override in the CreateWindowW() call by passing 
x=CW_USEDEFAULT and y as the show command to use. 

To completely ignore the STARTUPINFO wShowWindow value for the main window, an 
application can use an initial show command that wShowWindow doesn't override, 
such as SW_HIDE, SW_RESTORE (behaves like SW_SHOWNORMAL on first use), 
SW_MINIMIZE, or SW_MAXIMIZE. For example, for the first command use 
ShowWindow(hwnd, SW_HIDE). Subsequently calling ShowWindow(hwnd, SW_SHOWNORMAL) 
will show the window normally (i.e. active and restored) instead of using the 
STARTUPINFO wShowWindow command.

--

___
Python tracker 

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



[issue45646] Star expression in comprehension wrongly indicates to use or_expression after the star

2021-10-28 Thread Arthur Milchior


Change by Arthur Milchior :


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

___
Python tracker 

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



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

2021-10-28 Thread Chris Wesseling


Change by Chris Wesseling :


--
nosy: +CharString, CharString
nosy_count: 4.0 -> 5.0
pull_requests: +27569, 27570
pull_request: https://github.com/python/cpython/pull/29273

___
Python tracker 

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



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

2021-10-28 Thread Chris Wesseling


Change by Chris Wesseling :


--
nosy: +CharString
nosy_count: 4.0 -> 5.0
pull_requests: +27569
pull_request: https://github.com/python/cpython/pull/29273

___
Python tracker 

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



[issue45347] datetime subject to rounding?

2021-10-28 Thread Daniele Varrazzo


Daniele Varrazzo  added the comment:

Considering that I have found another pair of dates failing equality, and they 
are too on the last Sunday of October, the hypothesis of rounding in timezone 
code starts to look likely

Python 3.7.9 (default, Jan 12 2021, 17:26:22) 
[GCC 8.3.0] on linux

>>> import datetime, backports.zoneinfo
>>> d1 = datetime.datetime(2255, 10, 28, 7, 31, 21, 393428, 
>>> tzinfo=datetime.timezone(datetime.timedelta(seconds=27060)))
>>> d2 = datetime.datetime(2255, 10, 28, 2, 0, 21, 393428, 
>>> tzinfo=backports.zoneinfo.ZoneInfo(key='Europe/Rome'))
>>> d1 - d2
datetime.timedelta(0)
>>> d1 == d2
False

Added Python 3.7 to the affected list.

--
versions: +Python 3.7

___
Python tracker 

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



[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-28 Thread Guido van Rossum

Guido van Rossum  added the comment:

OK, OK, I see your point. I'm curious what Łukasz thinks.

--
nosy: +lukasz.langa

___
Python tracker 

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



[issue45645] Deep recursion terminates script execution with no error (Windows, Python 3.9)

2021-10-28 Thread Steve Dower


Steve Dower  added the comment:

> But why does it happen only on Windows?

Because it's the operating system that is terminating the process :) 
Other operating systems behave differently when you exceed the stack, 
and may also allocate different amounts of stack space, making it less 
likely that you hit it.

--

___
Python tracker 

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



[issue45655] List of PEPs at top of typing docs is too long to be readable

2021-10-28 Thread Alex Waygood


Change by Alex Waygood :


--
pull_requests: +27566, 27567, 27568
pull_request: https://github.com/python/cpython/pull/29302

___
Python tracker 

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



[issue45655] List of PEPs at top of typing docs is too long to be readable

2021-10-28 Thread Alex Waygood


Change by Alex Waygood :


--
pull_requests: +27566, 27567
pull_request: https://github.com/python/cpython/pull/29302

___
Python tracker 

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



[issue45655] List of PEPs at top of typing docs is too long to be readable

2021-10-28 Thread Alex Waygood


Change by Alex Waygood :


--
pull_requests: +27566
pull_request: https://github.com/python/cpython/pull/29302

___
Python tracker 

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



[issue45577] Make `test_zoneinfo.py` to check all pickle protocols

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 7203ecd332eca3a44a3f1c8bdadd76a08c5568a1 by Miss Islington (bot) 
in branch '3.10':
bpo-45577: test all pickle protocols in `test_zoneinfo` (GH-29167) (GH-29296)
https://github.com/python/cpython/commit/7203ecd332eca3a44a3f1c8bdadd76a08c5568a1


--

___
Python tracker 

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



[issue45577] Make `test_zoneinfo.py` to check all pickle protocols

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset dd674ca96f2150fb3f7b4086ef7ec0022c4e2058 by Miss Islington (bot) 
in branch '3.9':
bpo-45577: test all pickle protocols in `test_zoneinfo` (GH-29167) (GH-29295)
https://github.com/python/cpython/commit/dd674ca96f2150fb3f7b4086ef7ec0022c4e2058


--

___
Python tracker 

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



[issue45645] Deep recursion terminates script execution with no error (Windows, Python 3.9)

2021-10-28 Thread PABLO LOBATO DE LA CRUZ

PABLO LOBATO DE LA CRUZ  added the comment:

I see thanks for answering so quickly. But why does it happen only on
Windows?

El jue, 28 oct 2021 a las 23:09, Steve Dower ()
escribió:

>
> Steve Dower  added the comment:
>
> This is almost certainly because of how Windows handles stack overflow
> exceptions, and the fact that there's no way for us to detect it reliably.
>
> There's some work going on to reduce the C stack depth when calling
> heavily nested Python code (see issue45256), but there's nothing else we
> can really do I'm afraid.
>
> I'm marking *this* issue as wontfix, but hopefully we can make some
> improvement on this general issue through other issues. Thanks for
> reporting it!
>
> --
> resolution:  -> wont fix
> stage:  -> resolved
> status: open -> closed
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue45396] Custom frozen modules get ignored.

2021-10-28 Thread Eric Snow


Change by Eric Snow :


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

___
Python tracker 

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



[issue45395] Frozen stdlib modules are discarded if custom frozen modules added.

2021-10-28 Thread Eric Snow


Eric Snow  added the comment:

This is done now.

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

___
Python tracker 

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



[issue45396] Custom frozen modules get ignored.

2021-10-28 Thread Eric Snow


Eric Snow  added the comment:

The behavior has been addressed in the fix for bpo-45395.  However, I'd like to 
change the name of the -X option from "frozen_modules" to "frozen_stdlib", to 
avoid any confusion in the future.  After that this issue is done.

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



[issue45396] Custom frozen modules get ignored.

2021-10-28 Thread Eric Snow


Change by Eric Snow :


--
pull_requests: +27565
pull_request: https://github.com/python/cpython/pull/29301

___
Python tracker 

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



[issue45443] 'ThreadPoolExecutor' object has no attribute 'map'

2021-10-28 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

It's been a couple of weeks, so I'm closing this. Feel free to re-open if you 
figure out that this is a bug that you can reliably reproduce on a fresh 
install of cpython.

--
resolution:  -> not a bug
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



[issue45655] List of PEPs at top of typing docs is too long to be readable

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 8813a987b1df78b5eaddb085e514dfa5af5c8634 by Alex Waygood in 
branch '3.9':
[3.9] bpo-45655: Add "relevant PEPs" section to typing documentation (GH-29297)
https://github.com/python/cpython/commit/8813a987b1df78b5eaddb085e514dfa5af5c8634


--

___
Python tracker 

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



[issue45624] test_graphlib.py depends on iteration order of sets

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Carl Friedrich! ✨  ✨

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



[issue45624] test_graphlib.py depends on iteration order of sets

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 67a1abb6aab3b3ce40eb3fdc0af73179ab436a3a by Miss Islington (bot) 
in branch '3.9':
bpo-45624: make test_graphlib not depend on the iteration order of sets 
(GH-29233) (GH-29292)
https://github.com/python/cpython/commit/67a1abb6aab3b3ce40eb3fdc0af73179ab436a3a


--

___
Python tracker 

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



[issue45624] test_graphlib.py depends on iteration order of sets

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset eccb753ae6e1459dc697d5408e1082fff4f6d8f7 by Miss Islington (bot) 
in branch '3.10':
bpo-45624: make test_graphlib not depend on the iteration order of sets 
(GH-29233) (GH-29293)
https://github.com/python/cpython/commit/eccb753ae6e1459dc697d5408e1082fff4f6d8f7


--

___
Python tracker 

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



[issue45484] test_pickle segfault on s390x RHEL7 LTO 3.x

2021-10-28 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

Hopefully this was fixed by https://github.com/python/cpython/pull/29258

--
nosy: +Dennis Sweeney

___
Python tracker 

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



[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-28 Thread Eric Snow


Change by Eric Snow :


--
pull_requests: +27564
pull_request: https://github.com/python/cpython/pull/29300

___
Python tracker 

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



[issue45645] Deep recursion terminates script execution with no error (Windows, Python 3.9)

2021-10-28 Thread Steve Dower


Steve Dower  added the comment:

This is almost certainly because of how Windows handles stack overflow 
exceptions, and the fact that there's no way for us to detect it reliably.

There's some work going on to reduce the C stack depth when calling heavily 
nested Python code (see issue45256), but there's nothing else we can really do 
I'm afraid.

I'm marking *this* issue as wontfix, but hopefully we can make some improvement 
on this general issue through other issues. Thanks for reporting it!

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



[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2021-10-28 Thread Steve Dower


Steve Dower  added the comment:

I'd rather only have one force_hide option that does its best to hide 
everything.

Yes, it's probably unintuitive for GUI apps, it might even be maliciously 
misused, but it does have occasional legitimate uses. And besides, an app can 
easily ignore SW_HIDE if it wants.

Bear in mind that the test suite should (mostly) operate without ctypes. So if 
you use ctypes to verify the test, make it a separate test that skips if ctypes 
cannot be imported, and have a test that runs it without verifying the window 
is actually hidden. That way we always at least _run_ the code, even if we only 
(usually) verify that it's actually hiding the window.

--

___
Python tracker 

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



[issue45395] Frozen stdlib modules are discarded if custom frozen modules added.

2021-10-28 Thread Eric Snow


Eric Snow  added the comment:


New changeset 074fa5750640a067d9894c69378a00ceecc3b948 by Eric Snow in branch 
'main':
bpo-45395: Make custom frozen modules additions instead of replacements. 
(gh-28778)
https://github.com/python/cpython/commit/074fa5750640a067d9894c69378a00ceecc3b948


--

___
Python tracker 

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



[issue45623] static build is broken

2021-10-28 Thread Steve Dower


Steve Dower  added the comment:

winver is static data, so no reason we can't define it all the time.

Unassigning myself - if anyone else would like to work on this, feel free.

--
assignee: steve.dower -> 

___
Python tracker 

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



[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-10-28 Thread Martin


Change by Martin :


--
pull_requests: +27563
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/29299

___
Python tracker 

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



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

2021-10-28 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue45657] Enum behavior when values are functions

2021-10-28 Thread Ronald Pandolfi


Ronald Pandolfi  added the comment:

Ok, yeah that works. I would have thought that __members__ could be able to 
differentiate between bound methods and external functions, but that's probably 
asking too much.

Fair enough! This works so I'm happy. Closing, "not a bug"...

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



[issue45655] List of PEPs at top of typing docs is too long to be readable

2021-10-28 Thread Alex Waygood


Change by Alex Waygood :


--
versions: +Python 3.9

___
Python tracker 

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



[issue45655] List of PEPs at top of typing docs is too long to be readable

2021-10-28 Thread Alex Waygood


Change by Alex Waygood :


--
pull_requests: +27561
pull_request: https://github.com/python/cpython/pull/29297

___
Python tracker 

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



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

2021-10-28 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

resolve_bases() returns incorrect result:

>>> import types
>>> types.resolve_bases((list[int],))
(list[int],)

Expected (list,).

new_class() fails:

>>> types.new_class('L', (list[int],), {})
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/serhiy/py/cpython/Lib/types.py", line 77, in new_class
return meta(name, resolved_bases, ns, **kwds)
   ^^
TypeError: GenericAlias expected 2 arguments, got 3

Both work well with typing.List[int].

--
components: Library (Lib)
messages: 405265
nosy: gvanrossum, kj, serhiy.storchaka, yselivanov
priority: normal
severity: normal
status: open
title: resolve_bases() and new_class() do not work with type alias of a 
built-in type
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



[issue45612] [doc] add sqlite3 module docstring

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Erlend! ✨  ✨

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



[issue45612] [doc] add sqlite3 module docstring

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset d6623c3ddb9a0e5ffed81253bd40f75c3c662f1a by Miss Islington (bot) 
in branch '3.9':
bpo-45612: Add sqlite3 module docstring (GH-29224) (GH-29289)
https://github.com/python/cpython/commit/d6623c3ddb9a0e5ffed81253bd40f75c3c662f1a


--

___
Python tracker 

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



[issue45612] [doc] add sqlite3 module docstring

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 823b3e39ae12884d5aa3c98341a41b2d6f19d329 by Miss Islington (bot) 
in branch '3.10':
bpo-45612: Add sqlite3 module docstring (GH-29224) (GH-29288)
https://github.com/python/cpython/commit/823b3e39ae12884d5aa3c98341a41b2d6f19d329


--

___
Python tracker 

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



[issue45396] Custom frozen modules get ignored.

2021-10-28 Thread Eric Snow


Change by Eric Snow :


--
pull_requests: +27560
pull_request: https://github.com/python/cpython/pull/28778

___
Python tracker 

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



[issue45577] Make `test_zoneinfo.py` to check all pickle protocols

2021-10-28 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +27558
pull_request: https://github.com/python/cpython/pull/29295

___
Python tracker 

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



[issue45577] Make `test_zoneinfo.py` to check all pickle protocols

2021-10-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27559
pull_request: https://github.com/python/cpython/pull/29296

___
Python tracker 

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



[issue45577] Make `test_zoneinfo.py` to check all pickle protocols

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 66e6b3dcd3bbab06feeff2cbaf8aade7b6223d6c by Nikita Sobolev in 
branch 'main':
bpo-45577: test all pickle protocols in `test_zoneinfo` (GH-29167)
https://github.com/python/cpython/commit/66e6b3dcd3bbab06feeff2cbaf8aade7b6223d6c


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue45379] Improve errors related to frozen modules.

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 233841ab782953510ad308dc6173072a6cc6a1cd by Filipe Laíns in 
branch 'main':
bpo-45379: add custom error string for FROZEN_DISABLED (GH-29190)
https://github.com/python/cpython/commit/233841ab782953510ad308dc6173072a6cc6a1cd


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue45649] Add tarinfo.Path

2021-10-28 Thread Ethan Furman


Change by Ethan Furman :


--
nosy: +ethan.furman

___
Python tracker 

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



[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Arthur! ✨  ✨

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.8

___
Python tracker 

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



[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 3767e0d94351653a34ba6a6914e57c5c231012b0 by Miss Islington (bot) 
in branch '3.9':
bpo-45583: Correct datamodel documentation of int() (GH-29182) (GH-29286)
https://github.com/python/cpython/commit/3767e0d94351653a34ba6a6914e57c5c231012b0


--

___
Python tracker 

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



[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset fef54abf5fa3bf3d3cdeb2cba7a2921d204867c6 by Miss Islington (bot) 
in branch '3.10':
bpo-45583: Correct datamodel documentation of int() (GH-29182) (GH-29285)
https://github.com/python/cpython/commit/fef54abf5fa3bf3d3cdeb2cba7a2921d204867c6


--

___
Python tracker 

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



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

2021-10-28 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



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

2021-10-28 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

>>> import dataclasses, types
>>> @dataclasses.dataclass
... class A(types.GenericAlias):
... origin: type
... args: type
... 
>>> dataclasses.is_dataclass(A)
True
>>> a = A(list, int)
>>> dataclasses.is_dataclass(type(a))
True
>>> dataclasses.is_dataclass(a)
False

--
components: Library (Lib)
messages: 405256
nosy: eric.smith, gvanrossum, serhiy.storchaka
priority: normal
severity: normal
status: open
title: is_dataclass() does not work for dataclasses which are subclasses of 
types.GenericAlias
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



[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-28 Thread Łukasz Langa

Change by Łukasz Langa :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7

___
Python tracker 

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



[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Nikita! ✨  ✨

--

___
Python tracker 

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



[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 01d11b1d62b869f77e024b3979dbc064e9019b7c by Miss Islington (bot) 
in branch '3.9':
bpo-45604: add `level` argument to `multiprocessing.log_to_stderr` func 
(GH-29226) (GH-29284)
https://github.com/python/cpython/commit/01d11b1d62b869f77e024b3979dbc064e9019b7c


--

___
Python tracker 

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



[issue45624] test_graphlib.py depends on iteration order of sets

2021-10-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27556
pull_request: https://github.com/python/cpython/pull/29293

___
Python tracker 

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



[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 76658e5bdbdf57464f4b43f1625c02c2ba4222dd by Miss Islington (bot) 
in branch '3.8':
bpo-45583: Correct datamodel documentation of int() (GH-29182) (GH-29287)
https://github.com/python/cpython/commit/76658e5bdbdf57464f4b43f1625c02c2ba4222dd


--

___
Python tracker 

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



[issue45624] test_graphlib.py depends on iteration order of sets

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 7401694807fc6b5f7b35ff73c06f4bb852e02946 by Carl Friedrich 
Bolz-Tereick in branch 'main':
bpo-45624: make test_graphlib not depend on the iteration order of sets 
(GH-29233)
https://github.com/python/cpython/commit/7401694807fc6b5f7b35ff73c06f4bb852e02946


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue45662] Incorrect repr of InitVar of a type alias

2021-10-28 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue45624] test_graphlib.py depends on iteration order of sets

2021-10-28 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +27555
pull_request: https://github.com/python/cpython/pull/29292

___
Python tracker 

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



[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-10-28 Thread primexx


Change by primexx :


--
nosy: +primexx

___
Python tracker 

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



[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset fb80aede6ab5d10297b787526657b1a6e20a706a by Miss Islington (bot) 
in branch '3.10':
bpo-45604: add `level` argument to `multiprocessing.log_to_stderr` func 
(GH-29226) (GH-29283)
https://github.com/python/cpython/commit/fb80aede6ab5d10297b787526657b1a6e20a706a


--

___
Python tracker 

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



[issue45608] [sqlite3] some DB-API attributes are undocumented

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Erlend! ✨  ✨

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



[issue45608] [sqlite3] some DB-API attributes are undocumented

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 1d88b2b0a15198843a43f34aba1abc65455d3ba7 by Miss Islington (bot) 
in branch '3.10':
bpo-45608: Document missing `sqlite3` DB-API attributes and methods (GH-29219) 
(GH-29281)
https://github.com/python/cpython/commit/1d88b2b0a15198843a43f34aba1abc65455d3ba7


--

___
Python tracker 

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



[issue45608] [sqlite3] some DB-API attributes are undocumented

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 020aa06ec8b0f473a682f4ae74af5833035b054b by Miss Islington (bot) 
in branch '3.9':
bpo-45608: Document missing `sqlite3` DB-API attributes and methods (GH-29219) 
(GH-29282)
https://github.com/python/cpython/commit/020aa06ec8b0f473a682f4ae74af5833035b054b


--

___
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-10-28 Thread Eric Snow


Eric Snow  added the comment:

On Thu, Oct 28, 2021 at 12:15 PM Marc-Andre Lemburg
 wrote:
> encodings is a package. I think you first have to check whether mixing
> frozen and non-frozen submodules are even supported. I've never tried
> having only part of a package frozen.

It works as long as __path__ is set properly, which it is now.  FWIW,
I tested freezing only some of the submodules a while back and it
worked fine.  That was using a different branch that I never merged
but it should be fine with the different change that got merged.  Of
course, we'd need to verify that if we went that route.

--

___
Python tracker 

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



[issue45612] [doc] add sqlite3 module docstring

2021-10-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27552
pull_request: https://github.com/python/cpython/pull/29289

___
Python tracker 

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



[issue45655] List of PEPs at top of typing docs is too long to be readable

2021-10-28 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue45612] [doc] add sqlite3 module docstring

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 4dd1e84789f0bd2da83ad06d23c569bf03713a50 by Erlend Egeberg 
Aasland in branch 'main':
bpo-45612: Add sqlite3 module docstring (GH-29224)
https://github.com/python/cpython/commit/4dd1e84789f0bd2da83ad06d23c569bf03713a50


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue45655] List of PEPs at top of typing docs is too long to be readable

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 03db1bbfd2d3f5a343c293b2f0e09a1e962df7ea by Alex Waygood in 
branch 'main':
bpo-45655: Add "relevant PEPs" section to ``typing`` documentation (GH-29280)
https://github.com/python/cpython/commit/03db1bbfd2d3f5a343c293b2f0e09a1e962df7ea


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue45612] [doc] add sqlite3 module docstring

2021-10-28 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +27551
pull_request: https://github.com/python/cpython/pull/29288

___
Python tracker 

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



[issue45020] Freeze all modules imported during startup.

2021-10-28 Thread Eric Snow


Eric Snow  added the comment:

I consider this done.  There is some lingering follow-up work, for which I've 
created a number of issues:

* https://bugs.python.org/issue45396 - -X frozen_modules=off ignores custom 
frozen modules
* https://bugs.python.org/issue45395 - custom modules override frozen stdlib 
modules
* https://bugs.python.org/issue45651 - frozen_modules default not right on 
Windows
* https://bugs.python.org/issue45272 - "os.path" should be in the list of 
frozen modules
* https://bugs.python.org/issue45653 - freeze encodings
* https://bugs.python.org/issue45654 - freeze runpy
* https://bugs.python.org/issue45660 - freeze argparse
* https://bugs.python.org/issue45661 - freeze other stdlib modules
* https://bugs.python.org/issue45273 - os-specific modules frozen unnecessarily?
* https://bugs.python.org/issue45096 - update Tools/freeze
* https://bugs.python.org/issue45379 - improving frozen-related errors
* https://github.com/python/devguide/issues/756 - add devguide info about 
frozen modules

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



[issue35540] dataclasses.asdict breaks with defaultdict fields

2021-10-28 Thread Raymond Xu


Raymond Xu  added the comment:

I am seeing this bug with 3.9.7

--
nosy: +greenfish6

___
Python tracker 

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



[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset d9c1868c25ec6466e8d8ae21fe9315a8a03836ab by Arthur Milchior in 
branch 'main':
bpo-45583: Correct datamodel documentation of int() (GH-29182)
https://github.com/python/cpython/commit/d9c1868c25ec6466e8d8ae21fe9315a8a03836ab


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27549
pull_request: https://github.com/python/cpython/pull/29286

___
Python tracker 

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



[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-28 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27550
pull_request: https://github.com/python/cpython/pull/29287

___
Python tracker 

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



[issue45662] Incorrect repr of InitVar of a type alias

2021-10-28 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

The repr of InitVar preserves type aliases from the typing module, but not 
builtin.

>>> import typing, dataclasses
>>> dataclasses.InitVar[typing.List[int]]
dataclasses.InitVar[typing.List[int]]
>>> dataclasses.InitVar[list[int]]
dataclasses.InitVar[list]

--
components: Library (Lib)
messages: 405241
nosy: eric.smith, gvanrossum, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Incorrect repr of InitVar of a type alias
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



[issue45661] [meta] Freeze commonly used stdlib modules.

2021-10-28 Thread Eric Snow


Eric Snow  added the comment:

One to consider that isn't necessarily used that commonly is sysconfig.  
However, that could also involve freezing the "sysconfigdata" file (without 
needing to expose it as a module).

--

___
Python tracker 

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



[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-10-28 Thread Martin


Martin  added the comment:

Once again a very good summary, thanks Joe!

> it would be quite useful if this function parameter was given not just the 
> local variable values, but also the name of the local variable and maybe also 
> the stack frame it is in

So this would be something like `format_locals(filename, lineno, name, locals) 
-> dict[str,str]` that could be used inside FrameSummary.__init__. I like that!

I wouldn't bother with detecting un-repr-able objects in Python itself, but if 
the above `format_locals` was implemented, you could easily prepare such a 
formatter for your students that hides `self` et al. and/or catch exceptions 
during `repr` to your liking.

What is needed to get an OK for such a change?

--

___
Python tracker 

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



[issue45661] [meta] Freeze commonly used stdlib modules.

2021-10-28 Thread Eric Snow


New submission from Eric Snow :

We're already freezing modules needed for bootstrapping the runtime, as well as 
the modules imported during startup. [1][2]  We're also planning on freezing 
argparse. [3]  There may be other modules (or files) worth freezing (assuming 
we don't just freeze the entire stdlib, which would have some potential 
downsides).

This issue is meant to cover the broader idea.  The work to actually freeze 
modules should be handled in separate issues.


[1] https://bugs.python.org/issue45020
[2] https://bugs.python.org/issue45654
[3] https://bugs.python.org/issue45660

--
components: Build
messages: 405239
nosy: FFY00, eric.snow
priority: normal
severity: normal
status: open
title: [meta] Freeze commonly used stdlib modules.
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



[issue45651] -X frozen_modules not defaulting to "off" on Windows when running in source tree?

2021-10-28 Thread Guido van Rossum


Change by Guido van Rossum :


--
nosy: +gvanrossum

___
Python tracker 

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



[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 1fb968c07a76fb2d1ec8c14a0026f1d15828f4a5 by Nikita Sobolev in 
branch 'main':
bpo-45604: add `level` argument to `multiprocessing.log_to_stderr` func 
(GH-29226)
https://github.com/python/cpython/commit/1fb968c07a76fb2d1ec8c14a0026f1d15828f4a5


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27547
pull_request: https://github.com/python/cpython/pull/29284

___
Python tracker 

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



[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-28 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue45608] [sqlite3] some DB-API attributes are undocumented

2021-10-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27545
pull_request: https://github.com/python/cpython/pull/29282

___
Python tracker 

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



[issue45608] [sqlite3] some DB-API attributes are undocumented

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 88d8a1a340fb09c54d47f354f5fd7d4fbc5f0c78 by Erlend Egeberg 
Aasland in branch 'main':
bpo-45608: Document missing `sqlite3` DB-API attributes and methods (GH-29219)
https://github.com/python/cpython/commit/88d8a1a340fb09c54d47f354f5fd7d4fbc5f0c78


--
nosy: +lukasz.langa

___
Python tracker 

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



[issue45608] [sqlite3] some DB-API attributes are undocumented

2021-10-28 Thread miss-islington


Change by miss-islington :


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

___
Python tracker 

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



[issue28737] Document that tp_dealloc handler must call PyObject_GC_UnTrack if Py_TPFLAGS_HAVE_GC is set

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Sam! ✨  ✨

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



[issue45654] Freeze the runpy module.

2021-10-28 Thread Eric Snow


Eric Snow  added the comment:

(See https://bugs.python.org/issue45020#msg402118.)

--

___
Python tracker 

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



[issue28737] Document that tp_dealloc handler must call PyObject_GC_UnTrack if Py_TPFLAGS_HAVE_GC is set

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 193504acf3bfb7cff1edf7f568c2405b857fa1f7 by Miss Islington (bot) 
in branch '3.9':
bpo-28737: Document when tp_dealloc should call PyObject_GC_UnTrack() 
(GH-29246) (GH-29248)
https://github.com/python/cpython/commit/193504acf3bfb7cff1edf7f568c2405b857fa1f7


--

___
Python tracker 

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



[issue28737] Document that tp_dealloc handler must call PyObject_GC_UnTrack if Py_TPFLAGS_HAVE_GC is set

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 9e0012116ac9e8d26bf19ef8741deeecf2b6f72b by Sam Gross in branch 
'3.10':
[3.10] bpo-28737: Document when tp_dealloc should call PyObject_GC_UnTrack() 
(GH-29246) (GH-29249)
https://github.com/python/cpython/commit/9e0012116ac9e8d26bf19ef8741deeecf2b6f72b


--

___
Python tracker 

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



[issue45660] Freeze the argparse module.

2021-10-28 Thread Eric Snow


New submission from Eric Snow :

(See https://bugs.python.org/issue45020#msg402116.)

On Fri, Sep 17, 2021 at 7:56 PM Raymond Hettinger  
wrote:
> It would be nice to freeze argparse.py and its dependencies.  For 
> command-line tools, startup time is important.

This would include freezing the modules that argparse depends on, etc.

--
components: Build
messages: 405231
nosy: FFY00, eric.snow
priority: normal
severity: normal
stage: needs patch
status: open
title: Freeze the argparse module.
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



[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset f19c1a115f782036edac306de0f3f9968c1e1fd6 by Miss Islington (bot) 
in branch '3.8':
bpo-44828: Avoid tkinter file dialog failure on macOS 12 Monterey (GH-29276) 
(GH-29279)
https://github.com/python/cpython/commit/f19c1a115f782036edac306de0f3f9968c1e1fd6


--

___
Python tracker 

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



[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset f2407144347fafcd69c2ade41b5d9c3fb07b59ef by Ned Deily in branch 
'3.8':
[3.9] bpo-45618: Fix documentation build by pinning Docutils version to 0.17.1 
(GH-29230) (GH-29241) (GH-29245)
https://github.com/python/cpython/commit/f2407144347fafcd69c2ade41b5d9c3fb07b59ef


--

___
Python tracker 

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



[issue21736] Add __file__ attribute to frozen modules

2021-10-28 Thread Eric Snow


Eric Snow  added the comment:

I've opened the following issues related to frozen stdlib modules:

https://bugs.python.org/issue45652
https://bugs.python.org/issue45658
https://bugs.python.org/issue45659

Again, I'm leaving this issue open to deal with the broader question of frozen 
modules outside the stdlib, where the solution isn't so obvious.  The question 
of targeting the FileLoader (or SourceLoader) ABC should probably be handled 
separately.  (Note that bpo-45020 has some related discussion.)

--
type:  -> behavior

___
Python tracker 

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



[issue45548] Update Modules/Setup

2021-10-28 Thread Marc-Andre Lemburg


Marc-Andre Lemburg  added the comment:

On 27.10.2021 22:58, Brett Cannon wrote:
> 
> Brett Cannon  added the comment:
> 
>> Could Brett or you please add those notes back ? There's no other place
> where such details are documented.
> 
> It really depends on what "details" you're referring to.

I had already listed some of those details.

> Most of what I removed were things like "Module by ", or saying 
> _json.c is for "json accelerator" which is obvious to me. Anything that 
> seemed pertinent to compilation I left in.
> 
> So if there's something you specifically want to add back in that you think 
> is important then please feel free to as I'm done editing the file for my 
> purposes at the moment.

Will do.

--

___
Python tracker 

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



[issue45659] Add FrozenImporter.get_filename().

2021-10-28 Thread Eric Snow


Eric Snow  added the comment:

Note that there isn't any intent currently to implement the FileLoader ABC [1], 
which would require having FrozenImporter instances, adding the "name" and 
"path" attributes to them, as well as the get_data() method.  The same goes for 
the SourceLoader ABC. [2]

Again, frozen modules don't have files but instead were only derived from files 
during the build process.  For frozen stdlib modules we happen to know where to 
find the corresponding source files.


[1] https://docs.python.org/3/library/importlib.html#importlib.abc.FileLoader
[2] https://docs.python.org/3/library/importlib.html#importlib.abc.SourceLoader

--

___
Python tracker 

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



[issue45659] Add FrozenImporter.get_filename().

2021-10-28 Thread Eric Snow


New submission from Eric Snow :

Now that __file__ is set on frozen (stdlib) modules, we can add an 
implementation for FrozenImporter.get_filename().  This would make 
FrozenImporter and implementation of ExecutionLoader. [1]

There is a caveat: in spec_from_loader() [2] we infer the presence of 
get_filename() to mean the loader is file-based, which FrozenImporter isn't. 
 In that case we call spec_from_file_location() [3], which should not be used 
for frozen modules.  Most importantly, spec.origin for frozen modules should 
remain "frozen", spec.cached should remain None, and spec.has_location should 
remain False.  That's because the module was imported frozen and not from a 
file (even though it originated in a file).


[1] 
https://docs.python.org/3/library/importlib.html#importlib.abc.ExecutionLoader
[2] in Lib/import/_bootstrap.py
[3] in Lib/import/_bootstrap_external.py

--
components: Library (Lib)
messages: 405225
nosy: FFY00, eric.snow
priority: normal
severity: normal
stage: needs patch
status: open
title: Add FrozenImporter.get_filename().
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



[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread miss-islington


miss-islington  added the comment:


New changeset 8e5e74e3049875e9d834fe4408263676fe21e890 by Miss Islington (bot) 
in branch '3.9':
bpo-44828: Avoid tkinter file dialog failure on macOS 12 Monterey (GH-29276)
https://github.com/python/cpython/commit/8e5e74e3049875e9d834fe4408263676fe21e890


--

___
Python tracker 

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



[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-28 Thread miss-islington


miss-islington  added the comment:


New changeset 54579087c69f95531cbe7a97401c67f104a3e52f by Miss Islington (bot) 
in branch '3.10':
bpo-44828: Avoid tkinter file dialog failure on macOS 12 Monterey (GH-29276)
https://github.com/python/cpython/commit/54579087c69f95531cbe7a97401c67f104a3e52f


--

___
Python tracker 

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



[issue45657] Enum behavior when values are functions

2021-10-28 Thread Alex Waygood


Alex Waygood  added the comment:

It would be difficult to define methods in Enum classes if functions in the 
class namespace were automatically converted into members. You can get around 
this by wrapping your functions in `functools.partial` objects; see 
https://stackoverflow.com/questions/40338652/how-to-define-enum-values-that-are-functions.

--
nosy: +AlexWaygood, ethan.furman

___
Python tracker 

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



[issue45636] Merge BINARY_*/INPLACE_* into BINARY_OP/INPLACE_OP

2021-10-28 Thread Brandt Bucher


Brandt Bucher  added the comment:

Slower (29):
- unpack_sequence: 43.7 ns +- 0.9 ns -> 45.7 ns +- 1.1 ns: 1.04x slower
- float: 80.5 ms +- 0.9 ms -> 83.5 ms +- 1.3 ms: 1.04x slower
- regex_effbot: 3.15 ms +- 0.03 ms -> 3.26 ms +- 0.04 ms: 1.04x slower
- go: 165 ms +- 1 ms -> 171 ms +- 3 ms: 1.03x slower
- pickle_dict: 26.8 us +- 0.1 us -> 27.5 us +- 0.1 us: 1.03x slower
- scimark_monte_carlo: 77.5 ms +- 0.8 ms -> 79.3 ms +- 1.3 ms: 1.02x slower
- sqlalchemy_imperative: 18.6 ms +- 0.5 ms -> 18.9 ms +- 0.9 ms: 1.02x slower
- chaos: 76.7 ms +- 0.7 ms -> 78.1 ms +- 0.8 ms: 1.02x slower
- logging_format: 6.73 us +- 0.09 us -> 6.84 us +- 0.08 us: 1.02x slower
- richards: 56.9 ms +- 0.9 ms -> 57.7 ms +- 1.0 ms: 1.01x slower
- chameleon: 7.48 ms +- 0.10 ms -> 7.58 ms +- 0.12 ms: 1.01x slower
- json_loads: 25.4 us +- 0.2 us -> 25.7 us +- 0.2 us: 1.01x slower
- sympy_expand: 501 ms +- 5 ms -> 507 ms +- 4 ms: 1.01x slower
- logging_silent: 116 ns +- 3 ns -> 117 ns +- 2 ns: 1.01x slower
- django_template: 37.2 ms +- 0.5 ms -> 37.7 ms +- 0.4 ms: 1.01x slower
- regex_v8: 23.2 ms +- 0.1 ms -> 23.4 ms +- 0.3 ms: 1.01x slower
- regex_dna: 212 ms +- 1 ms -> 214 ms +- 1 ms: 1.01x slower
- xml_etree_process: 59.1 ms +- 0.6 ms -> 59.6 ms +- 0.6 ms: 1.01x slower
- xml_etree_generate: 80.4 ms +- 0.7 ms -> 81.2 ms +- 0.8 ms: 1.01x slower
- scimark_lu: 138 ms +- 3 ms -> 140 ms +- 3 ms: 1.01x slower
- logging_simple: 6.15 us +- 0.08 us -> 6.20 us +- 0.09 us: 1.01x slower
- regex_compile: 144 ms +- 2 ms -> 145 ms +- 1 ms: 1.01x slower
- spectral_norm: 107 ms +- 1 ms -> 108 ms +- 2 ms: 1.01x slower
- 2to3: 271 ms +- 1 ms -> 272 ms +- 1 ms: 1.00x slower
- sympy_integrate: 22.0 ms +- 0.2 ms -> 22.1 ms +- 0.1 ms: 1.00x slower
- sympy_str: 303 ms +- 4 ms -> 304 ms +- 3 ms: 1.00x slower
- dulwich_log: 67.6 ms +- 0.3 ms -> 67.8 ms +- 0.3 ms: 1.00x slower
- python_startup_no_site: 5.90 ms +- 0.00 ms -> 5.91 ms +- 0.01 ms: 1.00x slower
- python_startup: 8.51 ms +- 0.01 ms -> 8.52 ms +- 0.01 ms: 1.00x slower

Faster (13):
- pickle_list: 4.48 us +- 0.04 us -> 4.31 us +- 0.03 us: 1.04x faster
- scimark_fft: 355 ms +- 10 ms -> 348 ms +- 3 ms: 1.02x faster
- nqueens: 90.1 ms +- 0.7 ms -> 88.3 ms +- 0.8 ms: 1.02x faster
- xml_etree_iterparse: 107 ms +- 3 ms -> 105 ms +- 2 ms: 1.02x faster
- nbody: 115 ms +- 2 ms -> 113 ms +- 3 ms: 1.02x faster
- fannkuch: 427 ms +- 4 ms -> 420 ms +- 4 ms: 1.02x faster
- unpickle_list: 5.05 us +- 0.04 us -> 4.96 us +- 0.06 us: 1.02x faster
- telco: 6.38 ms +- 0.25 ms -> 6.29 ms +- 0.13 ms: 1.01x faster
- json_dumps: 12.6 ms +- 0.1 ms -> 12.5 ms +- 0.1 ms: 1.01x faster
- pyflate: 539 ms +- 9 ms -> 533 ms +- 3 ms: 1.01x faster
- crypto_pyaes: 87.5 ms +- 0.6 ms -> 86.6 ms +- 1.2 ms: 1.01x faster
- raytrace: 331 ms +- 2 ms -> 330 ms +- 2 ms: 1.00x faster
- mako: 11.9 ms +- 0.1 ms -> 11.9 ms +- 0.1 ms: 1.00x faster

Benchmark hidden because not significant (16): deltablue, hexiom, 
meteor_contest, pathlib, pickle, pickle_pure_python, pidigits, scimark_sor, 
scimark_sparse_mat_mult, sqlalchemy_declarative, sqlite_synth, sympy_sum, 
tornado_http, unpickle, unpickle_pure_python, xml_etree_parse

Geometric mean: 1.00x slower

--

___
Python tracker 

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



  1   2   >