cpython/Modules/clinic
Miss Islington (bot) 5c4a4db635
[3.15] gh-159739: Guard cProfile against reentry while processing an external timer (GH-160405) (#160566)
An external timer can run Python again when the profiler converts or releases its result or reports an unraisable exception. Calling clear() or disable() at that point could free a profiling context still in use. Calling Profiler.__init__() from the timer could also destroy the active callable. Keep the guard active through result handling and reject reinitialization while an external timer is running.
(cherry picked from commit c2b7e0a866)

Co-authored-by: Jelle Zijlstra <jelle@openai.com>
2026-10-24 13:44:10 -07:00
..
_abc.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_asynciomodule.c.h [3.15] gh-113318: Fix @getter and @setter in Argument Clinic (GH-155778) (GH-156010) 2026-10-09 20:54:35 +03:00
_bisectmodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_bz2module.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_codecsmodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_collectionsmodule.c.h [3.15] gh-150750: Fix a race condition in deque.index with free-threading (GH-150779) (#150920) 2026-06-04 13:58:59 +00:00
_csv.c.h gh-137986: Fix and improve the csv functions docstrings (GH-137987) 2025-08-24 11:13:31 +03:00
_curses_panel.c.h [3.15] gh-151623: Improve curses documentation and docstrings (GH-151625) (GH-151628) 2026-06-18 08:48:56 +00:00
_cursesmodule.c.h [3.15] gh-155218: Generate the option group flags in a stable order (GH-155219) (GH-155226) 2026-10-09 23:08:11 +03:00
_datetimemodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_dbmmodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_elementtree.c.h gh-131525: Cache the result of tuple_hash (#131529) 2025-03-27 09:57:06 -04:00
_functoolsmodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_gdbmmodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_hashopenssl.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_heapqmodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_interpqueuesmodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_interpretersmodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_json.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_localemodule.c.h [3.15] gh-155952: Fix <unrepresentable> Argument Clinic defaults in several signatures (GH-155954) (#156165) 2026-08-29 10:08:27 +03:00
_lsprof.c.h [3.15] gh-159739: Guard cProfile against reentry while processing an external timer (GH-160405) (#160566) 2026-10-24 13:44:10 -07:00
_lzmamodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_opcode.c.h gh-131525: Cache the result of tuple_hash (#131529) 2025-03-27 09:57:06 -04:00
_operator.c.h
_pickle.c.h gh-131525: Cache the result of tuple_hash (#131529) 2025-03-27 09:57:06 -04:00
_posixsubprocess.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_queuemodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_randommodule.c.h [3.15] gh-149816: Fix a RC in _random.Random.__init__ method (GH-149824) (#149997) 2026-05-18 16:16:55 +00:00
_remote_debugging_module.c.h GH-140643: Add <native> and <GC> frames to the sampling profiler (#141108) 2025-11-17 13:39:00 +00:00
_ssl.c.h [3.15] gh-113318: Fix @getter and @setter in Argument Clinic (GH-155778) (GH-156010) 2026-10-09 20:54:35 +03:00
_statisticsmodule.c.h
_struct.c.h [3.15] gh-71086: Document negative offset support in struct.pack_into() and unpack_from() (GH-153650) (GH-153699) 2026-07-15 09:46:49 +00:00
_suggestions.c.h gh-116738: Make _suggestions module thread-safe (gh-140321) 2025-10-22 09:14:48 +09:00
_sysconfig.c.h gh-145410: Add _sysconfig.get_platform() function (#146145) 2026-03-19 00:28:21 +01:00
_testclinic.c.h [3.15] gh-64502: Fix Argument Clinic support of optional groups with defaults (GH-155191) (GH-155209) 2026-10-10 09:07:10 +00:00
_testclinic_depr.c.h gh-111489: Remove _PyTuple_FromArray() alias (#139973) 2025-10-11 22:58:14 +02:00
_testclinic_kwds.c.h [3.15] gh-156219: Fix Argument Clinic for an optional argument with **kwds (GH-156220) (GH-156222) 2026-10-10 13:57:25 +03:00
_testclinic_limited.c.h
_testinternalcapi.c.h gh-148973: fix segfault on mismatch between consts size and oparg in compiler (#148974) 2026-04-25 10:47:41 +01:00
_testmultiphase.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_threadmodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_tkinter.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
_tracemalloc.c.h
_typingmodule.c.h
_weakref.c.h
_winapi.c.h [3.15] gh-151929: Get machine ID and uptime on Windows in pythoninfo (#152146) (#152187) 2026-06-25 12:34:16 +00:00
_zoneinfo.c.h gh-132629: Deprecate accepting out-of-range values for unsigned integers in PyArg_Parse (GH-132630) 2025-07-13 12:44:54 +03:00
arraymodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
binascii.c.h [3.15] gh-134837: Correct and improve base85 documentation for base64 and binascii modules (GH-145843) (GH-149742) 2026-05-12 20:25:28 +00:00
blake2module.c.h gh-144545: Improve handling of default values in Argument Clinic (GH-146016) 2026-03-17 12:16:35 +02:00
cmathmodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
faulthandler.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
fcntlmodule.c.h gh-140615: Update docstrings in the fcntl module (GH-140619) 2025-11-08 12:17:59 +02:00
gcmodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
grpmodule.c.h gh-131525: Cache the result of tuple_hash (#131529) 2025-03-27 09:57:06 -04:00
hmacmodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
itertoolsmodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
mathintegermodule.c.h gh-81313: Add the math.integer module (PEP-791) (GH-133909) 2025-10-31 16:13:43 +02:00
mathmodule.c.h [3.15] Correct frexp() docs for zero and non-finite numbers (GH-149753) (GH-150652) 2026-05-31 10:04:18 +00:00
md5module.c.h gh-134696: align OpenSSL and HACL*-based hash functions constructors AC signatures (#134713) 2025-05-31 09:37:47 +02:00
mmapmodule.c.h gh-116738: Make mmap.set_name thread-safe (#145555) 2026-03-07 17:14:44 +09:00
overlapped.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
posixmodule.c.h [3.15] Fix various issues in the 'Timer File Descriptors' documentation (GH-156027) (GH-156479) 2026-10-09 17:49:27 +02:00
pwdmodule.c.h gh-116738: Make pwd module thread-safe (#136695) 2025-07-17 09:16:01 -07:00
pyexpat.c.h [3.15] gh-156821: Fix inaccuracies in the xml.parsers.expat documentation (GH-156822) (GH-156852) 2026-10-09 21:00:40 +03:00
readline.c.h [3.15] gh-153291: Fix data race in readline.get_completer() and get_pre_input_hook() (gh-153362) (gh-154418) 2026-07-22 10:54:26 -07:00
resource.c.h gh-137044: Support large limit values in getrlimit() and setrlimit() (GH-137338) 2025-08-07 11:06:37 +03:00
selectmodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
sha1module.c.h gh-134696: align OpenSSL and HACL*-based hash functions constructors AC signatures (#134713) 2025-05-31 09:37:47 +02:00
sha2module.c.h gh-134696: align OpenSSL and HACL*-based hash functions constructors AC signatures (#134713) 2025-05-31 09:37:47 +02:00
sha3module.c.h GH-135763: AC: Use `Py_ssize_t(allow_negative=False)` (#138394) 2025-09-02 21:29:05 +01:00
signalmodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
socketmodule.c.h [3.15] gh-155621: Fix unrepresentable defaults in socket.sendmsg() signature (GH-155623) (GH-155802) 2026-10-12 14:07:28 +02:00
symtablemodule.c.h gh-135801: Add the module parameter to compile() etc (GH-139652) 2025-11-13 13:21:32 +02:00
syslogmodule.c.h gh-131525: Cache the result of tuple_hash (#131529) 2025-03-27 09:57:06 -04:00
termios.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00
timemodule.c.h
unicodedata.c.h gh-66802: Add unicodedata.block() function (#145042) 2026-02-21 18:27:55 +01:00
zlibmodule.c.h [3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350) 2026-05-24 22:31:19 +03:00