[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
Christian Heimes added the comment: Ronald, Pablo, could you please test GH-29936 on macOS with --enable-framework? -- nosy: +pablogsal, ronaldoussoren ___ Python tracker ___

[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

[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

[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

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

[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: //

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

[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

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

[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

[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

[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

[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

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

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

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

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

[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

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

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

[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

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

[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

[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

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

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

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

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

[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

[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

[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

[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

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

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

[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: 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 Christian Heimes
Change by Christian Heimes : -- pull_requests: +28160 pull_request: https://github.com/python/cpython/pull/29936 ___ Python tracker ___

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

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

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

[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

[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

[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

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

[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

[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

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

[issue45995] string formatting: normalize negative zero

2021-12-06 Thread John Belmonte
John Belmonte added the comment: Here is the same proposal made for C++ `std::format`: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p1496r2.pdf It makes fair arguments for the feature's use, and explains why the problem is hard to work around. It was withdrawn by the author

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

2021-12-06 Thread Alex Waygood
Change by Alex Waygood : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-12-06 Thread Alex Waygood
Change by Alex Waygood : -- title: asyncio.Semaphore waiters deqeueu doesn't work -> asyncio.Semaphore waiters deque doesn't work ___ Python tracker ___

[issue45999] Links to packaging broken

2021-12-06 Thread Douglas Wright
New submission from Douglas Wright : Links in this section from the docs from 3.9 and newer are currently broken. https://docs.python.org/3.9/distributing/index.html#reading-the-python-packaging-user-guide They are currently leading to a "page not found" error. -- assignee:

[issue45950] Reintroduce bootstrap_python for freezing

2021-12-06 Thread Christian Heimes
Christian Heimes added the comment: New changeset 612e59b53f0c730ce1b881f7c08dc6d49f02c123 by Christian Heimes in branch 'main': bpo-45950: Fix macOS framework builds of _bootstrap_python (GH-29936) https://github.com/python/cpython/commit/612e59b53f0c730ce1b881f7c08dc6d49f02c123

[issue45992] distutils paths are scattered between PythonXY and PythonXY-32 on WoW64

2021-12-06 Thread Steve Dower
Steve Dower added the comment: They should all be under "-32" when in roaming appdata, because otherwise having 32-bit and 64-bit installs side-by-side will conflict. If these fields were newly added to distutils then should probably fix them to match sysconfig. If they're old and wrong,

[issue45992] distutils paths are scattered between PythonXY and PythonXY-32 on WoW64

2021-12-06 Thread Tzu-ping Chung
Tzu-ping Chung added the comment: They are old, but so are purelib and platlib, which were changed regardless. The problem is that distutils’s values are now half wrong and half right, neither matching pre-3.10 behaviour, nor matching post-3.10 sysconfig behaviour. --

[issue46002] py Launcher for Windows with MSYS2

2021-12-06 Thread Zernoxi
Zernoxi added the comment: I am launching "py" from a regular prompt ("powershell"). I should only have 2 registered python versions in the registry. "py -0p" shows the correct information. One thing to note is that if I "#!/usr/bin/env python3 -V", it will show the correct default python3

[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') --

[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

[issue12413] make faulthandler dump traceback of child processes

2021-12-06 Thread STINNER Victor
STINNER Victor added the comment: There is not activity for 10 years. I consider that this feature is not really needed. I reject this feature request. -- resolution: -> rejected stage: needs patch -> resolved status: open -> closed ___ Python

[issue45973] Not possible to clear PyImport_Inittab after PyImport_AppendInittab

2021-12-06 Thread STINNER Victor
STINNER Victor added the comment: Currently, the global variable PyImport_Inittab is used. It should be made per-interpreter and I suggest to add something like PyConfig_AppendInittab() to the PyConfig API, so the configuration change would only impact a single interpreter. It would be

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

2021-12-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: Good point. Currently, asyncio lock objects don't provide a strong FIFO guarantee. In a tight loop, a task can re-acquire the lock just after releasing even if there are pending waiters that were scheduled earlier. It's true also for Lock, Conditional,

[issue31879] Launcher fails on custom command starting with "python"

2021-12-06 Thread Steve Dower
Steve Dower added the comment: Not sure if Mark and Martin are part of an expert group, but neither are active in this area these days. For the original question, I have no idea why the command can't use a builtin name, so hard to say whether we'd change it. A summary of why it's broken and

[issue46002] py Launcher for Windows with MSYS2

2021-12-06 Thread Steve Dower
Steve Dower added the comment: Are you launching "py" from inside MSYS2? Or a regular prompt? What does the output of "py -0p" show? (It should list all the discovered installs) We might need someone who understands how MSYS2 works here, because I don't. --

[issue46001] JSON module documentation mentions OverflowError for case that raises RecursionError

2021-12-06 Thread James Gerity
James Gerity added the comment: Correction: the bug whose resolution adds the OverflowError mentioned above is bpo-24522, not bpo-43255 -- ___ 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

[issue36392] IPv4Interface Object has no attributte prefixlen

2021-12-06 Thread Ken Jin
Ken Jin added the comment: The link to what Andrei is referring to: https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv4Network.prefixlen -- ___ Python tracker ___

[issue46001] JSON module documentation mentions OverflowError for case that raises RecursionError

2021-12-06 Thread James Gerity
Change by James Gerity : -- keywords: +patch pull_requests: +28168 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29943 ___ Python tracker ___

[issue31139] Improve tracemalloc demo code in docs

2021-12-06 Thread STINNER Victor
STINNER Victor added the comment: https://github.com/python/cpython/pull/3020 is closed, I close this issue as well. -- resolution: -> out of date 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, I have implemented a fix for _bootstrap_python for framework builds and re-enabled --with-build-python for all builds. Previously I disabled the option for standard builds, because --with-build-python can cause build issues when a user runs

[issue21952] fnmatch.py can appear in tracemalloc diffs

2021-12-06 Thread STINNER Victor
STINNER Victor added the comment: Exposing internal caches in tracemalloc is not a bug but a deliberate choice. It's easy to write your own filters to ignore selected files (or even specific functions if you can locate them by line nubmers). -- resolution: -> rejected stage: ->

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

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

[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

[issue45998] Document best practice for including and linking python framework

2021-12-06 Thread Ronald Oussoren
New submission from Ronald Oussoren : There are two ways to develop against a Python.framework on MacOS: 1. Use the regular Unix pattern with "#include "Python.h", using compiler flags to select the right headers and libraries. 2. Using the native framework pattern with "#import " and

[issue13548] line number when tracing an implicit return

2021-12-06 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. An implicit return doesn't have a line, so it's not clear what should happen. Assigning the next line to it wouldn't be correct either (it could be the first line of the next function). We could say that in this case there is no line

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

2021-12-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: Or, maybe, there is a way to do everything without changing public API. The idea is: _wake_up_next can create a future which is set by *waked up task* on its acquiring. acquire method should wait for this future first before entering in `while self._value <

[issue46002] py Launcher for Windows with MSYS2

2021-12-06 Thread Tze Chian Kam
New submission from Tze Chian Kam : Using "pyenv" for python installations. "py" launcher detects all installed python versions from "pyenv". When using the shebang feature, if the following shebang is specified, "#!/usr/bin/env python -V", it will detect python version of "3.9.9" from MSYS2

[issue46002] py Launcher for Windows with MSYS2

2021-12-06 Thread Tze Chian Kam
Tze Chian Kam added the comment: This is not in a a virtual environment by the way. -- ___ Python tracker ___ ___ Python-bugs-list

[issue45934] python curses newterm implementation

2021-12-06 Thread Julius Hamilton
Julius Hamilton added the comment: I’m currently planning on studying the C code for initscr and newterm so I can really understand how they work. I’ll post any updates about this soon. Thanks. -- ___ Python tracker

[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

[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: 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+

[issue22815] unexpected successes are not output

2021-12-06 Thread Irit Katriel
Irit Katriel added the comment: Or do you mean that there should be more output? -- status: pending -> open ___ Python tracker ___

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

2021-12-06 Thread Yevhenii Hyzyla
Yevhenii Hyzyla added the comment: Thanks for response! > A hero who can help is welcome! I will try to make PR :raising_hand -- type: behavior -> versions: +Python 3.8 -Python 3.11 ___ Python tracker

[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

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

[issue46000] NetBSD curses compatibility

2021-12-06 Thread Thomas Klausner
New submission from Thomas Klausner : The code in Modules/_cursesmodule.c has an assumption on ncurses. The attached simple patch fixes this and works with both NetBSD curses and ncurses. -- components: Extension Modules files: patch-Modules___cursesmodule.c messages: 407825 nosy: wiz

[issue45973] Not possible to clear PyImport_Inittab after PyImport_AppendInittab

2021-12-06 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-1 (fixed). -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46001] JSON module documentation mentions OverflowError for case that raises RecursionError

2021-12-06 Thread James Gerity
New submission from James Gerity : The docstrings for `json.JSONEncoder, json.dump(), json.dumps()` all refer to `OverflowError` when describing the behavior of the `check_circular` parameter, but the module's test of this parameter catches a `RecursionError` and the documentation does make

[issue45755] Specialized generic class does not return class attributes in dir

2021-12-06 Thread Ken Jin
Ken Jin added the comment: Not exactly sure if this is a bug, but the reason is that Foo[int] used to be a class, now it's a plain object. It's a change brought in 3.7 by PEP 560. 3.6: >>> isinstance(Foo[int], type) True >>> Foo[int].__dir__ >> type(Foo[int].__dir__) main: >>>

[issue45994] Add simple usage to email module

2021-12-06 Thread Taiga Katarao
Taiga Katarao added the comment: There are the simplest example to send text email and a little bit complicated example to an email with some files. However, beginners like me want simple example to create an email composed of the combination of multipart/alternative and multipart/mixed.

[issue45582] Rewrite getpath.c in Python

2021-12-06 Thread Steve Dower
Steve Dower added the comment: New changeset af1db4eb555e02d2bff3476f99f7a653764203b0 by neonene in branch 'main': bpo-45582: Fix getpath_isxfile() and test_embed on Windows (GH-29930) https://github.com/python/cpython/commit/af1db4eb555e02d2bff3476f99f7a653764203b0 --

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

[issue29309] Interpreter hang when interrupting a loop.run_in_executor() future

2021-12-06 Thread Irit Katriel
Irit Katriel added the comment: @asyncio.coroutine was removed in 3.10, and the run_in_executor.py doesn't run with async def because that does not allow yield. I'll close this as out of date, please create a new issue if you are still having a related problem with async def. --

[issue44016] Enum related deprecation warnings in test_httpservers and test_faulthandler

2021-12-06 Thread STINNER Victor
STINNER Victor added the comment: test_httpservers warnings have been fixed. I cannot reproduce test_faulthandler warnings. I close the issue. If someone still gets warnnings in test_faulthandler, please provide the full command line to reproduce them. commit

  1   2   >