Ned Batchelder
237dca52ba
Docs: replace an esoteric Von Neumann mention ( #137598 )
...
* Docs: replace an esoteric Von Neumann mention
* oops, don't need to edit topics.py
2025-10-20 10:01:20 -04:00
Sam Gross
f11ec6e643
gh-140263: Fix data race in test_lock_two_threads (gh-140264)
...
Clang-20 detects a data race between the unlock and the non-atomic
read of the lock state. Use a relaxed load for the assertion to avoid
the race.
2025-10-20 09:58:05 -04:00
Charlie Lin
e4f6445f30
gh-140166: Use application/texinfo as sole MIME type for .texi and .texinfo files ( #140165 )
...
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com >
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2025-10-20 16:14:23 +03:00
Hugo van Kemenade
99c3c63d2b
gh-76007: Deprecate __version__ attribute in imaplib ( #140299 )
...
Co-authored-by: Victor Stinner <vstinner@python.org >
2025-10-20 15:20:44 +03:00
Furkan Onder
faa169afa0
gh-66646: Explain __base__ attribute in the docs (GH-102554)
...
Co-authored-by: Éric <merwok@netwok.org >
2025-10-20 14:15:30 +02:00
Mikhail Efimov
5d0abb6971
gh-139951: Test on GC collection disabled if threshold is zero (GH-140304)
2025-10-20 11:45:07 +01:00
Shamil
a615fb49c9
gh-140301: Fix memory leak in subinterpreter PyConfig cleanup ( #140303 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org >
2025-10-20 09:29:23 +00:00
mdehoon
baf45159e5
fix typo in comments PyOS_CallInputHook -> PyOS_InputHook ( #140237 )
2025-10-20 14:25:57 +05:30
Brandon Hubacher
7babe31443
Remove typo in `functools.lru_cache` docs ( #140278 )
2025-10-20 14:25:01 +05:30
Peter Holloway
3c2781dc5f
Fix typo in PyIter_Send docs ( #140336 )
2025-10-20 14:23:57 +05:30
Weilin Du
9c18f75e7c
gh-101100: Fix sphinx warnings in library/resource.rst ( #140023 )
2025-10-20 10:15:40 +03:00
Stan Ulbrych
091e8513bb
zlib.rst: Link to constants and deduplicate text (GH-140115)
...
* Link to compression setting constants from compression functions
* De-duplicate descriptions of the constants
Co-authored-by: Victor Stinner <vstinner@python.org >
2025-10-19 21:22:39 -07:00
Ned Batchelder
ed672f7a8a
docs: be clearer that glob results are unordered ( #140184 )
...
* docs: be clearer that glob results are unordered
* trim down the opening paragraph
2025-10-19 16:16:35 -04:00
Shamil
f9323213c9
gh-140306: Fix memory leaks in cross-interpreter data handling (GH-140307)
2025-10-19 22:24:28 +03:00
stratakis
bad8d6de37
gh-101525: [BOLT] Add GCC's LTO-generated function clones, with computed gotos, to BOLT skip list (gh-139840)
2025-10-19 23:23:49 +09:00
Stan Ulbrych
790cdae5a0
Lib/idlelib/idle_test/__init__.py: remove commented out duplicate code (#140259 )
2025-10-19 00:16:13 -04:00
Marat Khagazheev
115a04b802
gh-138997: Remove false justify fill option from Tkinter docs ( #139023 )
...
Co-authored-by: marat <khagazheev@artlebedev.ru >
2025-10-18 23:45:52 -04:00
Shamil
bedaea0598
gh-139269: Fix unaligned memory access in JIT code patching functions (GH-139271)
...
* Use memcpy for patching values instead of direct assignment
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com >
2025-10-19 00:20:04 +01:00
Parham MohammadAlizadeh
920de7ccdc
gh-128571: Document UTF-16/32 native byte order ( #139974 )
...
Closes #128571
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com >
2025-10-18 20:47:04 +02:00
Frost Ming
d86ad870cc
gh-140251: colorize import statement formatting in asyncio console ( #140252 )
2025-10-18 20:05:24 +05:30
Kumar Aditya
58c44c2bf2
gh-140067: Fix memory leak in sub-interpreter creation ( #140111 ) ( #140261 )
...
Fix memory leak in sub-interpreter creation caused by overwriting of the previously used `_malloced` field. Now the pointer is stored in the first word of the memory block to avoid it being overwritten accidentally.
Co-authored-by: Kumar Aditya <kumaraditya@python.org >
2025-10-18 16:36:58 +05:30
Shamil
c8729c9909
gh-140257: fix data race on eval_breaker during finalization ( #140265 )
2025-10-18 16:31:53 +05:30
Serhiy Storchaka
78e1d65a4d
gh-140241: Fix documentation for the registry parameter of warnings.warn_explicit() (GH-140242)
...
Co-authored-by: Petr Viktorin <encukou@gmail.com >
2025-10-18 13:55:26 +03:00
Serhiy Storchaka
936de256a9
Move the NEWS entry for gh-140272 to the correct place (GH-140290)
2025-10-18 10:54:40 +00:00
Shamil
f937468e7c
gh-140272: Fix memory leak in _gdbm.gdbm.clear() (GH-140274)
2025-10-18 09:27:58 +00:00
Barney Gale
1bfe86caaa
GH-139174: Prepare pathlib.Path.info for new methods (part 2) ( #140155 )
...
Merge `_Info`, `_StatResultInfo` and `_DirEntryInfo` into a single `_Info`
class. No other changes.
This will allow us to use a cached `os.stat()` result from our upcoming
`_Info.stat()` method even when we have a backing `os.DirEntry`.
2025-10-18 02:13:25 +01:00
Barney Gale
f4e51f253a
GH-133789: Fix unpickling of pathlib objects pickled in Python 3.13 ( #133831 )
...
In Python 3.13 (but not 3.12 or 3.14), pathlib classes are defined in
`pathlib._local` rather than `pathlib`. In hindsight this was a mistake,
but it was difficult to predict how the abstract/local split would pan out.
In this patch we re-introduce `pathlib._local` as a stub module that
re-exports the classes from `pathlib`. This allows path objects pickled in
3.13 to be unpicked in 3.14+
2025-10-17 21:57:51 +00:00
Ayappan Perumal
92025ea2c8
gh-140239: Check statx availability only on Linux ( #140249 )
2025-10-17 19:40:16 +02:00
Serhiy Storchaka
fbf0843e39
gh-135801: Add tests for filtering warnings by module (GH-140240)
2025-10-17 14:21:39 +03:00
Tomasz Dądela
67c98ad8ef
gh-133059: Update documentation of preallocated integer range in long.rst (GH-140231)
2025-10-17 06:32:02 -04:00
Mark Shannon
f1883852ed
GH-135904: Implement assembler optimization for AArch64. (GH-139855)
2025-10-17 11:26:17 +01:00
Albert N
999ab8926b
gh-133059: Fix Tools/build/deepfreeze.py for new nsmallposints ( #139906 )
2025-10-17 11:48:53 +03:00
Stan Ulbrych
869bb6948e
Standardize translation of Doc/bugs.rst (GH-137449)
2025-10-17 08:55:12 +02:00
Alper
9a87ce8b57
gh-116738: test uuid module thread safety in free-threading ( #140068 )
2025-10-16 23:57:51 +05:30
Tan Long
2ebd0cdb16
Remove duplicate words in the documentation ( #140221 )
2025-10-16 18:27:00 +01:00
Maurycy Pawłowski-Wieroński
459d493ce3
gh-140149: Use PyBytesWriter in _build_concatenated_bytes() ( #140150 )
...
Use PyBytesWriter in action_helpers.c _build_concatenated_bytes().
3x faster bytes concat in the parser.
Co-authored-by: Victor Stinner <vstinner@python.org >
2025-10-16 19:24:34 +02:00
wangxiaolei
5f357f3b0d
gh-140078: fix typo in tkinter docs ( #140081 )
...
Remove extraneous word.
2025-10-16 11:02:38 -04:00
bzoracler
379fd020a0
gh-138859: Account for ParamSpec defaults that are not lists … ( #138868 )
2025-10-16 05:30:36 -07:00
Jeffrey Bosboom
5a31024da4
gh-83714: Check for struct statx.stx_atomic_write_unit_max_opt in configure ( #140185 )
...
stx_atomic_write_unit_max_opt was added in Linux 6.16, but is controlled
by the STATX_WRITE_ATOMIC mask bit added in Linux 6.11. That's safe at
runtime because all kernels clear the reserved space in struct statx and
zero is a valid value for stx_atomic_write_unit_max_opt, and it avoids
allocating another mask bit, which are a limited resource. But it also
means the kernel headers don't provide a way to check whether
stx_atomic_write_unit_max_opt exists, so add a configure check.
2025-10-16 13:40:47 +02:00
Petr Viktorin
ea4cc585cd
gh-139817: Fix refleak in TypeAliasType(qualname=non_string) (GH-140197)
2025-10-16 11:04:04 +00:00
Victor Stinner
4641925bf2
Set type names earlier in posixmodule.c ( #140168 )
2025-10-16 12:54:57 +02:00
Stan Ulbrych
7ac94fcb1d
gh-140170: Fix test_site with -s flag (GH-140179)
...
Commit
2025-10-16 12:49:08 +03:00
Serhiy Storchaka
2a2bc82cef
gh-130567: Remove optimistic allocation in locale.strxfrm() (GH-137143)
...
On modern systems, the result of wcsxfrm() is much larger the size of
the input string (from 4+2*n on Windows to 4+5*n on Linux for simple
ASCII strings), so optimistic allocation of the buffer of the same size
never works.
The exception is if the locale is "C" (or unset), but in that case the `wcsxfrm`
call should be fast (and calling `locale.strxfrm()` doesn't make too much
sense in the first place).
2025-10-16 09:54:41 +02:00
Jonathan Protzenko
3a81313019
gh-140120: Refresh HACL* to fix an hmac memory leak (GH-140188)
...
This pulls an updated version of HACL* that fixes the memory leak reported in #140120 , via an upstream fix.
2025-10-16 05:25:51 +00:00
Malcolm Smith
7f371ed84b
gh-140041: Fix import of ctypes on Android and Cygwin when ABI flags are present ( #140178 )
...
Use sysconfig to determine the full name of libpython, rather than hardcoding
a library name that doesn't have ABI flags.
2025-10-16 05:40:39 +08:00
Alex Waygood
65d1a14d59
gh-139817: typing docs: Fix indentation of .. versionadded:: note for TypeAliasType.__qualname__ ( #140177 )
2025-10-15 20:18:39 +00:00
Bartosz Sławecki
bcced02604
gh-140141: Properly break exception chain in importlib.metadata.Distribution.from_name ( #140142 )
2025-10-15 12:49:14 -04:00
Mikhail Efimov
f673f0e7b4
gh-139817: Attribute __qualname__ is added to TypeAliasType ( #139919 )
2025-10-15 09:08:17 -07:00
Victor Stinner
5213f1b684
gh-83714: Disable os.statx_result.stx_atomic_write_unit_max_opt ( #140162 )
...
Fix building on Centos 9 x86-64 buildbot.
2025-10-15 17:38:34 +02:00
Stan Ulbrych
1624c646b0
gh-140065: Lexical analysis: Correct note about leading zeros in floating point numbers (GH-140066)
2025-10-15 15:15:45 +00:00