chunk_id stringlengths 36 36 | source stringclasses 35
values | source_url stringlengths 0 290 | upstream_license stringclasses 1
value | document_id stringlengths 36 36 | chunk_index int64 0 324k | retrieved_at stringclasses 2
values | chunker_version stringclasses 4
values | content_hash stringlengths 15 64 | content stringlengths 50 44.7k | namespace stringclasses 9
values | source_name stringclasses 35
values | raw_text stringlengths 50 44.7k | cleaned_text stringlengths 50 44.7k | tags stringclasses 49
values | collection_name stringclasses 11
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3a66014e-5f5f-4664-a320-68292751ce1a | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 12,995 | supabase-export-v2 | c769c2d711dd202c | .. index:: single: auditing
Raise an auditing event and trigger any active auditing hooks. *event* is a string identifying the event, and *args* may contain
optional arguments with more information about the event. The
number and types of arguments for a given event are considered a
public and stable API and should ... | trusted_official_docs | CPython Docs | .. index:: single: auditing
Raise an auditing event and trigger any active auditing hooks. *event* is a string identifying the event, and *args* may contain
optional arguments with more information about the event. The
number and types of arguments for a given event are considered a
public and stable API and should ... | .. index:: single: auditing
Raise an auditing event and trigger any active auditing hooks. *event* is a string identifying the event, and *args* may contain
optional arguments with more information about the event. The
number and types of arguments for a given event are considered a
public and stable API and should ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3ae9f67b-61cb-4233-a7d2-7acfce7c3af4 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,003 | supabase-export-v2 | c4f56a80b51ad917 | Equivalent to :data:`exec_prefix`, but referring to the base Python installation.
When running under :ref:`sys-path-init-virtual-environments`,
:data:`exec_prefix` gets overwritten to the virtual environment prefix. :data:`base_exec_prefix`, conversely, does not change, and always points to
the base Python installati... | trusted_official_docs | CPython Docs | Equivalent to :data:`exec_prefix`, but referring to the base Python installation.
When running under :ref:`sys-path-init-virtual-environments`,
:data:`exec_prefix` gets overwritten to the virtual environment prefix. :data:`base_exec_prefix`, conversely, does not change, and always points to
the base Python installati... | Equivalent to :data:`exec_prefix`, but referring to the base Python installation.
When running under :ref:`sys-path-init-virtual-environments`,
:data:`exec_prefix` gets overwritten to the virtual environment prefix. :data:`base_exec_prefix`, conversely, does not change, and always points to
the base Python installati... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3b335866-06c5-4beb-a4b8-41daa3f2b3af | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,455 | supabase-export-v2 | 16d0b9542a25a93a | *event*, and *arg*. *frame* is the current stack frame. *event* is a string: ``'call'``, ``'return'``, ``'c_call'``, ``'c_return'``, or ``'c_exception'``. *arg* depends on the event type.
The events have the following meaning: | trusted_official_docs | CPython Docs | *event*, and *arg*. *frame* is the current stack frame. *event* is a string: ``'call'``, ``'return'``, ``'c_call'``, ``'c_return'``, or ``'c_exception'``. *arg* depends on the event type.
The events have the following meaning: | *event*, and *arg*. *frame* is the current stack frame. *event* is a string: ``'call'``, ``'return'``, ``'c_call'``, ``'c_return'``, or ``'c_exception'``. *arg* depends on the event type.
The events have the following meaning: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3db45b7a-d2c2-4dc9-b090-b815cc7cc848 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,096 | supabase-export-v2 | 0b462b63ff9293b9 | .. note::
If a :ref:`virtual environment <venv-def>` is in effect, this :data:`exec_prefix`
will point to the virtual environment. The value for the Python installation
will still be available, via :data:`base_exec_prefix`. Refer to :ref:`sys-path-init-virtual-environments` for more information. | trusted_official_docs | CPython Docs | .. note::
If a :ref:`virtual environment <venv-def>` is in effect, this :data:`exec_prefix`
will point to the virtual environment. The value for the Python installation
will still be available, via :data:`base_exec_prefix`. Refer to :ref:`sys-path-init-virtual-environments` for more information. | .. note::
If a :ref:`virtual environment <venv-def>` is in effect, this :data:`exec_prefix`
will point to the virtual environment. The value for the Python installation
will still be available, via :data:`base_exec_prefix`. Refer to :ref:`sys-path-init-virtual-environments` for more information. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3e11fe33-22b5-4f27-a1d3-7f7cca2e6735 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 12,992 | supabase-export-v2 | d05f9583463012ad | See also :data:`sys.orig_argv`.
.. note::
On Unix, command line arguments are passed by bytes from OS. Python decodes
them with filesystem encoding and "surrogateescape" error handler. When you need original bytes, you can get it by
``[os.fsencode(arg) for arg in sys.argv]``. | trusted_official_docs | CPython Docs | See also :data:`sys.orig_argv`.
.. note::
On Unix, command line arguments are passed by bytes from OS. Python decodes
them with filesystem encoding and "surrogateescape" error handler. When you need original bytes, you can get it by
``[os.fsencode(arg) for arg in sys.argv]``. | See also :data:`sys.orig_argv`.
.. note::
On Unix, command line arguments are passed by bytes from OS. Python decodes
them with filesystem encoding and "surrogateescape" error handler. When you need original bytes, you can get it by
``[os.fsencode(arg) for arg in sys.argv]``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3eb3ff7c-ec5e-4f24-8546-6735b35927cb | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,135 | supabase-export-v2 | 671cdd38c1aa44d9 | .. versionchanged:: 3.7 Added the ``dev_mode`` attribute for the new :ref:`Python Development Mode <devmode>` and the ``utf8_mode`` attribute for the new :option:`-X` ``utf8`` flag.
.. versionchanged:: 3.10
Added ``warn_default_encoding`` attribute for :option:`-X` ``warn_default_encoding`` flag. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.7 Added the ``dev_mode`` attribute for the new :ref:`Python Development Mode <devmode>` and the ``utf8_mode`` attribute for the new :option:`-X` ``utf8`` flag.
.. versionchanged:: 3.10
Added ``warn_default_encoding`` attribute for :option:`-X` ``warn_default_encoding`` flag. | .. versionchanged:: 3.7 Added the ``dev_mode`` attribute for the new :ref:`Python Development Mode <devmode>` and the ``utf8_mode`` attribute for the new :option:`-X` ``utf8`` flag.
.. versionchanged:: 3.10
Added ``warn_default_encoding`` attribute for :option:`-X` ``warn_default_encoding`` flag. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
406c42bf-ebc5-43a0-bdfe-8381eefaa7ea | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,263 | supabase-export-v2 | b89e9502df6dcf39 | .. function:: get_asyncgen_hooks()
Returns an *asyncgen_hooks* object, which is similar to a
:class:`~collections.namedtuple` of the form ``(firstiter, finalizer)``,
where *firstiter* and *finalizer* are expected to be either ``None`` or
functions which take an :term:`asynchronous generator iterator` as an
argument... | trusted_official_docs | CPython Docs | .. function:: get_asyncgen_hooks()
Returns an *asyncgen_hooks* object, which is similar to a
:class:`~collections.namedtuple` of the form ``(firstiter, finalizer)``,
where *firstiter* and *finalizer* are expected to be either ``None`` or
functions which take an :term:`asynchronous generator iterator` as an
argument... | .. function:: get_asyncgen_hooks()
Returns an *asyncgen_hooks* object, which is similar to a
:class:`~collections.namedtuple` of the form ``(firstiter, finalizer)``,
where *firstiter* and *finalizer* are expected to be either ``None`` or
functions which take an :term:`asynchronous generator iterator` as an
argument... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
41be7b06-47f7-45fe-807d-05bf51191198 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,103 | supabase-export-v2 | 1dd1e734fb551ef6 | Raise a :exc:`SystemExit` exception, signaling an intention to exit the interpreter.
The optional argument *arg* can be an integer giving the exit status
(defaulting to zero), or another type of object. If it is an integer, zero
is considered "successful termination" and any nonzero value is considered
"abnormal ter... | trusted_official_docs | CPython Docs | Raise a :exc:`SystemExit` exception, signaling an intention to exit the interpreter.
The optional argument *arg* can be an integer giving the exit status
(defaulting to zero), or another type of object. If it is an integer, zero
is considered "successful termination" and any nonzero value is considered
"abnormal ter... | Raise a :exc:`SystemExit` exception, signaling an intention to exit the interpreter.
The optional argument *arg* can be an integer giving the exit status
(defaulting to zero), or another type of object. If it is an integer, zero
is considered "successful termination" and any nonzero value is considered
"abnormal ter... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
452fe41b-82f6-466a-be5e-406e591a6582 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,459 | supabase-export-v2 | 6f165756a0b86051 | ``'c_call'`` A C function is about to be called. This may be an extension function or a built-in. *arg* is the C function object.
``'c_return'``
A C function has returned. *arg* is the C function object. | trusted_official_docs | CPython Docs | ``'c_call'`` A C function is about to be called. This may be an extension function or a built-in. *arg* is the C function object.
``'c_return'``
A C function has returned. *arg* is the C function object. | ``'c_call'`` A C function is about to be called. This may be an extension function or a built-in. *arg* is the C function object.
``'c_return'``
A C function has returned. *arg* is the C function object. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
47aff791-23be-4e16-8108-c333fd1e48f2 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,481 | supabase-export-v2 | 11eda61adf30e128 | for a detailed explanation of how this works. Per-line events may be disabled for a frame by setting :attr:`~frame.f_trace_lines` to :const:`False` on that :ref:`frame <frame-objects>`.
``'return'``
A function (or other code block) is about to return. The local trace
function is called; *arg* is the value that will b... | trusted_official_docs | CPython Docs | for a detailed explanation of how this works. Per-line events may be disabled for a frame by setting :attr:`~frame.f_trace_lines` to :const:`False` on that :ref:`frame <frame-objects>`.
``'return'``
A function (or other code block) is about to return. The local trace
function is called; *arg* is the value that will b... | for a detailed explanation of how this works. Per-line events may be disabled for a frame by setting :attr:`~frame.f_trace_lines` to :const:`False` on that :ref:`frame <frame-objects>`.
``'return'``
A function (or other code block) is about to return. The local trace
function is called; *arg* is the value that will b... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
47c50067-3524-4b7d-8536-44d0a3cfa0f9 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,293 | supabase-export-v2 | 8896d7ce10a84857 | .. data:: hexversion
The version number encoded as a single integer. This is guaranteed to increase
with each version, including proper support for non-production releases. For
example, to test that the Python interpreter is at least version 1.5.2, use:: | trusted_official_docs | CPython Docs | .. data:: hexversion
The version number encoded as a single integer. This is guaranteed to increase
with each version, including proper support for non-production releases. For
example, to test that the Python interpreter is at least version 1.5.2, use:: | .. data:: hexversion
The version number encoded as a single integer. This is guaranteed to increase
with each version, including proper support for non-production releases. For
example, to test that the Python interpreter is at least version 1.5.2, use:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
49328fcd-5144-4d0c-ba4d-f5b70d7d065e | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,532 | supabase-export-v2 | 4f278a4b4533cc00 | .. availability:: Windows.
.. note::
Changing the filesystem encoding after Python startup is risky because
the old fsencoding or paths encoded by the old fsencoding may be cached
somewhere. Use :envvar:`PYTHONLEGACYWINDOWSFSENCODING` instead. | trusted_official_docs | CPython Docs | .. availability:: Windows.
.. note::
Changing the filesystem encoding after Python startup is risky because
the old fsencoding or paths encoded by the old fsencoding may be cached
somewhere. Use :envvar:`PYTHONLEGACYWINDOWSFSENCODING` instead. | .. availability:: Windows.
.. note::
Changing the filesystem encoding after Python startup is risky because
the old fsencoding or paths encoded by the old fsencoding may be cached
somewhere. Use :envvar:`PYTHONLEGACYWINDOWSFSENCODING` instead. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4abbf3f2-73bf-464a-8826-4acd97e8c334 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,214 | supabase-export-v2 | 7ca7edc6d6dc3d6a | .. function:: getrecursionlimit()
Return the current value of the recursion limit, the maximum depth of the Python
interpreter stack. This limit prevents infinite recursion from causing an
overflow of the C stack and crashing Python. It can be set by
:func:`setrecursionlimit`. | trusted_official_docs | CPython Docs | .. function:: getrecursionlimit()
Return the current value of the recursion limit, the maximum depth of the Python
interpreter stack. This limit prevents infinite recursion from causing an
overflow of the C stack and crashing Python. It can be set by
:func:`setrecursionlimit`. | .. function:: getrecursionlimit()
Return the current value of the recursion limit, the maximum depth of the Python
interpreter stack. This limit prevents infinite recursion from causing an
overflow of the C stack and crashing Python. It can be set by
:func:`setrecursionlimit`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4b399290-3f0b-466b-b7fd-bfca69c72ca1 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,486 | supabase-export-v2 | d47831be7253f1a3 | be the same tracing function (e.g. it could be a low overhead tracing function that simply returns ``None`` to disable itself immediately on each frame).
For more information on code and frame objects, refer to :ref:`types`. | trusted_official_docs | CPython Docs | be the same tracing function (e.g. it could be a low overhead tracing function that simply returns ``None`` to disable itself immediately on each frame).
For more information on code and frame objects, refer to :ref:`types`. | be the same tracing function (e.g. it could be a low overhead tracing function that simply returns ``None`` to disable itself immediately on each frame).
For more information on code and frame objects, refer to :ref:`types`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4b7ac7b5-ef38-45a4-b6b3-2797e238f935 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,089 | supabase-export-v2 | e1eff6a6d68b5260 | .. function:: exc_info()
This function returns the old-style representation of the handled
exception. If an exception ``e`` is currently handled (so
:func:`exception` would return ``e``), :func:`exc_info` returns the
tuple ``(type(e), e, e.__traceback__)``. That is, a tuple containing the type of the exception (a su... | trusted_official_docs | CPython Docs | .. function:: exc_info()
This function returns the old-style representation of the handled
exception. If an exception ``e`` is currently handled (so
:func:`exception` would return ``e``), :func:`exc_info` returns the
tuple ``(type(e), e, e.__traceback__)``. That is, a tuple containing the type of the exception (a su... | .. function:: exc_info()
This function returns the old-style representation of the handled
exception. If an exception ``e`` is currently handled (so
:func:`exception` would return ``e``), :func:`exc_info` returns the
tuple ``(type(e), e, e.__traceback__)``. That is, a tuple containing the type of the exception (a su... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4c75217c-5f06-4c60-8af6-660ab7209cf9 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,231 | supabase-export-v2 | ccddaa14bd05181d | or if the module is unidentifiable, ``None`` is returned. The default for *depth* is zero, returning the module at the top of the call stack.
.. audit-event:: sys._getframemodulename depth sys._getframemodulename | trusted_official_docs | CPython Docs | or if the module is unidentifiable, ``None`` is returned. The default for *depth* is zero, returning the module at the top of the call stack.
.. audit-event:: sys._getframemodulename depth sys._getframemodulename | or if the module is unidentifiable, ``None`` is returned. The default for *depth* is zero, returning the module at the top of the call stack.
.. audit-event:: sys._getframemodulename depth sys._getframemodulename | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4d270b0b-3dfb-41ef-a3d7-18fc593f2549 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,209 | supabase-export-v2 | 03e718a746dfd27f | of the *object*. The count returned is generally one higher than you might expect, because it includes the (temporary) reference as an argument to :func:`getrefcount`.
Note that the returned value may not actually reflect how many
references to the object are actually held. For example, some
objects are :term:`immort... | trusted_official_docs | CPython Docs | of the *object*. The count returned is generally one higher than you might expect, because it includes the (temporary) reference as an argument to :func:`getrefcount`.
Note that the returned value may not actually reflect how many
references to the object are actually held. For example, some
objects are :term:`immort... | of the *object*. The count returned is generally one higher than you might expect, because it includes the (temporary) reference as an argument to :func:`getrefcount`.
Note that the returned value may not actually reflect how many
references to the object are actually held. For example, some
objects are :term:`immort... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4d3e2387-006e-4098-911b-cf5bb4fcb265 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 12,979 | supabase-export-v2 | 04c84e91bb02bad3 | Append the callable *hook* to the list of active auditing hooks for the current (sub)interpreter.
When an auditing event is raised through the :func:`sys.audit` function, each
hook will be called in the order it was added with the event name and the
tuple of arguments. Native hooks added by :c:func:`PySys_AddAuditHoo... | trusted_official_docs | CPython Docs | Append the callable *hook* to the list of active auditing hooks for the current (sub)interpreter.
When an auditing event is raised through the :func:`sys.audit` function, each
hook will be called in the order it was added with the event name and the
tuple of arguments. Native hooks added by :c:func:`PySys_AddAuditHoo... | Append the callable *hook* to the list of active auditing hooks for the current (sub)interpreter.
When an auditing event is raised through the :func:`sys.audit` function, each
hook will be called in the order it was added with the event name and the
tuple of arguments. Native hooks added by :c:func:`PySys_AddAuditHoo... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4db46812-3e81-421e-b78e-0c179cd6cb50 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,071 | supabase-export-v2 | cd87c0f0ac1f6f6d | use :mod:`compileall` as a pre-build step, you must ensure you run it with the same pycache prefix (if any) that you will use at runtime.
A relative path is interpreted relative to the current working directory. | trusted_official_docs | CPython Docs | use :mod:`compileall` as a pre-build step, you must ensure you run it with the same pycache prefix (if any) that you will use at runtime.
A relative path is interpreted relative to the current working directory. | use :mod:`compileall` as a pre-build step, you must ensure you run it with the same pycache prefix (if any) that you will use at runtime.
A relative path is interpreted relative to the current working directory. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4e263680-26b4-49a7-8f5a-da31cda0de64 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,575 | supabase-export-v2 | db3bb67c864f4382 | message if :attr:`!err_msg` is ``None``. Similar to the :mod:`traceback` module, this adds color to exceptions by default. This can be disabled using :ref:`environment variables <using-on-controlling-color>`.
:func:`sys.unraisablehook` can be overridden to control how unraisable
exceptions are handled. | trusted_official_docs | CPython Docs | message if :attr:`!err_msg` is ``None``. Similar to the :mod:`traceback` module, this adds color to exceptions by default. This can be disabled using :ref:`environment variables <using-on-controlling-color>`.
:func:`sys.unraisablehook` can be overridden to control how unraisable
exceptions are handled. | message if :attr:`!err_msg` is ``None``. Similar to the :mod:`traceback` module, this adds color to exceptions by default. This can be disabled using :ref:`environment variables <using-on-controlling-color>`.
:func:`sys.unraisablehook` can be overridden to control how unraisable
exceptions are handled. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4f6e60e4-28f5-40eb-ac91-75a1b1a9f3ab | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,208 | supabase-export-v2 | 73e92c883c22354f | .. function:: getrefcount(object)
Return the reference count of the *object*. The count returned is generally one
higher than you might expect, because it includes the (temporary) reference as
an argument to :func:`getrefcount`. | trusted_official_docs | CPython Docs | .. function:: getrefcount(object)
Return the reference count of the *object*. The count returned is generally one
higher than you might expect, because it includes the (temporary) reference as
an argument to :func:`getrefcount`. | .. function:: getrefcount(object)
Return the reference count of the *object*. The count returned is generally one
higher than you might expect, because it includes the (temporary) reference as
an argument to :func:`getrefcount`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5015e142-49f1-4331-a916-a3bbb114f16e | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,100 | supabase-export-v2 | 58a2b5092bfe68f2 | .. data:: executable
A string giving the absolute path of the executable binary for the Python
interpreter, on systems where this makes sense. If Python is unable to retrieve
the real path to its executable, :data:`sys.executable` will be an empty string
or ``None``. | trusted_official_docs | CPython Docs | .. data:: executable
A string giving the absolute path of the executable binary for the Python
interpreter, on systems where this makes sense. If Python is unable to retrieve
the real path to its executable, :data:`sys.executable` will be an empty string
or ``None``. | .. data:: executable
A string giving the absolute path of the executable binary for the Python
interpreter, on systems where this makes sense. If Python is unable to retrieve
the real path to its executable, :data:`sys.executable` will be an empty string
or ``None``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
50e0773e-4321-412c-a51f-fba478856f5a | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,591 | supabase-export-v2 | 096f881643288462 | version 2.0 is ``(2, 0, 0, 'final', 0)``. The components can also be accessed by name, so ``sys.version_info[0]`` is equivalent to ``sys.version_info.major`` and so on.
.. versionchanged:: 3.1
Added named component attributes. | trusted_official_docs | CPython Docs | version 2.0 is ``(2, 0, 0, 'final', 0)``. The components can also be accessed by name, so ``sys.version_info[0]`` is equivalent to ``sys.version_info.major`` and so on.
.. versionchanged:: 3.1
Added named component attributes. | version 2.0 is ``(2, 0, 0, 'final', 0)``. The components can also be accessed by name, so ``sys.version_info[0]`` is equivalent to ``sys.version_info.major`` and so on.
.. versionchanged:: 3.1
Added named component attributes. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
518674f0-a78c-4b75-91d9-786ab990a7c0 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,252 | supabase-export-v2 | 8a33a573ef430066 | .. function:: getwindowsversion()
Return a named tuple describing the Windows version
currently running. The named elements are *major*, *minor*,
*build*, *platform*, *service_pack*, *service_pack_minor*,
*service_pack_major*, *suite_mask*, *product_type* and
*platform_version*. *service_pack* contains a string,
*... | trusted_official_docs | CPython Docs | .. function:: getwindowsversion()
Return a named tuple describing the Windows version
currently running. The named elements are *major*, *minor*,
*build*, *platform*, *service_pack*, *service_pack_minor*,
*service_pack_major*, *suite_mask*, *product_type* and
*platform_version*. *service_pack* contains a string,
*... | .. function:: getwindowsversion()
Return a named tuple describing the Windows version
currently running. The named elements are *major*, *minor*,
*build*, *platform*, *service_pack*, *service_pack_minor*,
*service_pack_major*, *suite_mask*, *product_type* and
*platform_version*. *service_pack* contains a string,
*... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
51a5d5af-03bd-4557-b4bf-21065f30f36a | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,087 | supabase-export-v2 | e8f3b91daf42de5c | instance that was caught by this handler. When exception handlers are nested within one another, only the exception handled by the innermost handler is accessible.
If no exception handler is executing, this function returns ``None``. | trusted_official_docs | CPython Docs | instance that was caught by this handler. When exception handlers are nested within one another, only the exception handled by the innermost handler is accessible.
If no exception handler is executing, this function returns ``None``. | instance that was caught by this handler. When exception handlers are nested within one another, only the exception handled by the innermost handler is accessible.
If no exception handler is executing, this function returns ``None``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
51c54d21-702d-4f73-90dd-fe6fa7016365 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,543 | supabase-export-v2 | 70899288d4f38d2c | using the new :option:`-X` ``utf8`` command line option and :envvar:`PYTHONUTF8` environment variable. However, for the Windows console, this only applies when :envvar:`PYTHONLEGACYWINDOWSSTDIO` is also set.
* When interactive, the ``stdout`` stream is line-buffered. Otherwise,
it is block-buffered like regular text f... | trusted_official_docs | CPython Docs | using the new :option:`-X` ``utf8`` command line option and :envvar:`PYTHONUTF8` environment variable. However, for the Windows console, this only applies when :envvar:`PYTHONLEGACYWINDOWSSTDIO` is also set.
* When interactive, the ``stdout`` stream is line-buffered. Otherwise,
it is block-buffered like regular text f... | using the new :option:`-X` ``utf8`` command line option and :envvar:`PYTHONUTF8` environment variable. However, for the Windows console, this only applies when :envvar:`PYTHONLEGACYWINDOWSSTDIO` is also set.
* When interactive, the ``stdout`` stream is line-buffered. Otherwise,
it is block-buffered like regular text f... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
523e10a3-2174-4988-982f-301453704175 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,523 | supabase-export-v2 | 9df105f087776115 | .. audit-event:: sys.remote_exec pid script_path
When the code is executed in the remote process, an
:ref:`auditing event <auditing>` ``sys.remote_exec`` is raised with
the *pid* and the path to the script file. This event is raised in the process that called :func:`sys.remote_exec`. | trusted_official_docs | CPython Docs | .. audit-event:: sys.remote_exec pid script_path
When the code is executed in the remote process, an
:ref:`auditing event <auditing>` ``sys.remote_exec`` is raised with
the *pid* and the path to the script file. This event is raised in the process that called :func:`sys.remote_exec`. | .. audit-event:: sys.remote_exec pid script_path
When the code is executed in the remote process, an
:ref:`auditing event <auditing>` ``sys.remote_exec`` is raised with
the *pid* and the path to the script file. This event is raised in the process that called :func:`sys.remote_exec`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
52998443-baa4-4dd0-8175-bf4aae762542 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,299 | supabase-export-v2 | f68306d63e67cc39 | An object containing information about the implementation of the currently running Python interpreter. The following attributes are required to exist in all Python implementations.
*name* is the implementation's identifier, e.g. ``'cpython'``. The actual
string is defined by the Python implementation, but it is guaran... | trusted_official_docs | CPython Docs | An object containing information about the implementation of the currently running Python interpreter. The following attributes are required to exist in all Python implementations.
*name* is the implementation's identifier, e.g. ``'cpython'``. The actual
string is defined by the Python implementation, but it is guaran... | An object containing information about the implementation of the currently running Python interpreter. The following attributes are required to exist in all Python implementations.
*name* is the implementation's identifier, e.g. ``'cpython'``. The actual
string is defined by the Python implementation, but it is guaran... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
53a6ba52-e6bf-4828-9021-1f8fbda03e30 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,257 | supabase-export-v2 | 683b53840a700106 | This function wraps the Win32 :c:func:`!GetVersionEx` function; see the Microsoft documentation on :c:func:`!OSVERSIONINFOEX` for more information about these fields.
*platform_version* returns the major version, minor version and
build number of the current operating system, rather than the version that
is being emu... | trusted_official_docs | CPython Docs | This function wraps the Win32 :c:func:`!GetVersionEx` function; see the Microsoft documentation on :c:func:`!OSVERSIONINFOEX` for more information about these fields.
*platform_version* returns the major version, minor version and
build number of the current operating system, rather than the version that
is being emu... | This function wraps the Win32 :c:func:`!GetVersionEx` function; see the Microsoft documentation on :c:func:`!OSVERSIONINFOEX` for more information about these fields.
*platform_version* returns the major version, minor version and
build number of the current operating system, rather than the version that
is being emu... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
54997fa4-376a-4194-a597-e6d511a39716 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,585 | supabase-export-v2 | 43dfb7e14370cf7a | .. data:: version
A string containing the version number of the Python interpreter plus additional
information on the build number and compiler used. This string is displayed
when the interactive interpreter is started. Do not extract version information
out of it, rather, use :data:`version_info` and the functions ... | trusted_official_docs | CPython Docs | .. data:: version
A string containing the version number of the Python interpreter plus additional
information on the build number and compiler used. This string is displayed
when the interactive interpreter is started. Do not extract version information
out of it, rather, use :data:`version_info` and the functions ... | .. data:: version
A string containing the version number of the Python interpreter plus additional
information on the build number and compiler used. This string is displayed
when the interactive interpreter is started. Do not extract version information
out of it, rather, use :data:`version_info` and the functions ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
55edc7ba-4aff-4579-b116-04e89204394b | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,107 | supabase-export-v2 | 6c360c217a401b08 | .. data:: flags
The :term:`named tuple` *flags* exposes the status of command line
flags. Flags should only be accessed only by name and not by index. The
attributes are read only. | trusted_official_docs | CPython Docs | .. data:: flags
The :term:`named tuple` *flags* exposes the status of command line
flags. Flags should only be accessed only by name and not by index. The
attributes are read only. | .. data:: flags
The :term:`named tuple` *flags* exposes the status of command line
flags. Flags should only be accessed only by name and not by index. The
attributes are read only. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
59e7946b-4e90-4c98-8bb2-62b3bb11c1d8 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,230 | supabase-export-v2 | d2ac609c97b22b0d | .. function:: _getframemodulename([depth])
Return the name of a module from the call stack. If optional integer *depth*
is given, return the module that many calls below the top of the stack. If
that is deeper than the call stack, or if the module is unidentifiable,
``None`` is returned. The default for *depth* is z... | trusted_official_docs | CPython Docs | .. function:: _getframemodulename([depth])
Return the name of a module from the call stack. If optional integer *depth*
is given, return the module that many calls below the top of the stack. If
that is deeper than the call stack, or if the module is unidentifiable,
``None`` is returned. The default for *depth* is z... | .. function:: _getframemodulename([depth])
Return the name of a module from the call stack. If optional integer *depth*
is given, return the module that many calls below the top of the stack. If
that is deeper than the call stack, or if the module is unidentifiable,
``None`` is returned. The default for *depth* is z... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5a5b109b-b24a-4688-9935-13cace56a9ce | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 12,989 | supabase-export-v2 | b36c7c51cd1325dd | .. data:: argv
The list of command line arguments passed to a Python script. ``argv[0]`` is the
script name (it is operating system dependent whether this is a full pathname or
not). If the command was executed using the :option:`-c` command line option to
the interpreter, ``argv[0]`` is set to the string ``'-c'``. ... | trusted_official_docs | CPython Docs | .. data:: argv
The list of command line arguments passed to a Python script. ``argv[0]`` is the
script name (it is operating system dependent whether this is a full pathname or
not). If the command was executed using the :option:`-c` command line option to
the interpreter, ``argv[0]`` is set to the string ``'-c'``. ... | .. data:: argv
The list of command line arguments passed to a Python script. ``argv[0]`` is the
script name (it is operating system dependent whether this is a full pathname or
not). If the command was executed using the :option:`-c` command line option to
the interpreter, ``argv[0]`` is set to the string ``'-c'``. ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5d3a3663-2916-4884-b376-224a7806cd58 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 12,960 | supabase-export-v2 | 08462bb95f436343 | --------------
This module provides access to some variables used or maintained by the
interpreter and to functions that interact strongly with the interpreter. It is
always available. Unless explicitly noted otherwise, all variables are read-only. | trusted_official_docs | CPython Docs | --------------
This module provides access to some variables used or maintained by the
interpreter and to functions that interact strongly with the interpreter. It is
always available. Unless explicitly noted otherwise, all variables are read-only. | --------------
This module provides access to some variables used or maintained by the
interpreter and to functions that interact strongly with the interpreter. It is
always available. Unless explicitly noted otherwise, all variables are read-only. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5fa8be67-8749-4966-8618-f1d1ce6e7f35 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,011 | supabase-export-v2 | 5bcecee5828d595b | all modules that are compiled into this Python interpreter. (This information is not available in any other way --- ``modules.keys()`` only lists the imported modules.)
See also the :data:`sys.stdlib_module_names` list. | trusted_official_docs | CPython Docs | all modules that are compiled into this Python interpreter. (This information is not available in any other way --- ``modules.keys()`` only lists the imported modules.)
See also the :data:`sys.stdlib_module_names` list. | all modules that are compiled into this Python interpreter. (This information is not available in any other way --- ``modules.keys()`` only lists the imported modules.)
See also the :data:`sys.stdlib_module_names` list. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
608e8146-c57d-41e6-b35a-7c4fddd5d5e4 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,105 | supabase-export-v2 | 35a5c729519fee7c | intercepted. Cleanup actions specified by :keyword:`finally` clauses of :keyword:`try` statements are honored, and it is possible to intercept the exit attempt at an outer level.
.. versionchanged:: 3.6
If an error occurs in the cleanup after the Python interpreter
has caught :exc:`SystemExit` (such as an error flush... | trusted_official_docs | CPython Docs | intercepted. Cleanup actions specified by :keyword:`finally` clauses of :keyword:`try` statements are honored, and it is possible to intercept the exit attempt at an outer level.
.. versionchanged:: 3.6
If an error occurs in the cleanup after the Python interpreter
has caught :exc:`SystemExit` (such as an error flush... | intercepted. Cleanup actions specified by :keyword:`finally` clauses of :keyword:`try` statements are honored, and it is possible to intercept the exit attempt at an outer level.
.. versionchanged:: 3.6
If an error occurs in the cleanup after the Python interpreter
has caught :exc:`SystemExit` (such as an error flush... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
610cd6b1-729f-4303-8711-3a280460c463 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,026 | supabase-export-v2 | d218f9936c374770 | that thread at the time the function is called. Note that functions in the :mod:`traceback` module can build the call stack given such a frame.
This is most useful for debugging deadlock: this function does not require the
deadlocked threads' cooperation, and such threads' call stacks are frozen for as
long as they r... | trusted_official_docs | CPython Docs | that thread at the time the function is called. Note that functions in the :mod:`traceback` module can build the call stack given such a frame.
This is most useful for debugging deadlock: this function does not require the
deadlocked threads' cooperation, and such threads' call stacks are frozen for as
long as they r... | that thread at the time the function is called. Note that functions in the :mod:`traceback` module can build the call stack given such a frame.
This is most useful for debugging deadlock: this function does not require the
deadlocked threads' cooperation, and such threads' call stacks are frozen for as
long as they r... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
62820ade-170b-4682-b3c0-d0c1577d5bf2 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,159 | supabase-export-v2 | 39f6dc77176ef0ea | * ``-1``: indeterminable * ``0``: toward zero * ``1``: to nearest * ``2``: toward positive infinity * ``3``: toward negative infinity
All other values for :c:macro:`!FLT_ROUNDS` characterize
implementation-defined rounding behavior. | trusted_official_docs | CPython Docs | * ``-1``: indeterminable * ``0``: toward zero * ``1``: to nearest * ``2``: toward positive infinity * ``3``: toward negative infinity
All other values for :c:macro:`!FLT_ROUNDS` characterize
implementation-defined rounding behavior. | * ``-1``: indeterminable * ``0``: toward zero * ``1``: to nearest * ``2``: toward positive infinity * ``3``: toward negative infinity
All other values for :c:macro:`!FLT_ROUNDS` characterize
implementation-defined rounding behavior. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
64e4b8c6-28f0-469c-9e1f-2b4f9ecbf6aa | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,325 | supabase-export-v2 | 68bfc09f59c6da90 | mode <tut-interactive>`. This is done after the :envvar:`PYTHONSTARTUP` file is read, so that you can set this hook there. The :mod:`site` module :ref:`sets this <rlcompleter-config>`.
.. audit-event:: cpython.run_interactivehook hook sys.__interactivehook__ | trusted_official_docs | CPython Docs | mode <tut-interactive>`. This is done after the :envvar:`PYTHONSTARTUP` file is read, so that you can set this hook there. The :mod:`site` module :ref:`sets this <rlcompleter-config>`.
.. audit-event:: cpython.run_interactivehook hook sys.__interactivehook__ | mode <tut-interactive>`. This is done after the :envvar:`PYTHONSTARTUP` file is read, so that you can set this hook there. The :mod:`site` module :ref:`sets this <rlcompleter-config>`.
.. audit-event:: cpython.run_interactivehook hook sys.__interactivehook__ | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6614b36d-efeb-47b0-b955-ec6b61905761 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,186 | supabase-export-v2 | 05d6905b2226ed4f | :func:`os.fsencode` and :func:`os.fsdecode` should be used to ensure that the correct encoding and errors mode are used.
The :term:`filesystem encoding and error handler` are configured at Python
startup by the :c:func:`PyConfig_Read` function: see
:c:member:`~PyConfig.filesystem_encoding` and
:c:member:`~PyConfig.f... | trusted_official_docs | CPython Docs | :func:`os.fsencode` and :func:`os.fsdecode` should be used to ensure that the correct encoding and errors mode are used.
The :term:`filesystem encoding and error handler` are configured at Python
startup by the :c:func:`PyConfig_Read` function: see
:c:member:`~PyConfig.filesystem_encoding` and
:c:member:`~PyConfig.f... | :func:`os.fsencode` and :func:`os.fsdecode` should be used to ensure that the correct encoding and errors mode are used.
The :term:`filesystem encoding and error handler` are configured at Python
startup by the :c:func:`PyConfig_Read` function: see
:c:member:`~PyConfig.filesystem_encoding` and
:c:member:`~PyConfig.f... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6650810a-0bf9-4653-b8ac-62c886cb5c50 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,480 | supabase-export-v2 | 8c1913526237f7d4 | is called (or some other code block entered). The global trace function is called; *arg* is ``None``; the return value specifies the local trace function.
``'line'``
The interpreter is about to execute a new line of code or re-execute the
condition of a loop. The local trace function is called; *arg* is
``None``; th... | trusted_official_docs | CPython Docs | is called (or some other code block entered). The global trace function is called; *arg* is ``None``; the return value specifies the local trace function.
``'line'``
The interpreter is about to execute a new line of code or re-execute the
condition of a loop. The local trace function is called; *arg* is
``None``; th... | is called (or some other code block entered). The global trace function is called; *arg* is ``None``; the return value specifies the local trace function.
``'line'``
The interpreter is about to execute a new line of code or re-execute the
condition of a loop. The local trace function is called; *arg* is
``None``; th... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
66c43b6e-b08a-4a58-aeaf-41d94ced4107 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 12,967 | supabase-export-v2 | 122d429b27dfe728 | .. attribute:: abi_info.free_threaded
A Boolean indicating whether the interpreter was built with
:term:`free threading` support. This reflects either the presence of the :option:`--disable-gil`
:file:`configure` option (on Unix)
or setting the ``DisableGil`` property (on Windows). | trusted_official_docs | CPython Docs | .. attribute:: abi_info.free_threaded
A Boolean indicating whether the interpreter was built with
:term:`free threading` support. This reflects either the presence of the :option:`--disable-gil`
:file:`configure` option (on Unix)
or setting the ``DisableGil`` property (on Windows). | .. attribute:: abi_info.free_threaded
A Boolean indicating whether the interpreter was built with
:term:`free threading` support. This reflects either the presence of the :option:`--disable-gil`
:file:`configure` option (on Unix)
or setting the ``DisableGil`` property (on Windows). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
66d65936-b384-4376-8f9b-8268cd356e7b | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,582 | supabase-export-v2 | 6416906245c437b7 | resurrect it if it is set to an object which is being finalized. Avoid storing :attr:`!object` after the custom hook completes to avoid resurrecting objects.
.. audit-event:: sys.unraisablehook hook,unraisable sys.unraisablehook | trusted_official_docs | CPython Docs | resurrect it if it is set to an object which is being finalized. Avoid storing :attr:`!object` after the custom hook completes to avoid resurrecting objects.
.. audit-event:: sys.unraisablehook hook,unraisable sys.unraisablehook | resurrect it if it is set to an object which is being finalized. Avoid storing :attr:`!object` after the custom hook completes to avoid resurrecting objects.
.. audit-event:: sys.unraisablehook hook,unraisable sys.unraisablehook | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
672b2386-76c9-465c-b183-a3ebfc3c5acc | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,529 | supabase-export-v2 | 58a1aeda22e5a3d1 | Changes the :term:`filesystem encoding and error handler` to 'mbcs' and 'replace' respectively, for consistency with versions of Python prior to 3.6.
This is equivalent to defining the :envvar:`PYTHONLEGACYWINDOWSFSENCODING`
environment variable before launching Python. | trusted_official_docs | CPython Docs | Changes the :term:`filesystem encoding and error handler` to 'mbcs' and 'replace' respectively, for consistency with versions of Python prior to 3.6.
This is equivalent to defining the :envvar:`PYTHONLEGACYWINDOWSFSENCODING`
environment variable before launching Python. | Changes the :term:`filesystem encoding and error handler` to 'mbcs' and 'replace' respectively, for consistency with versions of Python prior to 3.6.
This is equivalent to defining the :envvar:`PYTHONLEGACYWINDOWSFSENCODING`
environment variable before launching Python. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6761e6f2-44a5-4195-bb76-f994adcb072e | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,077 | supabase-export-v2 | 06a6961349227744 | Python program this happens just before the program exits. The handling of such top-level exceptions can be customized by assigning another three-argument function to ``sys.excepthook``.
.. audit-event:: sys.excepthook hook,type,value,traceback sys.excepthook | trusted_official_docs | CPython Docs | Python program this happens just before the program exits. The handling of such top-level exceptions can be customized by assigning another three-argument function to ``sys.excepthook``.
.. audit-event:: sys.excepthook hook,type,value,traceback sys.excepthook | Python program this happens just before the program exits. The handling of such top-level exceptions can be customized by assigning another three-argument function to ``sys.excepthook``.
.. audit-event:: sys.excepthook hook,type,value,traceback sys.excepthook | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
688e4743-f985-4e99-bc0b-3bd232acc42c | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,225 | supabase-export-v2 | 6030d6a1a869aa7c | .. function:: _getframe([depth])
Return a frame object from the call stack. If optional integer *depth* is
given, return the frame object that many calls below the top of the stack. If
that is deeper than the call stack, :exc:`ValueError` is raised. The default
for *depth* is zero, returning the frame at the top of ... | trusted_official_docs | CPython Docs | .. function:: _getframe([depth])
Return a frame object from the call stack. If optional integer *depth* is
given, return the frame object that many calls below the top of the stack. If
that is deeper than the call stack, :exc:`ValueError` is raised. The default
for *depth* is zero, returning the frame at the top of ... | .. function:: _getframe([depth])
Return a frame object from the call stack. If optional integer *depth* is
given, return the frame object that many calls below the top of the stack. If
that is deeper than the call stack, :exc:`ValueError` is raised. The default
for *depth* is zero, returning the frame at the top of ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
69460e6d-7349-49d3-9e31-912838bd17b6 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,458 | supabase-export-v2 | 040a0b4bd59a6423 | The profile function is called; *arg* is the value that will be returned, or ``None`` if the event is caused by an exception being raised.
``'c_call'``
A C function is about to be called. This may be an extension function or
a built-in. *arg* is the C function object. | trusted_official_docs | CPython Docs | The profile function is called; *arg* is the value that will be returned, or ``None`` if the event is caused by an exception being raised.
``'c_call'``
A C function is about to be called. This may be an extension function or
a built-in. *arg* is the C function object. | The profile function is called; *arg* is the value that will be returned, or ``None`` if the event is caused by an exception being raised.
``'c_call'``
A C function is about to be called. This may be an extension function or
a built-in. *arg* is the C function object. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6a26d8ee-f131-4cc9-a66a-c6c595adf5c9 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,187 | supabase-export-v2 | 8086d3e3ca014218 | The :term:`filesystem encoding and error handler` are configured at Python startup by the :c:func:`PyConfig_Read` function: see :c:member:`~PyConfig.filesystem_encoding` and :c:member:`~PyConfig.filesystem_errors` members of :c:type:`PyConfig`.
.. versionchanged:: 3.2
:func:`getfilesystemencoding` result cannot be ``N... | trusted_official_docs | CPython Docs | The :term:`filesystem encoding and error handler` are configured at Python startup by the :c:func:`PyConfig_Read` function: see :c:member:`~PyConfig.filesystem_encoding` and :c:member:`~PyConfig.filesystem_errors` members of :c:type:`PyConfig`.
.. versionchanged:: 3.2
:func:`getfilesystemencoding` result cannot be ``N... | The :term:`filesystem encoding and error handler` are configured at Python startup by the :c:func:`PyConfig_Read` function: see :c:member:`~PyConfig.filesystem_encoding` and :c:member:`~PyConfig.filesystem_errors` members of :c:type:`PyConfig`.
.. versionchanged:: 3.2
:func:`getfilesystemencoding` result cannot be ``N... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6d29438e-9dec-41cc-9335-b7ea4fd0b6a2 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,395 | supabase-export-v2 | 6bfefad306d6cf73 | is free to modify this list for its own purposes. Only strings should be added to :data:`sys.path`; all other data types are ignored during import.
.. seealso::
* Module :mod:`site` This describes how to use .pth files to
extend :data:`sys.path`. | trusted_official_docs | CPython Docs | is free to modify this list for its own purposes. Only strings should be added to :data:`sys.path`; all other data types are ignored during import.
.. seealso::
* Module :mod:`site` This describes how to use .pth files to
extend :data:`sys.path`. | is free to modify this list for its own purposes. Only strings should be added to :data:`sys.path`; all other data types are ignored during import.
.. seealso::
* Module :mod:`site` This describes how to use .pth files to
extend :data:`sys.path`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6f94eb85-e125-4e1b-82e0-204b277149e5 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,374 | supabase-export-v2 | 04b45f0bbfa87a48 | An integer giving the value of the largest Unicode code point, i.e. ``1114111`` (``0x10FFFF`` in hexadecimal).
.. versionchanged:: 3.3
Before :pep:`393`, ``sys.maxunicode`` used to be either ``0xFFFF``
or ``0x10FFFF``, depending on the configuration option that specified
whether Unicode characters were stored as UCS... | trusted_official_docs | CPython Docs | An integer giving the value of the largest Unicode code point, i.e. ``1114111`` (``0x10FFFF`` in hexadecimal).
.. versionchanged:: 3.3
Before :pep:`393`, ``sys.maxunicode`` used to be either ``0xFFFF``
or ``0x10FFFF``, depending on the configuration option that specified
whether Unicode characters were stored as UCS... | An integer giving the value of the largest Unicode code point, i.e. ``1114111`` (``0x10FFFF`` in hexadecimal).
.. versionchanged:: 3.3
Before :pep:`393`, ``sys.maxunicode`` used to be either ``0xFFFF``
or ``0x10FFFF``, depending on the configuration option that specified
whether Unicode characters were stored as UCS... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
708a83cf-51e1-462c-b398-e40ad4ffdf5e | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,155 | supabase-export-v2 | ec56e7e3c0c7727c | * - .. attribute:: float_info.min_exp - :c:macro:`!DBL_MIN_EXP` - The minimum integer *e* such that ``radix**(e-1)`` is a normalized float.
* - .. attribute:: float_info.min_10_exp
- :c:macro:`!DBL_MIN_10_EXP`
- The minimum integer *e* such that ``10**e`` is a normalized float. | trusted_official_docs | CPython Docs | * - .. attribute:: float_info.min_exp - :c:macro:`!DBL_MIN_EXP` - The minimum integer *e* such that ``radix**(e-1)`` is a normalized float.
* - .. attribute:: float_info.min_10_exp
- :c:macro:`!DBL_MIN_10_EXP`
- The minimum integer *e* such that ``10**e`` is a normalized float. | * - .. attribute:: float_info.min_exp - :c:macro:`!DBL_MIN_EXP` - The minimum integer *e* such that ``radix**(e-1)`` is a normalized float.
* - .. attribute:: float_info.min_10_exp
- :c:macro:`!DBL_MIN_10_EXP`
- The minimum integer *e* such that ``10**e`` is a normalized float. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
710a8faf-8e1e-4753-b48c-3358832e9a93 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,404 | supabase-export-v2 | 163a8f34bbfc9a90 | A string containing a platform identifier. Known values are:
================ ===========================
System ``platform`` value
================ ===========================
AIX ``'aix'``
Android ``'android'``
Emscripten ``'emscripten'``
FreeBSD ``'freebsd'``
iOS ``'ios'``
Linux ``'linux'``
macOS ``'darwin'... | trusted_official_docs | CPython Docs | A string containing a platform identifier. Known values are:
================ ===========================
System ``platform`` value
================ ===========================
AIX ``'aix'``
Android ``'android'``
Emscripten ``'emscripten'``
FreeBSD ``'freebsd'``
iOS ``'ios'``
Linux ``'linux'``
macOS ``'darwin'... | A string containing a platform identifier. Known values are:
================ ===========================
System ``platform`` value
================ ===========================
AIX ``'aix'``
Android ``'android'``
Emscripten ``'emscripten'``
FreeBSD ``'freebsd'``
iOS ``'ios'``
Linux ``'linux'``
macOS ``'darwin'... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
726ea6cd-3f0c-40ce-af3e-ce2e2fd3310f | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,442 | supabase-export-v2 | d0954797e758bc71 | Sets the lazy imports filter callback. The *filter* parameter must be a callable or ``None`` to clear the filter.
The filter function is called for every potentially lazy import to
determine whether it should actually be lazy. It must have the following
signature:: | trusted_official_docs | CPython Docs | Sets the lazy imports filter callback. The *filter* parameter must be a callable or ``None`` to clear the filter.
The filter function is called for every potentially lazy import to
determine whether it should actually be lazy. It must have the following
signature:: | Sets the lazy imports filter callback. The *filter* parameter must be a callable or ``None`` to clear the filter.
The filter function is called for every potentially lazy import to
determine whether it should actually be lazy. It must have the following
signature:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
72b35b4a-778d-4944-97a2-6b6e2f25667b | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,454 | supabase-export-v2 | 995251db7f46e4d8 | same tracing mechanism is used for :func:`!setprofile` as :func:`settrace`. To trace calls with :func:`!setprofile` inside a tracing function (e.g. in a debugger breakpoint), see :func:`call_tracing`.
Profile functions should have three arguments: *frame*, *event*, and
*arg*. *frame* is the current stack frame. *event... | trusted_official_docs | CPython Docs | same tracing mechanism is used for :func:`!setprofile` as :func:`settrace`. To trace calls with :func:`!setprofile` inside a tracing function (e.g. in a debugger breakpoint), see :func:`call_tracing`.
Profile functions should have three arguments: *frame*, *event*, and
*arg*. *frame* is the current stack frame. *event... | same tracing mechanism is used for :func:`!setprofile` as :func:`settrace`. To trace calls with :func:`!setprofile` inside a tracing function (e.g. in a debugger breakpoint), see :func:`call_tracing`.
Profile functions should have three arguments: *frame*, *event*, and
*arg*. *frame* is the current stack frame. *event... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
72bcb533-ba2b-474d-a4f5-7d9643731d5b | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,361 | supabase-export-v2 | 4c626f2eef41bddc | .. note::
Objects that are immortal (and thus return ``True`` upon being passed
to this function) are not guaranteed to be immortal in future versions,
and vice versa for mortal objects. | trusted_official_docs | CPython Docs | .. note::
Objects that are immortal (and thus return ``True`` upon being passed
to this function) are not guaranteed to be immortal in future versions,
and vice versa for mortal objects. | .. note::
Objects that are immortal (and thus return ``True`` upon being passed
to this function) are not guaranteed to be immortal in future versions,
and vice versa for mortal objects. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
72fbea1d-ec4e-4cff-b45a-af1613365d24 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,352 | supabase-export-v2 | 16a42b87f66a7ccb | .. note::
Due to the nature of tracing JIT compilers, repeated calls to this
function may give surprising results. For example, branching on its
return value will likely lead to unexpected behavior (if doing so
causes JIT code to be entered or exited): | trusted_official_docs | CPython Docs | .. note::
Due to the nature of tracing JIT compilers, repeated calls to this
function may give surprising results. For example, branching on its
return value will likely lead to unexpected behavior (if doing so
causes JIT code to be entered or exited): | .. note::
Due to the nature of tracing JIT compilers, repeated calls to this
function may give surprising results. For example, branching on its
return value will likely lead to unexpected behavior (if doing so
causes JIT code to be entered or exited): | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
76b59f9b-5be6-4a4d-a2b5-c60daa065db3 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,544 | supabase-export-v2 | 79120a5d72409fc6 | ``stderr`` stream is line-buffered in both cases. You can make both streams unbuffered by passing the :option:`-u` command-line option or setting the :envvar:`PYTHONUNBUFFERED` environment variable.
.. versionchanged:: 3.9
Non-interactive ``stderr`` is now line-buffered instead of fully
buffered. | trusted_official_docs | CPython Docs | ``stderr`` stream is line-buffered in both cases. You can make both streams unbuffered by passing the :option:`-u` command-line option or setting the :envvar:`PYTHONUNBUFFERED` environment variable.
.. versionchanged:: 3.9
Non-interactive ``stderr`` is now line-buffered instead of fully
buffered. | ``stderr`` stream is line-buffered in both cases. You can make both streams unbuffered by passing the :option:`-u` command-line option or setting the :envvar:`PYTHONUNBUFFERED` environment variable.
.. versionchanged:: 3.9
Non-interactive ``stderr`` is now line-buffered instead of fully
buffered. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
781105f0-5d9a-45c5-997a-fba2335ebb35 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,070 | supabase-export-v2 | 37f24f8943f87c2c | .. data:: pycache_prefix
If this is set (not ``None``), Python will write bytecode-cache ``.pyc``
files to (and read them from) a parallel directory tree rooted at this
directory, rather than from ``__pycache__`` directories in the source code
tree. Any ``__pycache__`` directories in the source code tree will be ign... | trusted_official_docs | CPython Docs | .. data:: pycache_prefix
If this is set (not ``None``), Python will write bytecode-cache ``.pyc``
files to (and read them from) a parallel directory tree rooted at this
directory, rather than from ``__pycache__`` directories in the source code
tree. Any ``__pycache__`` directories in the source code tree will be ign... | .. data:: pycache_prefix
If this is set (not ``None``), Python will write bytecode-cache ``.pyc``
files to (and read them from) a parallel directory tree rooted at this
directory, rather than from ``__pycache__`` directories in the source code
tree. Any ``__pycache__`` directories in the source code tree will be ign... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7a09a244-c7a6-4fd3-9a19-2ebe0756cfb1 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,443 | supabase-export-v2 | aa1290f500fc2137 | The filter function is called for every potentially lazy import to determine whether it should actually be lazy. It must have the following signature::
def filter(importing_module: str, imported_module: str,
fromlist: tuple[str, ...] | None) -> bool | trusted_official_docs | CPython Docs | The filter function is called for every potentially lazy import to determine whether it should actually be lazy. It must have the following signature::
def filter(importing_module: str, imported_module: str,
fromlist: tuple[str, ...] | None) -> bool | The filter function is called for every potentially lazy import to determine whether it should actually be lazy. It must have the following signature::
def filter(importing_module: str, imported_module: str,
fromlist: tuple[str, ...] | None) -> bool | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7b77a62f-67a7-4fb4-bdba-530bc373b3fb | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,185 | supabase-export-v2 | 432f01168307452f | filenames as bytes is also supported. Functions accepting or returning filenames should support either str or bytes and internally convert to the system's preferred representation.
:func:`os.fsencode` and :func:`os.fsdecode` should be used to ensure that
the correct encoding and errors mode are used. | trusted_official_docs | CPython Docs | filenames as bytes is also supported. Functions accepting or returning filenames should support either str or bytes and internally convert to the system's preferred representation.
:func:`os.fsencode` and :func:`os.fsdecode` should be used to ensure that
the correct encoding and errors mode are used. | filenames as bytes is also supported. Functions accepting or returning filenames should support either str or bytes and internally convert to the system's preferred representation.
:func:`os.fsencode` and :func:`os.fsdecode` should be used to ensure that
the correct encoding and errors mode are used. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7cd6e924-4471-4fd1-97de-4f0505f30693 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,018 | supabase-export-v2 | 9a4c77f37cee0ff2 | .. function:: _clear_type_cache()
Clear the internal type cache. The type cache is used to speed up attribute
and method lookups. Use the function *only* to drop unnecessary references
during reference leak debugging. | trusted_official_docs | CPython Docs | .. function:: _clear_type_cache()
Clear the internal type cache. The type cache is used to speed up attribute
and method lookups. Use the function *only* to drop unnecessary references
during reference leak debugging. | .. function:: _clear_type_cache()
Clear the internal type cache. The type cache is used to speed up attribute
and method lookups. Use the function *only* to drop unnecessary references
during reference leak debugging. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7d115d49-ebb5-406f-aba3-c95e7baf51aa | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,580 | supabase-export-v2 | 9626176f086897af | .. warning::
Storing :attr:`!exc_value` using a custom hook can create a reference cycle. It should be cleared explicitly to break the reference cycle when the
exception is no longer needed. | trusted_official_docs | CPython Docs | .. warning::
Storing :attr:`!exc_value` using a custom hook can create a reference cycle. It should be cleared explicitly to break the reference cycle when the
exception is no longer needed. | .. warning::
Storing :attr:`!exc_value` using a custom hook can create a reference cycle. It should be cleared explicitly to break the reference cycle when the
exception is no longer needed. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7db84717-0f7e-4f7b-a1ed-ec0cfeea1c69 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,072 | supabase-export-v2 | b445117b1a0f375f | A relative path is interpreted relative to the current working directory.
This value is initially set based on the value of the :option:`-X`
``pycache_prefix=PATH`` command-line option or the
:envvar:`PYTHONPYCACHEPREFIX` environment variable (command-line takes
precedence). If neither are set, it is ``None``. | trusted_official_docs | CPython Docs | A relative path is interpreted relative to the current working directory.
This value is initially set based on the value of the :option:`-X`
``pycache_prefix=PATH`` command-line option or the
:envvar:`PYTHONPYCACHEPREFIX` environment variable (command-line takes
precedence). If neither are set, it is ``None``. | A relative path is interpreted relative to the current working directory.
This value is initially set based on the value of the :option:`-X`
``pycache_prefix=PATH`` command-line option or the
:envvar:`PYTHONPYCACHEPREFIX` environment variable (command-line takes
precedence). If neither are set, it is ``None``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7f714e1d-5cfb-45f3-9876-10d1a7dc295a | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,294 | supabase-export-v2 | c35a952e49742153 | to increase with each version, including proper support for non-production releases. For example, to test that the Python interpreter is at least version 1.5.2, use::
if sys.hexversion >= 0x010502F0:
# use some advanced feature
... else:
# use an alternative implementation or warn the user
... | trusted_official_docs | CPython Docs | to increase with each version, including proper support for non-production releases. For example, to test that the Python interpreter is at least version 1.5.2, use::
if sys.hexversion >= 0x010502F0:
# use some advanced feature
... else:
# use an alternative implementation or warn the user
... | to increase with each version, including proper support for non-production releases. For example, to test that the Python interpreter is at least version 1.5.2, use::
if sys.hexversion >= 0x010502F0:
# use some advanced feature
... else:
# use an alternative implementation or warn the user
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
80f8e37a-dedb-4363-8fdc-58d1447d117c | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,142 | supabase-export-v2 | 288e3c6fa903f661 | .. data:: float_info
A :term:`named tuple` holding information about the float type. It
contains low level information about the precision and internal
representation. The values correspond to the various floating-point
constants defined in the standard header file :file:`float.h` for the 'C'
programming language; ... | trusted_official_docs | CPython Docs | .. data:: float_info
A :term:`named tuple` holding information about the float type. It
contains low level information about the precision and internal
representation. The values correspond to the various floating-point
constants defined in the standard header file :file:`float.h` for the 'C'
programming language; ... | .. data:: float_info
A :term:`named tuple` holding information about the float type. It
contains low level information about the precision and internal
representation. The values correspond to the various floating-point
constants defined in the standard header file :file:`float.h` for the 'C'
programming language; ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
839f07a1-8f81-4619-8bc5-fa78a20d1e15 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,192 | supabase-export-v2 | 40aad5b7bb854226 | used with the :term:`filesystem encoding <filesystem encoding and error handler>` to convert between Unicode filenames and bytes filenames. The filesystem encoding is returned from :func:`getfilesystemencoding`.
:func:`os.fsencode` and :func:`os.fsdecode` should be used to ensure that
the correct encoding and errors m... | trusted_official_docs | CPython Docs | used with the :term:`filesystem encoding <filesystem encoding and error handler>` to convert between Unicode filenames and bytes filenames. The filesystem encoding is returned from :func:`getfilesystemencoding`.
:func:`os.fsencode` and :func:`os.fsdecode` should be used to ensure that
the correct encoding and errors m... | used with the :term:`filesystem encoding <filesystem encoding and error handler>` to convert between Unicode filenames and bytes filenames. The filesystem encoding is returned from :func:`getfilesystemencoding`.
:func:`os.fsencode` and :func:`os.fsdecode` should be used to ensure that
the correct encoding and errors m... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
841dd2f6-890e-4192-b9d3-489a03bb0f1c | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,392 | supabase-export-v2 | 8342401c9e74bed5 | By default, as initialized upon program startup, a potentially unsafe path is prepended to :data:`sys.path` (*before* the entries inserted as a result of :envvar:`PYTHONPATH`):
* ``python -m module`` command line: prepend the current working
directory. * ``python script.py`` command line: prepend the script's director... | trusted_official_docs | CPython Docs | By default, as initialized upon program startup, a potentially unsafe path is prepended to :data:`sys.path` (*before* the entries inserted as a result of :envvar:`PYTHONPATH`):
* ``python -m module`` command line: prepend the current working
directory. * ``python script.py`` command line: prepend the script's director... | By default, as initialized upon program startup, a potentially unsafe path is prepended to :data:`sys.path` (*before* the entries inserted as a result of :envvar:`PYTHONPATH`):
* ``python -m module`` command line: prepend the current working
directory. * ``python script.py`` command line: prepend the script's director... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
84dfb134-0113-468d-b7a3-2f673b05da81 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,419 | supabase-export-v2 | dbda0c4bc35edddb | .. data:: prefix
A string giving the site-specific directory prefix where the platform
independent Python files are installed; on Unix, the default is
:file:`/usr/local`. This can be set at build time with the :option:`--prefix`
argument to the :program:`configure` script. See
:ref:`installation_paths` for derived ... | trusted_official_docs | CPython Docs | .. data:: prefix
A string giving the site-specific directory prefix where the platform
independent Python files are installed; on Unix, the default is
:file:`/usr/local`. This can be set at build time with the :option:`--prefix`
argument to the :program:`configure` script. See
:ref:`installation_paths` for derived ... | .. data:: prefix
A string giving the site-specific directory prefix where the platform
independent Python files are installed; on Unix, the default is
:file:`/usr/local`. This can be set at build time with the :option:`--prefix`
argument to the :program:`configure` script. See
:ref:`installation_paths` for derived ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8529627b-a680-40d4-b35b-626c1f4ea0c5 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,568 | supabase-export-v2 | f55f212ecb1d20a2 | .. data:: tracebacklimit
When this variable is set to an integer value, it determines the maximum number
of levels of traceback information printed when an unhandled exception occurs. The default is ``1000``. When set to ``0`` or less, all traceback information
is suppressed and only the exception type and value are ... | trusted_official_docs | CPython Docs | .. data:: tracebacklimit
When this variable is set to an integer value, it determines the maximum number
of levels of traceback information printed when an unhandled exception occurs. The default is ``1000``. When set to ``0`` or less, all traceback information
is suppressed and only the exception type and value are ... | .. data:: tracebacklimit
When this variable is set to an integer value, it determines the maximum number
of levels of traceback information printed when an unhandled exception occurs. The default is ``1000``. When set to ``0`` or less, all traceback information
is suppressed and only the exception type and value are ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
85304c14-46c5-479c-ad58-a5aa75a3538d | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,086 | supabase-export-v2 | cf0457566261bbec | .. function:: exception()
This function, when called while an exception handler is executing (such as
an ``except`` or ``except*`` clause), returns the exception instance that
was caught by this handler. When exception handlers are nested within one
another, only the exception handled by the innermost handler is acc... | trusted_official_docs | CPython Docs | .. function:: exception()
This function, when called while an exception handler is executing (such as
an ``except`` or ``except*`` clause), returns the exception instance that
was caught by this handler. When exception handlers are nested within one
another, only the exception handled by the innermost handler is acc... | .. function:: exception()
This function, when called while an exception handler is executing (such as
an ``except`` or ``except*`` clause), returns the exception instance that
was caught by this handler. When exception handlers are nested within one
another, only the exception handled by the innermost handler is acc... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
870fc3cc-0350-434f-9533-9fad2fa4059b | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,152 | supabase-export-v2 | 1281e482a8851e69 | * - .. attribute:: float_info.max_10_exp - :c:macro:`!DBL_MAX_10_EXP` - The maximum integer *e* such that ``10**e`` is in the range of representable finite floats.
* - .. attribute:: float_info.min
- :c:macro:`!DBL_MIN`
- The minimum representable positive *normalized* float. | trusted_official_docs | CPython Docs | * - .. attribute:: float_info.max_10_exp - :c:macro:`!DBL_MAX_10_EXP` - The maximum integer *e* such that ``10**e`` is in the range of representable finite floats.
* - .. attribute:: float_info.min
- :c:macro:`!DBL_MIN`
- The minimum representable positive *normalized* float. | * - .. attribute:: float_info.max_10_exp - :c:macro:`!DBL_MAX_10_EXP` - The maximum integer *e* such that ``10**e`` is in the range of representable finite floats.
* - .. attribute:: float_info.min
- :c:macro:`!DBL_MIN`
- The minimum representable positive *normalized* float. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
88b4490b-074f-4373-ab64-1dde1763c91e | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,031 | supabase-export-v2 | 2910f935fc9d1392 | thread at the time the function is called. If a thread is not currently handling an exception, it is not included in the result dictionary.
This is most useful for statistical profiling. | trusted_official_docs | CPython Docs | thread at the time the function is called. If a thread is not currently handling an exception, it is not included in the result dictionary.
This is most useful for statistical profiling. | thread at the time the function is called. If a thread is not currently handling an exception, it is not included in the result dictionary.
This is most useful for statistical profiling. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
891cf8d7-dbd0-41a3-82d4-ae1aeb9c84e9 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,410 | supabase-export-v2 | be7bdbf24581f720 | .. versionchanged:: 3.13 On Android, :data:`sys.platform` now returns ``'android'`` rather than ``'linux'``.
.. versionchanged:: 3.14
On FreeBSD, :data:`sys.platform` doesn't contain the major version anymore. It is always ``'freebsd'``, instead of ``'freebsd13'`` or ``'freebsd14'``. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.13 On Android, :data:`sys.platform` now returns ``'android'`` rather than ``'linux'``.
.. versionchanged:: 3.14
On FreeBSD, :data:`sys.platform` doesn't contain the major version anymore. It is always ``'freebsd'``, instead of ``'freebsd13'`` or ``'freebsd14'``. | .. versionchanged:: 3.13 On Android, :data:`sys.platform` now returns ``'android'`` rather than ``'linux'``.
.. versionchanged:: 3.14
On FreeBSD, :data:`sys.platform` doesn't contain the major version anymore. It is always ``'freebsd'``, instead of ``'freebsd13'`` or ``'freebsd14'``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8935e4a4-ccfc-43e4-946d-85f440645f2a | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,428 | supabase-export-v2 | f33bc6596deac616 | .. function:: setdlopenflags(n)
Set the flags used by the interpreter for :c:func:`dlopen` calls, such as when
the interpreter loads extension modules. Among other things, this will enable a
lazy resolving of symbols when importing a module, if called as
``sys.setdlopenflags(0)``. To share symbols across extension m... | trusted_official_docs | CPython Docs | .. function:: setdlopenflags(n)
Set the flags used by the interpreter for :c:func:`dlopen` calls, such as when
the interpreter loads extension modules. Among other things, this will enable a
lazy resolving of symbols when importing a module, if called as
``sys.setdlopenflags(0)``. To share symbols across extension m... | .. function:: setdlopenflags(n)
Set the flags used by the interpreter for :c:func:`dlopen` calls, such as when
the interpreter loads extension modules. Among other things, this will enable a
lazy resolving of symbols when importing a module, if called as
``sys.setdlopenflags(0)``. To share symbols across extension m... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8abc362b-48d1-4674-9c8f-c6324157c3c2 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,212 | supabase-export-v2 | fd95b658cca348a1 | :term:`Immortal <immortal>` objects with a large reference count can be identified via :func:`_is_immortal`.
.. versionchanged:: 3.12
Immortal objects have very large refcounts that do not match
the actual number of references to the object. | trusted_official_docs | CPython Docs | :term:`Immortal <immortal>` objects with a large reference count can be identified via :func:`_is_immortal`.
.. versionchanged:: 3.12
Immortal objects have very large refcounts that do not match
the actual number of references to the object. | :term:`Immortal <immortal>` objects with a large reference count can be identified via :func:`_is_immortal`.
.. versionchanged:: 3.12
Immortal objects have very large refcounts that do not match
the actual number of references to the object. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8b7a2c1b-e77d-423f-a033-b0e1f43ec482 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,445 | supabase-export-v2 | 3548417a08e0f78d | Where:
* *importing_module* is the name of the module doing the import
* *imported_module* is the resolved name of the module being imported
(for example, ``lazy from .spam import eggs`` passes
``package.spam``)
* *fromlist* is the tuple of names being imported (for ``from ... import``
statements), or ``None`` for... | trusted_official_docs | CPython Docs | Where:
* *importing_module* is the name of the module doing the import
* *imported_module* is the resolved name of the module being imported
(for example, ``lazy from .spam import eggs`` passes
``package.spam``)
* *fromlist* is the tuple of names being imported (for ``from ... import``
statements), or ``None`` for... | Where:
* *importing_module* is the name of the module doing the import
* *imported_module* is the resolved name of the module being imported
(for example, ``lazy from .spam import eggs`` passes
``package.spam``)
* *fromlist* is the tuple of names being imported (for ``from ... import``
statements), or ``None`` for... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8f2af2cb-8c06-48e8-8b8c-0a1f3239ab54 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,027 | supabase-export-v2 | 2f4ff76ade58bddc | deadlocked. The frame returned for a non-deadlocked thread may bear no relationship to that thread's current activity by the time calling code examines the frame.
This function should be used for internal and specialized purposes only. | trusted_official_docs | CPython Docs | deadlocked. The frame returned for a non-deadlocked thread may bear no relationship to that thread's current activity by the time calling code examines the frame.
This function should be used for internal and specialized purposes only. | deadlocked. The frame returned for a non-deadlocked thread may bear no relationship to that thread's current activity by the time calling code examines the frame.
This function should be used for internal and specialized purposes only. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8f3c4923-4183-4740-a3d9-698ee827921c | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,157 | supabase-export-v2 | 8b5c96752b054b41 | * - .. attribute:: float_info.radix - :c:macro:`!FLT_RADIX` - The radix of exponent representation.
* - .. attribute:: float_info.rounds
- :c:macro:`!FLT_ROUNDS`
- An integer representing the rounding mode for floating-point arithmetic. This reflects the value of the system :c:macro:`!FLT_ROUNDS` macro
at interprete... | trusted_official_docs | CPython Docs | * - .. attribute:: float_info.radix - :c:macro:`!FLT_RADIX` - The radix of exponent representation.
* - .. attribute:: float_info.rounds
- :c:macro:`!FLT_ROUNDS`
- An integer representing the rounding mode for floating-point arithmetic. This reflects the value of the system :c:macro:`!FLT_ROUNDS` macro
at interprete... | * - .. attribute:: float_info.radix - :c:macro:`!FLT_RADIX` - The radix of exponent representation.
* - .. attribute:: float_info.rounds
- :c:macro:`!FLT_ROUNDS`
- An integer representing the rounding mode for floating-point arithmetic. This reflects the value of the system :c:macro:`!FLT_ROUNDS` macro
at interprete... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
90db230c-973a-48d1-b859-a12ea048d4f6 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,237 | supabase-export-v2 | ae7c37d9af80c38c | This function only exists if CPython was built using the specialized configure option :option:`--with-trace-refs`. It is intended only for debugging garbage-collection issues.
Return a list of up to *limit* dynamically allocated Python objects. If *type* is given, only objects of that exact type (not subtypes)
are inc... | trusted_official_docs | CPython Docs | This function only exists if CPython was built using the specialized configure option :option:`--with-trace-refs`. It is intended only for debugging garbage-collection issues.
Return a list of up to *limit* dynamically allocated Python objects. If *type* is given, only objects of that exact type (not subtypes)
are inc... | This function only exists if CPython was built using the specialized configure option :option:`--with-trace-refs`. It is intended only for debugging garbage-collection issues.
Return a list of up to *limit* dynamically allocated Python objects. If *type* is given, only objects of that exact type (not subtypes)
are inc... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
911fd16b-dd88-4f84-98fb-b3de485b89a9 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,417 | supabase-export-v2 | e8f2e1259cad13bb | On Fedora and SuSE, it is equal to ``"lib64"`` on 64-bit platforms which gives the following ``sys.path`` paths (where ``X.Y`` is the Python ``major.minor`` version):
* ``/usr/lib64/pythonX.Y/``:
Standard library (like ``os.py`` of the :mod:`os` module)
* ``/usr/lib64/pythonX.Y/lib-dynload/``:
C extension modules of... | trusted_official_docs | CPython Docs | On Fedora and SuSE, it is equal to ``"lib64"`` on 64-bit platforms which gives the following ``sys.path`` paths (where ``X.Y`` is the Python ``major.minor`` version):
* ``/usr/lib64/pythonX.Y/``:
Standard library (like ``os.py`` of the :mod:`os` module)
* ``/usr/lib64/pythonX.Y/lib-dynload/``:
C extension modules of... | On Fedora and SuSE, it is equal to ``"lib64"`` on 64-bit platforms which gives the following ``sys.path`` paths (where ``X.Y`` is the Python ``major.minor`` version):
* ``/usr/lib64/pythonX.Y/``:
Standard library (like ``os.py`` of the :mod:`os` module)
* ``/usr/lib64/pythonX.Y/lib-dynload/``:
C extension modules of... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9283a37a-69ca-476d-a9c4-c75554725303 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,019 | supabase-export-v2 | e6c8c85afa878516 | cache. The type cache is used to speed up attribute and method lookups. Use the function *only* to drop unnecessary references during reference leak debugging.
This function should be used for internal and specialized purposes only. | trusted_official_docs | CPython Docs | cache. The type cache is used to speed up attribute and method lookups. Use the function *only* to drop unnecessary references during reference leak debugging.
This function should be used for internal and specialized purposes only. | cache. The type cache is used to speed up attribute and method lookups. Use the function *only* to drop unnecessary references during reference leak debugging.
This function should be used for internal and specialized purposes only. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
929e3e90-2494-4cc9-b6ed-548dba6e3cd1 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,183 | supabase-export-v2 | b570cf660bd39152 | .. function:: getfilesystemencoding()
Get the :term:`filesystem encoding <filesystem encoding and error handler>`:
the encoding used with the :term:`filesystem error handler <filesystem
encoding and error handler>` to convert between Unicode filenames and bytes
filenames. The filesystem error handler is returned fro... | trusted_official_docs | CPython Docs | .. function:: getfilesystemencoding()
Get the :term:`filesystem encoding <filesystem encoding and error handler>`:
the encoding used with the :term:`filesystem error handler <filesystem
encoding and error handler>` to convert between Unicode filenames and bytes
filenames. The filesystem error handler is returned fro... | .. function:: getfilesystemencoding()
Get the :term:`filesystem encoding <filesystem encoding and error handler>`:
the encoding used with the :term:`filesystem error handler <filesystem
encoding and error handler>` to convert between Unicode filenames and bytes
filenames. The filesystem error handler is returned fro... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
92b33fe3-1a7c-4133-94d6-326369316f1b | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,391 | supabase-export-v2 | d28a488567f2ddbd | A list of strings that specifies the search path for modules. Initialized from the environment variable :envvar:`PYTHONPATH`, plus an installation-dependent default.
By default, as initialized upon program startup, a potentially unsafe path
is prepended to :data:`sys.path` (*before* the entries inserted as a result
o... | trusted_official_docs | CPython Docs | A list of strings that specifies the search path for modules. Initialized from the environment variable :envvar:`PYTHONPATH`, plus an installation-dependent default.
By default, as initialized upon program startup, a potentially unsafe path
is prepended to :data:`sys.path` (*before* the entries inserted as a result
o... | A list of strings that specifies the search path for modules. Initialized from the environment variable :envvar:`PYTHONPATH`, plus an installation-dependent default.
By default, as initialized upon program startup, a potentially unsafe path
is prepended to :data:`sys.path` (*before* the entries inserted as a result
o... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
948a5c0e-92e6-4f94-bfc8-f21a9ec8221b | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,485 | supabase-export-v2 | fcf4ca9ee6e8e782 | Note that as an exception is propagated down the chain of callers, an ``'exception'`` event is generated at each level.
For more fine-grained usage, it's possible to set a trace function by
assigning ``frame.f_trace = tracefunc`` explicitly, rather than relying on
it being set indirectly via the return value from an ... | trusted_official_docs | CPython Docs | Note that as an exception is propagated down the chain of callers, an ``'exception'`` event is generated at each level.
For more fine-grained usage, it's possible to set a trace function by
assigning ``frame.f_trace = tracefunc`` explicitly, rather than relying on
it being set indirectly via the return value from an ... | Note that as an exception is propagated down the chain of callers, an ``'exception'`` event is generated at each level.
For more fine-grained usage, it's possible to set a trace function by
assigning ``frame.f_trace = tracefunc`` explicitly, rather than relying on
it being set indirectly via the return value from an ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
94d31caf-8346-4095-9ad2-861a30a8b615 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 12,980 | supabase-export-v2 | 90a117b2400cd265 | by hooks added in the current (sub)interpreter. Hooks can then log the event, raise an exception to abort the operation, or terminate the process entirely.
Note that audit hooks are primarily for collecting information about internal
or otherwise unobservable actions, whether by Python or libraries written in
Python.... | trusted_official_docs | CPython Docs | by hooks added in the current (sub)interpreter. Hooks can then log the event, raise an exception to abort the operation, or terminate the process entirely.
Note that audit hooks are primarily for collecting information about internal
or otherwise unobservable actions, whether by Python or libraries written in
Python.... | by hooks added in the current (sub)interpreter. Hooks can then log the event, raise an exception to abort the operation, or terminate the process entirely.
Note that audit hooks are primarily for collecting information about internal
or otherwise unobservable actions, whether by Python or libraries written in
Python.... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
95430db7-2daf-41e2-8bd9-b2baf3d966c3 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,134 | supabase-export-v2 | c609eff4fd2e6455 | .. versionchanged:: 3.4 Added ``isolated`` attribute for :option:`-I` ``isolated`` flag.
.. versionchanged:: 3.7
Added the ``dev_mode`` attribute for the new :ref:`Python Development
Mode <devmode>` and the ``utf8_mode`` attribute for the new :option:`-X`
``utf8`` flag. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.4 Added ``isolated`` attribute for :option:`-I` ``isolated`` flag.
.. versionchanged:: 3.7
Added the ``dev_mode`` attribute for the new :ref:`Python Development
Mode <devmode>` and the ``utf8_mode`` attribute for the new :option:`-X`
``utf8`` flag. | .. versionchanged:: 3.4 Added ``isolated`` attribute for :option:`-I` ``isolated`` flag.
.. versionchanged:: 3.7
Added the ``dev_mode`` attribute for the new :ref:`Python Development
Mode <devmode>` and the ``utf8_mode`` attribute for the new :option:`-X`
``utf8`` flag. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
95511cb5-dd74-436c-a39c-e7ca3d035ff0 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,250 | supabase-export-v2 | d4a008327c0ac4db | .. impl-detail::
The :func:`gettrace` function is intended only for implementing debuggers,
profilers, coverage tools and the like. Its behavior is part of the
implementation platform, rather than part of the language definition, and
thus may not be available in all Python implementations. | trusted_official_docs | CPython Docs | .. impl-detail::
The :func:`gettrace` function is intended only for implementing debuggers,
profilers, coverage tools and the like. Its behavior is part of the
implementation platform, rather than part of the language definition, and
thus may not be available in all Python implementations. | .. impl-detail::
The :func:`gettrace` function is intended only for implementing debuggers,
profilers, coverage tools and the like. Its behavior is part of the
implementation platform, rather than part of the language definition, and
thus may not be available in all Python implementations. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
959c7530-a1e9-4776-a956-c292de04a385 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,452 | supabase-export-v2 | 6dc03e47865f64a9 | .. index:: single: profile function single: profiler
Set the system's profile function, which allows you to implement a Python source
code profiler in Python. See chapter :ref:`profile` for more information on the
Python profiler. The system's profile function is called similarly to the
system's trace function (see ... | trusted_official_docs | CPython Docs | .. index:: single: profile function single: profiler
Set the system's profile function, which allows you to implement a Python source
code profiler in Python. See chapter :ref:`profile` for more information on the
Python profiler. The system's profile function is called similarly to the
system's trace function (see ... | .. index:: single: profile function single: profiler
Set the system's profile function, which allows you to implement a Python source
code profiler in Python. See chapter :ref:`profile` for more information on the
Python profiler. The system's profile function is called similarly to the
system's trace function (see ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9ac566ab-b7dc-4a1d-b591-8c6e88f2b902 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,371 | supabase-export-v2 | ed589664b2ee0f0f | .. data:: maxsize
An integer giving the maximum value a variable of type :c:type:`Py_ssize_t` can
take. It's usually ``2**31 - 1`` on a 32-bit platform and ``2**63 - 1`` on a
64-bit platform. | trusted_official_docs | CPython Docs | .. data:: maxsize
An integer giving the maximum value a variable of type :c:type:`Py_ssize_t` can
take. It's usually ``2**31 - 1`` on a 32-bit platform and ``2**63 - 1`` on a
64-bit platform. | .. data:: maxsize
An integer giving the maximum value a variable of type :c:type:`Py_ssize_t` can
take. It's usually ``2**31 - 1`` on a 32-bit platform and ``2**63 - 1`` on a
64-bit platform. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9d08c5e5-7de8-4fa3-9190-4d8e35a9a80c | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,092 | supabase-export-v2 | 7af412f2660e5262 | If no exception is being handled anywhere on the stack, this function return a tuple containing three ``None`` values.
.. versionchanged:: 3.11
The ``type`` and ``traceback`` fields are now derived from the ``value``
(the exception instance), so when an exception is modified while it is
being handled, the changes ar... | trusted_official_docs | CPython Docs | If no exception is being handled anywhere on the stack, this function return a tuple containing three ``None`` values.
.. versionchanged:: 3.11
The ``type`` and ``traceback`` fields are now derived from the ``value``
(the exception instance), so when an exception is modified while it is
being handled, the changes ar... | If no exception is being handled anywhere on the stack, this function return a tuple containing three ``None`` values.
.. versionchanged:: 3.11
The ``type`` and ``traceback`` fields are now derived from the ``value``
(the exception instance), so when an exception is modified while it is
being handled, the changes ar... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9fb0cd16-d668-446b-8f62-59a3162c62a5 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,494 | supabase-export-v2 | 839f01439513a123 | when an asynchronous generator is iterated for the first time. The *finalizer* will be called when an asynchronous generator is about to be garbage collected.
.. audit-event:: sys.set_asyncgen_hooks_firstiter "" sys.set_asyncgen_hooks | trusted_official_docs | CPython Docs | when an asynchronous generator is iterated for the first time. The *finalizer* will be called when an asynchronous generator is about to be garbage collected.
.. audit-event:: sys.set_asyncgen_hooks_firstiter "" sys.set_asyncgen_hooks | when an asynchronous generator is iterated for the first time. The *finalizer* will be called when an asynchronous generator is about to be garbage collected.
.. audit-event:: sys.set_asyncgen_hooks_firstiter "" sys.set_asyncgen_hooks | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9fc1dbd0-eef6-45c9-b37f-c9daf419e83f | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,040 | supabase-export-v2 | e13d6c3117ffc347 | Note that if anything goes wrong while importing the callable named by :envvar:`PYTHONBREAKPOINT`, a :exc:`RuntimeWarning` is reported and the breakpoint is ignored.
Also note that if ``sys.breakpointhook()`` is overridden programmatically,
:envvar:`PYTHONBREAKPOINT` is *not* consulted. | trusted_official_docs | CPython Docs | Note that if anything goes wrong while importing the callable named by :envvar:`PYTHONBREAKPOINT`, a :exc:`RuntimeWarning` is reported and the breakpoint is ignored.
Also note that if ``sys.breakpointhook()`` is overridden programmatically,
:envvar:`PYTHONBREAKPOINT` is *not* consulted. | Note that if anything goes wrong while importing the callable named by :envvar:`PYTHONBREAKPOINT`, a :exc:`RuntimeWarning` is reported and the breakpoint is ignored.
Also note that if ``sys.breakpointhook()`` is overridden programmatically,
:envvar:`PYTHONBREAKPOINT` is *not* consulted. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a12dea72-e02c-4082-8466-bbb948a69f5d | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,466 | supabase-export-v2 | 5be3778dc60beed8 | If the new limit is too low at the current recursion depth, a :exc:`RecursionError` exception is raised.
.. versionchanged:: 3.5.1
A :exc:`RecursionError` exception is now raised if the new limit is too
low at the current recursion depth. | trusted_official_docs | CPython Docs | If the new limit is too low at the current recursion depth, a :exc:`RecursionError` exception is raised.
.. versionchanged:: 3.5.1
A :exc:`RecursionError` exception is now raised if the new limit is too
low at the current recursion depth. | If the new limit is too low at the current recursion depth, a :exc:`RecursionError` exception is raised.
.. versionchanged:: 3.5.1
A :exc:`RecursionError` exception is now raised if the new limit is too
low at the current recursion depth. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a158aa57-f774-4331-b595-42100169b1a7 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,143 | supabase-export-v2 | c6332c9d43be61c7 | standard header file :file:`float.h` for the 'C' programming language; see section 5.2.4.2.2 of the 1999 ISO/IEC C standard [C99]_, 'Characteristics of floating types', for details.
.. list-table:: Attributes of the :data:`!float_info` :term:`named tuple`
:header-rows: 1 | trusted_official_docs | CPython Docs | standard header file :file:`float.h` for the 'C' programming language; see section 5.2.4.2.2 of the 1999 ISO/IEC C standard [C99]_, 'Characteristics of floating types', for details.
.. list-table:: Attributes of the :data:`!float_info` :term:`named tuple`
:header-rows: 1 | standard header file :file:`float.h` for the 'C' programming language; see section 5.2.4.2.2 of the 1999 ISO/IEC C standard [C99]_, 'Characteristics of floating types', for details.
.. list-table:: Attributes of the :data:`!float_info` :term:`named tuple`
:header-rows: 1 | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a324a874-c57d-44fa-8f77-cf9c372c252b | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,238 | supabase-export-v2 | 8c2315c5582c3c3c | Return a list of up to *limit* dynamically allocated Python objects. If *type* is given, only objects of that exact type (not subtypes) are included.
Objects from the list are not safe to use. Specifically, the result will include objects from all interpreters that
share their object allocator state (that is, ones cre... | trusted_official_docs | CPython Docs | Return a list of up to *limit* dynamically allocated Python objects. If *type* is given, only objects of that exact type (not subtypes) are included.
Objects from the list are not safe to use. Specifically, the result will include objects from all interpreters that
share their object allocator state (that is, ones cre... | Return a list of up to *limit* dynamically allocated Python objects. If *type* is given, only objects of that exact type (not subtypes) are included.
Objects from the list are not safe to use. Specifically, the result will include objects from all interpreters that
share their object allocator state (that is, ones cre... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a3bfb571-2fde-41c6-8272-73d181bc203b | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,158 | supabase-export-v2 | 01d1f7d7c3d70c52 | - :c:macro:`!FLT_ROUNDS` - An integer representing the rounding mode for floating-point arithmetic. This reflects the value of the system :c:macro:`!FLT_ROUNDS` macro at interpreter startup time:
* ``-1``: indeterminable
* ``0``: toward zero
* ``1``: to nearest
* ``2``: toward positive infinity
* ``3``: toward nega... | trusted_official_docs | CPython Docs | - :c:macro:`!FLT_ROUNDS` - An integer representing the rounding mode for floating-point arithmetic. This reflects the value of the system :c:macro:`!FLT_ROUNDS` macro at interpreter startup time:
* ``-1``: indeterminable
* ``0``: toward zero
* ``1``: to nearest
* ``2``: toward positive infinity
* ``3``: toward nega... | - :c:macro:`!FLT_ROUNDS` - An integer representing the rounding mode for floating-point arithmetic. This reflects the value of the system :c:macro:`!FLT_ROUNDS` macro at interpreter startup time:
* ``-1``: indeterminable
* ``0``: toward zero
* ``1``: to nearest
* ``2``: toward positive infinity
* ``3``: toward nega... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a4e0f91a-7e71-4c3c-8927-d34fc11c7c0e | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,344 | supabase-export-v2 | f8c084cfd71d0013 | .. function:: _jit.is_available()
Return ``True`` if the current Python executable supports JIT compilation,
and ``False`` otherwise. This can be controlled by building CPython with
the ``--experimental-jit`` option on Windows, and the
:option:`--enable-experimental-jit` option on all other platforms. | trusted_official_docs | CPython Docs | .. function:: _jit.is_available()
Return ``True`` if the current Python executable supports JIT compilation,
and ``False`` otherwise. This can be controlled by building CPython with
the ``--experimental-jit`` option on Windows, and the
:option:`--enable-experimental-jit` option on all other platforms. | .. function:: _jit.is_available()
Return ``True`` if the current Python executable supports JIT compilation,
and ``False`` otherwise. This can be controlled by building CPython with
the ``--experimental-jit`` option on Windows, and the
:option:`--enable-experimental-jit` option on all other platforms. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a500a0ab-e64e-4451-9d3a-1d05a71953a3 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,037 | supabase-export-v2 | 9ebb41618120474b | it drops you into the :mod:`pdb` debugger, but it can be set to any other function so that you can choose which debugger gets used.
The signature of this function is dependent on what it calls. For example,
the default binding (e.g. ``pdb.set_trace()``) expects no arguments, but
you might bind it to a function that e... | trusted_official_docs | CPython Docs | it drops you into the :mod:`pdb` debugger, but it can be set to any other function so that you can choose which debugger gets used.
The signature of this function is dependent on what it calls. For example,
the default binding (e.g. ``pdb.set_trace()``) expects no arguments, but
you might bind it to a function that e... | it drops you into the :mod:`pdb` debugger, but it can be set to any other function so that you can choose which debugger gets used.
The signature of this function is dependent on what it calls. For example,
the default binding (e.g. ``pdb.set_trace()``) expects no arguments, but
you might bind it to a function that e... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a52b848f-2790-48ad-aebb-6a085caa20a0 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,354 | supabase-export-v2 | d7192bea4ebef231 | .. code-block:: pycon
>>> for warmup in range(BIG_NUMBER):
... # This line is "hot", and is eventually JIT-compiled:
... if sys._jit.is_active():
... # This line is "cold", and is run in the interpreter:
... assert sys._jit.is_active()
... Traceback (most recent call last):
File "<stdin>", line 5, in <module>
as... | trusted_official_docs | CPython Docs | .. code-block:: pycon
>>> for warmup in range(BIG_NUMBER):
... # This line is "hot", and is eventually JIT-compiled:
... if sys._jit.is_active():
... # This line is "cold", and is run in the interpreter:
... assert sys._jit.is_active()
... Traceback (most recent call last):
File "<stdin>", line 5, in <module>
as... | .. code-block:: pycon
>>> for warmup in range(BIG_NUMBER):
... # This line is "hot", and is eventually JIT-compiled:
... if sys._jit.is_active():
... # This line is "cold", and is run in the interpreter:
... assert sys._jit.is_active()
... Traceback (most recent call last):
File "<stdin>", line 5, in <module>
as... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a58d3d43-a929-4c9f-b221-5147346893cc | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,324 | supabase-export-v2 | 2466d44dbac7a50d | .. data:: __interactivehook__
When this attribute exists, its value is automatically called (with no
arguments) when the interpreter is launched in :ref:`interactive mode
<tut-interactive>`. This is done after the :envvar:`PYTHONSTARTUP` file is
read, so that you can set this hook there. The :mod:`site` module
:ref... | trusted_official_docs | CPython Docs | .. data:: __interactivehook__
When this attribute exists, its value is automatically called (with no
arguments) when the interpreter is launched in :ref:`interactive mode
<tut-interactive>`. This is done after the :envvar:`PYTHONSTARTUP` file is
read, so that you can set this hook there. The :mod:`site` module
:ref... | .. data:: __interactivehook__
When this attribute exists, its value is automatically called (with no
arguments) when the interpreter is launched in :ref:`interactive mode
<tut-interactive>`. This is done after the :envvar:`PYTHONSTARTUP` file is
read, so that you can set this hook there. The :mod:`site` module
:ref... | python, official-docs, cpython, P0 | Local_Trusted_Corpus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.