Victor Stinner
4b54031323
gh-131238: Remove pycore_runtime.h from pycore_pystate.h ( #131356 )
...
* Remove includes from pycore_pystate.h:
* pycore_runtime_structs.h
* pycore_runtime.h
* pycore_tstate.h
* pycore_interp.h
* Reorganize internal headers. Move _gc_thread_state from
pycore_interp_structs.h to pycore_tstate.h.
* Add 3 new header files to PCbuild/pythoncore.vcxproj.
2025-03-19 17:33:24 +01:00
Victor Stinner
0a54bd6dd7
gh-111178: Fix function signatures in legacy_tracing.c ( #131464 )
2025-03-19 16:54:41 +01:00
Victor Stinner
6935d96e9c
gh-111178: Fix function signatures in _testbuffer.c ( #131463 )
2025-03-19 16:54:18 +01:00
Petr Viktorin
4bced29a74
gh-130587: Add hand-written docs for non-OP tokens (GH-130588)
...
Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
2025-03-19 16:42:11 +01:00
Victor Stinner
b8367e7cf3
gh-130931: Add pycore_typedefs.h internal header ( #131396 )
...
Declare _PyInterpreterFrame and _PyRuntimeState types before
declaring their structure members. Break reference cycles between
header files.
2025-03-19 15:23:32 +01:00
Yuki Kobayashi
a0478c9f0c
Docs: Fix documentation for "PyTypeObject Definition" (GH-130936)
...
The structure definition for `PyTypeObject` is in `Include/cpython/object.h`,
not in `Include/object.h`.
2025-03-19 14:46:32 +01:00
Victor Stinner
bbe5baad6c
gh-111178: Fix function signatures for test_types ( #131455 )
2025-03-19 13:46:17 +00:00
Victor Stinner
f5e4c2955b
gh-111178: Fix function signatures for test_iter ( #131456 )
2025-03-19 14:42:51 +01:00
Furkan Onder
8ad4646c67
gh-131263: Skip test_timerfd_negative on NetBSD to prevent system freeze ( #131431 )
2025-03-19 11:24:09 +00:00
Stan Ulbrych
3118693a1a
gh-130655: Add tests for gettext.find()
(GH-130691)
...
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
2025-03-19 11:52:03 +01:00
Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)
7558980a18
GH-131358: Add encoding alias cseuckr for euc_kr ( #131370 )
...
* Add encoding alias cseuckr for euc_kr
* Update Misc/NEWS.d/next/Library/2025-03-17-21-35-53.gh-issue-131358.YVZ6yo.rst
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
---------
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-03-19 18:29:20 +09:00
Kumar Aditya
74b87515a7
gh-131401: fix data race in _PyErr_Restore
( #131406 )
2025-03-19 14:35:47 +05:30
Andrew Svetlov
61b4b2c57c
gh-131417: Mention asyncio Future and Task in docs for generic classes list ( #131422 )
...
Mention asyncio Future and Task in docs for generic classes list
2025-03-19 10:05:23 +01:00
partev
267c06d6a8
Docs: fix shell command formatting ( #131310 )
...
replace "zypper in" with "zypper install" to avoid incorrect highlighting
2025-03-19 09:42:47 +02:00
Russell Keith-Magee
b754aeedfb
gh-121468: Ensure PDB cleans up event loop policies after using asyncio. ( #131388 )
...
Adds teardown logic, plus a change to asyncio.run usage, to avoid warnings when
running the test suite single process.
2025-03-19 08:33:31 +08:00
Barney Gale
d783d7b51d
GH-126367: url2pathname()
: handle NTFS alternate data streams ( #131428 )
...
Adjust `url2pathname()` to decode embedded colon characters in Windows
URIs, rather than bailing out with an `OSError`.
2025-03-18 23:37:12 +00:00
Malcolm Smith
01b5abbc53
gh-124666: Improve thread cleanup in test_android ( #131427 )
...
Ensures that failures in test setup don't result in dangling threads.
2025-03-19 06:30:22 +08:00
Daniel Pope
c1b42db9e4
gh-130914: Make graphlib.TopologicalSorter.prepare() idempotent ( #131317 )
...
Closes #130914 : Make graphlib.TopologicalSorter.prepare() idempotent
Relax the rules so that `.prepare()` can be called multiple times, provided that no work has been passed out by `.get_ready()` yet.
2025-03-18 16:28:00 -05:00
Yuki Kobayashi
f819900245
gh-118915: Document PY_MONITORING_IS_INSTRUMENTED_EVENT
(GH-128026)
2025-03-18 17:34:01 +01:00
Max Bachmann
49234c065c
gh-114917: Fix typo in getaddrinfo emulation ( #131413 )
2025-03-18 14:31:13 +01:00
Bénédikt Tran
8cb57dc367
gh-131402: add HMAC-SHA3 NIST test cases ( #131407 )
...
Add NIST [1] tests for `HMAC-SHA-3/{224,256,384,512}`.
[1]: https://csrc.nist.gov/Projects/cryptographic-standards-and-guidelines/example-values
2025-03-18 13:57:15 +01:00
Irit Katriel
83479c2175
gh-130080: fix warnings in tests ( #131400 )
2025-03-18 12:33:46 +00:00
Petr Viktorin
51d309988b
gh-131261: expat/refresh.sh: Expand list of manual steps (GH-131359)
2025-03-18 13:17:43 +01:00
Mike Edmunds
295b53df2a
gh-121284: Fix email address header folding with parsed encoded-word (GH-122754)
...
Email generators using email.policy.default may convert an RFC 2047
encoded-word to unencoded form during header refolding. In a structured
header, this could allow 'specials' chars outside a quoted-string,
leading to invalid address headers and enabling spoofing. This change
ensures a parsed encoded-word that contains specials is kept as an
encoded-word while the header is refolded.
[Better fix from @bitdancer.]
---------
Co-authored-by: R David Murray <rdmurray@bitdance.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-03-18 12:07:17 +01:00
Kumar Aditya
ab6333f7f5
gh-128002: fix tsan race in closing socket in test_sslproto
( #131399 )
2025-03-18 16:20:47 +05:30
Sergey Miryanov
812074e291
gh-131311: Consolidate reference handling in PyCStructUnionType_update_stginfo to fix memory leak (GH-131312)
2025-03-18 11:50:22 +01:00
Max Bachmann
3453b5c1d6
gh-114917: add support for AI_NUMERICSERV in getaddrinfo emulation ( #114918 )
2025-03-18 11:26:51 +01:00
Kumar Aditya
b0a4f6599a
gh-128002: fix tsan race in closing socket in test_ssl
( #131397 )
2025-03-18 15:41:43 +05:30
Kanishk Pachauri
77d2fd4413
gh-130132: properly free resources in urrlib.urlopen
examples ( #130280 )
...
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-03-18 09:27:05 +00:00
Guy Jacoby
3f50f96586
gh-131094: Refine math.isclose
docs ( #131139 )
2025-03-18 10:13:26 +01:00
Tian Gao
a936af924e
gh-120144: Make it possible to use sys.monitoring
for bdb and make it default for pdb ( #124533 )
2025-03-17 18:34:37 -04:00
Erlend E. Aasland
f48887fb97
gh-131002: clarify how to enforce sqlite3 column types for generated fields ( #131006 )
2025-03-17 22:26:27 +00:00
Nybblista
149fbb01f2
gh-119786: Fix _PyExecutorObject link at jit.md file ( #131382 )
2025-03-17 21:22:12 +00:00
Irit Katriel
ffc2f1dd1c
gh-130080: implement PEP 765 ( #130087 )
2025-03-17 20:48:54 +00:00
Chris Eibl
468a7aaeb4
GH-131278: Add option to build with computed gotos on Windows with clang-cl (GH-131279)
2025-03-17 20:32:23 +00:00
Kumar Aditya
94f4d87aeb
gh-131325: fix sendfile fallback implementation to drain data after writing to transport ( #131376 )
2025-03-18 00:52:57 +05:30
Kumar Aditya
46e88540e6
gh-116738: remove multiprocessing suppressions ( #131319 )
2025-03-18 00:29:18 +05:30
R. David Murray
a09c2b2ba6
Fix test_pyrepl.TestDumbTerminal if PYTHON_BASIC_REPL set. ( #131332 )
...
Most of the tests that care already adjust PYTHON_BASIC_REPL as needed,
but this one doesn't, and it fails if the developer has the variable set.
2025-03-17 18:56:21 +01:00
Mark Shannon
fd545d735d
GH-127705: Move mortal decrefs to internal header and make sure _PyReftracerTrack is called
2025-03-17 17:23:50 +00:00
Mark Shannon
9881fc5483
GH-125174: Make immortality "sticky" (GH-131355)
...
* Use a higher threshold for immortality for INCREF than DECREF
2025-03-17 17:22:35 +00:00
Victor Stinner
aabab76c8a
gh-131268: Adjust _PYTHREAD_NAME_MAXLEN on BSD ( #131345 )
...
Adjust _PYTHREAD_NAME_MAXLEN constant on FreeBSD and NetBSD.
Initial patch by Xavier G.
2025-03-17 16:52:59 +00:00
Ken Jin
b2ed7a6d6a
gh-131281: Add include for pystats builds ( #131369 )
...
Add include to for pystats builds
2025-03-18 00:36:06 +08:00
Chris Eibl
ef4fe70785
GH-131291: Suppress clang-specific warning in python_uwp.cpp (GH-131292)
2025-03-17 16:22:25 +00:00
Petr Viktorin
30d5205849
gh-116666: Add "token" glossary term (GH-130888)
...
Add glossary entry for `token`, and link to it.
Avoid talking about tokens in the SyntaxError intro (errors.rst); at this point
tokenization is too much of a technical detail. (Even to an advanced reader,
the fact that a *single* token is highlighted isn't too relevant. Also, we don't
need to guarantee that it's a single token.)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-03-17 17:05:47 +01:00
Tomasz Pytel
863d54cbaf
gh-126895: Fix readline module in free-threaded build ( #131208 )
...
The underlying readline library is not thread-safe so this adds `@critical_section` to functions that use it.
2025-03-17 11:57:11 -04:00
Yuki Kobayashi
9a634c5c0c
Docs: Fix incorrect sphinx markup for a class member (GH-130970)
2025-03-17 16:28:56 +01:00
Bénédikt Tran
e708ac8dd4
gh-111178: fix UBSan failures in Modules/_ssl.c
(GH-130719)
...
* fix UBSan failures for `PySSLContext`, `PySSLSocket`, `PySSLMemoryBIO`, `PySSLSession`
2025-03-17 16:25:28 +01:00
Mark Shannon
a45f25361d
GH-131238: More refactoring of core header files (GH-131351)
...
Adds new pycore_stats.h header file to help break dependencies involving the pycore_code.h header.
2025-03-17 14:41:05 +00:00
Gregory P. Smith
bb0268f60d
gh-131261: Update libexpat to 2.7.0 (CVE-2024-8176) ( #131272 )
2025-03-17 14:55:02 +01:00
Victor Stinner
978e37bb5f
gh-131238: Add explicit includes to pycore headers ( #131257 )
2025-03-17 12:32:43 +01:00