Peter Bierma
e8251dc0ae
gh-134170: Add colorization to unraisable exceptions ( #134183 )
...
Default implementation of sys.unraisablehook() now uses traceback._print_exception_bltin() to print exceptions with colorized text.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-08-04 14:35:00 +00:00
Petr Viktorin
658599c15d
gh-121028: Soft-deprecate sys.api_version (GH-136463)
2025-07-21 14:22:48 +02:00
Anthony Sottile
11f074b243
gh-86682: Add versionadded for sys._getframemodulename ( #136325 )
...
Tests / (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Windows MSI (push) Blocked by required conditions
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Undefined behavior sanitizer (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
mypy / Run mypy on Lib/_pyrepl (push) Waiting to run
mypy / Run mypy on Lib/test/libregrtest (push) Waiting to run
mypy / Run mypy on Lib/tomllib (push) Waiting to run
mypy / Run mypy on Tools/build (push) Waiting to run
mypy / Run mypy on Tools/cases_generator (push) Waiting to run
mypy / Run mypy on Tools/clinic (push) Waiting to run
mypy / Run mypy on Tools/jit (push) Waiting to run
mypy / Run mypy on Tools/peg_generator (push) Waiting to run
add versionadded for sys._getframemodulename
2025-07-07 16:52:04 +05:30
sobolevn
8ca1e4d846
gh-135645: Added supports_isolated_interpreters
to sys.implementation
( #135667 )
...
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
2025-06-21 10:56:14 +03:00
Nadeshiko Manju
1ddfe59320
gh-135543: Emit sys.remote_exec audit event when sys.remote_exec is called (GH-135544)
2025-06-19 21:23:38 +01:00
Nadeshiko Manju
076f87468a
gh-135361: update documentation for remote_debugger_script
audit event ( #135362 )
2025-06-15 20:49:49 +02:00
Hugo van Kemenade
b092705907
Python 3.14.0b1
2025-05-06 18:33:52 +03:00
Brandt Bucher
b1aa515bd6
GH-133231: Add JIT utilities in sys._jit (GH-133233)
2025-05-05 15:25:22 -07:00
Yongzi Li
4865c09cf3
Docs: fix some typos in Doc/library
( #132511 )
2025-04-14 13:24:46 +00:00
Jo
5f1aed1c7e
docs: Fix typo in context_aware_warnings flag ( #132340 )
2025-04-10 05:19:01 +01:00
Neil Schemenauer
d687900f98
gh-128384: Use a context variable for warnings.catch_warnings (gh-130010)
...
Make `warnings.catch_warnings()` use a context variable for holding
the warning filtering state if the `sys.flags.context_aware_warnings`
flag is set to true. This makes using the context manager thread-safe in
multi-threaded programs.
Add the `sys.flags.thread_inherit_context` flag. If true, starting a new
thread with `threading.Thread` will use a copy of the context
from the caller of `Thread.start()`.
Both these flags are set to true by default for the free-threaded build
and false for the default build.
Move the Python implementation of warnings.py into _py_warnings.py.
Make _contextvars a builtin module.
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-04-09 16:18:54 -07:00
Hugo van Kemenade
29af6cee02
Python 3.14.0a7
2025-04-08 14:20:51 +03:00
Pablo Galindo Salgado
943cc1431e
gh-131591: Implement PEP 768 ( #131937 )
...
Co-authored-by: Ivona Stojanovic <stojanovic.i@hotmail.com>
Co-authored-by: Matt Wozniski <godlygeek@gmail.com>
2025-04-03 16:20:01 +01:00
Ralf Gommers
ac12de2e6a
document that sys._is_gil_enabled
is CPython-specific ( #131748 )
2025-03-26 17:32:52 +05:30
RUANG (James Roy)
9f25c1f012
gh-46236: Add docs for PyUnicode_GetDefaultEncoding() doc (GH-130335)
...
* Clarify sys.getdefaultencoding() documentation
* Add missing documentation for PyUnicode_GetDefaultEncoding,
the C equivalent of sys.getdefaultencoding
2025-02-24 15:37:21 +01:00
sobolevn
89d8b2d14b
Add measuring unit to sys.getswitchinterval
docs ( #130457 )
2025-02-22 19:05:10 +03:00
Hugo van Kemenade
3ae9101482
Python 3.14.0a5
2025-02-11 19:16:29 +02:00
Peter Bierma
9ba281d871
gh-128509: Add sys._is_immortal
for identifying immortal objects ( #128510 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-01-31 15:27:08 +00:00
Michael Osipov
e3eba8ce26
gh-129393: Make 'sys.platform' return "freebsd" only on FreeBSD ( #129394 )
...
Make 'sys.platform' return "freebsd" only on FreeBSD without major version.
2025-01-31 10:02:45 +01:00
Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)
313b96eb8b
gh-128017: Make a note that sys variables are read-only ( #128887 )
2025-01-16 11:17:03 +01:00
Filipe Laíns 🇵🇸
2b0e2b2893
GH-126985: move pyvenv.cfg detection from site to getpath ( #126987 )
2024-11-26 13:46:33 +00:00
Hugo van Kemenade
add43c3420
Python 3.14.0a2
2024-11-19 16:52:44 +02:00
Pablo Galindo Salgado
2d37c719ed
gh-124855: Don't allow the JIT and perf support to be active at the same time ( #124856 )
2024-10-30 00:12:45 +00:00
Eric Snow
6f26d496d3
gh-125286: Share the Main Refchain With Legacy Interpreters (gh-125709)
...
They used to be shared, before 3.12. Returning to sharing them resolves a failure on Py_TRACE_REFS builds.
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2024-10-23 10:10:06 -06:00
Alex Waygood
3024b16d51
gh-101100: Consolidate documentation on ModuleType
attributes ( #124709 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Barry Warsaw <barry@python.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-10-09 10:53:57 +00:00
Wei-Hsiang (Matt) Wang
103a0470e3
gh-123492: Remove unnecessary :func:
parentheses ( #123493 )
2024-08-30 14:34:09 +03:00
Rafael Fontenelle
26de1b245e
Remove unneeded verb in the phrase in sys.rst ( #122718 )
2024-08-17 14:18:31 +05:30
Serhiy Storchaka
05c2fe1acd
Format None, True, False and NotImplemented as literals (GH-118758)
2024-05-08 22:35:16 +03:00
Ned Batchelder
bcb435ee8f
docs: module page titles should not start with a link to themselves ( #117099 )
2024-05-08 20:34:40 +01:00
trag1c
c4f9823be2
gh-118671: Updated dead ActiveState links ( #118730 )
...
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
2024-05-08 01:06:38 -06:00
Sam Gross
2dae505e87
gh-117514: Add sys._is_gil_enabled()
function ( #118514 )
...
The function returns `True` or `False` depending on whether the GIL is
currently enabled. In the default build, it always returns `True`
because the GIL is always enabled.
2024-05-03 11:09:57 -04:00
Malcolm Smith
74c8568d07
gh-71042: Add platform.android_ver
( #116674 )
2024-03-27 17:53:27 +01:00
Malcolm Smith
872c0714fc
gh-71052: Change Android's sys.platform
from "linux" to "android"
...
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2024-03-11 19:25:39 +00:00
Brian Schubert
b02ab65e80
gh-115664: Fix chronological ordering of versionadded and versionchanged directives ( #115676 )
2024-02-19 17:54:54 +00:00
Victor Stinner
3e7b7df5cb
gh-114570: Add PythonFinalizationError exception ( #115352 )
...
Add PythonFinalizationError exception. This exception derived from
RuntimeError is raised when an operation is blocked during the Python
finalization.
The following functions now raise PythonFinalizationError, instead of
RuntimeError:
* _thread.start_new_thread()
* subprocess.Popen
* os.fork()
* os.fork1()
* os.forkpty()
Morever, _winapi.Overlapped finalizer now logs an unraisable
PythonFinalizationError, instead of an unraisable RuntimeError.
2024-02-14 23:35:06 +01:00
Brandt Bucher
235cacff81
GH-114695: Add sys._clear_internal_caches
(GH-115152)
2024-02-12 09:04:36 +00:00
Bradley Reynolds
1836f674c0
Add note to sys.orig_argv
clarifying the difference from sys.argv
( #114630 )
...
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2024-01-31 13:33:28 -08:00
Nikita Sobolev
38768e4cdd
gh-114384: Align sys.set_asyncgen_hooks signature in docs to reflect implementation ( #114385 )
2024-01-21 13:49:49 +01:00
AN Long
ec23e90082
gh-112419: Document removal of sys.meta_path's 'find_module' fallback ( #112421 )
...
Co-authored-by: Erlend E. Aasland <erlend@python.org>
2024-01-11 09:43:35 +00:00
Inada Naoki
bfee2f77e1
gh-73427: deprecate _enablelegacywindowsfsencoding
( #107729 )
2023-12-28 17:31:19 +09:00
Alex Waygood
d109f637c0
gh-101100: Properly document frame object attributes ( #112735 )
2023-12-05 19:27:59 +00:00
Serhiy Storchaka
dee7beeb4f
bpo-34392: Add sys. _is_interned() (GH-8755)
2023-12-04 11:09:06 +02:00
Victor Stinner
7c50800241
gh-110481, doc: Add "immortal" term to the glossary ( #112180 )
2023-11-17 15:09:19 +01:00
Quentin Peter
2445673983
gh-102249: Expand sys.call_tracing documentation ( #102806 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-10-31 16:24:54 +00:00
James Tocknell
6b9babf140
Fix typo in sys docs ( #111196 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-10-24 11:03:35 +03:00
Tian Gao
d9246c7b73
GH-104232: Fix statement about trace return values (GH-110516)
2023-10-18 13:24:00 -07:00
Sam Gross
773614e03a
gh-109740: Use 't' in --disable-gil
SOABI ( #109922 )
...
Shared libraries for CPython 3.13 are now marked with a 't' for
threading. For example, `binascii.cpython-313t-darwin.so`.
2023-09-27 15:24:12 +00:00
Serhiy Storchaka
92af0cc580
gh-109634: Use :samp: role (GH-109635)
2023-09-23 09:31:20 +03:00
Colin Watson
1294fcede0
GH-90915: Document that SystemExit doesn't trigger sys.excepthook ( #31357 )
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-07 13:14:27 +00:00
Mark Shannon
8b515f60ee
GH-103082: Document PEP-669: Low Impact Monitoring for CPython (GH-107772)
2023-09-05 12:35:52 +01:00