[issue46251] logger.config.configure_formatter executes arbitrary code

2022-01-03 Thread MarkBaggett
MarkBaggett added the comment: "Dont load untrusted config files" is the answer I expected. It the only safe answer really. But is there really a mechanism to provide trust of an external config file other that file permissions? It doesn't seem like hmac or digital signatures work because yo

[issue44092] [sqlite3] Remove special rollback handling

2022-01-03 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Reopening; there's some clean-up left. After GH-26026, the `reset` member of `pysqlite_Cursor` is now unused. We can remove it and all related code. PR coming. -- resolution: fixed -> status: closed -> open __

[issue46187] Optionally support rounding for math.isqrt()

2022-01-03 Thread Tim Peters
Tim Peters added the comment: I've made several good-faith efforts to find any hint of demand for rounded isqrt on the web; I've found no direct support for it in other languages/environments(*); and the one use case you presented isn't compelling. Building static tables to help implement ex

[issue46110] compile("-"*3000000 + "4", '', mode) causes hard crash

2022-01-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: At thing at this point we can confidently say that is very very unlike that there is no actual regression. What's going on with the performance servers is something I still cannot explain. I at least can confirm the servers system packages were not up

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2022-01-03 Thread miss-islington
miss-islington added the comment: New changeset 0b3c3cbbaf2967cc17531d65ece0969b0d2a2079 by Miss Islington (bot) in branch '3.10': bpo-34538: Remove Exception subclassing from tutorial (GH-30361) https://github.com/python/cpython/commit/0b3c3cbbaf2967cc17531d65ece0969b0d2a2079 -- _

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2022-01-03 Thread miss-islington
miss-islington added the comment: New changeset 4affb996ce6353dd029ece0c7d36f7c7c0af2de3 by Miss Islington (bot) in branch '3.9': bpo-34538: Remove Exception subclassing from tutorial (GH-30361) https://github.com/python/cpython/commit/4affb996ce6353dd029ece0c7d36f7c7c0af2de3 -- __

[issue44092] [sqlite3] Remove special rollback handling

2022-01-03 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +28587 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/30377 ___ Python tracker ___ ___

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2022-01-03 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46110] compile("-"*3000000 + "4", '', mode) causes hard crash

2022-01-03 Thread Guido van Rossum
Guido van Rossum added the comment: "is very very unlike that there is no actual regression" I presume you meant "it is very very *likely* that there is no actual regression" This shouldn't hold up releases, but (having spent months trying to improve startup speed) I would still like to get

[issue34931] os.path.splitext with more dots

2022-01-03 Thread Irit Katriel
Change by Irit Katriel : -- components: +Library (Lib) resolution: fixed -> ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue46251] logger.config.configure_formatter executes arbitrary code

2022-01-03 Thread Irit Katriel
Change by Irit Katriel : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue46110] compile("-"*3000000 + "4", '', mode) causes hard crash

2022-01-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I presume you mean > "it is very very *likely* that there is no actual regression" Yes, sorry, that's what I meant :) > This shouldn't hold up releases Cool, we will proceed with 3.9.10 and 3.11.0a3 tomorrow. -- ___

[issue46240] Incorrect hint about forgetting a comma

2022-01-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +28588 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30378 ___ Python tracker __

[issue44958] [sqlite3] only reset statements when needed

2022-01-03 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +28589 pull_request: https://github.com/python/cpython/pull/30379 ___ Python tracker ___ ___

[issue44092] [sqlite3] Remove special rollback handling

2022-01-03 Thread miss-islington
miss-islington added the comment: New changeset f1a58441eea6b7788c64d03a80ea35996301e550 by Erlend Egeberg Aasland in branch 'main': bpo-44092: Remove unused member `reset` from `sqlite3.Cursor` (GH-30377) https://github.com/python/cpython/commit/f1a58441eea6b7788c64d03a80ea35996301e550 ---

[issue42259] pprint: infinite recursion for saferepr() when using nested objects, but str() works

2022-01-03 Thread Irit Katriel
Irit Katriel added the comment: The documentation change in the PR clarifies the current state of things. @serhiy.storchaka - do you have a view on whether we should aim for an actual fix, or just document and close? -- ___ Python tracker

[issue46249] [sqlite3] move set lastrowid out of the query loop

2022-01-03 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I see that PEP 249 does not define the semantics of lastrowid for executemany(). What's the precedence here, MAL? IMO, it would be nice to be able to fetch the last row id after you've done a 1000 inserts using executemany(). So, another option would be

[issue44092] [sqlite3] Remove special rollback handling

2022-01-03 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46249] [sqlite3] move set lastrowid out of the query loop

2022-01-03 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +28590 pull_request: https://github.com/python/cpython/pull/30380 ___ Python tracker ___ ___

[issue46249] [sqlite3] move set lastrowid out of the query loop

2022-01-03 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > So, another option would be to keep "set-lastrowid" in the query loop, and > just remove the condition; we set it every time (but of course only build a > PyObject of it when the loop is done). I made a competing PR (GH-30380) for this, just a little bett

[issue46246] importlib.metadata.DeprecatedList appears to be missing __slots__

2022-01-03 Thread Jason R. Coombs
Jason R. Coombs added the comment: Perhaps it is a mistake. The `__slots__` were added as a (possible premature) optimization in [this conversation](https://github.com/python/importlib_metadata/pull/278/files#r565475347). It's not obvious to me what the danger is in defining __slots__ in a c

[issue44092] [sqlite3] Remove special rollback handling

2022-01-03 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +28591 pull_request: https://github.com/python/cpython/pull/30381 ___ Python tracker ___ ___

[issue41011] [venv] record which executable and command were used to create a virtual environment

2022-01-03 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 2.0 -> 3.0 pull_requests: +28592 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30382 ___ Python tracker

[issue46233] Minor speedup for bigint squaring

2022-01-03 Thread Tim Peters
Tim Peters added the comment: New changeset 3aa5242b54b0627293d95cfb4a26b2f917f667be by Tim Peters in branch 'main': bpo-46233: Minor speedup for bigint squaring (GH-30345) https://github.com/python/cpython/commit/3aa5242b54b0627293d95cfb4a26b2f917f667be --

[issue46233] Minor speedup for bigint squaring

2022-01-03 Thread Tim Peters
Change by Tim Peters : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue46208] os.path.normpath change between 3.11.0a2 and 3.11.0a3+

2022-01-03 Thread neonene
neonene added the comment: >Here's a branch with a passing ntpath.normpath test and a failing >posixpath.normpath test: I took the test cases for my PR, thanks. On Windows machine, ntpath fails and posixpath passes. It seems that the passing one is tested with pure python code. --

[issue44875] Update dis.findlinestarts documentaiton to reflect new usage of `co_lines` (PEP 626)

2022-01-03 Thread laike9m
laike9m added the comment: Agreed. The current doc for `findlinestarts` is outdated. -- nosy: +laike9m ___ Python tracker ___ ___ P

[issue46235] Do all ref-counting at once for sequence multiplication

2022-01-03 Thread Dennis Sweeney
Dennis Sweeney added the comment: Hm... the effects are completely different on GCC. This is with --enable-optimizations and GCC on WSL: Slower (29): - tuple(range(100)) * 10: 1.22 us +- 0.02 us -> 2.29 us +- 0.05 us: 1.87x slower - tuple(range(100)) * 2: 345 ns +- 7 ns -> 629 ns +- 5 ns: 1.8

[issue46252] SSLWantReadError causes _SelectorSocketTransport to close

2022-01-03 Thread Matan Perelman
Change by Matan Perelman : -- assignee: christian.heimes components: SSL, asyncio nosy: asvetlov, christian.heimes, matan1008, yselivanov priority: normal severity: normal status: open title: SSLWantReadError causes _SelectorSocketTransport to close type: behavior versions: Python 3.10,

[issue46252] SSLWantReadError causes _SelectorSocketTransport to close

2022-01-03 Thread Matan Perelman
Change by Matan Perelman : -- keywords: +patch pull_requests: +28593 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30385 ___ Python tracker ___ _

[issue46245] Add support for dir_fd in shutil.rmtree()

2022-01-03 Thread Yassir Karroum
Change by Yassir Karroum : -- keywords: +patch nosy: +ukarroum nosy_count: 1.0 -> 2.0 pull_requests: +28594 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30386 ___ Python tracker __

[issue46253] C API documentation of Py_UNICODE_* character properties macros use Py_UNICODE instead of Py_UCS4

2022-01-03 Thread Julian Gilbey
New submission from Julian Gilbey : The documentation at https://docs.python.org/3/c-api/unicode.html?highlight=isalpha#unicode-character-properties lists a series of macros such as Py_UNICODE_ISSPACE(Py_UNICODE ch). However, the input type for these macros was changed from Py_UNICODE to Py_

[issue46253] C API documentation of Py_UNICODE_* character properties macros use Py_UNICODE instead of Py_UCS4

2022-01-03 Thread Julian Gilbey
Change by Julian Gilbey : -- keywords: +patch pull_requests: +28595 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30387 ___ Python tracker ___ __

[issue46245] Add support for dir_fd in shutil.rmtree()

2022-01-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +28596 pull_request: https://github.com/python/cpython/pull/30365 ___ Python tracker ___

[issue46245] Add support for dir_fd in shutil.rmtree()

2022-01-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am sorry, I implemented this feature before opening this issue, but due to typo the PR was not linked here. -- ___ Python tracker ___ __

[issue46235] Do all ref-counting at once for sequence multiplication

2022-01-03 Thread Dennis Sweeney
Dennis Sweeney added the comment: Benchmarks are definitively better with the most recent change (in which the major data-copying loop is between parts of the same buffer): -- MSVC Slower (3): - (None,) * 2: 54.0 ns +- 0.7 ns -> 63.4 ns +- 2.5 ns: 1.17x slower - [Non

[issue46246] importlib.metadata.DeprecatedList appears to be missing __slots__

2022-01-03 Thread Arie Bovenberg
Arie Bovenberg added the comment: @jaraco thanks for your quick response. In short: __slots__ allows class layout to be optimized by replacing the class __dict__ with specific descriptors. This results in a class where only specific attributes can be get/set. However, you only really get th

<    1   2