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

2021-12-06 Thread E. Paine
E. Paine added the comment: > Any word on the tk Menu type parameter change? I'll admit to having completely forgot about this issue and not raising it with the Tk team. Manually trying this case on Tk 8.6.12 segfaults, so I really need to raise it. To reproduce the segfault, simply run the

[issue15013] [doc] smtplib: add low-level APIs to doc?

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- title: smtplib: add low-level APIs to doc? -> [doc] smtplib: add low-level APIs to doc? type: -> enhancement versions: +Python 3.11 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker

[issue44525] Implement CALL_FUNCTION adaptive interpreter optimizations

2021-12-06 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +28167 pull_request: https://github.com/python/cpython/pull/29942 ___ Python tracker ___

[issue45996] Worse error from asynccontextmanager in Python 3.10

2021-12-06 Thread Thomas Grainger
Thomas Grainger added the comment: you can see the analogous sync contextmanager issue on python3.6 with: ``` import logging from contextlib import contextmanager @contextmanager def foo(): yield def test(): f = foo() f.__enter__() f.__enter__() test() ``` on python3.7+

[issue7325] tempfile.mkdtemp() does not return absolute pathname when relative dir is specified

2021-12-06 Thread Irit Katriel
Irit Katriel added the comment: It's still the same in 3.11. I don't know whether this is something to fix in the code or in the docs. >> import tempfile >>> tempfile.mkdtemp(dir='.') './tmplvkt14za' >>> tempfile.mkstemp(dir='.') (3, '/Users/iritkatriel/src/cpython/tmp86ljh34k') --

[issue45957] _tkinter.TclError: expected boolean value but got ""

2021-12-06 Thread E. Paine
E. Paine added the comment: I cannot reproduce on Ubuntu 21.10 (Tk 8.6.11), so I believe we can close this issue. -- type: behavior -> crash ___ Python tracker ___

[issue45996] Worse error from asynccontextmanager in Python 3.10

2021-12-06 Thread Thomas Grainger
Thomas Grainger added the comment: I see the change here: https://github.com/python/cpython/commit/1c5c9c89ffc36875afaf4c3cc6a716d4bd089bbf#diff-e00601a380ba6c916ba4333277fe6ea43d2477804002ab1ae64480f80fec8e3aR177-R179 this is intentionally implementing https://bugs.python.org/issue30306 for

[issue45996] Worse error from asynccontextmanager in Python 3.10

2021-12-06 Thread Thomas Grainger
Thomas Grainger added the comment: ah I can repeat this on python3.8.10 trio but not python3.9.9 trio: ``` import logging import trio from contextlib import asynccontextmanager @asynccontextmanager async def foo(): await trio.sleep(1) yield async def test(): async with

[issue45582] Rewrite getpath.c in Python

2021-12-06 Thread neonene
Change by neonene : -- pull_requests: +28166 pull_request: https://github.com/python/cpython/pull/29941 ___ Python tracker ___ ___

[issue45996] Worse error from asynccontextmanager in Python 3.10

2021-12-06 Thread Thomas Grainger
Thomas Grainger added the comment: or consider the trio version: ``` import logging import trio from contextlib import asynccontextmanager @asynccontextmanager async def foo(): await trio.sleep(1) yield async def test(): async with trio.open_nursery() as n: f = foo()

[issue45996] Worse error from asynccontextmanager in Python 3.10

2021-12-06 Thread Thomas Grainger
Thomas Grainger added the comment: I think `AttributeError: args` is the desired/expected behaviour consider the sync version: ``` import logging from asyncio import sleep, gather, run from contextlib import asynccontextmanager, contextmanager @contextmanager def foo(): yield def

[issue45995] string formatting: normalize negative zero

2021-12-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: It was decided long ago that % formatting would not be enhanced with new features. I think that it is supposed to match the standard C formatting codes, and nothing else. So this is unlikely to be approved for % formatting. It *might* be approved for the

[issue43153] tempfile seems to treat a file as a directory when processing an exception in the onerror()

2021-12-06 Thread Ken Jin
Change by Ken Jin : -- keywords: +patch pull_requests: +28165 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29940 ___ Python tracker ___

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

2021-12-06 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: works for me -> stage: resolved -> status: closed -> open ___ Python tracker ___ ___

[issue45997] asyncio.Semaphore waiters deqeueu doesn't work

2021-12-06 Thread Yevhenii Hyzyla
New submission from Yevhenii Hyzyla : Class `asyncio.Semaphore` has dequeue in implementation for waiters of semaphore and seems like the intention of this dequeue is to maintain FIFO queue of waiters. But it doesn't work, coroutine that releases semaphore can acquire semaphore again. Below

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

2021-12-06 Thread Eric V. Smith
Eric V. Smith added the comment: That's interesting. I see the same behavior. So this seems to be a problem on www.lahey.com. I'll see if I can report it to them. -- ___ Python tracker

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

2021-12-06 Thread Akuli
Akuli added the comment: To me, it redirects or doesn't redirect to the drugs site, depending on what Accept-Language header your browser sends. And when the redirecting happens, the site is in chinese. (I don't speak chinese, and I don't know why my browser is sending zh-CN in

[issue37927] No Instantiation Restrictions for AbstractBaseClasses derived from builtin types

2021-12-06 Thread Alex Waygood
Alex Waygood added the comment: See also #5996 -- nosy: +AlexWaygood ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34338] abstractmethod can run on classes

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45996] Worse error from asynccontextmanager in Python 3.10

2021-12-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +graingert, lukasz.langa, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35063] Checking for abstractmethod implementation fails to consider MRO for builtins

2021-12-06 Thread Irit Katriel
Irit Katriel added the comment: See also issue37927. -- nosy: +iritkatriel type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7 ___ Python tracker

[issue35362] list inheritor with abstract content does not raise

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> No Instantiation Restrictions for AbstractBaseClasses derived from builtin types ___ Python tracker

[issue37927] No Instantiation Restrictions for AbstractBaseClasses derived from builtin types

2021-12-06 Thread Irit Katriel
Irit Katriel added the comment: Closed issue35362 as duplicate of this issue because there is a bit more info here. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11 -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python

[issue45994] Add simple usage to email module

2021-12-06 Thread Eric V. Smith
New submission from Eric V. Smith : What sort of usage example would help you? Is https://docs.python.org/3/library/email.examples.html lacking something? -- nosy: +eric.smith ___ Python tracker

[issue45950] Reintroduce bootstrap_python for freezing

2021-12-06 Thread Christian Heimes
Christian Heimes added the comment: I added --enable-framework=yes to macOS GHA builder. GH-29939 has ./configure --enable-framework=yes without proposed bootstrap fix. The build is failing early: ./_bootstrap_python ./Tools/scripts/deepfreeze.py

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-12-06 Thread STINNER Victor
STINNER Victor added the comment: bpo-33632 "undefined behaviour: signed integer overflow in threadmodule.c" has been fixed by this change: New changeset 833fdf126c8fe77fd17e8a8ffbc5c571b3bf64bd by Victor Stinner in branch 'main': bpo-41710: Add private _PyDeadline_Get() function (GH-28674)

[issue33632] undefined behaviour: signed integer overflow in threadmodule.c

2021-12-06 Thread STINNER Victor
STINNER Victor added the comment: > I think PR https://github.com/python/cpython/pull/28674 has resolved this > issue. You're right. _threadmodule.c now uses _PyDeadline_Init() which calls _PyTime_Add(), and _PyTime_Add() prevents integer overflows; Extract of its implementation: //

[issue45996] Worse error from asynccontextmanager in Python 3.10

2021-12-06 Thread Dima Tisnek
New submission from Dima Tisnek : Consider this illegal code: import logging from asyncio import sleep, gather, run from contextlib import asynccontextmanager @asynccontextmanager async def foo(): await sleep(1) yield async def test(): f = foo() await

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-12-06 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45950] Reintroduce bootstrap_python for freezing

2021-12-06 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28163, 28164 pull_request: https://github.com/python/cpython/pull/29939 ___ Python tracker ___

[issue45950] Reintroduce bootstrap_python for freezing

2021-12-06 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28163 pull_request: https://github.com/python/cpython/pull/29939 ___ Python tracker ___

[issue45934] python curses newterm implementation

2021-12-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44035] Regenerating the configure script fails even if dependencies are satisfied

2021-12-06 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 ___ Python tracker ___

[issue44035] Regenerating the configure script fails even if dependencies are satisfied

2021-12-06 Thread Christian Heimes
Christian Heimes added the comment: New changeset f147248795bf22be05bbc891053d60ef6a2f035d by Christian Heimes in branch '3.9': [3.9] bpo-44035: Check autoconf files thoroughly (GH-29935) (GH-29938) https://github.com/python/cpython/commit/f147248795bf22be05bbc891053d60ef6a2f035d

[issue44035] Regenerating the configure script fails even if dependencies are satisfied

2021-12-06 Thread Christian Heimes
Christian Heimes added the comment: New changeset 1528d249a5f8492801d09755f402618688337006 by Miss Islington (bot) in branch '3.10': [3.10] bpo-44035: Check autoconf files thoroughly (GH-29935) (GH-29937) https://github.com/python/cpython/commit/1528d249a5f8492801d09755f402618688337006

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

2021-12-06 Thread Chris Wesseling
Change by Chris Wesseling : -- nosy: -CharString, CharString ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45995] string formatting: normalize negative zero

2021-12-06 Thread John Belmonte
John Belmonte added the comment: > To normalize negative 0.0 to 0.0 you can just add 0.0. yes, I'm aware-- see "implementation" in the original post > there is no need to change all formatting specifications For adding 0 to work, it must be done after the rounding. That means if you want

[issue45934] python curses newterm implementation

2021-12-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Guido for clarification. I have found that post: https://mail.python.org/archives/list/core-mentors...@python.org/thread/YGSMPKP7G3HO73ISEQZFAWPPGCOA3JYZ/ I agree that it is worth to implement newterm. In particular it would be useful in tests.

[issue44035] Regenerating the configure script fails even if dependencies are satisfied

2021-12-06 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28162 pull_request: https://github.com/python/cpython/pull/29938 ___ Python tracker ___

[issue44035] Regenerating the configure script fails even if dependencies are satisfied

2021-12-06 Thread Christian Heimes
Christian Heimes added the comment: New changeset 98fac8bc183c113903403793ffe411358ee40d8a by Christian Heimes in branch 'main': bpo-44035: Check autoconf files thoroughly (GH-29935) https://github.com/python/cpython/commit/98fac8bc183c113903403793ffe411358ee40d8a --

[issue44035] Regenerating the configure script fails even if dependencies are satisfied

2021-12-06 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +28161 pull_request: https://github.com/python/cpython/pull/29937 ___ Python tracker

[issue45995] string formatting: normalize negative zero

2021-12-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: To normalize negative 0.0 to 0.0 you can just add 0.0. It will work with any method of converting floats to string, there is no need to change all formatting specifications. >>> x = -0.0 >>> x -0.0 >>> x + 0.0 0.0 -- nosy: +mark.dickinson,

[issue45995] string formatting: normalize negative zero

2021-12-06 Thread John Belmonte
New submission from John Belmonte : proposal: add a string formatting option to normalize negative 0 values to 0 use case: rounded display of a float that is nominally 0, where the distraction of a flashing minus sign from minute changes around 0 is unwanted example: >>> '%~5.1f' % -.1

[issue18774] There is still last bit of GNU Pth code in signalmodule.c

2021-12-06 Thread Irit Katriel
Irit Katriel added the comment: Two of the three remaining comments Christian mentioned are still there: % grep -r "gnu pth" Python/ configure.ac Python//thread.c: library (e.g. gnu pth in pthread emulation) */ configure.ac:# (e.g. gnu pth with pthread emulation) -- nosy:

[issue45829] Remove C stack use by specializing BINARY_SUBSCR, STORE_SUBSCR, LOAD_ATTR, and STORE_ATTR

2021-12-06 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-12-06 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45950] Reintroduce bootstrap_python for freezing

2021-12-06 Thread Christian Heimes
Christian Heimes added the comment: If the patch does not help then I can re-enable --with-build-python for non-cross builds. -- ___ Python tracker ___

[issue30988] Exception parsing invalid email address headers starting or ending with dot

2021-12-06 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue38836] Links are duplicated in documentation search result

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44092] [sqlite3] Remove special rollback handling

2021-12-06 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Imagine a person write a code with Python 3.11 and SQLite 3.8.7.2+, and then > deploying it to Python 3.11 and SQLite 3.8.7.1-, error may occur. However, > this situation is difficult to happen. Yes, I also think this is a far fetched case. I'll see if

[issue45994] Add simple usage to email module

2021-12-06 Thread Taiga Katarao
Change by Taiga Katarao : -- assignee: docs@python components: Documentation nosy: docs@python, tarao1006 priority: normal severity: normal status: open title: Add simple usage to email module type: enhancement versions: Python 3.10 ___ Python

[issue44092] [sqlite3] Remove special rollback handling

2021-12-06 Thread Ma Lin
Ma Lin added the comment: Imagine a person write a code with Python 3.11 and SQLite 3.8.7.2+, and then deploying it to Python 3.11 and SQLite 3.8.7.1-, error may occur. However, this situation is difficult to happen. > Can you provide a reproducer? We've run this change through the ref. >

[issue44092] [sqlite3] Remove special rollback handling

2021-12-06 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > I mean, after this change, different versions of SQLite will behave > differently. Yes, this is explained in the news item: Fetch across rollback no longer raises :exc:`~sqlite3.InterfaceError`. Instead we leave it to the SQLite library to

[issue43805] multiprocessing.Queue hangs when process on other side dies

2021-12-06 Thread Thomas Kluyver
Thomas Kluyver added the comment: It's not my decision, so I can't really say. But the Queue API is pretty stable, and exists 3 times over in Python (the queue module for use with threads, in multiprocessing and in asyncio). So I'd guess that anyone wanting to add to that API would need to

[issue44092] [sqlite3] Remove special rollback handling

2021-12-06 Thread Ma Lin
Ma Lin added the comment: > How realistic is this scenario? If you compile with, for example 3.14.0 or > newer, you'd link with sqlite3_trace_v2, not sqlite3_trace, so the loader > would prevent you from running with anything pre 3.14. AFAIK, we've never > had such problems. I mean, after

[issue41921] REDoS in parseentities

2021-12-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Interesting that the tool still exists. It uses mxTextTools, but in a non-packaged version, so it's been broken for two decades now :-) I think it's safe to remove it from Tools\scripts. -- ___ Python tracker

[issue45950] Reintroduce bootstrap_python for freezing

2021-12-06 Thread Christian Heimes
Christian Heimes added the comment: Ronald, Pablo, could you please test GH-29936 on macOS with --enable-framework? -- nosy: +pablogsal, ronaldoussoren ___ Python tracker ___

[issue45963] Embed interpreter frame in generator.

2021-12-06 Thread Mark Shannon
Mark Shannon added the comment: New changeset 299483c95d601ddcfdce2f96418b6499c1fc7b9f by Mark Shannon in branch 'main': bpo-45963: Make space for the InterpreterFrame of a generator in that generator. (GH-29891)

[issue44092] [sqlite3] Remove special rollback handling

2021-12-06 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > I think this change is no problem. Thanks, and thank you for looking reviewing this change. > There is only one situation that a problem may occur. Write code with SQLite > 3.8.7.2+ (2014-11-18), and run it on 3.7.15 (2012-12-12) ~ 3.8.7.1-, but > this

[issue41921] REDoS in parseentities

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +lemburg versions: +Python 3.11 -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue45950] Reintroduce bootstrap_python for freezing

2021-12-06 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28160 pull_request: https://github.com/python/cpython/pull/29936 ___ Python tracker ___

[issue45950] Reintroduce bootstrap_python for freezing

2021-12-06 Thread Ned Deily
Ned Deily added the comment: > Ned, does this change solve the issue with framework builds? No. I would guess at a minimum getpath.c for _bootstrap_python might need to be built without WITH_NEXT_FRAMEWORK defined. But I'm out of time for today and don't expect to have much time available

[issue45993] Main branch of CPython does not build anymore on macOS

2021-12-06 Thread Nikita Sobolev
Nikita Sobolev added the comment: Looks like removing cache worked. Thanks! -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue45950] Reintroduce bootstrap_python for freezing

2021-12-06 Thread Christian Heimes
Christian Heimes added the comment: Ned, does this change solve the issue with framework builds? $ git diff diff --git a/Makefile.pre.in b/Makefile.pre.in index 8e6e553554d..2068db30855 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -106,7 +106,7 @@

[issue45950] Reintroduce bootstrap_python for freezing

2021-12-06 Thread Ned Deily
Ned Deily added the comment: Framework builds on macOS now fail with a bus error when trying to run the newly built _bootstrap_python. A simplified example: $ ./configure --enable-framework=$PWD/Library/Frameworks checking for git... found checking build system type...

[issue45977] Unexpected effect of sys.pycache_prefix = ""

2021-12-06 Thread Christian Heimes
Christian Heimes added the comment: The cache prefix mirrors the directory structure. Python takes the absolute path to the .py file, converts the path to a relative path by stripping off the leading slash, and finally joins the path with the prefix. Take this example: $

[issue44035] Regenerating the configure script fails even if dependencies are satisfied

2021-12-06 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +28159 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29935 ___ Python tracker

[issue45993] Main branch of CPython does not build anymore on macOS

2021-12-06 Thread Christian Heimes
Christian Heimes added the comment: Did you run "make distclean" or "git clean -xdf" before ./configure? -- nosy: +christian.heimes ___ Python tracker ___

[issue45993] Main branch of CPython does not build anymore on macOS

2021-12-06 Thread Nikita Sobolev
New submission from Nikita Sobolev : New version of `main` branch does not build for me anymore. Command: `make -j` System information: - macOS 10.14.6 - Apple clang version 11.0.0 (clang-1100.0.33.16) I am also attaching resulting Makefile. Output: ``` ยป make -j gcc

<    1   2