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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
84f9444d-b9c0-4579-b2e5-5e4cdd7b56e7 | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,868 | supabase-export-v2 | 97599b0edc1ef07c | If *vars* is provided, it must be a dictionary of variables that will update the dictionary returned by :func:`get_config_vars`.
If *expand* is set to ``False``, the path will not be expanded using the
variables. | trusted_official_docs | CPython Docs | If *vars* is provided, it must be a dictionary of variables that will update the dictionary returned by :func:`get_config_vars`.
If *expand* is set to ``False``, the path will not be expanded using the
variables. | If *vars* is provided, it must be a dictionary of variables that will update the dictionary returned by :func:`get_config_vars`.
If *expand* is set to ``False``, the path will not be expanded using the
variables. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9442cf34-fe3e-45aa-aac8-9f46b885bdcd | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,829 | supabase-export-v2 | 849ec62b855de84b | Home scheme -----------
The idea behind the "home scheme" is that you build and maintain a personal
stash of Python modules. This scheme's name is derived from the idea of a
"home" directory on Unix, since it's not unusual for a Unix user to make their
home directory have a layout similar to :file:`/usr/` or :file:`/us... | trusted_official_docs | CPython Docs | Home scheme -----------
The idea behind the "home scheme" is that you build and maintain a personal
stash of Python modules. This scheme's name is derived from the idea of a
"home" directory on Unix, since it's not unusual for a Unix user to make their
home directory have a layout similar to :file:`/usr/` or :file:`/us... | Home scheme -----------
The idea behind the "home scheme" is that you build and maintain a personal
stash of Python modules. This scheme's name is derived from the idea of a
"home" directory on Unix, since it's not unusual for a Unix user to make their
home directory have a layout similar to :file:`/usr/` or :file:`/us... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9d868e01-e994-42cf-a329-7ae9aa2553a8 | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,797 | supabase-export-v2 | 66dc3f7eb5ccf87b | Configuration variables -----------------------
A Python distribution contains a :file:`Makefile` and a :file:`pyconfig.h`
header file that are necessary to build both the Python binary itself and
third-party C extensions compiled using ``setuptools``. | trusted_official_docs | CPython Docs | Configuration variables -----------------------
A Python distribution contains a :file:`Makefile` and a :file:`pyconfig.h`
header file that are necessary to build both the Python binary itself and
third-party C extensions compiled using ``setuptools``. | Configuration variables -----------------------
A Python distribution contains a :file:`Makefile` and a :file:`pyconfig.h`
header file that are necessary to build both the Python binary itself and
third-party C extensions compiled using ``setuptools``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ae517028-1944-477b-9ba3-7028cd20b41a | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,864 | supabase-export-v2 | 1a3bc726214c52c0 | *name* has to be a value from the list returned by :func:`get_path_names`.
:mod:`!sysconfig` stores installation paths corresponding to each path name,
for each platform, with variables to be expanded. For instance the *stdlib*
path for the *nt* scheme is: ``{base}/Lib``. | trusted_official_docs | CPython Docs | *name* has to be a value from the list returned by :func:`get_path_names`.
:mod:`!sysconfig` stores installation paths corresponding to each path name,
for each platform, with variables to be expanded. For instance the *stdlib*
path for the *nt* scheme is: ``{base}/Lib``. | *name* has to be a value from the list returned by :func:`get_path_names`.
:mod:`!sysconfig` stores installation paths corresponding to each path name,
for each platform, with variables to be expanded. For instance the *stdlib*
path for the *nt* scheme is: ``{base}/Lib``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b1e06e61-b583-4391-851f-0063266a681e | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,906 | supabase-export-v2 | 85406dcb8e96cf4a | Variables: AC_APPLE_UNIVERSAL_BUILD = "0" AIX_GENUINE_CPLUSPLUS = "0" AR = "ar" ARFLAGS = "rc" ...
This call will print in the standard output the information returned by
:func:`get_platform`, :func:`get_python_version`, :func:`get_path` and
:func:`get_config_vars`. | trusted_official_docs | CPython Docs | Variables: AC_APPLE_UNIVERSAL_BUILD = "0" AIX_GENUINE_CPLUSPLUS = "0" AR = "ar" ARFLAGS = "rc" ...
This call will print in the standard output the information returned by
:func:`get_platform`, :func:`get_python_version`, :func:`get_path` and
:func:`get_config_vars`. | Variables: AC_APPLE_UNIVERSAL_BUILD = "0" AIX_GENUINE_CPLUSPLUS = "0" AR = "ar" ARFLAGS = "rc" ...
This call will print in the standard output the information returned by
:func:`get_platform`, :func:`get_python_version`, :func:`get_path` and
:func:`get_config_vars`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b1f046cb-5a9d-43de-8fa4-d80b441945dc | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,819 | supabase-export-v2 | 42533c381f51515f | User scheme ---------------
This scheme is designed to be the most convenient solution for users that don't
have write permission to the global site-packages directory or don't want to
install into it. | trusted_official_docs | CPython Docs | User scheme ---------------
This scheme is designed to be the most convenient solution for users that don't
have write permission to the global site-packages directory or don't want to
install into it. | User scheme ---------------
This scheme is designed to be the most convenient solution for users that don't
have write permission to the global site-packages directory or don't want to
install into it. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c360c771-7b44-4b5e-b2e7-d2a1c43b7cf6 | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,816 | supabase-export-v2 | e9934ef96627fec1 | Each scheme is itself composed of a series of paths and each path has a unique identifier. Python currently uses eight paths:
- *stdlib*: directory containing the standard Python library files that are not
platform-specific. - *platstdlib*: directory containing the standard Python library files that are
platform-spec... | trusted_official_docs | CPython Docs | Each scheme is itself composed of a series of paths and each path has a unique identifier. Python currently uses eight paths:
- *stdlib*: directory containing the standard Python library files that are not
platform-specific. - *platstdlib*: directory containing the standard Python library files that are
platform-spec... | Each scheme is itself composed of a series of paths and each path has a unique identifier. Python currently uses eight paths:
- *stdlib*: directory containing the standard Python library files that are not
platform-specific. - *platstdlib*: directory containing the standard Python library files that are
platform-spec... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c703d7bb-c87e-4b4d-a497-9d7d7c013a80 | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,866 | supabase-export-v2 | 959a4f502bd9e918 | by :func:`get_config_vars` to expand the path. All variables have default values for each platform so one may call this function and get the default value.
If *scheme* is provided, it must be a value from the list returned by
:func:`get_scheme_names`. Otherwise, the default scheme for the current
platform is used. | trusted_official_docs | CPython Docs | by :func:`get_config_vars` to expand the path. All variables have default values for each platform so one may call this function and get the default value.
If *scheme* is provided, it must be a value from the list returned by
:func:`get_scheme_names`. Otherwise, the default scheme for the current
platform is used. | by :func:`get_config_vars` to expand the path. All variables have default values for each platform so one may call this function and get the default value.
If *scheme* is provided, it must be a value from the list returned by
:func:`get_scheme_names`. Otherwise, the default scheme for the current
platform is used. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d536f85c-43f5-42bf-8a8e-83118c719704 | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,894 | supabase-export-v2 | 884378abf9a78e53 | *fp* is a file-like object pointing to the :file:`config.h`\-like file.
A dictionary containing name/value pairs is returned. If an optional
dictionary is passed in as the second argument, it is used instead of a new
dictionary, and updated with the values read in the file. | trusted_official_docs | CPython Docs | *fp* is a file-like object pointing to the :file:`config.h`\-like file.
A dictionary containing name/value pairs is returned. If an optional
dictionary is passed in as the second argument, it is used instead of a new
dictionary, and updated with the values read in the file. | *fp* is a file-like object pointing to the :file:`config.h`\-like file.
A dictionary containing name/value pairs is returned. If an optional
dictionary is passed in as the second argument, it is used instead of a new
dictionary, and updated with the values read in the file. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d5c74156-02ac-4e50-a205-821632a605b9 | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,835 | supabase-export-v2 | 8f462f0a12dd875c | it is---that's why the user and home schemes come before. However, there are at least two known cases where the prefix scheme will be useful.
First, consider that many Linux distributions put Python in :file:`/usr`, rather
than the more traditional :file:`/usr/local`. This is entirely appropriate,
since in those cases ... | trusted_official_docs | CPython Docs | it is---that's why the user and home schemes come before. However, there are at least two known cases where the prefix scheme will be useful.
First, consider that many Linux distributions put Python in :file:`/usr`, rather
than the more traditional :file:`/usr/local`. This is entirely appropriate,
since in those cases ... | it is---that's why the user and home schemes come before. However, there are at least two known cases where the prefix scheme will be useful.
First, consider that many Linux distributions put Python in :file:`/usr`, rather
than the more traditional :file:`/usr/local`. This is entirely appropriate,
since in those cases ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d5cee4bb-7a84-4cb6-b447-fab60ab81789 | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,798 | supabase-export-v2 | 31cdbcf945f0afbb | contains a :file:`Makefile` and a :file:`pyconfig.h` header file that are necessary to build both the Python binary itself and third-party C extensions compiled using ``setuptools``.
:mod:`!sysconfig` puts all variables found in these files in a dictionary that
can be accessed using :func:`get_config_vars` or :func:`ge... | trusted_official_docs | CPython Docs | contains a :file:`Makefile` and a :file:`pyconfig.h` header file that are necessary to build both the Python binary itself and third-party C extensions compiled using ``setuptools``.
:mod:`!sysconfig` puts all variables found in these files in a dictionary that
can be accessed using :func:`get_config_vars` or :func:`ge... | contains a :file:`Makefile` and a :file:`pyconfig.h` header file that are necessary to build both the Python binary itself and third-party C extensions compiled using ``setuptools``.
:mod:`!sysconfig` puts all variables found in these files in a dictionary that
can be accessed using :func:`get_config_vars` or :func:`ge... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d903bdda-b880-4fd8-8e44-1a3939a34a79 | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,857 | supabase-export-v2 | 1fb65d774944a798 | e.g. provide different schemes for system and language package managers to use, so packages installed by either do not mix with those by the other.
End users should not use this function, but :func:`get_default_scheme` and
:func:`get_preferred_scheme` instead. | trusted_official_docs | CPython Docs | e.g. provide different schemes for system and language package managers to use, so packages installed by either do not mix with those by the other.
End users should not use this function, but :func:`get_default_scheme` and
:func:`get_preferred_scheme` instead. | e.g. provide different schemes for system and language package managers to use, so packages installed by either do not mix with those by the other.
End users should not use this function, but :func:`get_default_scheme` and
:func:`get_preferred_scheme` instead. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dddf5d88-7366-4a89-aa6a-ee54cce7059e | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,904 | supabase-export-v2 | db40ed0c7950ea52 | $ python -m sysconfig Platform: "macosx-10.4-i386" Python version: "3.2" Current installation scheme: "posix_prefix"
Paths:
data = "/usr/local"
include = "/Users/tarek/Dev/svn.python.org/py3k/Include"
platinclude = "."
platlib = "/usr/local/lib/python3.2/site-packages"
platstdlib = "/usr/local/lib/python3.2"
pure... | trusted_official_docs | CPython Docs | $ python -m sysconfig Platform: "macosx-10.4-i386" Python version: "3.2" Current installation scheme: "posix_prefix"
Paths:
data = "/usr/local"
include = "/Users/tarek/Dev/svn.python.org/py3k/Include"
platinclude = "."
platlib = "/usr/local/lib/python3.2/site-packages"
platstdlib = "/usr/local/lib/python3.2"
pure... | $ python -m sysconfig Platform: "macosx-10.4-i386" Python version: "3.2" Current installation scheme: "posix_prefix"
Paths:
data = "/usr/local"
include = "/Users/tarek/Dev/svn.python.org/py3k/Include"
platinclude = "."
platlib = "/usr/local/lib/python3.2/site-packages"
platstdlib = "/usr/local/lib/python3.2"
pure... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e77ed2f3-f305-4efc-a19e-9200e98b9a56 | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,856 | supabase-export-v2 | 7c025005723d8a39 | .. function:: _get_preferred_schemes()
Return a dict containing preferred scheme names on the current platform. Python implementers and redistributors may add their preferred schemes to
the ``_INSTALL_SCHEMES`` module-level global value, and modify this function
to return those scheme names, to e.g. provide different... | trusted_official_docs | CPython Docs | .. function:: _get_preferred_schemes()
Return a dict containing preferred scheme names on the current platform. Python implementers and redistributors may add their preferred schemes to
the ``_INSTALL_SCHEMES`` module-level global value, and modify this function
to return those scheme names, to e.g. provide different... | .. function:: _get_preferred_schemes()
Return a dict containing preferred scheme names on the current platform. Python implementers and redistributors may add their preferred schemes to
the ``_INSTALL_SCHEMES`` module-level global value, and modify this function
to return those scheme names, to e.g. provide different... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ecf3f59b-81d4-4ed1-860c-f83025f730f1 | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,874 | supabase-export-v2 | 550e5b6f774901c8 | If *vars* is provided, it must be a dictionary of variables that will update the dictionary used to expand the paths.
If *expand* is set to false, the paths will not be expanded. | trusted_official_docs | CPython Docs | If *vars* is provided, it must be a dictionary of variables that will update the dictionary used to expand the paths.
If *expand* is set to false, the paths will not be expanded. | If *vars* is provided, it must be a dictionary of variables that will update the dictionary used to expand the paths.
If *expand* is set to false, the paths will not be expanded. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f11f9df4-b25b-4969-bbe8-0a81c05768a6 | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,905 | supabase-export-v2 | 81bd73690647a31d | Paths: data = "/usr/local" include = "/Users/tarek/Dev/svn.python.org/py3k/Include" platinclude = "." platlib = "/usr/local/lib/python3.2/site-packages" platstdlib = "/usr/local/lib/python3.2" purelib = "/usr/local/lib/python3.2/site-packages" scripts = "/usr/local/bin" stdlib = "/usr/local/lib/python3.2"
Variables:
A... | trusted_official_docs | CPython Docs | Paths: data = "/usr/local" include = "/Users/tarek/Dev/svn.python.org/py3k/Include" platinclude = "." platlib = "/usr/local/lib/python3.2/site-packages" platstdlib = "/usr/local/lib/python3.2" purelib = "/usr/local/lib/python3.2/site-packages" scripts = "/usr/local/bin" stdlib = "/usr/local/lib/python3.2"
Variables:
A... | Paths: data = "/usr/local" include = "/Users/tarek/Dev/svn.python.org/py3k/Include" platinclude = "." platlib = "/usr/local/lib/python3.2/site-packages" platstdlib = "/usr/local/lib/python3.2" purelib = "/usr/local/lib/python3.2/site-packages" scripts = "/usr/local/bin" stdlib = "/usr/local/lib/python3.2"
Variables:
A... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f2e6df25-1004-4471-bed5-904c0345419c | CPython Docs | file://datasets/cpython/Doc/library/sysconfig.rst | unknown | 2e7d75b2-9f0f-4f3e-8911-4e72bf97e213 | 12,812 | supabase-export-v2 | 9bf095030dfc3aa3 | :mod:`!sysconfig` under unique identifiers based on the value returned by :const:`os.name`. The schemes are used by package installers to determine where to copy files to.
Python currently supports nine schemes: | trusted_official_docs | CPython Docs | :mod:`!sysconfig` under unique identifiers based on the value returned by :const:`os.name`. The schemes are used by package installers to determine where to copy files to.
Python currently supports nine schemes: | :mod:`!sysconfig` under unique identifiers based on the value returned by :const:`os.name`. The schemes are used by package installers to determine where to copy files to.
Python currently supports nine schemes: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1752cc5b-e02c-4bf0-90bd-30945b3fa1b6 | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,929 | supabase-export-v2 | f110a664aea07e68 | be written to the file. The object will not be properly read back by :func:`load`. :ref:`Code objects <code-objects>` are only supported if *allow_code* is true.
The *version* argument indicates the data format that ``dump`` should use
(see below). | trusted_official_docs | CPython Docs | be written to the file. The object will not be properly read back by :func:`load`. :ref:`Code objects <code-objects>` are only supported if *allow_code* is true.
The *version* argument indicates the data format that ``dump`` should use
(see below). | be written to the file. The object will not be properly read back by :func:`load`. :ref:`Code objects <code-objects>` are only supported if *allow_code* is true.
The *version* argument indicates the data format that ``dump`` should use
(see below). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
192162ed-58cd-4b81-9ecf-4b96ad1fa522 | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,912 | supabase-export-v2 | 2d9518be1abae708 | .. index:: pair: module; pickle pair: module; shelve
This is not a general "persistence" module. For general persistence and
transfer of Python objects through RPC calls, see the modules :mod:`pickle` and
:mod:`shelve`. The :mod:`!marshal` module exists mainly to support reading and
writing the "pseudo-compiled" code f... | trusted_official_docs | CPython Docs | .. index:: pair: module; pickle pair: module; shelve
This is not a general "persistence" module. For general persistence and
transfer of Python objects through RPC calls, see the modules :mod:`pickle` and
:mod:`shelve`. The :mod:`!marshal` module exists mainly to support reading and
writing the "pseudo-compiled" code f... | .. index:: pair: module; pickle pair: module; shelve
This is not a general "persistence" module. For general persistence and
transfer of Python objects through RPC calls, see the modules :mod:`pickle` and
:mod:`shelve`. The :mod:`!marshal` module exists mainly to support reading and
writing the "pseudo-compiled" code f... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2ece69ad-d16a-45b8-9cef-670c3d1f26b4 | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,953 | supabase-export-v2 | aba19f29d8731bbb | .. data:: version
Indicates the format that the module uses. Version 0 is the historical first version; subsequent versions
add new features. Generally, a new version becomes the default when it is introduced. | trusted_official_docs | CPython Docs | .. data:: version
Indicates the format that the module uses. Version 0 is the historical first version; subsequent versions
add new features. Generally, a new version becomes the default when it is introduced. | .. data:: version
Indicates the format that the module uses. Version 0 is the historical first version; subsequent versions
add new features. Generally, a new version becomes the default when it is introduced. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
33812ff3-c8c6-4921-b0e8-e14d86b135ad | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,917 | supabase-export-v2 | 3d0329063ee813e9 | .. index:: object; code, code object
Not all Python object types are supported; in general, only objects whose value
is independent from a particular invocation of Python can be written and read by
this module. The following types are supported: | trusted_official_docs | CPython Docs | .. index:: object; code, code object
Not all Python object types are supported; in general, only objects whose value
is independent from a particular invocation of Python can be written and read by
this module. The following types are supported: | .. index:: object; code, code object
Not all Python object types are supported; in general, only objects whose value
is independent from a particular invocation of Python can be written and read by
this module. The following types are supported: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
45de4ca0-099b-40ab-92e1-97fc81275ec4 | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,915 | supabase-export-v2 | 38684cc31d06db28 | The :mod:`!marshal` module is not intended to be secure against erroneous or maliciously constructed data. Never unmarshal data received from an untrusted or unauthenticated source.
There are functions that read/write files as well as functions operating on
bytes-like objects. | trusted_official_docs | CPython Docs | The :mod:`!marshal` module is not intended to be secure against erroneous or maliciously constructed data. Never unmarshal data received from an untrusted or unauthenticated source.
There are functions that read/write files as well as functions operating on
bytes-like objects. | The :mod:`!marshal` module is not intended to be secure against erroneous or maliciously constructed data. Never unmarshal data received from an untrusted or unauthenticated source.
There are functions that read/write files as well as functions operating on
bytes-like objects. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
54fd196d-ced5-47a3-ba73-4e058c79c0e7 | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,918 | supabase-export-v2 | 68d0e36681093946 | only objects whose value is independent from a particular invocation of Python can be written and read by this module. The following types are supported:
* Numeric types: :class:`int`, :class:`bool`, :class:`float`, :class:`complex`. * Strings (:class:`str`) and :class:`bytes`. :term:`Bytes-like objects <bytes-like obj... | trusted_official_docs | CPython Docs | only objects whose value is independent from a particular invocation of Python can be written and read by this module. The following types are supported:
* Numeric types: :class:`int`, :class:`bool`, :class:`float`, :class:`complex`. * Strings (:class:`str`) and :class:`bytes`. :term:`Bytes-like objects <bytes-like obj... | only objects whose value is independent from a particular invocation of Python can be written and read by this module. The following types are supported:
* Numeric types: :class:`int`, :class:`bool`, :class:`float`, :class:`complex`. * Strings (:class:`str`) and :class:`bytes`. :term:`Bytes-like objects <bytes-like obj... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
585815b7-21e7-407a-a34a-cb02daf1211b | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,947 | supabase-export-v2 | 79d008b58b0ff36c | value is found, raise :exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. :ref:`Code objects <code-objects>` are only supported if *allow_code* is true. Extra bytes in the input are ignored.
.. audit-event:: marshal.loads bytes marshal.load | trusted_official_docs | CPython Docs | value is found, raise :exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. :ref:`Code objects <code-objects>` are only supported if *allow_code* is true. Extra bytes in the input are ignored.
.. audit-event:: marshal.loads bytes marshal.load | value is found, raise :exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. :ref:`Code objects <code-objects>` are only supported if *allow_code* is true. Extra bytes in the input are ignored.
.. audit-event:: marshal.loads bytes marshal.load | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6ccb7003-17b6-44b1-8253-c392901883ac | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,911 | supabase-export-v2 | f39aefaf7e578078 | Mac, and read it back there). Details of the format are undocumented on purpose; it may change between Python versions (although it rarely does). [#]_
.. index::
pair: module; pickle
pair: module; shelve | trusted_official_docs | CPython Docs | Mac, and read it back there). Details of the format are undocumented on purpose; it may change between Python versions (although it rarely does). [#]_
.. index::
pair: module; pickle
pair: module; shelve | Mac, and read it back there). Details of the format are undocumented on purpose; it may change between Python versions (although it rarely does). [#]_
.. index::
pair: module; pickle
pair: module; shelve | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8c477cf4-fded-4907-80f8-e6122c55ff46 | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,934 | supabase-export-v2 | bfe0f81052e1675e | marshal format), raise :exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. :ref:`Code objects <code-objects>` are only supported if *allow_code* is true. The file must be a readable :term:`binary file`.
.. audit-event:: marshal.load "" marshal.load | trusted_official_docs | CPython Docs | marshal format), raise :exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. :ref:`Code objects <code-objects>` are only supported if *allow_code* is true. The file must be a readable :term:`binary file`.
.. audit-event:: marshal.load "" marshal.load | marshal format), raise :exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. :ref:`Code objects <code-objects>` are only supported if *allow_code* is true. The file must be a readable :term:`binary file`.
.. audit-event:: marshal.load "" marshal.load | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
96a05f0e-e327-4f2d-999b-4b024016a48c | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,939 | supabase-export-v2 | ee4880fa1af1b4bd | This call used to raise a ``code.__new__`` audit event for each code object. Now it raises a single ``marshal.load`` event for the entire load operation.
.. versionchanged:: 3.13
Added the *allow_code* parameter. | trusted_official_docs | CPython Docs | This call used to raise a ``code.__new__`` audit event for each code object. Now it raises a single ``marshal.load`` event for the entire load operation.
.. versionchanged:: 3.13
Added the *allow_code* parameter. | This call used to raise a ``code.__new__`` audit event for each code object. Now it raises a single ``marshal.load`` event for the entire load operation.
.. versionchanged:: 3.13
Added the *allow_code* parameter. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
98edada6-c7ef-4268-bedb-2d43522e13b5 | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,950 | supabase-export-v2 | b4238dd2dc7ffc0d | This call used to raise a ``code.__new__`` audit event for each code object. Now it raises a single ``marshal.loads`` event for the entire load operation.
.. versionchanged:: 3.13
Added the *allow_code* parameter. | trusted_official_docs | CPython Docs | This call used to raise a ``code.__new__`` audit event for each code object. Now it raises a single ``marshal.loads`` event for the entire load operation.
.. versionchanged:: 3.13
Added the *allow_code* parameter. | This call used to raise a ``code.__new__`` audit event for each code object. Now it raises a single ``marshal.loads`` event for the entire load operation.
.. versionchanged:: 3.13
Added the *allow_code* parameter. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a245301c-d5ae-4f1c-8c93-ec7a73f05fea | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,928 | supabase-export-v2 | 21508158ad29bd41 | Write the value on the open file. The value must be a supported type. The file must be a writeable :term:`binary file`.
If the value has (or contains an object that has) an unsupported type, a
:exc:`ValueError` exception is raised --- but garbage data will also be written
to the file. The object will not be properly ... | trusted_official_docs | CPython Docs | Write the value on the open file. The value must be a supported type. The file must be a writeable :term:`binary file`.
If the value has (or contains an object that has) an unsupported type, a
:exc:`ValueError` exception is raised --- but garbage data will also be written
to the file. The object will not be properly ... | Write the value on the open file. The value must be a supported type. The file must be a writeable :term:`binary file`.
If the value has (or contains an object that has) an unsupported type, a
:exc:`ValueError` exception is raised --- but garbage data will also be written
to the file. The object will not be properly ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a401569b-6a05-463e-bd44-d312eab1bcae | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,933 | supabase-export-v2 | 86170a116f298c36 | .. function:: load(file, /, *, allow_code=True)
Read one value from the open file and return it. If no valid value is read
(e.g. because the data has a different Python version's incompatible marshal
format), raise :exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. :ref:`Code objects <code-objects>` are only sup... | trusted_official_docs | CPython Docs | .. function:: load(file, /, *, allow_code=True)
Read one value from the open file and return it. If no valid value is read
(e.g. because the data has a different Python version's incompatible marshal
format), raise :exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. :ref:`Code objects <code-objects>` are only sup... | .. function:: load(file, /, *, allow_code=True)
Read one value from the open file and return it. If no valid value is read
(e.g. because the data has a different Python version's incompatible marshal
format), raise :exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. :ref:`Code objects <code-objects>` are only sup... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a4dd9719-a130-46e7-ae37-8bd0d75b9bbf | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,954 | supabase-export-v2 | 71604e7eb3b17d18 | module uses. Version 0 is the historical first version; subsequent versions add new features. Generally, a new version becomes the default when it is introduced.
======= =============== ====================================================
Version Available since New features
======= =============== ==================... | trusted_official_docs | CPython Docs | module uses. Version 0 is the historical first version; subsequent versions add new features. Generally, a new version becomes the default when it is introduced.
======= =============== ====================================================
Version Available since New features
======= =============== ==================... | module uses. Version 0 is the historical first version; subsequent versions add new features. Generally, a new version becomes the default when it is introduced.
======= =============== ====================================================
Version Available since New features
======= =============== ==================... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cb503fb6-ddc4-4367-bb79-d078945d85c4 | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,946 | supabase-export-v2 | cb24c07708a67568 | .. function:: loads(bytes, /, *, allow_code=True)
Convert the :term:`bytes-like object` to a value. If no valid value is found, raise
:exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. :ref:`Code objects <code-objects>` are only supported if *allow_code* is true. Extra bytes in the input are ignored. | trusted_official_docs | CPython Docs | .. function:: loads(bytes, /, *, allow_code=True)
Convert the :term:`bytes-like object` to a value. If no valid value is found, raise
:exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. :ref:`Code objects <code-objects>` are only supported if *allow_code* is true. Extra bytes in the input are ignored. | .. function:: loads(bytes, /, *, allow_code=True)
Convert the :term:`bytes-like object` to a value. If no valid value is found, raise
:exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. :ref:`Code objects <code-objects>` are only supported if *allow_code* is true. Extra bytes in the input are ignored. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d753489c-60ce-4dd3-b02f-9b896aec7751 | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,956 | supabase-export-v2 | 4bbe2b8fd35fd977 | .. rubric:: Footnotes
.. [#] The name of this module stems from a bit of terminology used by the designers of
Modula-3 (amongst others), who use the term "marshalling" for shipping of data
around in a self-contained form. Strictly speaking, "to marshal" means to
convert some data from internal to external form (in a... | trusted_official_docs | CPython Docs | .. rubric:: Footnotes
.. [#] The name of this module stems from a bit of terminology used by the designers of
Modula-3 (amongst others), who use the term "marshalling" for shipping of data
around in a self-contained form. Strictly speaking, "to marshal" means to
convert some data from internal to external form (in a... | .. rubric:: Footnotes
.. [#] The name of this module stems from a bit of terminology used by the designers of
Modula-3 (amongst others), who use the term "marshalling" for shipping of data
around in a self-contained form. Strictly speaking, "to marshal" means to
convert some data from internal to external form (in a... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d856ceb7-4165-4e30-88ad-4b11d34610fc | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,927 | supabase-export-v2 | 4b4118c5775a1277 | .. function:: dump(value, file, version=version, /, *, allow_code=True)
Write the value on the open file. The value must be a supported type. The
file must be a writeable :term:`binary file`. | trusted_official_docs | CPython Docs | .. function:: dump(value, file, version=version, /, *, allow_code=True)
Write the value on the open file. The value must be a supported type. The
file must be a writeable :term:`binary file`. | .. function:: dump(value, file, version=version, /, *, allow_code=True)
Write the value on the open file. The value must be a supported type. The
file must be a writeable :term:`binary file`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
da739642-1ccc-4546-a397-53662d528d0f | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,910 | supabase-export-v2 | 7a38429873e77684 | --------------
This module contains functions that can read and write Python values in a binary
format. The format is specific to Python, but independent of machine
architecture issues (e.g., you can write a Python value to a file on a PC,
transport the file to a Mac, and read it back there). Details of the format are
... | trusted_official_docs | CPython Docs | --------------
This module contains functions that can read and write Python values in a binary
format. The format is specific to Python, but independent of machine
architecture issues (e.g., you can write a Python value to a file on a PC,
transport the file to a Mac, and read it back there). Details of the format are
... | --------------
This module contains functions that can read and write Python values in a binary
format. The format is specific to Python, but independent of machine
architecture issues (e.g., you can write a Python value to a file on a PC,
transport the file to a Mac, and read it back there). Details of the format are
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f122f157-a397-434b-8b15-8720eb47db2d | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,941 | supabase-export-v2 | 1b83b462262c6348 | .. function:: dumps(value, version=version, /, *, allow_code=True)
Return the bytes object that would be written to a file by ``dump(value, file)``. The
value must be a supported type. Raise a :exc:`ValueError` exception if value
has (or contains an object that has) an unsupported type. :ref:`Code objects <code-objec... | trusted_official_docs | CPython Docs | .. function:: dumps(value, version=version, /, *, allow_code=True)
Return the bytes object that would be written to a file by ``dump(value, file)``. The
value must be a supported type. Raise a :exc:`ValueError` exception if value
has (or contains an object that has) an unsupported type. :ref:`Code objects <code-objec... | .. function:: dumps(value, version=version, /, *, allow_code=True)
Return the bytes object that would be written to a file by ``dump(value, file)``. The
value must be a supported type. Raise a :exc:`ValueError` exception if value
has (or contains an object that has) an unsupported type. :ref:`Code objects <code-objec... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fdf6b836-d333-4a98-9186-8f2aa17397b3 | CPython Docs | file://datasets/cpython/Doc/library/marshal.rst | unknown | dc36ac33-c6b9-44a5-9e55-b2216354dda4 | 12,942 | supabase-export-v2 | a8d54dd99fb37752 | a :exc:`ValueError` exception if value has (or contains an object that has) an unsupported type. :ref:`Code objects <code-objects>` are only supported if *allow_code* is true.
The *version* argument indicates the data format that ``dumps`` should use
(see below). | trusted_official_docs | CPython Docs | a :exc:`ValueError` exception if value has (or contains an object that has) an unsupported type. :ref:`Code objects <code-objects>` are only supported if *allow_code* is true.
The *version* argument indicates the data format that ``dumps`` should use
(see below). | a :exc:`ValueError` exception if value has (or contains an object that has) an unsupported type. :ref:`Code objects <code-objects>` are only supported if *allow_code* is true.
The *version* argument indicates the data format that ``dumps`` should use
(see below). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
01d58800-fcab-4b38-8fb2-b8c50eaa0573 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,519 | supabase-export-v2 | 6010b724080b26dc | Executes *script*, a file containing Python code in the remote process with the given *pid*.
This function returns immediately, and the code will be executed by the
target process's main thread at the next available opportunity, similarly
to how signals are handled. There is no interface to determine when the
code h... | trusted_official_docs | CPython Docs | Executes *script*, a file containing Python code in the remote process with the given *pid*.
This function returns immediately, and the code will be executed by the
target process's main thread at the next available opportunity, similarly
to how signals are handled. There is no interface to determine when the
code h... | Executes *script*, a file containing Python code in the remote process with the given *pid*.
This function returns immediately, and the code will be executed by the
target process's main thread at the next available opportunity, similarly
to how signals are handled. There is no interface to determine when the
code h... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
02290f28-3633-413f-91bb-23792d3bc273 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,547 | supabase-export-v2 | eb32b548b496cc48 | To write or read binary data from/to the standard streams, use the underlying binary :data:`~io.TextIOBase.buffer` object. For example, to write bytes to :data:`stdout`, use ``sys.stdout.buffer.write(b'abc')``.
However, if you are writing a library (and do not control in which
context its code will be executed), be aw... | trusted_official_docs | CPython Docs | To write or read binary data from/to the standard streams, use the underlying binary :data:`~io.TextIOBase.buffer` object. For example, to write bytes to :data:`stdout`, use ``sys.stdout.buffer.write(b'abc')``.
However, if you are writing a library (and do not control in which
context its code will be executed), be aw... | To write or read binary data from/to the standard streams, use the underlying binary :data:`~io.TextIOBase.buffer` object. For example, to write bytes to :data:`stdout`, use ``sys.stdout.buffer.write(b'abc')``.
However, if you are writing a library (and do not control in which
context its code will be executed), be aw... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
02750cc2-722e-4f32-9a17-adedeeb9515c | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,217 | supabase-export-v2 | b94bf8e36bed5d66 | of object. All built-in objects will return correct results, but this does not have to hold true for third-party extensions as it is implementation specific.
Only the memory consumption directly attributed to the object is
accounted for, not the memory consumption of objects it refers to. | trusted_official_docs | CPython Docs | of object. All built-in objects will return correct results, but this does not have to hold true for third-party extensions as it is implementation specific.
Only the memory consumption directly attributed to the object is
accounted for, not the memory consumption of objects it refers to. | of object. All built-in objects will return correct results, but this does not have to hold true for third-party extensions as it is implementation specific.
Only the memory consumption directly attributed to the object is
accounted for, not the memory consumption of objects it refers to. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
02e7193c-26bd-437b-b1ff-a10b6ca931e6 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,054 | supabase-export-v2 | 81e78357868d45a0 | Pseudo-code::
def displayhook(value):
if value is None:
return
# Set '_' to None to avoid recursion
builtins._ = None
text = repr(value)
try:
sys.stdout.write(text)
except UnicodeEncodeError:
bytes = text.encode(sys.stdout.encoding, 'backslashreplace')
if hasattr(sys.stdout, 'buffer'):
sys.stdout.buffer.writ... | trusted_official_docs | CPython Docs | Pseudo-code::
def displayhook(value):
if value is None:
return
# Set '_' to None to avoid recursion
builtins._ = None
text = repr(value)
try:
sys.stdout.write(text)
except UnicodeEncodeError:
bytes = text.encode(sys.stdout.encoding, 'backslashreplace')
if hasattr(sys.stdout, 'buffer'):
sys.stdout.buffer.writ... | Pseudo-code::
def displayhook(value):
if value is None:
return
# Set '_' to None to avoid recursion
builtins._ = None
text = repr(value)
try:
sys.stdout.write(text)
except UnicodeEncodeError:
bytes = text.encode(sys.stdout.encoding, 'backslashreplace')
if hasattr(sys.stdout, 'buffer'):
sys.stdout.buffer.writ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
02f76403-ca0d-415c-b78b-f170e1cccfe3 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,453 | supabase-export-v2 | 751d8a682cfd8d3e | of multiple threads. Also, its return value is not used, so it can simply return ``None``. Error in the profile function will cause itself unset.
.. note::
The 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 debug... | trusted_official_docs | CPython Docs | of multiple threads. Also, its return value is not used, so it can simply return ``None``. Error in the profile function will cause itself unset.
.. note::
The 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 debug... | of multiple threads. Also, its return value is not used, so it can simply return ``None``. Error in the profile function will cause itself unset.
.. note::
The 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 debug... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0313fb81-fb30-42b7-a175-3b2f61922321 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,149 | supabase-export-v2 | 2c7b9e7885e409e4 | * - .. attribute:: float_info.mant_dig - :c:macro:`!DBL_MANT_DIG` - Float precision: the number of base-``radix`` digits in the significand of a float.
* - .. attribute:: float_info.max
- :c:macro:`!DBL_MAX`
- The maximum representable positive finite float. | trusted_official_docs | CPython Docs | * - .. attribute:: float_info.mant_dig - :c:macro:`!DBL_MANT_DIG` - Float precision: the number of base-``radix`` digits in the significand of a float.
* - .. attribute:: float_info.max
- :c:macro:`!DBL_MAX`
- The maximum representable positive finite float. | * - .. attribute:: float_info.mant_dig - :c:macro:`!DBL_MANT_DIG` - Float precision: the number of base-``radix`` digits in the significand of a float.
* - .. attribute:: float_info.max
- :c:macro:`!DBL_MAX`
- The maximum representable positive finite float. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0324883d-06da-454a-915f-abdb05d1939e | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,477 | supabase-export-v2 | 3bfafe76f603151a | If there is any error occurred in the trace function, it will be unset, just like ``settrace(None)`` is called.
.. note::
Tracing is disabled while calling the trace function (e.g. a function set by
:func:`!settrace`). For recursive tracing see :func:`call_tracing`. | trusted_official_docs | CPython Docs | If there is any error occurred in the trace function, it will be unset, just like ``settrace(None)`` is called.
.. note::
Tracing is disabled while calling the trace function (e.g. a function set by
:func:`!settrace`). For recursive tracing see :func:`call_tracing`. | If there is any error occurred in the trace function, it will be unset, just like ``settrace(None)`` is called.
.. note::
Tracing is disabled while calling the trace function (e.g. a function set by
:func:`!settrace`). For recursive tracing see :func:`call_tracing`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
03566aa8-2ef4-4703-a96e-c627c5dbdd71 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 12,962 | supabase-export-v2 | 5b2774870b014213 | .. versionadded:: 3.15
An object containing information about the ABI of the currently running
Python interpreter. It should include information that affect the CPython ABI in ways that
require a specific build of the interpreter chosen from variants that can
co-exist on a single machine. For example, it does not en... | trusted_official_docs | CPython Docs | .. versionadded:: 3.15
An object containing information about the ABI of the currently running
Python interpreter. It should include information that affect the CPython ABI in ways that
require a specific build of the interpreter chosen from variants that can
co-exist on a single machine. For example, it does not en... | .. versionadded:: 3.15
An object containing information about the ABI of the currently running
Python interpreter. It should include information that affect the CPython ABI in ways that
require a specific build of the interpreter chosen from variants that can
co-exist on a single machine. For example, it does not en... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
03e472a2-8d90-4e73-bb7c-4601d2966220 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 12,998 | supabase-export-v2 | a149a43d6183351a | allows hook implementations to decide how to respond to particular events: they can merely log the event or abort the operation by raising an exception.
Hooks are added using the :func:`sys.addaudithook` or
:c:func:`PySys_AddAuditHook` functions. | trusted_official_docs | CPython Docs | allows hook implementations to decide how to respond to particular events: they can merely log the event or abort the operation by raising an exception.
Hooks are added using the :func:`sys.addaudithook` or
:c:func:`PySys_AddAuditHook` functions. | allows hook implementations to decide how to respond to particular events: they can merely log the event or abort the operation by raising an exception.
Hooks are added using the :func:`sys.addaudithook` or
:c:func:`PySys_AddAuditHook` functions. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
072fc37f-fb5c-43c3-a214-0bce82338b4e | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,038 | supabase-export-v2 | eb043aa29a26d3d6 | that expects additional arguments (positional and/or keyword). The built-in ``breakpoint()`` function passes its ``*args`` and ``**kws`` straight through. Whatever ``breakpointhooks()`` returns is returned from ``breakpoint()``.
The default implementation first consults the environment variable
:envvar:`PYTHONBREAKPOI... | trusted_official_docs | CPython Docs | that expects additional arguments (positional and/or keyword). The built-in ``breakpoint()`` function passes its ``*args`` and ``**kws`` straight through. Whatever ``breakpointhooks()`` returns is returned from ``breakpoint()``.
The default implementation first consults the environment variable
:envvar:`PYTHONBREAKPOI... | that expects additional arguments (positional and/or keyword). The built-in ``breakpoint()`` function passes its ``*args`` and ``**kws`` straight through. Whatever ``breakpointhooks()`` returns is returned from ``breakpoint()``.
The default implementation first consults the environment variable
:envvar:`PYTHONBREAKPOI... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
073cdc4e-d334-491b-9e3f-3996f83f3998 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,468 | supabase-export-v2 | d4c114d24af3b38a | .. function:: setswitchinterval(interval)
Set the interpreter's thread switch interval (in seconds). This floating-point
value determines the ideal duration of the "timeslices" allocated to
concurrently running Python threads. Please note that the actual value
can be higher, especially if long-running internal funct... | trusted_official_docs | CPython Docs | .. function:: setswitchinterval(interval)
Set the interpreter's thread switch interval (in seconds). This floating-point
value determines the ideal duration of the "timeslices" allocated to
concurrently running Python threads. Please note that the actual value
can be higher, especially if long-running internal funct... | .. function:: setswitchinterval(interval)
Set the interpreter's thread switch interval (in seconds). This floating-point
value determines the ideal duration of the "timeslices" allocated to
concurrently running Python threads. Please note that the actual value
can be higher, especially if long-running internal funct... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0747c190-7c8f-4e91-85e4-a993836d17a0 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,295 | supabase-export-v2 | 9e9fc3c1462b4558 | if sys.hexversion >= 0x010502F0: # use some advanced feature ... else: # use an alternative implementation or warn the user ...
This is called ``hexversion`` since it only really looks meaningful when viewed
as the result of passing it to the built-in :func:`hex` function. The
:term:`named tuple` :data:`sys.version_i... | trusted_official_docs | CPython Docs | if sys.hexversion >= 0x010502F0: # use some advanced feature ... else: # use an alternative implementation or warn the user ...
This is called ``hexversion`` since it only really looks meaningful when viewed
as the result of passing it to the built-in :func:`hex` function. The
:term:`named tuple` :data:`sys.version_i... | if sys.hexversion >= 0x010502F0: # use some advanced feature ... else: # use an alternative implementation or warn the user ...
This is called ``hexversion`` since it only really looks meaningful when viewed
as the result of passing it to the built-in :func:`hex` function. The
:term:`named tuple` :data:`sys.version_i... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
075a61bf-a218-4d3a-bdc6-775cd93cc9a6 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,154 | supabase-export-v2 | ff954791d7bd9e39 | Use :func:`math.ulp(0.0) <math.ulp>` to get the smallest positive *denormalized* representable float.
* - .. attribute:: float_info.min_exp
- :c:macro:`!DBL_MIN_EXP`
- The minimum integer *e* such that ``radix**(e-1)`` is a normalized
float. | trusted_official_docs | CPython Docs | Use :func:`math.ulp(0.0) <math.ulp>` to get the smallest positive *denormalized* representable float.
* - .. attribute:: float_info.min_exp
- :c:macro:`!DBL_MIN_EXP`
- The minimum integer *e* such that ``radix**(e-1)`` is a normalized
float. | Use :func:`math.ulp(0.0) <math.ulp>` to get the smallest positive *denormalized* representable float.
* - .. attribute:: float_info.min_exp
- :c:macro:`!DBL_MIN_EXP`
- The minimum integer *e* such that ``radix**(e-1)`` is a normalized
float. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
09930810-3865-438f-b2d9-fc698051c1e1 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,405 | supabase-export-v2 | b491bdafa8f2d008 | value ================ =========================== AIX ``'aix'`` Android ``'android'`` Emscripten ``'emscripten'`` FreeBSD ``'freebsd'`` iOS ``'ios'`` Linux ``'linux'`` macOS ``'darwin'`` Windows ``'win32'`` Windows/Cygwin ``'cygwin'`` WASI ``'wasi'`` ================ ===========================
On Unix systems not lis... | trusted_official_docs | CPython Docs | value ================ =========================== AIX ``'aix'`` Android ``'android'`` Emscripten ``'emscripten'`` FreeBSD ``'freebsd'`` iOS ``'ios'`` Linux ``'linux'`` macOS ``'darwin'`` Windows ``'win32'`` Windows/Cygwin ``'cygwin'`` WASI ``'wasi'`` ================ ===========================
On Unix systems not lis... | value ================ =========================== AIX ``'aix'`` Android ``'android'`` Emscripten ``'emscripten'`` FreeBSD ``'freebsd'`` iOS ``'ios'`` Linux ``'linux'`` macOS ``'darwin'`` Windows ``'win32'`` Windows/Cygwin ``'cygwin'`` WASI ``'wasi'`` ================ ===========================
On Unix systems not lis... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
09a44fea-625b-4d75-826b-22da519888fd | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,406 | supabase-export-v2 | 595a574398a44eb8 | the time when Python was built*. Unless you want to test for a specific system version, it is therefore recommended to use the following idiom::
if sys.platform.startswith('sunos'):
# SunOS-specific code here... | trusted_official_docs | CPython Docs | the time when Python was built*. Unless you want to test for a specific system version, it is therefore recommended to use the following idiom::
if sys.platform.startswith('sunos'):
# SunOS-specific code here... | the time when Python was built*. Unless you want to test for a specific system version, it is therefore recommended to use the following idiom::
if sys.platform.startswith('sunos'):
# SunOS-specific code here... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0a4add85-7aa4-4431-aa6d-7d01a0d0f449 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,150 | supabase-export-v2 | c8ee9599b5bb0df4 | * - .. attribute:: float_info.max - :c:macro:`!DBL_MAX` - The maximum representable positive finite float.
* - .. attribute:: float_info.max_exp
- :c:macro:`!DBL_MAX_EXP`
- The maximum integer *e* such that ``radix**(e-1)`` is a representable
finite float. | trusted_official_docs | CPython Docs | * - .. attribute:: float_info.max - :c:macro:`!DBL_MAX` - The maximum representable positive finite float.
* - .. attribute:: float_info.max_exp
- :c:macro:`!DBL_MAX_EXP`
- The maximum integer *e* such that ``radix**(e-1)`` is a representable
finite float. | * - .. attribute:: float_info.max - :c:macro:`!DBL_MAX` - The maximum representable positive finite float.
* - .. attribute:: float_info.max_exp
- :c:macro:`!DBL_MAX_EXP`
- The maximum integer *e* such that ``radix**(e-1)`` is a representable
finite float. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0a863eec-453a-45bf-a2cf-4606568e417e | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,436 | supabase-export-v2 | fdeb108f7836cfe6 | with the ``lazy`` keyword are lazy * ``"all"``: All top-level imports become potentially lazy * ``"none"``: All lazy imports are suppressed (even explicitly marked ones)
This function is intended for advanced users who need to control lazy
imports across their entire application. Library developers should
generally n... | trusted_official_docs | CPython Docs | with the ``lazy`` keyword are lazy * ``"all"``: All top-level imports become potentially lazy * ``"none"``: All lazy imports are suppressed (even explicitly marked ones)
This function is intended for advanced users who need to control lazy
imports across their entire application. Library developers should
generally n... | with the ``lazy`` keyword are lazy * ``"all"``: All top-level imports become potentially lazy * ``"none"``: All lazy imports are suppressed (even explicitly marked ones)
This function is intended for advanced users who need to control lazy
imports across their entire application. Library developers should
generally n... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0c02119b-44e2-46f8-9a4f-ced661c5a632 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,205 | supabase-export-v2 | 4cda3afcc979e618 | Returns the current lazy imports filter function, or ``None`` if no filter is set.
The filter function is called for every potentially lazy import to
determine whether it should actually be lazy. See
:func:`set_lazy_imports_filter` for details on the filter function
signature. | trusted_official_docs | CPython Docs | Returns the current lazy imports filter function, or ``None`` if no filter is set.
The filter function is called for every potentially lazy import to
determine whether it should actually be lazy. See
:func:`set_lazy_imports_filter` for details on the filter function
signature. | Returns the current lazy imports filter function, or ``None`` if no filter is set.
The filter function is called for every potentially lazy import to
determine whether it should actually be lazy. See
:func:`set_lazy_imports_filter` for details on the filter function
signature. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0c34fe29-48a4-4387-a915-ab1d04c54caf | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,255 | supabase-export-v2 | 7d67fc2839ee0880 | *product_type* may be one of the following values:
+---------------------------------------+---------------------------------+
| Constant | Meaning |
+=======================================+=================================+
| ``1`` (VER_NT_WORKSTATION) | The system is a workstation. |
+---------------------------... | trusted_official_docs | CPython Docs | *product_type* may be one of the following values:
+---------------------------------------+---------------------------------+
| Constant | Meaning |
+=======================================+=================================+
| ``1`` (VER_NT_WORKSTATION) | The system is a workstation. |
+---------------------------... | *product_type* may be one of the following values:
+---------------------------------------+---------------------------------+
| Constant | Meaning |
+=======================================+=================================+
| ``1`` (VER_NT_WORKSTATION) | The system is a workstation. |
+---------------------------... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0ced54f4-d33b-4864-ab46-71b77c7ebc57 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,479 | supabase-export-v2 | 142e9ba0120d79e5 | The events have the following meaning:
``'call'``
A function 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. | trusted_official_docs | CPython Docs | The events have the following meaning:
``'call'``
A function 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. | The events have the following meaning:
``'call'``
A function 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. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0ede272d-5d7e-4e1d-bbe2-528afda56bbd | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,447 | supabase-export-v2 | abd6e4dedba1f5e9 | The filter should return ``True`` to allow the import to be lazy, or ``False`` to force an eager import.
This is an advanced feature intended for specialized users who need
fine-grained control over lazy import behavior. | trusted_official_docs | CPython Docs | The filter should return ``True`` to allow the import to be lazy, or ``False`` to force an eager import.
This is an advanced feature intended for specialized users who need
fine-grained control over lazy import behavior. | The filter should return ``True`` to allow the import to be lazy, or ``False`` to force an eager import.
This is an advanced feature intended for specialized users who need
fine-grained control over lazy import behavior. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0f0a6dd1-453f-4938-b6bd-e356cbf203a3 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,008 | supabase-export-v2 | a30f83dd4c0810ca | .. data:: byteorder
An indicator of the native byte order. This will have the value ``'big'`` on
big-endian (most-significant byte first) platforms, and ``'little'`` on
little-endian (least-significant byte first) platforms. | trusted_official_docs | CPython Docs | .. data:: byteorder
An indicator of the native byte order. This will have the value ``'big'`` on
big-endian (most-significant byte first) platforms, and ``'little'`` on
little-endian (least-significant byte first) platforms. | .. data:: byteorder
An indicator of the native byte order. This will have the value ``'big'`` on
big-endian (most-significant byte first) platforms, and ``'little'`` on
little-endian (least-significant byte first) platforms. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0f18681d-d4de-47f0-8e89-0d61f384a03d | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,573 | supabase-export-v2 | 3f891f532c8b2050 | The *unraisable* argument has the following attributes:
* :attr:`!exc_type`: Exception type. * :attr:`!exc_value`: Exception value, can be ``None``. * :attr:`!exc_traceback`: Exception traceback, can be ``None``. * :attr:`!err_msg`: Error message, can be ``None``. * :attr:`!object`: Object causing the exception, can be... | trusted_official_docs | CPython Docs | The *unraisable* argument has the following attributes:
* :attr:`!exc_type`: Exception type. * :attr:`!exc_value`: Exception value, can be ``None``. * :attr:`!exc_traceback`: Exception traceback, can be ``None``. * :attr:`!err_msg`: Error message, can be ``None``. * :attr:`!object`: Object causing the exception, can be... | The *unraisable* argument has the following attributes:
* :attr:`!exc_type`: Exception type. * :attr:`!exc_value`: Exception value, can be ``None``. * :attr:`!exc_traceback`: Exception traceback, can be ``None``. * :attr:`!err_msg`: Error message, can be ``None``. * :attr:`!object`: Object causing the exception, can be... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1005e43a-e9ca-40dc-bf0d-b67fd8167dbd | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,416 | supabase-export-v2 | 0612f88bb3049a02 | Name of the platform-specific library directory. It is used to build the path of standard library and the paths of installed extension modules.
It is equal to ``"lib"`` on most platforms. On Fedora and SuSE, it is equal
to ``"lib64"`` on 64-bit platforms which gives the following ``sys.path``
paths (where ``X.Y`` is ... | trusted_official_docs | CPython Docs | Name of the platform-specific library directory. It is used to build the path of standard library and the paths of installed extension modules.
It is equal to ``"lib"`` on most platforms. On Fedora and SuSE, it is equal
to ``"lib64"`` on 64-bit platforms which gives the following ``sys.path``
paths (where ``X.Y`` is ... | Name of the platform-specific library directory. It is used to build the path of standard library and the paths of installed extension modules.
It is equal to ``"lib"`` on most platforms. On Fedora and SuSE, it is equal
to ``"lib64"`` on 64-bit platforms which gives the following ``sys.path``
paths (where ``X.Y`` is ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
11874aaa-c168-48f5-b158-de6172de53a6 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,264 | supabase-export-v2 | 21785cca34d88bc1 | or functions which take an :term:`asynchronous generator iterator` as an argument, and are used to schedule finalization of an asynchronous generator by an event loop.
.. versionadded:: 3.6
See :pep:`525` for more details. | trusted_official_docs | CPython Docs | or functions which take an :term:`asynchronous generator iterator` as an argument, and are used to schedule finalization of an asynchronous generator by an event loop.
.. versionadded:: 3.6
See :pep:`525` for more details. | or functions which take an :term:`asynchronous generator iterator` as an argument, and are used to schedule finalization of an asynchronous generator by an event loop.
.. versionadded:: 3.6
See :pep:`525` for more details. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
12655c53-aa34-43ad-8121-6aae0fbb45ce | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,497 | supabase-export-v2 | 009429c1c13536f4 | Two auditing events are raised because the underlying API consists of two calls, each of which must raise its own event.
.. versionadded:: 3.6
See :pep:`525` for more details, and for a reference example of a
*finalizer* method see the implementation of
``asyncio.Loop.shutdown_asyncgens`` in
:source:`Lib/asyncio/ba... | trusted_official_docs | CPython Docs | Two auditing events are raised because the underlying API consists of two calls, each of which must raise its own event.
.. versionadded:: 3.6
See :pep:`525` for more details, and for a reference example of a
*finalizer* method see the implementation of
``asyncio.Loop.shutdown_asyncgens`` in
:source:`Lib/asyncio/ba... | Two auditing events are raised because the underlying API consists of two calls, each of which must raise its own event.
.. versionadded:: 3.6
See :pep:`525` for more details, and for a reference example of a
*finalizer* method see the implementation of
``asyncio.Loop.shutdown_asyncgens`` in
:source:`Lib/asyncio/ba... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
13623de4-b1cb-4729-8c98-c39b9173a54f | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,161 | supabase-export-v2 | a488a492d64fdba3 | number with at most :attr:`!sys.float_info.dig` significant digits, then converting ``s`` to a float and back again will recover a string representing the same decimal value::
>>> import sys
>>> sys.float_info.dig
15
>>> s = '3.14159265358979' # decimal string with 15 significant digits
>>> format(float(s), '.15g')... | trusted_official_docs | CPython Docs | number with at most :attr:`!sys.float_info.dig` significant digits, then converting ``s`` to a float and back again will recover a string representing the same decimal value::
>>> import sys
>>> sys.float_info.dig
15
>>> s = '3.14159265358979' # decimal string with 15 significant digits
>>> format(float(s), '.15g')... | number with at most :attr:`!sys.float_info.dig` significant digits, then converting ``s`` to a float and back again will recover a string representing the same decimal value::
>>> import sys
>>> sys.float_info.dig
15
>>> s = '3.14159265358979' # decimal string with 15 significant digits
>>> format(float(s), '.15g')... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
13832d8f-f5b7-474d-8fb7-4129c2f4509f | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,602 | supabase-export-v2 | dc4d6414b9ca9964 | .. code-block:: shell-session
$ ./python -Xa=b -Xc
Python 3.2a3+ (py3k, Oct 16 2010, 20:14:50)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information. >>> import sys
>>> sys._xoptions
{'a': 'b', 'c': True} | trusted_official_docs | CPython Docs | .. code-block:: shell-session
$ ./python -Xa=b -Xc
Python 3.2a3+ (py3k, Oct 16 2010, 20:14:50)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information. >>> import sys
>>> sys._xoptions
{'a': 'b', 'c': True} | .. code-block:: shell-session
$ ./python -Xa=b -Xc
Python 3.2a3+ (py3k, Oct 16 2010, 20:14:50)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information. >>> import sys
>>> sys._xoptions
{'a': 'b', 'c': True} | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1468d667-8a2a-4a92-93f1-daf41b7cc5a1 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,151 | supabase-export-v2 | cd97624f2aa5ceb9 | * - .. attribute:: float_info.max_exp - :c:macro:`!DBL_MAX_EXP` - The maximum integer *e* such that ``radix**(e-1)`` is a representable finite 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. | trusted_official_docs | CPython Docs | * - .. attribute:: float_info.max_exp - :c:macro:`!DBL_MAX_EXP` - The maximum integer *e* such that ``radix**(e-1)`` is a representable finite 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.max_exp - :c:macro:`!DBL_MAX_EXP` - The maximum integer *e* such that ``radix**(e-1)`` is a representable finite 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. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
165515b6-74f0-40d2-ad4a-fcce798f1c6c | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,533 | supabase-export-v2 | 9bf8e5f8b12fdbd9 | 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.
.. versionadded:: 3.6
See :pep:`529` for more details. | trusted_official_docs | CPython Docs | 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.
.. versionadded:: 3.6
See :pep:`529` for more details. | 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.
.. versionadded:: 3.6
See :pep:`529` for more details. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
171bb703-59f2-4e27-9468-dccced3f8d72 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,550 | supabase-export-v2 | 94eb9e37831bf392 | They are used during finalization, and could be useful to print to the actual standard stream no matter if the ``sys.std*`` object has been redirected.
It can also be used to restore the actual files to known working file objects
in case they have been overwritten with a broken object. However, the
preferred way to d... | trusted_official_docs | CPython Docs | They are used during finalization, and could be useful to print to the actual standard stream no matter if the ``sys.std*`` object has been redirected.
It can also be used to restore the actual files to known working file objects
in case they have been overwritten with a broken object. However, the
preferred way to d... | They are used during finalization, and could be useful to print to the actual standard stream no matter if the ``sys.std*`` object has been redirected.
It can also be used to restore the actual files to known working file objects
in case they have been overwritten with a broken object. However, the
preferred way to d... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
18675cbe-cd47-4149-8300-33452c691dc9 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,465 | supabase-export-v2 | 8132a053a48ffc94 | deep recursion and a platform that supports a higher limit. This should be done with care, because a too-high limit can lead to a crash.
If the new limit is too low at the current recursion depth, a
:exc:`RecursionError` exception is raised. | trusted_official_docs | CPython Docs | deep recursion and a platform that supports a higher limit. This should be done with care, because a too-high limit can lead to a crash.
If the new limit is too low at the current recursion depth, a
:exc:`RecursionError` exception is raised. | deep recursion and a platform that supports a higher limit. This should be done with care, because a too-high limit can lead to a crash.
If the new limit is too low at the current recursion depth, a
:exc:`RecursionError` exception is raised. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
18f2e2b2-3eb4-427a-ae1c-ff6e093d8f52 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 12,969 | supabase-export-v2 | ac207161d7808430 | .. attribute:: abi_info.debug
A Boolean indicating whether the interpreter was built in
:ref:`debug mode <debug-build>`. This reflects either the presence of the :option:`--with-pydebug`
:file:`configure` option (on Unix)
or the ``Debug`` configuration (on Windows). | trusted_official_docs | CPython Docs | .. attribute:: abi_info.debug
A Boolean indicating whether the interpreter was built in
:ref:`debug mode <debug-build>`. This reflects either the presence of the :option:`--with-pydebug`
:file:`configure` option (on Unix)
or the ``Debug`` configuration (on Windows). | .. attribute:: abi_info.debug
A Boolean indicating whether the interpreter was built in
:ref:`debug mode <debug-build>`. This reflects either the presence of the :option:`--with-pydebug`
:file:`configure` option (on Unix)
or the ``Debug`` configuration (on Windows). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1a21b3fd-affb-45d9-8ef0-1dc897be8732 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,376 | supabase-export-v2 | ae0ba695679f992d | .. data:: meta_path
A list of :term:`meta path finder` objects that have their
:meth:`~importlib.abc.MetaPathFinder.find_spec` methods called to see if one
of the objects can find the module to be imported. By default, it holds entries
that implement Python's default import semantics. The
:meth:`~importlib.abc.Meta... | trusted_official_docs | CPython Docs | .. data:: meta_path
A list of :term:`meta path finder` objects that have their
:meth:`~importlib.abc.MetaPathFinder.find_spec` methods called to see if one
of the objects can find the module to be imported. By default, it holds entries
that implement Python's default import semantics. The
:meth:`~importlib.abc.Meta... | .. data:: meta_path
A list of :term:`meta path finder` objects that have their
:meth:`~importlib.abc.MetaPathFinder.find_spec` methods called to see if one
of the objects can find the module to be imported. By default, it holds entries
that implement Python's default import semantics. The
:meth:`~importlib.abc.Meta... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1a9a86e8-eb04-4448-8e91-f02d0b2ddb7f | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,549 | supabase-export-v2 | 180fc97843fd7102 | .. data:: __stdin__ __stdout__ __stderr__
These objects contain the original values of ``stdin``, ``stderr`` and
``stdout`` at the start of the program. They are used during finalization,
and could be useful to print to the actual standard stream no matter if the
``sys.std*`` object has been redirected. | trusted_official_docs | CPython Docs | .. data:: __stdin__ __stdout__ __stderr__
These objects contain the original values of ``stdin``, ``stderr`` and
``stdout`` at the start of the program. They are used during finalization,
and could be useful to print to the actual standard stream no matter if the
``sys.std*`` object has been redirected. | .. data:: __stdin__ __stdout__ __stderr__
These objects contain the original values of ``stdin``, ``stderr`` and
``stdout`` at the start of the program. They are used during finalization,
and could be useful to print to the actual standard stream no matter if the
``sys.std*`` object has been redirected. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1c7b5f3f-f97e-4215-9627-8057ba9bc75b | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,463 | supabase-export-v2 | 640018921e13f370 | .. function:: setrecursionlimit(limit)
Set the maximum depth of the Python interpreter stack to *limit*. This limit
prevents infinite recursion from causing an overflow of the C stack and crashing
Python. | trusted_official_docs | CPython Docs | .. function:: setrecursionlimit(limit)
Set the maximum depth of the Python interpreter stack to *limit*. This limit
prevents infinite recursion from causing an overflow of the C stack and crashing
Python. | .. function:: setrecursionlimit(limit)
Set the maximum depth of the Python interpreter stack to *limit*. This limit
prevents infinite recursion from causing an overflow of the C stack and crashing
Python. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1cbd5671-5e4d-463e-be53-1645eed58d1c | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,483 | supabase-export-v2 | 3ad12bc812a7cffd | exception has occurred. The local trace function is called; *arg* is a tuple ``(exception, value, traceback)``; the return value specifies the new local trace function.
``'opcode'``
The interpreter is about to execute a new opcode (see :mod:`dis` for
opcode details). The local trace function is called; *arg* is
``No... | trusted_official_docs | CPython Docs | exception has occurred. The local trace function is called; *arg* is a tuple ``(exception, value, traceback)``; the return value specifies the new local trace function.
``'opcode'``
The interpreter is about to execute a new opcode (see :mod:`dis` for
opcode details). The local trace function is called; *arg* is
``No... | exception has occurred. The local trace function is called; *arg* is a tuple ``(exception, value, traceback)``; the return value specifies the new local trace function.
``'opcode'``
The interpreter is about to execute a new opcode (see :mod:`dis` for
opcode details). The local trace function is called; *arg* is
``No... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1e0d8288-2dfa-4696-b177-e22b54bd70c7 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 12,997 | supabase-export-v2 | 66308a4bd9f8d0c9 | For example, one auditing event is named ``os.chdir``. This event has one argument called *path* that will contain the requested new working directory.
:func:`sys.audit` will call the existing auditing hooks, passing
the event name and arguments, and will re-raise the first exception
from any hook. In general, if an ... | trusted_official_docs | CPython Docs | For example, one auditing event is named ``os.chdir``. This event has one argument called *path* that will contain the requested new working directory.
:func:`sys.audit` will call the existing auditing hooks, passing
the event name and arguments, and will re-raise the first exception
from any hook. In general, if an ... | For example, one auditing event is named ``os.chdir``. This event has one argument called *path* that will contain the requested new working directory.
:func:`sys.audit` will call the existing auditing hooks, passing
the event name and arguments, and will re-raise the first exception
from any hook. In general, if an ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
20a201c3-e342-4080-a00b-dec0e379863b | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,163 | supabase-export-v2 | 8c6574ebd3cdd99e | But for strings with more than :attr:`sys.float_info.dig` significant digits, this isn't always true::
>>> s = '9876543211234567' # 16 significant digits is too many! >>> format(float(s), '.16g') # conversion changes value
'9876543211234568' | trusted_official_docs | CPython Docs | But for strings with more than :attr:`sys.float_info.dig` significant digits, this isn't always true::
>>> s = '9876543211234567' # 16 significant digits is too many! >>> format(float(s), '.16g') # conversion changes value
'9876543211234568' | But for strings with more than :attr:`sys.float_info.dig` significant digits, this isn't always true::
>>> s = '9876543211234567' # 16 significant digits is too many! >>> format(float(s), '.16g') # conversion changes value
'9876543211234568' | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
21ccc22f-838e-46d9-9104-f67b4ad7bc76 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,220 | supabase-export-v2 | 199838fcf64d2469 | :func:`getsizeof` calls the object's ``__sizeof__`` method and adds an additional garbage collector overhead if the object is managed by the garbage collector.
See `recursive sizeof recipe <https://code.activestate.com/recipes/577504-compute-memory-footprint-of-an-object-and-its-cont/>`_
for an example of using :func:... | trusted_official_docs | CPython Docs | :func:`getsizeof` calls the object's ``__sizeof__`` method and adds an additional garbage collector overhead if the object is managed by the garbage collector.
See `recursive sizeof recipe <https://code.activestate.com/recipes/577504-compute-memory-footprint-of-an-object-and-its-cont/>`_
for an example of using :func:... | :func:`getsizeof` calls the object's ``__sizeof__`` method and adds an additional garbage collector overhead if the object is managed by the garbage collector.
See `recursive sizeof recipe <https://code.activestate.com/recipes/577504-compute-memory-footprint-of-an-object-and-its-cont/>`_
for an example of using :func:... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
24e0acf6-06ed-4218-9cb8-4e6e0176d1ad | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,537 | supabase-export-v2 | f46480e3c3340c0a | :term:`File objects <file object>` used by the interpreter for standard input, output and errors:
* ``stdin`` is used for all interactive input (including calls to
:func:`input`);
* ``stdout`` is used for the output of :func:`print` and :term:`expression`
statements and for the prompts of :func:`input`;
* The inter... | trusted_official_docs | CPython Docs | :term:`File objects <file object>` used by the interpreter for standard input, output and errors:
* ``stdin`` is used for all interactive input (including calls to
:func:`input`);
* ``stdout`` is used for the output of :func:`print` and :term:`expression`
statements and for the prompts of :func:`input`;
* The inter... | :term:`File objects <file object>` used by the interpreter for standard input, output and errors:
* ``stdin`` is used for all interactive input (including calls to
:func:`input`);
* ``stdout`` is used for the output of :func:`print` and :term:`expression`
statements and for the prompts of :func:`input`;
* The inter... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2674fb32-53a8-40c5-b255-8d3773be8b01 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,493 | supabase-export-v2 | fb880ebc73012908 | .. function:: set_asyncgen_hooks([firstiter] [, finalizer])
Accepts two optional keyword arguments which are callables that accept an
:term:`asynchronous generator iterator` as an argument. The *firstiter*
callable will be called when an asynchronous generator is iterated for the
first time. The *finalizer* will be ... | trusted_official_docs | CPython Docs | .. function:: set_asyncgen_hooks([firstiter] [, finalizer])
Accepts two optional keyword arguments which are callables that accept an
:term:`asynchronous generator iterator` as an argument. The *firstiter*
callable will be called when an asynchronous generator is iterated for the
first time. The *finalizer* will be ... | .. function:: set_asyncgen_hooks([firstiter] [, finalizer])
Accepts two optional keyword arguments which are callables that accept an
:term:`asynchronous generator iterator` as an argument. The *firstiter*
callable will be called when an asynchronous generator is iterated for the
first time. The *finalizer* will be ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2798db2d-d8d2-4b86-a6da-6360a443ccbc | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,180 | supabase-export-v2 | 08461a7642e15c2e | .. function:: getdlopenflags()
Return the current value of the flags that are used for
:c:func:`dlopen` calls. Symbolic names for the flag values can be
found in the :mod:`os` module (:samp:`RTLD_{xxx}` constants, e.g. :const:`os.RTLD_LAZY`). | trusted_official_docs | CPython Docs | .. function:: getdlopenflags()
Return the current value of the flags that are used for
:c:func:`dlopen` calls. Symbolic names for the flag values can be
found in the :mod:`os` module (:samp:`RTLD_{xxx}` constants, e.g. :const:`os.RTLD_LAZY`). | .. function:: getdlopenflags()
Return the current value of the flags that are used for
:c:func:`dlopen` calls. Symbolic names for the flag values can be
found in the :mod:`os` module (:samp:`RTLD_{xxx}` constants, e.g. :const:`os.RTLD_LAZY`). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2835362e-ae4c-4750-a596-cb160654e352 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,039 | supabase-export-v2 | 49e67bd83bd64355 | must have a callable named ``function()``. This is run, passing in ``*args`` and ``**kws``, and whatever ``function()`` returns, ``sys.breakpointhook()`` returns to the built-in :func:`breakpoint` function.
Note that if anything goes wrong while importing the callable named by
:envvar:`PYTHONBREAKPOINT`, a :exc:`Runti... | trusted_official_docs | CPython Docs | must have a callable named ``function()``. This is run, passing in ``*args`` and ``**kws``, and whatever ``function()`` returns, ``sys.breakpointhook()`` returns to the built-in :func:`breakpoint` function.
Note that if anything goes wrong while importing the callable named by
:envvar:`PYTHONBREAKPOINT`, a :exc:`Runti... | must have a callable named ``function()``. This is run, passing in ``*args`` and ``**kws``, and whatever ``function()`` returns, ``sys.breakpointhook()`` returns to the built-in :func:`breakpoint` function.
Note that if anything goes wrong while importing the callable named by
:envvar:`PYTHONBREAKPOINT`, a :exc:`Runti... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
28fccc8f-3a1b-4c08-be71-563df610958e | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,306 | supabase-export-v2 | 35b84c627c7f130b | :pep:`684`, :pep:`734`, and :mod:`concurrent.interpreters`.
:data:`sys.implementation` may contain additional attributes specific to
the Python implementation. These non-standard attributes must start with
an underscore, and are not described here. Regardless of its contents,
:data:`sys.implementation` will not chan... | trusted_official_docs | CPython Docs | :pep:`684`, :pep:`734`, and :mod:`concurrent.interpreters`.
:data:`sys.implementation` may contain additional attributes specific to
the Python implementation. These non-standard attributes must start with
an underscore, and are not described here. Regardless of its contents,
:data:`sys.implementation` will not chan... | :pep:`684`, :pep:`734`, and :mod:`concurrent.interpreters`.
:data:`sys.implementation` may contain additional attributes specific to
the Python implementation. These non-standard attributes must start with
an underscore, and are not described here. Regardless of its contents,
:data:`sys.implementation` will not chan... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
294fdc32-0bd4-428a-ac58-53298ac0566f | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,302 | supabase-export-v2 | 2152735d48e8a5a3 | *hexversion* is the implementation version in hexadecimal format, like :data:`sys.hexversion`.
*cache_tag* is the tag used by the import machinery in the filenames of
cached modules. By convention, it would be a composite of the
implementation's name and version, like ``'cpython-33'``. However, a
Python implementati... | trusted_official_docs | CPython Docs | *hexversion* is the implementation version in hexadecimal format, like :data:`sys.hexversion`.
*cache_tag* is the tag used by the import machinery in the filenames of
cached modules. By convention, it would be a composite of the
implementation's name and version, like ``'cpython-33'``. However, a
Python implementati... | *hexversion* is the implementation version in hexadecimal format, like :data:`sys.hexversion`.
*cache_tag* is the tag used by the import machinery in the filenames of
cached modules. By convention, it would be a composite of the
implementation's name and version, like ``'cpython-33'``. However, a
Python implementati... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
29fcdf39-36d7-41bd-8658-02a91bae7779 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 12,982 | supabase-export-v2 | 7c51ae44bdd4766c | .. audit-event:: sys.addaudithook "" sys.addaudithook
Calling :func:`sys.addaudithook` will itself raise an auditing event
named ``sys.addaudithook`` with no arguments. If any
existing hooks raise an exception derived from :class:`RuntimeError`, the
new hook will not be added and the exception suppressed. As a resul... | trusted_official_docs | CPython Docs | .. audit-event:: sys.addaudithook "" sys.addaudithook
Calling :func:`sys.addaudithook` will itself raise an auditing event
named ``sys.addaudithook`` with no arguments. If any
existing hooks raise an exception derived from :class:`RuntimeError`, the
new hook will not be added and the exception suppressed. As a resul... | .. audit-event:: sys.addaudithook "" sys.addaudithook
Calling :func:`sys.addaudithook` will itself raise an auditing event
named ``sys.addaudithook`` with no arguments. If any
existing hooks raise an exception derived from :class:`RuntimeError`, the
new hook will not be added and the exception suppressed. As a resul... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2c86b043-0f5d-4407-aeac-ba7a9a5098ac | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,484 | supabase-export-v2 | 92308629a24afc38 | new local trace function. Per-opcode events are not emitted by default: they must be explicitly requested by setting :attr:`~frame.f_trace_opcodes` to :const:`True` on the :ref:`frame <frame-objects>`.
Note that as an exception is propagated down the chain of callers, an
``'exception'`` event is generated at each leve... | trusted_official_docs | CPython Docs | new local trace function. Per-opcode events are not emitted by default: they must be explicitly requested by setting :attr:`~frame.f_trace_opcodes` to :const:`True` on the :ref:`frame <frame-objects>`.
Note that as an exception is propagated down the chain of callers, an
``'exception'`` event is generated at each leve... | new local trace function. Per-opcode events are not emitted by default: they must be explicitly requested by setting :attr:`~frame.f_trace_opcodes` to :const:`True` on the :ref:`frame <frame-objects>`.
Note that as an exception is propagated down the chain of callers, an
``'exception'`` event is generated at each leve... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2c8e5ca3-d236-46c5-b5b4-ccc1a7f5dbf0 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,010 | supabase-export-v2 | d3470a4e9537b7e7 | .. data:: builtin_module_names
A tuple of strings containing the names of 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.) | trusted_official_docs | CPython Docs | .. data:: builtin_module_names
A tuple of strings containing the names of 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.) | .. data:: builtin_module_names
A tuple of strings containing the names of 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.) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2cd8f99d-ea68-4ef1-be78-ee2eee5af080 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,148 | supabase-export-v2 | 5e54b5b595fa373e | * - .. attribute:: float_info.dig - :c:macro:`!DBL_DIG` - The maximum number of decimal digits that can be faithfully represented in a float; see below.
* - .. attribute:: float_info.mant_dig
- :c:macro:`!DBL_MANT_DIG`
- Float precision: the number of base-``radix`` digits in the
significand of a float. | trusted_official_docs | CPython Docs | * - .. attribute:: float_info.dig - :c:macro:`!DBL_DIG` - The maximum number of decimal digits that can be faithfully represented in a float; see below.
* - .. attribute:: float_info.mant_dig
- :c:macro:`!DBL_MANT_DIG`
- Float precision: the number of base-``radix`` digits in the
significand of a float. | * - .. attribute:: float_info.dig - :c:macro:`!DBL_DIG` - The maximum number of decimal digits that can be faithfully represented in a float; see below.
* - .. attribute:: float_info.mant_dig
- :c:macro:`!DBL_MANT_DIG`
- Float precision: the number of base-``radix`` digits in the
significand of a float. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2e22c86c-a291-40f7-b3fd-c8d2b662c498 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,329 | supabase-export-v2 | e20cd8f7361e1bd9 | .. function:: intern(string)
Enter *string* in the table of "interned" strings and return the interned string
-- which is *string* itself or a copy. Interning strings is useful to gain a
little performance on dictionary lookup -- if the keys in a dictionary are
interned, and the lookup key is interned, the key compa... | trusted_official_docs | CPython Docs | .. function:: intern(string)
Enter *string* in the table of "interned" strings and return the interned string
-- which is *string* itself or a copy. Interning strings is useful to gain a
little performance on dictionary lookup -- if the keys in a dictionary are
interned, and the lookup key is interned, the key compa... | .. function:: intern(string)
Enter *string* in the table of "interned" strings and return the interned string
-- which is *string* itself or a copy. Interning strings is useful to gain a
little performance on dictionary lookup -- if the keys in a dictionary are
interned, and the lookup key is interned, the key compa... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2f43dfd3-79fb-4eab-a841-439f22789288 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,301 | supabase-export-v2 | 68f16662c30a2820 | 0, 'final', 0)``, whereas ``sys.version_info`` would be ``sys.version_info(2, 7, 2, 'final', 0)``. For CPython they are the same value, since it is the reference implementation.
*hexversion* is the implementation version in hexadecimal format, like
:data:`sys.hexversion`. | trusted_official_docs | CPython Docs | 0, 'final', 0)``, whereas ``sys.version_info`` would be ``sys.version_info(2, 7, 2, 'final', 0)``. For CPython they are the same value, since it is the reference implementation.
*hexversion* is the implementation version in hexadecimal format, like
:data:`sys.hexversion`. | 0, 'final', 0)``, whereas ``sys.version_info`` would be ``sys.version_info(2, 7, 2, 'final', 0)``. For CPython they are the same value, since it is the reference implementation.
*hexversion* is the implementation version in hexadecimal format, like
:data:`sys.hexversion`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2f9612be-2487-4d48-9ca1-a4bda636767a | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,474 | supabase-export-v2 | e108415429d89bab | and *arg*. *frame* is the :ref:`current stack frame <frame-objects>`. *event* is a string: ``'call'``, ``'line'``, ``'return'``, ``'exception'`` or ``'opcode'``. *arg* depends on the event type.
The trace function is invoked (with *event* set to ``'call'``) whenever a new
local scope is entered; it should return a ref... | trusted_official_docs | CPython Docs | and *arg*. *frame* is the :ref:`current stack frame <frame-objects>`. *event* is a string: ``'call'``, ``'line'``, ``'return'``, ``'exception'`` or ``'opcode'``. *arg* depends on the event type.
The trace function is invoked (with *event* set to ``'call'``) whenever a new
local scope is entered; it should return a ref... | and *arg*. *frame* is the :ref:`current stack frame <frame-objects>`. *event* is a string: ``'call'``, ``'line'``, ``'return'``, ``'exception'`` or ``'opcode'``. *arg* depends on the event type.
The trace function is invoked (with *event* set to ``'call'``) whenever a new
local scope is entered; it should return a ref... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2fd0cd91-6234-47b1-8831-6bc1e0155f6c | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,548 | supabase-export-v2 | 90279af1b22026fa | code will be executed), be aware that the standard streams may be replaced with file-like objects like :class:`io.StringIO` which do not support the :attr:`!buffer` attribute.
.. data:: __stdin__
__stdout__
__stderr__ | trusted_official_docs | CPython Docs | code will be executed), be aware that the standard streams may be replaced with file-like objects like :class:`io.StringIO` which do not support the :attr:`!buffer` attribute.
.. data:: __stdin__
__stdout__
__stderr__ | code will be executed), be aware that the standard streams may be replaced with file-like objects like :class:`io.StringIO` which do not support the :attr:`!buffer` attribute.
.. data:: __stdin__
__stdout__
__stderr__ | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
317fa585-f38f-47ca-a8d6-990014743fde | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,394 | supabase-export-v2 | 67f04c9311376e4f | To not prepend this potentially unsafe path, use the :option:`-P` command line option or the :envvar:`PYTHONSAFEPATH` environment variable.
A program 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. | trusted_official_docs | CPython Docs | To not prepend this potentially unsafe path, use the :option:`-P` command line option or the :envvar:`PYTHONSAFEPATH` environment variable.
A program 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. | To not prepend this potentially unsafe path, use the :option:`-P` command line option or the :envvar:`PYTHONSAFEPATH` environment variable.
A program 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. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
31dc94ec-ff81-4095-9e81-df817bf8bbe0 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,457 | supabase-export-v2 | 692ff9eb9e16d287 | ``'call'`` A function is called (or some other code block entered). The profile function is called; *arg* is ``None``.
``'return'``
A function (or other code block) is about to return. The profile
function is called; *arg* is the value that will be returned, or ``None``
if the event is caused by an exception being r... | trusted_official_docs | CPython Docs | ``'call'`` A function is called (or some other code block entered). The profile function is called; *arg* is ``None``.
``'return'``
A function (or other code block) is about to return. The profile
function is called; *arg* is the value that will be returned, or ``None``
if the event is caused by an exception being r... | ``'call'`` A function is called (or some other code block entered). The profile function is called; *arg* is ``None``.
``'return'``
A function (or other code block) is about to return. The profile
function is called; *arg* is the value that will be returned, or ``None``
if the event is caused by an exception being r... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
321afc5d-42d2-4c44-b258-06b8c9dcf081 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,583 | supabase-export-v2 | 07bd1ba40dab823b | .. audit-event:: sys.unraisablehook hook,unraisable sys.unraisablehook
Raise an auditing event ``sys.unraisablehook`` with arguments
*hook*, *unraisable* when an exception that cannot be handled occurs. The *unraisable* object is the same as what will be passed to the hook. If no hook has been set, *hook* may be ``Non... | trusted_official_docs | CPython Docs | .. audit-event:: sys.unraisablehook hook,unraisable sys.unraisablehook
Raise an auditing event ``sys.unraisablehook`` with arguments
*hook*, *unraisable* when an exception that cannot be handled occurs. The *unraisable* object is the same as what will be passed to the hook. If no hook has been set, *hook* may be ``Non... | .. audit-event:: sys.unraisablehook hook,unraisable sys.unraisablehook
Raise an auditing event ``sys.unraisablehook`` with arguments
*hook*, *unraisable* when an exception that cannot be handled occurs. The *unraisable* object is the same as what will be passed to the hook. If no hook has been set, *hook* may be ``Non... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3250ff1f-dc35-4746-838d-c57609d649b1 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 12,990 | supabase-export-v2 | f78e5c949ec6695e | to the interpreter, ``argv[0]`` is set to the string ``'-c'``. If no script name was passed to the Python interpreter, ``argv[0]`` is the empty string.
To loop over the standard input, or the list of files given on the
command line, see the :mod:`fileinput` module. | trusted_official_docs | CPython Docs | to the interpreter, ``argv[0]`` is set to the string ``'-c'``. If no script name was passed to the Python interpreter, ``argv[0]`` is the empty string.
To loop over the standard input, or the list of files given on the
command line, see the :mod:`fileinput` module. | to the interpreter, ``argv[0]`` is set to the string ``'-c'``. If no script name was passed to the Python interpreter, ``argv[0]`` is the empty string.
To loop over the standard input, or the list of files given on the
command line, see the :mod:`fileinput` module. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
351d4a2a-3648-4707-9074-0ba32d78e82f | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,162 | supabase-export-v2 | 016d3533c0655619 | 15 >>> s = '3.14159265358979' # decimal string with 15 significant digits >>> format(float(s), '.15g') # convert to float and back -> same value '3.14159265358979'
But for strings with more than :attr:`sys.float_info.dig` significant digits,
this isn't always true:: | trusted_official_docs | CPython Docs | 15 >>> s = '3.14159265358979' # decimal string with 15 significant digits >>> format(float(s), '.15g') # convert to float and back -> same value '3.14159265358979'
But for strings with more than :attr:`sys.float_info.dig` significant digits,
this isn't always true:: | 15 >>> s = '3.14159265358979' # decimal string with 15 significant digits >>> format(float(s), '.15g') # convert to float and back -> same value '3.14159265358979'
But for strings with more than :attr:`sys.float_info.dig` significant digits,
this isn't always true:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
353f8a12-dafb-43a6-ad7a-65d1d55c8318 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,169 | supabase-export-v2 | b27c73dde976e8c2 | the interpreter's internal caches, the result can vary from call to call; you may have to call :func:`_clear_internal_caches` and :func:`gc.collect` to get more predictable results.
If a Python build or implementation cannot reasonably compute this
information, :func:`getallocatedblocks` is allowed to return 0 instead... | trusted_official_docs | CPython Docs | the interpreter's internal caches, the result can vary from call to call; you may have to call :func:`_clear_internal_caches` and :func:`gc.collect` to get more predictable results.
If a Python build or implementation cannot reasonably compute this
information, :func:`getallocatedblocks` is allowed to return 0 instead... | the interpreter's internal caches, the result can vary from call to call; you may have to call :func:`_clear_internal_caches` and :func:`gc.collect` to get more predictable results.
If a Python build or implementation cannot reasonably compute this
information, :func:`getallocatedblocks` is allowed to return 0 instead... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3614777d-608e-4b10-b932-807849e3dcfb | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,572 | supabase-export-v2 | b18e9bab65a07728 | has occurred but there is no way for Python to handle it. For example, when a destructor raises an exception or during garbage collection (:func:`gc.collect`).
The *unraisable* argument has the following attributes: | trusted_official_docs | CPython Docs | has occurred but there is no way for Python to handle it. For example, when a destructor raises an exception or during garbage collection (:func:`gc.collect`).
The *unraisable* argument has the following attributes: | has occurred but there is no way for Python to handle it. For example, when a destructor raises an exception or during garbage collection (:func:`gc.collect`).
The *unraisable* argument has the following attributes: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
37474f9d-e978-489f-8fe4-e8d802b45ed0 | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,435 | supabase-export-v2 | 39063865d27489a1 | Sets the global lazy imports mode. The *mode* parameter must be one of the following strings:
* ``"normal"``: Only imports explicitly marked with the ``lazy`` keyword
are lazy
* ``"all"``: All top-level imports become potentially lazy
* ``"none"``: All lazy imports are suppressed (even explicitly marked
ones) | trusted_official_docs | CPython Docs | Sets the global lazy imports mode. The *mode* parameter must be one of the following strings:
* ``"normal"``: Only imports explicitly marked with the ``lazy`` keyword
are lazy
* ``"all"``: All top-level imports become potentially lazy
* ``"none"``: All lazy imports are suppressed (even explicitly marked
ones) | Sets the global lazy imports mode. The *mode* parameter must be one of the following strings:
* ``"normal"``: Only imports explicitly marked with the ``lazy`` keyword
are lazy
* ``"all"``: All top-level imports become potentially lazy
* ``"none"``: All lazy imports are suppressed (even explicitly marked
ones) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
376c57ad-ec83-4465-93bf-5e7eac962afc | CPython Docs | file://datasets/cpython/Doc/library/sys.rst | unknown | 7e51531c-cb3f-4d3e-a4d6-a6670eb7c560 | 13,588 | supabase-export-v2 | f23987acbbecf80b | The C API version, equivalent to the C macro :c:macro:`PYTHON_API_VERSION`. Defined for backwards compatibility.
Currently, this constant is not updated in new Python versions, and is not
useful for versioning. This may change in the future. | trusted_official_docs | CPython Docs | The C API version, equivalent to the C macro :c:macro:`PYTHON_API_VERSION`. Defined for backwards compatibility.
Currently, this constant is not updated in new Python versions, and is not
useful for versioning. This may change in the future. | The C API version, equivalent to the C macro :c:macro:`PYTHON_API_VERSION`. Defined for backwards compatibility.
Currently, this constant is not updated in new Python versions, and is not
useful for versioning. This may change in the future. | 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.