cpython
cpython copied to clipboard
The Python programming language
A DOS by Quadratic complexity issue is fixed in idlelib. Part of (but does not fix) #134873. * Issue: gh-134873 * Issue: gh-136061
# Bug report ### Bug description: For a multi-dimensional memory view, if the socket sends only part of the memory view, then the view will be truncated to an empty...
# Bug report ### Bug description: This loop can run forever if there's a cycle in the Makefile variable definitions: https://github.com/python/cpython/blob/5334732f9c8a44722e4b339f4bb837b5b0226991/Lib/sysconfig/__main__.py#L79 To reproduce: ```shell make clean echo 'foo=$(foo)' > ./Modules/Setup.local...
Hello! I worked on #134759 and was able to reproduce the `UnboundLocalError` by passing bytes payload directly to `_payload`. I'm not sure can we do it in a "public" way,...
# Bug report ### Bug description: Build fails on macOS with gcc. ``` /opt/local/bin/gcc-mp-14 -c -fno-strict-overflow -Wsign-compare -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -flto -std=c11...
# Feature or enhancement ### Proposal: Currently, most methods of the Fraction class subclasses return an instance of the Fraction class. That happens for arithmetic methods as well: ```pycon >>>...
This undocumented gotcha can cause excessive memory usage when "iterating" over very large directories. This is because iterdir() does entries = list(scandir_it) Fixing (if at all desired) will likel need...
# Crash report ### What happened? We see segfaults randomly (not frequently enough to get more detailed info) when running integration tests for PySR. The following segfault was seen on...
# Bug report ### Bug description: Test Code: ```python from tkinter import * from tkinter.ttk import Notebook mw = Tk() mw.title("Notebook Test") mw.geometry(f"{800}x{800}") main_page_frame = Frame(mw, borderwidth=1, relief='ridge') main_page_frame.pack(side='top', expand=1,...
# Bug report Suprisingly (contrary to its name and being a generator), [`Path.iterdir()`](https://docs.python.org/3.12/library/pathlib.html#pathlib.Path.iterdir) does not stream directory entries: It reads all directory entries into memory before yielding the first entry....