[issue46181] Destroying an expaned Combobox prevents Entry focus until Alt+Tab

2022-01-03 Thread Jonathan Lahav
Jonathan Lahav added the comment: Here's a discussion about the issue. I asked about it in comp.lang.tcl: https://groups.google.com/g/comp.lang.tcl/c/C-uQIH-wP5w Someone there explains what's happening. -- ___ Python tracker

[issue34931] os.path.splitext with more dots

2022-01-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are other issues with the documentation of splitext(). 1. It uses term "extension" (it is even a part of function name), but it is vague and usually does not include a period. On Windows the extension of "python.exe" is "exe", not ".exe". On Unix ter

[issue46232] Client certificates with UniqueIdentifier in the subject break ssl.peer_certificate()

2022-01-03 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +28564 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30351 ___ Python tracker ___

[issue46238] Improve constants usage / definition in asyncio.windows_events

2022-01-03 Thread Nikita Sobolev
New submission from Nikita Sobolev : There are several problems in https://github.com/python/cpython/blob/549e62827262264cda30455e10e315602129da72/Lib/asyncio/windows_events.py#L31-L32 1. For some reason this module uses both `NULL` and `_winapi.NULL`, `INFINITE` and `_winapi.INFINITE`. There

[issue46238] Improve constants usage / definition in asyncio.windows_events

2022-01-03 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28565 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30352 ___ Python tracker ___ _

[issue46239] Incosistent error message in asyncio: windows_events / windows_utils

2022-01-03 Thread Nikita Sobolev
New submission from Nikita Sobolev : When trying to import both `windows_events` and `windows_utils` on non-Windows, they both fail. But, they fail differently. `windows_utils` produces a good error message, whil `windows_events` produces a strange one. Good: ``` Python 3.11.0a3+ (heads/mai

[issue46239] Incosistent error message in asyncio: windows_events / windows_utils

2022-01-03 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28566 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30353 ___ Python tracker ___ _

[issue41987] singledispatchmethod raises an error when relying on a forward declaration

2022-01-03 Thread Jörn Heissler
Jörn Heissler added the comment: Hello! git-bisect points at https://bugs.python.org/issue41341 https://github.com/python/cpython/pull/21553 It breaks both the examples from https://bugs.python.org/issue41987#msg379896 and https://bugs.python.org/issue41987#msg380803 -- nosy: +joernhe

[issue46070] _PyImport_FixupExtensionObject() regression causing a crash in subintepreters

2022-01-03 Thread graysky
graysky added the comment: In reply to the first comment here https://bugs.python.org/issue46070#msg408520 which affects several Kodi plugins, it seems that commenting out lines 80-84 in /usr/lib/python3.10/sqlite3/dbapi2.py "fixes" the bug in python 3.10.1. I do not know if that helps diag

[issue18677] Enhanced context managers with ContextManagerExit and None

2022-01-03 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Great throwback. As far as I know, context managers are still not first class citizens. You cannot _compose_ two context managers into a new one programmatically in the language, in the same way that you can, for instance, compose two functions. No

[issue34931] os.path.splitext with more dots

2022-01-03 Thread Eryk Sun
Eryk Sun added the comment: > On Windows the extension of "python.exe" is "exe", not ".exe". FWIW, a file extension in Windows includes the dot. Trailing dots are stripped from filenames, so a file can't be named "python." because it's the same as just "python". (It's possible to prevent st

[issue34931] os.path.splitext with more dots

2022-01-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, so we can keep term "extension". But I think it is worth to clarify that "leading periods" is related to the last component, not the whole path. It is related to the original issue. -- ___ Python tracker

[issue20281] [doc] time.strftime %z format specifier is the same as %Z

2022-01-03 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- keywords: +patch nosy: +hugovk nosy_count: 6.0 -> 7.0 pull_requests: +28567 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30354 ___ Python tracker

[issue29964] [doc] %z directive has no effect on the output of time.strptime

2022-01-03 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- keywords: +patch nosy: +hugovk nosy_count: 6.0 -> 7.0 pull_requests: +28568 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/30354 ___ Python tracker

[issue25927] add dir_fd for mkstemp, and also maybe to all tempfile.*

2022-01-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is better to not change posixpath for now. And it is not necessary. But shutil.rmtree() needs to support file descriptors, and it is not trivial issue. -- ___ Python tracker

[issue46240] Incorrect hint about forgetting a comma

2022-01-03 Thread Andre Roberge
New submission from Andre Roberge : Given the following code containing an unclosed parenthesis: a = (1, 2 b = 3 Here is the resulting SyntaxError: > python ignore.py File "C:\...\ignore.py", line 1 a = (1, 2 ^ SyntaxError: invalid syntax. Perhaps you forgot a comma? This i

[issue46241] importlib.utils.find_spec() has issues with "tests" folder

2022-01-03 Thread Daniël van Noord
New submission from Daniël van Noord : Affected folder structure: ── module_loader │ ├── __init__.py ├── pyproject.toml ├── setup.cfg └── tests └── test_module_loader.py ```console ❯ cat '/Users/daniel/DocumentenLaptop/Programming/Test/module_loader/module_loader/__init__.py' from importl

[issue26571] turtle regression in 3.5

2022-01-03 Thread William Navaraj
Change by William Navaraj : -- nosy: +williamnavaraj nosy_count: 6.0 -> 7.0 pull_requests: +28569 pull_request: https://github.com/python/cpython/pull/30355 ___ Python tracker

[issue24905] Allow incremental I/O to blobs in sqlite3

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

[issue46241] importlib.utils.find_spec() has issues with "tests" folder

2022-01-03 Thread Daniël van Noord
Change by Daniël van Noord : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue24905] Allow incremental I/O to blobs in sqlite3

2022-01-03 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I've submitted my changes as a separate PR. I believe we should consider duplicating the apsw API, for users convenience. Pr. now, they are very similar, except for the "open blob" API: apsw uses `blobopen`, we currently use `open_blob`. I suggest changin

[issue46222] posixmodule sendfile FreeBSD's constants update

2022-01-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset c960b191b8999a9455bb4b2c50dc224d06fee80c by David CARLIER in branch 'main': bpo-46222: posixmodule sendfile FreeBSD's constants updates. (GH-30327) https://github.com/python/cpython/commit/c960b191b8999a9455bb4b2c50dc224d06fee80c -- no

[issue46222] posixmodule sendfile FreeBSD's constants update

2022-01-03 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue46181] Destroying an expaned Combobox prevents Entry focus until Alt+Tab

2022-01-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From what I understand, this issue is about a somewhat esoteric tk-design or >program bug and should be closed as either 'not a bug' or '3rd-party'. -- ___ Python tracker

[issue46242] Improve error message when creating an enum with `__call__`

2022-01-03 Thread Nikita Sobolev
New submission from Nikita Sobolev : Right now when creating a new `Enum`, we check not to extend `Enum` with existing `_member_names_`: ```python Python 3.11.0a3+ (heads/main:8d7644fa64, Dec 30 2021, 13:00:40) [Clang 11.0.0 (clang-1100.0.33.16)] on darwin Type "help", "copyright", "credits" o

[issue46242] Improve error message when creating an enum with `__call__`

2022-01-03 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28571 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30357 ___ Python tracker ___ _

[issue24905] Allow incremental I/O to blobs in sqlite3

2022-01-03 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: The diff is pretty heavy, here's the diffstat: 17 files changed, 1362 insertions(+), 7 deletions(-) It will be hard to find reviewers for such a large PR. I suggest to remove mapping support and context manager support for now, and then add those feature

[issue46243] flash drive

2022-01-03 Thread Home Learning Live
New submission from Home Learning Live : If you have a physical error such as a broken connector, circuit board, NAND memory chip of the drive, then the hardware needs to be replaced or repaired. Doing-it-yourself can lead to even worse situations. Better you get help from the experts in this

[issue46243] flash drive

2022-01-03 Thread Christian Heimes
Change by Christian Heimes : -- Removed message: https://bugs.python.org/msg409585 ___ Python tracker ___ ___ Python-bugs-list maili

[issue46243] flash drive

2022-01-03 Thread Christian Heimes
New submission from Christian Heimes : spam -- nosy: +christian.heimes resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue46243] Spam

2022-01-03 Thread Zachary Ware
Change by Zachary Ware : -- nosy: -booth1664, christian.heimes title: flash drive -> Spam type: compile error -> ___ Python tracker ___ __

[issue46244] typing._TypeVarLike missing __slots__

2022-01-03 Thread Arie Bovenberg
New submission from Arie Bovenberg : The mixin class "typing._TypeVarLike" has no __slots__. Its subclasses do define __slots__, so it looks like a mistake. Agree? It should be an easy fix, and I'd like to pick this up. -- components: Library (Lib) messages: 409587 nosy: ariebovenbe

[issue18677] Enhanced context managers with ContextManagerExit and None

2022-01-03 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Having given this some thougt, years laters, I believe it _is_ possible to write nested() (and nested_delayed()) in a correct way in python, without the ContextManagerExit function. Behold! import contextlib @contextlib.contextmanager def nested_de

[issue33252] [doc] Clarify ResourceWarning documentation

2022-01-03 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- keywords: +patch nosy: +hugovk nosy_count: 4.0 -> 5.0 pull_requests: +28572 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30358 ___ Python tracker _

[issue46244] typing._TypeVarLike missing __slots__

2022-01-03 Thread Arie Bovenberg
Arie Bovenberg added the comment: I've also encountered other classes in the stdlib possibly missing slots: - importlib.metadata.DeprecatedList (subclass EntryPoints has slots) - xml.dom.minidom.Node, xml.dom.xmlbuilder.DocumentLS (5 subclasses have slots) Will investigate. -- _

[issue24905] Allow incremental I/O to blobs in sqlite3

2022-01-03 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Slimmed PR diff (excluding clinic), without context manager and mapping protocol: $ git diff main Modules/_sqlite/*.[ch] Lib Doc Misc PC* setup.py Doc/includes/sqlite3/blob.py | 12 + Doc/includes/sqlite3/blob_with.py

[issue24905] Allow incremental I/O to blobs in sqlite3

2022-01-03 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- Removed message: https://bugs.python.org/msg409590 ___ Python tracker ___ ___ Python-bugs-list mail

[issue24905] Allow incremental I/O to blobs in sqlite3

2022-01-03 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Slimmed PR diff (excluding clinic), without context manager and mapping protocol: $ git diff main Modules/_sqlite/*.[ch] Lib Doc Misc PC* setup.py Doc/includes/sqlite3/blob.py | 12 + Doc/includes/sqlite3/blob_with.p

[issue24905] Allow incremental I/O to blobs in sqlite3

2022-01-03 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: (the bpo bot is obviously confused by the News entry path, sigh) -- ___ Python tracker ___ ___

[issue23183] timeit CLI best of 3: undocumented output format

2022-01-03 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- keywords: +patch nosy: +hugovk nosy_count: 5.0 -> 6.0 pull_requests: +28573 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30359 ___ Python tracker

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

2022-01-03 Thread Guido van Rossum
Guido van Rossum added the comment: I propose a test: revert the PR and see if speed.Python.org shows a speedup back to the previous number.-- --Guido (mobile) -- ___ Python tracker _

[issue46226] User specific paths added to System PATH environment variable

2022-01-03 Thread Steve Dower
Steve Dower added the comment: If you have them, can you share your install logs (look in %TEMP% for files starting with "Python"). If not, please share your install options. By default, this works fine. You have to make some specific modifications to the install options to do what you've do

[issue46217] 3.11 build failure on Win10: new _freeze_module changes?

2022-01-03 Thread Steve Dower
Steve Dower added the comment: Good catch. We still support 8.1 for this release, so that flag will have to be taken out (and hopefully people won't be impacted by long path names here). -- ___ Python tracker _

[issue28546] [doc] Clarify setting pdb breakpoints

2022-01-03 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- keywords: +patch nosy: +hugovk nosy_count: 4.0 -> 5.0 pull_requests: +28574 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30360 ___ Python tracker _

[issue46244] typing._TypeVarLike missing __slots__

2022-01-03 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +gvanrossum, kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue46242] Improve error message when attempting to extend an enum with `__call__`

2022-01-03 Thread Alex Waygood
Change by Alex Waygood : -- title: Improve error message when creating an enum with `__call__` -> Improve error message when attempting to extend an enum with `__call__` ___ Python tracker __

[issue42369] Reading ZipFile not thread-safe

2022-01-03 Thread Thomas
Thomas added the comment: @khaledk I finally got some time off, so here you go https://github.com/1/ParallelZipFile I can not offer any support for a more correct implementation of the zip specification due to time constraints, but maybe the code is useful for you anyway. -- _

[issue46217] 3.11 build failure on Win10: new _freeze_module changes?

2022-01-03 Thread Eryk Sun
Eryk Sun added the comment: With just PATHCCH_ALLOW_LONG_PATHS, PathCchCombineEx() returns a long path as a normal path (i.e. not a \\?\ extended path) if long-path support is enabled for the current process. Otherwise, if long-path support isn't enabled or available, as is always the case i

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

2022-01-03 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- keywords: +patch nosy: +hugovk nosy_count: 9.0 -> 10.0 pull_requests: +28575 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30361 ___ Python tracker

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

2022-01-03 Thread neonene
Change by neonene : -- keywords: +patch nosy: +neonene nosy_count: 3.0 -> 4.0 pull_requests: +28576 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30362 ___ Python tracker __

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

2022-01-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I propose a test: revert the PR and see if speed.Python.org shows a speedup back to the previous number.-- Ok, let's do that and see what happens -- ___ Python tracker

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

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

[issue45923] Improve performance of sys.settracing based tools.

2022-01-03 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +28578 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30364 ___ Python tracker ___ ___

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

2022-01-03 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : It is necessary in particularly for supporting dir_fd in the tempfile module (issue25927). -- components: Library (Lib) messages: 409599 nosy: serhiy.storchaka priority: normal severity: normal status: open title: Add support for dir_fd in shutil.

[issue25927] add dir_fd for mkstemp, and also maybe to all tempfile.*

2022-01-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Add support for dir_fd in shutil.rmtree() ___ Python tracker ___ ___ Python-bugs-list

[issue46033] Duplicated sentence in for statement documentation

2022-01-03 Thread Michał D
Michał D added the comment: Please see the changes I suggested in my PR. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2022-01-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 9d35dedc5e7e940b639230fba93c763bd9f19c09 by Pablo Galindo Salgado in branch 'main': Revert "bpo-46110: Add a recursion check to avoid stack overflow in the PEG parser (GH-30177)" (GH-30363) https://github.com/python/cpython/commit/9d35de

[issue46244] typing._TypeVarLike missing __slots__

2022-01-03 Thread Guido van Rossum
Guido van Rossum added the comment: Confirmed about _TypeVarLike. Go ahead and make a PR. Do add a news blurb when requested. Please open separate issues for other such classes, each fix may need to be reviewed by a different expert. -- ___ Pytho

[issue46244] typing._TypeVarLike missing __slots__

2022-01-03 Thread Arie Bovenberg
Arie Bovenberg added the comment: Thanks! I'll open new issues shortly on xml and importlib -- ___ Python tracker ___ ___ Python-bu

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

2022-01-03 Thread Arie Bovenberg
New submission from Arie Bovenberg : (as instructed in bpo-46244, I've created this ticket) The subclass `EntryPoints` defines __slots__, but its base `DeprecatedList` does not. This appears to be a mistake. If so, I'd like to create a PR to fix it. -- components: Library (Lib) mess

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

2022-01-03 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +28579 pull_request: https://github.com/python/cpython/pull/30366 ___ Python tracker ___ ___

[issue46247] in xml.dom.minidom, Node and DocumentLS appear to be missing __slots__

2022-01-03 Thread Arie Bovenberg
New submission from Arie Bovenberg : (as instructed in bpo-46244, I've created this ticket) The classes Node and DocumentLS don't define __slots__, but a number of subclasses do. This appears to be a mistake. If so, I'd like to create a PR to fix it. -- components: Library (Lib) mess

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

2022-01-03 Thread Guido van Rossum
Guido van Rossum added the comment: I wrote a tiny script that calls compile() on raw bytes read from some source file, does this 100 times, and reports the total time. I tested the script with Lib/pydoc_data/topics.py (which happens to be the largest source file in the CPython repo, but mos

[issue44092] [sqlite3] Remove special rollback handling

2022-01-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 9d6a239a34a66e16188d76c23a3a770515ca44ca by Erlend Egeberg Aasland in branch 'main': bpo-44092: Don't reset statements/cursors before rollback (GH-26026) https://github.com/python/cpython/commit/9d6a239a34a66e16188d76c23a3a770515ca44ca

[issue44092] [sqlite3] Remove special rollback handling

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

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

2022-01-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I ran the benchmarks machines with the revert and seems that it doesn't go back to the previous timing: https://speed.python.org/timeline/#/?exe=12&ben=python_startup&env=1&revs=50&equid=off&quarts=on&extr=on (check last data point for https://github

[issue46020] Optimize long_pow for the common case

2022-01-03 Thread Tim Peters
Tim Peters added the comment: I was suprised that https://bugs.python.org/issue44376 managed to get i**2 to within a factor of 2 of i*i's speed. The overheads of running long_pow() at all are high! Don't overlook that initialization of stack variables at the start, like PyLongObject *

[issue43122] Python Launcher doesn't open a terminal window

2022-01-03 Thread Kevin
Kevin added the comment: Many thanks for notifying me that my issue is fixed in the latest updates. I will try to test this soon. Kevin Weidenbaum > On Jan 3, 2022, at 1:59 AM, Ned Deily wrote: > > > Change by Ned Deily : > > > -- > Removed message: https://bugs.python.org/msg40

[issue46248] Compilation errors on macOS

2022-01-03 Thread Sandip Shah
New submission from Sandip Shah : macOS Monterey 12.1 Python 3.10.1 Trying to compile libplist, libimobiledevice, libimobiledevice_glue generates the error "Could not link test program to Python. Maybe the main Python library has been installed in some non-standard library path. If so, pass

[issue46009] sending non-None values makes generator raise StopIteration on next access

2022-01-03 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher nosy_count: 3.0 -> 4.0 pull_requests: +28580 pull_request: https://github.com/python/cpython/pull/30367 ___ Python tracker ___

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

2022-01-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: https://speed.python.org/timeline/#/?exe=12&ben=python_startup&env=4&revs=50&equid=off&quarts=on&extr=on also doesn't show any difference with the revert -- ___ Python tracker

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

2022-01-03 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset dd6c35761a4cd417e126a2d51dd0b89c8a30e5de by Pablo Galindo Salgado in branch 'main': bpo-46110: Restore commit e9898bf153d26059261ffef11f7643ae991e2a4c https://github.com/python/cpython/commit/dd6c35761a4cd417e126a2d51dd0b89c8a30e5de ---

[issue33376] [pysqlite] Duplicate rows can be returned after rolling back a transaction

2022-01-03 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: GH-26026 / bpo-44092 has removed the old workaround where pending statements were reset before a rollback. Since version 3.7.11, SQLite no longer has any issues with pending statements and rollbacks, so we remove the workaround, since we require SQLite 3.

[issue33376] [pysqlite] Duplicate rows can be returned after rolling back a transaction

2022-01-03 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: -12242 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue34931] os.path.splitext with more dots

2022-01-03 Thread Irit Katriel
Irit Katriel added the comment: New changeset 51700bf08b0dd4baf998440b2ebfaa488a2855ba by Irit Katriel in branch 'main': bpo-34931: [doc] clarify behavior of os.path.splitext() on paths with multiple leading periods (GH-30347) https://github.com/python/cpython/commit/51700bf08b0dd4baf998440b

[issue34931] os.path.splitext with more dots

2022-01-03 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +28581 pull_request: https://github.com/python/cpython/pull/30368 ___ Python tracker _

[issue34931] os.path.splitext with more dots

2022-01-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +28582 pull_request: https://github.com/python/cpython/pull/30369 ___ Python tracker ___ __

[issue46248] Compilation errors on macOS

2022-01-03 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. Without more details, we can only guess at what you are trying to accomplish. I would assume it involves embedding Python in another library or application. If so, you should not be using LINKFORSHARED at all which is used to build Python i

[issue34931] os.path.splitext with more dots

2022-01-03 Thread Irit Katriel
Irit Katriel added the comment: New changeset 8184a613b93d54416b954e667951cdf3d069cc13 by Miss Islington (bot) in branch '3.10': bpo-34931: [doc] clarify behavior of os.path.splitext() on paths with multiple leading periods (GH-30347) (GH-30368) https://github.com/python/cpython/commit/8184a

[issue34931] os.path.splitext with more dots

2022-01-03 Thread Irit Katriel
Irit Katriel added the comment: New changeset 4a792ca95c1a994b07d18fe06e2104d5b1e0b796 by Miss Islington (bot) in branch '3.9': bpo-34931: [doc] clarify behavior of os.path.splitext() on paths with multiple leading periods (GH-30347) (GH-30369) https://github.com/python/cpython/commit/4a792c

[issue34931] os.path.splitext with more dots

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

[issue46033] Duplicated sentence in for statement documentation

2022-01-03 Thread Vedran Čačić
Vedran Čačić added the comment: Yes, it's ok. The only slight problem is that is suggests that first item is somehow special, but later it is explained that in fact it is not. :-) I would say "_Each_ item ..." (instead of "First") and without the "this is repeated for every item..." at the en

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

2022-01-03 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : The query loop in _pysqlite_query_execute() is run only once for ordinary execute()'s, but multiple times for executemany(). We use the 'multiple' variable to differ between the two execute methods; for execute(), multiple is false, for executemany(), m

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

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

[issue46250] 3.10 docs responsive design removes navigation buttons (next, previous ...) on narrow screens for no reason

2022-01-03 Thread VanjaVK
New submission from VanjaVK : This kind of responsive design makes it hard to navigate to next or previous section easily. I don't see any UX gain having a fullscreen wide search with a hamburger-style menu. I also believe this is very unfriendly towards disabled people. Better explained in

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

2022-01-03 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue34931] os.path.splitext with more dots

2022-01-03 Thread Jan Novak
Jan Novak added the comment: Thank you all for discussion and partial solution in latest Python versions and extending documentation. For the future development of Python the initial question remains. How to easy detect extensions for each file with standard python library function. Without

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

2022-01-03 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher nosy_count: 10.0 -> 11.0 pull_requests: +28584 pull_request: https://github.com/python/cpython/pull/30372 ___ Python tracker __

[issue46251] logger.config.configure_formatter executes arbitrary code

2022-01-03 Thread MarkBaggett
New submission from MarkBaggett : I know there are multiple warnings about the use of eval() in the listener. But _resolve() and resolve() used by both fileConfig and dictConfig also seem like they can also be abused. Here is a working example. $ ls /tmp/itworked ls: cannot access '/tmp/itwo

[issue46251] logger.config.configure_formatter executes arbitrary code

2022-01-03 Thread Eric V. Smith
Eric V. Smith added the comment: What are the contents of calculator.py? -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bug

[issue34931] os.path.splitext with more dots

2022-01-03 Thread Jan Novak
Jan Novak added the comment: It is interesting that pathlib.Path works fine: >>> pathlib.Path('jpg').suffix '.jpg' >>> pathlib.Path('path/jpg').suffix '.jpg' -- ___ Python tracker __

[issue46251] logger.config.configure_formatter executes arbitrary code

2022-01-03 Thread MarkBaggett
MarkBaggett added the comment: Here are the relevant parts of calculator.py.. import logging import logging.config import json import pathlib import os config_location = pathlib.Path( os.path.realpath(__file__) ).parent / "log.config" log_config = json.load( config_location.open() ) loggin

[issue46251] logger.config.configure_formatter executes arbitrary code

2022-01-03 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks. Here's a somewhat smaller, one-file version, that writes to the current directory (I'm on Windows, no /tmp): - import logging import logging.config import json log_config_txt = '''{ "version":1, "formatters":{ "EXP

[issue46251] logger.config.configure_formatter executes arbitrary code

2022-01-03 Thread Eric V. Smith
Eric V. Smith added the comment: Actually, the last line isn't necessary. import logging.config import json log_config_txt = '''{ "version":1, "formatters":{ "EXPLOIT":{ "class": "os.popen", "format": "touch itworked", "datefmt"

[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 : -- versions: +Python 3.11 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2022-01-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +28586 pull_request: https://github.com/python/cpython/pull/30375 ___ Python tracker ___ __

[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 2db56130631255ca2eb504519430fb2f1fe789e9 by Hugo van Kemenade in branch 'main': bpo-34538: Remove Exception subclassing from tutorial (GH-30361) https://github.com/python/cpython/commit/2db56130631255ca2eb504519430fb2f1fe789e9 -- nosy:

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

2022-01-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +28585 pull_request: https://github.com/python/cpython/pull/30374 ___ Python tracker ___ __

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

2022-01-03 Thread Łukasz Langa
Łukasz Langa added the comment: I ran all benchmarks on installed optimized framework builds of 3.9 with the change (-a) and with the revert (-revert). It shows no change: ❯ ./python3.9 -m pyperf compare_to /Volumes/RAMDisk/py39* 2to3: Mean +- std dev: [py39-a] 724 ms +- 6 ms -> [py39-revert]

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

2022-01-03 Thread Łukasz Langa
Łukasz Langa added the comment: (that's on M1 Macbook Pro on macOS Monterey) -- ___ Python tracker ___ ___ Python-bugs-list mailing

  1   2   >