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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ea22a350-c950-426c-89b3-ec9b1d4ab563 | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 430 | supabase-export-v2 | 0b662649c9183a22 | <PYTHON_GIL>` environment variable. This feature enables improved performance for multi-threaded applications and makes it easier to use multi-core CPUs efficiently. For more details, see :pep:`703`.
In prior versions of Python's C API, a function might declare that it
requires the GIL to be held in order to use it. T... | trusted_official_docs | CPython Docs | <PYTHON_GIL>` environment variable. This feature enables improved performance for multi-threaded applications and makes it easier to use multi-core CPUs efficiently. For more details, see :pep:`703`.
In prior versions of Python's C API, a function might declare that it
requires the GIL to be held in order to use it. T... | <PYTHON_GIL>` environment variable. This feature enables improved performance for multi-threaded applications and makes it easier to use multi-core CPUs efficiently. For more details, see :pep:`703`.
In prior versions of Python's C API, a function might declare that it
requires the GIL to be held in order to use it. T... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ea4fb0bd-b7f9-4aee-96c0-5dcd7bf20169 | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 592 | supabase-export-v2 | 4ec94f1f3efeb420 | thread state
The information used by the :term:`CPython` runtime to run in an OS thread. For example, this includes the current exception, if any, and the
state of the bytecode interpreter. | trusted_official_docs | CPython Docs | thread state
The information used by the :term:`CPython` runtime to run in an OS thread. For example, this includes the current exception, if any, and the
state of the bytecode interpreter. | thread state
The information used by the :term:`CPython` runtime to run in an OS thread. For example, this includes the current exception, if any, and the
state of the bytecode interpreter. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ec4d8a27-6474-4ec1-8c18-1f88a4784027 | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 388 | supabase-export-v2 | 15f70a0b9fdc2c93 | f-string f-strings String literals prefixed with ``f`` or ``F`` are commonly called "f-strings" which is short for :ref:`formatted string literals <f-strings>`. See also :pep:`498`.
file object
An object exposing a file-oriented API (with methods such as
:meth:`!read` or :meth:`!write`) to an underlying resource. Dep... | trusted_official_docs | CPython Docs | f-string f-strings String literals prefixed with ``f`` or ``F`` are commonly called "f-strings" which is short for :ref:`formatted string literals <f-strings>`. See also :pep:`498`.
file object
An object exposing a file-oriented API (with methods such as
:meth:`!read` or :meth:`!write`) to an underlying resource. Dep... | f-string f-strings String literals prefixed with ``f`` or ``F`` are commonly called "f-strings" which is short for :ref:`formatted string literals <f-strings>`. See also :pep:`498`.
file object
An object exposing a file-oriented API (with methods such as
:meth:`!read` or :meth:`!write`) to an underlying resource. Dep... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ed744a88-f808-4d06-a6fe-3ce9e692d3b1 | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 566 | supabase-export-v2 | 4376010f62a8fd05 | :class:`dict` also supports :meth:`~object.__getitem__` and :meth:`!__len__`, but is considered a mapping rather than a sequence because the lookups use arbitrary :term:`hashable` keys rather than integers.
The :class:`collections.abc.Sequence` abstract base class
defines a much richer interface that goes beyond just
... | trusted_official_docs | CPython Docs | :class:`dict` also supports :meth:`~object.__getitem__` and :meth:`!__len__`, but is considered a mapping rather than a sequence because the lookups use arbitrary :term:`hashable` keys rather than integers.
The :class:`collections.abc.Sequence` abstract base class
defines a much richer interface that goes beyond just
... | :class:`dict` also supports :meth:`~object.__getitem__` and :meth:`!__len__`, but is considered a mapping rather than a sequence because the lookups use arbitrary :term:`hashable` keys rather than integers.
The :class:`collections.abc.Sequence` abstract base class
defines a much richer interface that goes beyond just
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
edde34b7-dede-4784-ad7f-be72fe9ccb0a | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 610 | supabase-export-v2 | 3bb22d73790ff6f4 | See :mod:`typing` and :pep:`484`, which describe this functionality.
type hint
An :term:`annotation` that specifies the expected type for a variable, a class
attribute, or a function parameter or return value. | trusted_official_docs | CPython Docs | See :mod:`typing` and :pep:`484`, which describe this functionality.
type hint
An :term:`annotation` that specifies the expected type for a variable, a class
attribute, or a function parameter or return value. | See :mod:`typing` and :pep:`484`, which describe this functionality.
type hint
An :term:`annotation` that specifies the expected type for a variable, a class
attribute, or a function parameter or return value. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
efb0684e-f7ef-4c29-b20f-b6a01fe34068 | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 309 | supabase-export-v2 | bdfcb4eee9d957d8 | See :term:`variable annotation`, :term:`function annotation`, :pep:`484`, :pep:`526`, and :pep:`649`, which describe this functionality. Also see :ref:`annotations-howto` for best practices on working with annotations.
argument
A value passed to a :term:`function` (or :term:`method`) when calling the
function. There ... | trusted_official_docs | CPython Docs | See :term:`variable annotation`, :term:`function annotation`, :pep:`484`, :pep:`526`, and :pep:`649`, which describe this functionality. Also see :ref:`annotations-howto` for best practices on working with annotations.
argument
A value passed to a :term:`function` (or :term:`method`) when calling the
function. There ... | See :term:`variable annotation`, :term:`function annotation`, :pep:`484`, :pep:`526`, and :pep:`649`, which describe this functionality. Also see :ref:`annotations-howto` for best practices on working with annotations.
argument
A value passed to a :term:`function` (or :term:`method`) when calling the
function. There ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f000892f-d317-4ee3-8244-8ae7d18f4965 | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 465 | supabase-export-v2 | 2eff8b0d4727d619 | function consisting of a single :term:`expression` which is evaluated when the function is called. The syntax to create a lambda function is ``lambda [parameters]: expression``
LBYL
Look before you leap. This coding style explicitly tests for
pre-conditions before making calls or lookups. This style contrasts with
t... | trusted_official_docs | CPython Docs | function consisting of a single :term:`expression` which is evaluated when the function is called. The syntax to create a lambda function is ``lambda [parameters]: expression``
LBYL
Look before you leap. This coding style explicitly tests for
pre-conditions before making calls or lookups. This style contrasts with
t... | function consisting of a single :term:`expression` which is evaluated when the function is called. The syntax to create a lambda function is ``lambda [parameters]: expression``
LBYL
Look before you leap. This coding style explicitly tests for
pre-conditions before making calls or lookups. This style contrasts with
t... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f0626cb7-d06a-4c19-9b07-0097ed90310f | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 404 | supabase-export-v2 | b68e97671bd5ffb2 | See :ref:`freethreading-python-howto`.
free variable
Formally, as defined in the :ref:`language execution model <bind_names>`, a free
variable is any variable used in a namespace which is not a local variable in that
namespace. See :term:`closure variable` for an example. Pragmatically, due to the name of the :attr:... | trusted_official_docs | CPython Docs | See :ref:`freethreading-python-howto`.
free variable
Formally, as defined in the :ref:`language execution model <bind_names>`, a free
variable is any variable used in a namespace which is not a local variable in that
namespace. See :term:`closure variable` for an example. Pragmatically, due to the name of the :attr:... | See :ref:`freethreading-python-howto`.
free variable
Formally, as defined in the :ref:`language execution model <bind_names>`, a free
variable is any variable used in a namespace which is not a local variable in that
namespace. See :term:`closure variable` for an example. Pragmatically, due to the name of the :attr:... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f295a56f-7def-456e-9fad-6cd32160d1ec | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 596 | supabase-export-v2 | 06280383e16b35c4 | multiple interpreters may be bound to the same thread, but only one can be :term:`attached <attached thread state>` in that thread at any given moment.
See :ref:`Thread State and the Global Interpreter Lock <threads>` for more
information. | trusted_official_docs | CPython Docs | multiple interpreters may be bound to the same thread, but only one can be :term:`attached <attached thread state>` in that thread at any given moment.
See :ref:`Thread State and the Global Interpreter Lock <threads>` for more
information. | multiple interpreters may be bound to the same thread, but only one can be :term:`attached <attached thread state>` in that thread at any given moment.
See :ref:`Thread State and the Global Interpreter Lock <threads>` for more
information. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f2d59227-4b84-401f-a3bb-36f679a69622 | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 406 | supabase-export-v2 | 9ab9e3173dd3c50b | be passed zero or more :term:`arguments <argument>` which may be used in the execution of the body. See also :term:`parameter`, :term:`method`, and the :ref:`function` section.
function annotation
An :term:`annotation` of a function parameter or return value. | trusted_official_docs | CPython Docs | be passed zero or more :term:`arguments <argument>` which may be used in the execution of the body. See also :term:`parameter`, :term:`method`, and the :ref:`function` section.
function annotation
An :term:`annotation` of a function parameter or return value. | be passed zero or more :term:`arguments <argument>` which may be used in the execution of the body. See also :term:`parameter`, :term:`method`, and the :ref:`function` section.
function annotation
An :term:`annotation` of a function parameter or return value. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f3dcf901-a7dc-4791-b248-f1ec0e264cb5 | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 442 | supabase-export-v2 | 694ff1c252599110 | to import. During import, this list of locations usually comes from :data:`sys.path`, but for subpackages it may also come from the parent package's ``__path__`` attribute.
importing
The process by which Python code in one module is made available to
Python code in another module. | trusted_official_docs | CPython Docs | to import. During import, this list of locations usually comes from :data:`sys.path`, but for subpackages it may also come from the parent package's ``__path__`` attribute.
importing
The process by which Python code in one module is made available to
Python code in another module. | to import. During import, this list of locations usually comes from :data:`sys.path`, but for subpackages it may also come from the parent package's ``__path__`` attribute.
importing
The process by which Python code in one module is made available to
Python code in another module. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f574ea61-96b8-4ed4-ad9c-8d9eeb5ca7bc | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 399 | supabase-export-v2 | 61caa82918ceefb7 | See :ref:`finders-and-loaders` and :mod:`importlib` for much more detail.
floor division
Mathematical division that rounds down to nearest integer. The floor
division operator is ``//``. For example, the expression ``11 // 4``
evaluates to ``2`` in contrast to the ``2.75`` returned by float true
division. Note that... | trusted_official_docs | CPython Docs | See :ref:`finders-and-loaders` and :mod:`importlib` for much more detail.
floor division
Mathematical division that rounds down to nearest integer. The floor
division operator is ``//``. For example, the expression ``11 // 4``
evaluates to ``2`` in contrast to the ``2.75`` returned by float true
division. Note that... | See :ref:`finders-and-loaders` and :mod:`importlib` for much more detail.
floor division
Mathematical division that rounds down to nearest integer. The floor
division operator is ``//``. For example, the expression ``11 // 4``
evaluates to ``2`` in contrast to the ``2.75`` returned by float true
division. Note that... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f58616c0-1dac-4719-99d0-e607a160e3bb | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 418 | supabase-export-v2 | 54a35a7378bb8348 | generator iterator An object created by a :term:`generator` function.
Each :keyword:`yield` temporarily suspends processing, remembering the
execution state (including local variables and pending
try-statements). When the *generator iterator* resumes, it picks up where
it left off (in contrast to functions which sta... | trusted_official_docs | CPython Docs | generator iterator An object created by a :term:`generator` function.
Each :keyword:`yield` temporarily suspends processing, remembering the
execution state (including local variables and pending
try-statements). When the *generator iterator* resumes, it picks up where
it left off (in contrast to functions which sta... | generator iterator An object created by a :term:`generator` function.
Each :keyword:`yield` temporarily suspends processing, remembering the
execution state (including local variables and pending
try-statements). When the *generator iterator* resumes, it picks up where
it left off (in contrast to functions which sta... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f66041d6-1238-4c92-a53f-20f1ad41540b | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 355 | supabase-export-v2 | 66dbde41a532baad | system threads and :mod:`multiprocessing` to operating system processes. Multi-core processors can execute threads and processes on different CPU cores at the same time (see :term:`parallelism`).
concurrent modification
When multiple threads modify shared data at the same time. Concurrent
modification without proper ... | trusted_official_docs | CPython Docs | system threads and :mod:`multiprocessing` to operating system processes. Multi-core processors can execute threads and processes on different CPU cores at the same time (see :term:`parallelism`).
concurrent modification
When multiple threads modify shared data at the same time. Concurrent
modification without proper ... | system threads and :mod:`multiprocessing` to operating system processes. Multi-core processors can execute threads and processes on different CPU cores at the same time (see :term:`parallelism`).
concurrent modification
When multiple threads modify shared data at the same time. Concurrent
modification without proper ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f9d4ec67-0be9-4078-bd71-12d28373cd28 | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 505 | supabase-export-v2 | 6aa4e49a69e46235 | code typically refers to C, C++, Rust or Fortran code in :term:`extension modules <extension module>` that can be called from Python. See also :term:`extension module`.
nested scope
The ability to refer to a variable in an enclosing definition. For
instance, a function defined inside another function can refer to
va... | trusted_official_docs | CPython Docs | code typically refers to C, C++, Rust or Fortran code in :term:`extension modules <extension module>` that can be called from Python. See also :term:`extension module`.
nested scope
The ability to refer to a variable in an enclosing definition. For
instance, a function defined inside another function can refer to
va... | code typically refers to C, C++, Rust or Fortran code in :term:`extension modules <extension module>` that can be called from Python. See also :term:`extension module`.
nested scope
The ability to refer to a variable in an enclosing definition. For
instance, a function defined inside another function can refer to
va... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fa02a073-3be6-4300-a261-121373b59fb0 | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 487 | supabase-export-v2 | d850a667c4b32a26 | More information can be found in :ref:`metaclasses`.
method
A function which is defined inside a class body. If called as an attribute
of an instance of that class, the method will get the instance object as
its first :term:`argument` (which is usually called ``self``). See :term:`function` and :term:`nested scope`. | trusted_official_docs | CPython Docs | More information can be found in :ref:`metaclasses`.
method
A function which is defined inside a class body. If called as an attribute
of an instance of that class, the method will get the instance object as
its first :term:`argument` (which is usually called ``self``). See :term:`function` and :term:`nested scope`. | More information can be found in :ref:`metaclasses`.
method
A function which is defined inside a class body. If called as an attribute
of an instance of that class, the method will get the instance object as
its first :term:`argument` (which is usually called ``self``). See :term:`function` and :term:`nested scope`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fb538c96-9d05-491a-b6c7-2446a6487eb1 | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 367 | supabase-export-v2 | a05e1e5c7175a883 | Frameworks for executing asynchronous tasks (see :mod:`asyncio`) associate each task with a context which becomes the current context whenever the task starts or resumes execution.
cyclic isolate
A subgroup of one or more objects that reference each other in a reference
cycle, but are not referenced by objects outsid... | trusted_official_docs | CPython Docs | Frameworks for executing asynchronous tasks (see :mod:`asyncio`) associate each task with a context which becomes the current context whenever the task starts or resumes execution.
cyclic isolate
A subgroup of one or more objects that reference each other in a reference
cycle, but are not referenced by objects outsid... | Frameworks for executing asynchronous tasks (see :mod:`asyncio`) associate each task with a context which becomes the current context whenever the task starts or resumes execution.
cyclic isolate
A subgroup of one or more objects that reference each other in a reference
cycle, but are not referenced by objects outsid... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fb566470-b8b1-44a1-b3f1-6851eb9eb5c1 | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 302 | supabase-export-v2 | 4e3f2900c878e511 | code block, when within a pair of matching left and right delimiters (parentheses, square brackets, curly braces or triple quotes), or after specifying a decorator.
.. index:: single: ...; ellipsis literal | trusted_official_docs | CPython Docs | code block, when within a pair of matching left and right delimiters (parentheses, square brackets, curly braces or triple quotes), or after specifying a decorator.
.. index:: single: ...; ellipsis literal | code block, when within a pair of matching left and right delimiters (parentheses, square brackets, curly braces or triple quotes), or after specifying a decorator.
.. index:: single: ...; ellipsis literal | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fb78a2d6-4d91-493c-8e29-76ea76430807 | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 460 | supabase-export-v2 | 771e2f0182917cd0 | key A value that identifies an entry in a :term:`mapping`. See also :term:`subscript`.
key function
A key function or collation function is a callable that returns a value
used for sorting or ordering. For example, :func:`locale.strxfrm` is
used to produce a sort key that is aware of locale specific sort
convention... | trusted_official_docs | CPython Docs | key A value that identifies an entry in a :term:`mapping`. See also :term:`subscript`.
key function
A key function or collation function is a callable that returns a value
used for sorting or ordering. For example, :func:`locale.strxfrm` is
used to produce a sort key that is aware of locale specific sort
convention... | key A value that identifies an entry in a :term:`mapping`. See also :term:`subscript`.
key function
A key function or collation function is a callable that returns a value
used for sorting or ordering. For example, :func:`locale.strxfrm` is
used to produce a sort key that is aware of locale specific sort
convention... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fc750497-35bb-48f7-84cf-f2363f6b6ff8 | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 339 | supabase-export-v2 | cebb993e4fda8091 | the object cannot be destroyed before the last usage of the borrowed reference. The :c:func:`Py_NewRef` function can be used to create a new :term:`strong reference`.
bytes-like object
An object that supports the :ref:`bufferobjects` and can
export a C-:term:`contiguous` buffer. This includes all :class:`bytes`,
:cl... | trusted_official_docs | CPython Docs | the object cannot be destroyed before the last usage of the borrowed reference. The :c:func:`Py_NewRef` function can be used to create a new :term:`strong reference`.
bytes-like object
An object that supports the :ref:`bufferobjects` and can
export a C-:term:`contiguous` buffer. This includes all :class:`bytes`,
:cl... | the object cannot be destroyed before the last usage of the borrowed reference. The :c:func:`Py_NewRef` function can be used to create a new :term:`strong reference`.
bytes-like object
An object that supports the :ref:`bufferobjects` and can
export a C-:term:`contiguous` buffer. This includes all :class:`bytes`,
:cl... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fd20dc0c-adbb-4614-ad84-59e2ddb958bc | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 389 | supabase-export-v2 | c30103801b41c9d6 | another type of storage or communication device (for example standard input/output, in-memory buffers, sockets, pipes, etc.). File objects are also called :dfn:`file-like objects` or :dfn:`streams`.
There are actually three categories of file objects: raw
:term:`binary files <binary file>`, buffered
:term:`binary fil... | trusted_official_docs | CPython Docs | another type of storage or communication device (for example standard input/output, in-memory buffers, sockets, pipes, etc.). File objects are also called :dfn:`file-like objects` or :dfn:`streams`.
There are actually three categories of file objects: raw
:term:`binary files <binary file>`, buffered
:term:`binary fil... | another type of storage or communication device (for example standard input/output, in-memory buffers, sockets, pipes, etc.). File objects are also called :dfn:`file-like objects` or :dfn:`streams`.
There are actually three categories of file objects: raw
:term:`binary files <binary file>`, buffered
:term:`binary fil... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fd23cf64-59c9-4bf7-bd54-c4a9505314f9 | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 561 | supabase-export-v2 | 5860acbdf2c6ff62 | is important when functions may be called recursively or from signal handlers. Thread-unsafe functions may be :term:`non-deterministic` if they're called reentrantly in a multithreaded program.
For locks, Python's :class:`threading.RLock` (reentrant lock) is
reentrant, meaning a thread that already holds the lock can ... | trusted_official_docs | CPython Docs | is important when functions may be called recursively or from signal handlers. Thread-unsafe functions may be :term:`non-deterministic` if they're called reentrantly in a multithreaded program.
For locks, Python's :class:`threading.RLock` (reentrant lock) is
reentrant, meaning a thread that already holds the lock can ... | is important when functions may be called recursively or from signal handlers. Thread-unsafe functions may be :term:`non-deterministic` if they're called reentrantly in a multithreaded program.
For locks, Python's :class:`threading.RLock` (reentrant lock) is
reentrant, meaning a thread that already holds the lock can ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fdfb7ad8-6096-4c06-bc59-7339bbc91a8f | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 360 | supabase-export-v2 | 20bccf5344d3284f | context manager An object which implements the :term:`context management protocol` and controls the environment seen in a :keyword:`with` statement. See :pep:`343`.
context variable
A variable whose value depends on which context is the :term:`current
context`. Values are accessed via :class:`contextvars.ContextVar`
... | trusted_official_docs | CPython Docs | context manager An object which implements the :term:`context management protocol` and controls the environment seen in a :keyword:`with` statement. See :pep:`343`.
context variable
A variable whose value depends on which context is the :term:`current
context`. Values are accessed via :class:`contextvars.ContextVar`
... | context manager An object which implements the :term:`context management protocol` and controls the environment seen in a :keyword:`with` statement. See :pep:`343`.
context variable
A variable whose value depends on which context is the :term:`current
context`. Values are accessed via :class:`contextvars.ContextVar`
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ff644ae3-5135-47ff-9dbb-ef191fd1a87e | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 422 | supabase-export-v2 | 376212eddd84506c | >>> sum(i*i for i in range(10)) # sum of squares 0, 1, 4, ... 81 285
generic function
A function composed of multiple functions implementing the same operation
for different types. Which implementation should be used during a call is
determined by the dispatch algorithm. | trusted_official_docs | CPython Docs | >>> sum(i*i for i in range(10)) # sum of squares 0, 1, 4, ... 81 285
generic function
A function composed of multiple functions implementing the same operation
for different types. Which implementation should be used during a call is
determined by the dispatch algorithm. | >>> sum(i*i for i in range(10)) # sum of squares 0, 1, 4, ... 81 285
generic function
A function composed of multiple functions implementing the same operation
for different types. Which implementation should be used during a call is
determined by the dispatch algorithm. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ff87b9eb-beb0-458e-82fe-3f13b7cce0fe | CPython Docs | file://datasets/cpython/Doc/glossary.rst | unknown | 06afde4d-67af-49dd-8954-38ac7efd564f | 358 | supabase-export-v2 | ae666dc723df31fe | keyvalue bindings associated with a particular :class:`contextvars.Context` object and accessed via :class:`~contextvars.ContextVar` objects. Also see :term:`context variable`. * A :class:`contextvars.Context` object. Also see :term:`current context`.
context management protocol
The :meth:`~object.__enter__` and :met... | trusted_official_docs | CPython Docs | keyvalue bindings associated with a particular :class:`contextvars.Context` object and accessed via :class:`~contextvars.ContextVar` objects. Also see :term:`context variable`. * A :class:`contextvars.Context` object. Also see :term:`current context`.
context management protocol
The :meth:`~object.__enter__` and :met... | keyvalue bindings associated with a particular :class:`contextvars.Context` object and accessed via :class:`~contextvars.ContextVar` objects. Also see :term:`context variable`. * A :class:`contextvars.Context` object. Also see :term:`current context`.
context management protocol
The :meth:`~object.__enter__` and :met... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
04ded8c9-30d1-49c7-9195-6e03db09bf18 | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 653 | supabase-export-v2 | ae8fba9441392e6c | goes into some detail about how to create a useful bug report. This describes what kind of information is useful and why it is useful.
`Bug Writing Guidelines <https://bugzilla.mozilla.org/page.cgi?id=bug-writing.html>`_
Information about writing a good bug report. Some of this is specific to the
Mozilla project, but... | trusted_official_docs | CPython Docs | goes into some detail about how to create a useful bug report. This describes what kind of information is useful and why it is useful.
`Bug Writing Guidelines <https://bugzilla.mozilla.org/page.cgi?id=bug-writing.html>`_
Information about writing a good bug report. Some of this is specific to the
Mozilla project, but... | goes into some detail about how to create a useful bug report. This describes what kind of information is useful and why it is useful.
`Bug Writing Guidelines <https://bugzilla.mozilla.org/page.cgi?id=bug-writing.html>`_
Information about writing a good bug report. Some of this is specific to the
Mozilla project, but... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
07261453-f86c-458e-8ca9-7034e457d4cc | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 640 | supabase-export-v2 | 8fdc796742f3a62c | `Helping with Documentation <https://devguide.python.org/docquality/#helping-with-documentation>`_ Comprehensive guide for individuals that are interested in contributing to Python documentation.
`Documentation Translations <https://devguide.python.org/documentation/translations/translating/#translation-coordinators>`_... | trusted_official_docs | CPython Docs | `Helping with Documentation <https://devguide.python.org/docquality/#helping-with-documentation>`_ Comprehensive guide for individuals that are interested in contributing to Python documentation.
`Documentation Translations <https://devguide.python.org/documentation/translations/translating/#translation-coordinators>`_... | `Helping with Documentation <https://devguide.python.org/docquality/#helping-with-documentation>`_ Comprehensive guide for individuals that are interested in contributing to Python documentation.
`Documentation Translations <https://devguide.python.org/documentation/translations/translating/#translation-coordinators>`_... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
08173181-7c84-4908-aff6-55d3ecd38e05 | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 643 | supabase-export-v2 | 1cb8739a43b448db | Using the Python issue tracker ==============================
Issue reports for Python itself should be submitted via the GitHub issues
tracker (https://github.com/python/cpython/issues). The GitHub issues tracker offers a web form which allows pertinent information
to be entered and submitted to the developers. | trusted_official_docs | CPython Docs | Using the Python issue tracker ==============================
Issue reports for Python itself should be submitted via the GitHub issues
tracker (https://github.com/python/cpython/issues). The GitHub issues tracker offers a web form which allows pertinent information
to be entered and submitted to the developers. | Using the Python issue tracker ==============================
Issue reports for Python itself should be submitted via the GitHub issues
tracker (https://github.com/python/cpython/issues). The GitHub issues tracker offers a web form which allows pertinent information
to be entered and submitted to the developers. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0f259bef-64a8-491c-9a16-5ddb2878d384 | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 639 | supabase-export-v2 | d08eb2f3cd364760 | `Issue Tracking <https://devguide.python.org/tracker/>`_ Overview of the process involved in reporting an improvement on the tracker.
`Helping with Documentation <https://devguide.python.org/docquality/#helping-with-documentation>`_
Comprehensive guide for individuals that are interested in contributing to Python docu... | trusted_official_docs | CPython Docs | `Issue Tracking <https://devguide.python.org/tracker/>`_ Overview of the process involved in reporting an improvement on the tracker.
`Helping with Documentation <https://devguide.python.org/docquality/#helping-with-documentation>`_
Comprehensive guide for individuals that are interested in contributing to Python docu... | `Issue Tracking <https://devguide.python.org/tracker/>`_ Overview of the process involved in reporting an improvement on the tracker.
`Helping with Documentation <https://devguide.python.org/docquality/#helping-with-documentation>`_
Comprehensive guide for individuals that are interested in contributing to Python docu... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
18704c74-6290-4c74-9651-f16b9860b29d | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 634 | supabase-export-v2 | 5eb3dcfcc103a8c8 | If the bug or suggested improvement concerns the translation of this documentation, submit the report to the `translation’s repository <TRANSLATION_REPO_>`_ instead.
You can also open a discussion item on our
`Documentation Discourse forum <https://discuss.python.org/c/documentation/26>`_. | trusted_official_docs | CPython Docs | If the bug or suggested improvement concerns the translation of this documentation, submit the report to the `translation’s repository <TRANSLATION_REPO_>`_ instead.
You can also open a discussion item on our
`Documentation Discourse forum <https://discuss.python.org/c/documentation/26>`_. | If the bug or suggested improvement concerns the translation of this documentation, submit the report to the `translation’s repository <TRANSLATION_REPO_>`_ instead.
You can also open a discussion item on our
`Documentation Discourse forum <https://discuss.python.org/c/documentation/26>`_. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2895f8a5-8ffd-4c63-b631-b63105435fea | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 631 | supabase-export-v2 | 2a866e155974ca1d | Documentation bugs ==================
If you find a bug in this documentation or would like to propose an improvement,
please submit a bug report on the :ref:`issue tracker <using-the-tracker>`. If you
have a suggestion on how to fix it, include that as well. | trusted_official_docs | CPython Docs | Documentation bugs ==================
If you find a bug in this documentation or would like to propose an improvement,
please submit a bug report on the :ref:`issue tracker <using-the-tracker>`. If you
have a suggestion on how to fix it, include that as well. | Documentation bugs ==================
If you find a bug in this documentation or would like to propose an improvement,
please submit a bug report on the :ref:`issue tracker <using-the-tracker>`. If you
have a suggestion on how to fix it, include that as well. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
34a345d9-b6d5-494b-a435-7674110f7a51 | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 638 | supabase-export-v2 | 81c916316419803e | `Documentation bugs`_ A list of documentation bugs that have been submitted to the Python issue tracker.
`Issue Tracking <https://devguide.python.org/tracker/>`_
Overview of the process involved in reporting an improvement on the tracker. | trusted_official_docs | CPython Docs | `Documentation bugs`_ A list of documentation bugs that have been submitted to the Python issue tracker.
`Issue Tracking <https://devguide.python.org/tracker/>`_
Overview of the process involved in reporting an improvement on the tracker. | `Documentation bugs`_ A list of documentation bugs that have been submitted to the Python issue tracker.
`Issue Tracking <https://devguide.python.org/tracker/>`_
Overview of the process involved in reporting an improvement on the tracker. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5441e492-6057-44aa-9101-47712acdd8ed | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 646 | supabase-export-v2 | 76b6ce3db4a06811 | don't already have a GitHub account, create a new account using the "Sign up" link. It is not possible to submit a bug report anonymously.
Being now logged in, you can submit an issue. Click on the "New issue" button in the top bar to report a new issue. | trusted_official_docs | CPython Docs | don't already have a GitHub account, create a new account using the "Sign up" link. It is not possible to submit a bug report anonymously.
Being now logged in, you can submit an issue. Click on the "New issue" button in the top bar to report a new issue. | don't already have a GitHub account, create a new account using the "Sign up" link. It is not possible to submit a bug report anonymously.
Being now logged in, you can submit an issue. Click on the "New issue" button in the top bar to report a new issue. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6006acdc-a90d-4144-a868-e466a7809674 | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 635 | supabase-export-v2 | 211214a11056ccac | You can also open a discussion item on our `Documentation Discourse forum <https://discuss.python.org/c/documentation/26>`_.
If you find a bug in the theme (HTML / CSS / JavaScript) of the
documentation, please submit a bug report on the `python-doc-theme issue
tracker <https://github.com/python/python-docs-theme>`_. | trusted_official_docs | CPython Docs | You can also open a discussion item on our `Documentation Discourse forum <https://discuss.python.org/c/documentation/26>`_.
If you find a bug in the theme (HTML / CSS / JavaScript) of the
documentation, please submit a bug report on the `python-doc-theme issue
tracker <https://github.com/python/python-docs-theme>`_. | You can also open a discussion item on our `Documentation Discourse forum <https://discuss.python.org/c/documentation/26>`_.
If you find a bug in the theme (HTML / CSS / JavaScript) of the
documentation, please submit a bug report on the `python-doc-theme issue
tracker <https://github.com/python/python-docs-theme>`_. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
66824965-95e9-45ae-a081-5eed65388c3b | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 650 | supabase-export-v2 | 499c415ed03b907f | happen. Be sure to include whether any extension modules were involved, and what hardware and software platform you were using (including version information as appropriate).
Each issue report will be reviewed by a developer who will determine what needs to
be done to correct the problem. You will receive an update eac... | trusted_official_docs | CPython Docs | happen. Be sure to include whether any extension modules were involved, and what hardware and software platform you were using (including version information as appropriate).
Each issue report will be reviewed by a developer who will determine what needs to
be done to correct the problem. You will receive an update eac... | happen. Be sure to include whether any extension modules were involved, and what hardware and software platform you were using (including version information as appropriate).
Each issue report will be reviewed by a developer who will determine what needs to
be done to correct the problem. You will receive an update eac... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6f416372-ad25-40c5-ac61-2fce872b66b1 | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 628 | supabase-export-v2 | 3b3df7dcbf31f37d | ***************** Dealing with Bugs *****************
Python is a mature programming language which has established a reputation for
stability. In order to maintain this reputation, the developers would like to
know of any deficiencies you find in Python. | trusted_official_docs | CPython Docs | ***************** Dealing with Bugs *****************
Python is a mature programming language which has established a reputation for
stability. In order to maintain this reputation, the developers would like to
know of any deficiencies you find in Python. | ***************** Dealing with Bugs *****************
Python is a mature programming language which has established a reputation for
stability. In order to maintain this reputation, the developers would like to
know of any deficiencies you find in Python. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
832255be-1428-4b3f-bc05-6177f38fedb1 | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 657 | supabase-export-v2 | 894647bf66059ff1 | the `core-mentorship mailing list`_ is a friendly place to get answers to any and all questions pertaining to the process of fixing issues in Python.
.. _Documentation bugs: https://github.com/python/cpython/issues?q=is%3Aissue+is%3Aopen+label%3Adocs
.. _Python Developer's Guide: https://devguide.python.org/
.. _core-m... | trusted_official_docs | CPython Docs | the `core-mentorship mailing list`_ is a friendly place to get answers to any and all questions pertaining to the process of fixing issues in Python.
.. _Documentation bugs: https://github.com/python/cpython/issues?q=is%3Aissue+is%3Aopen+label%3Adocs
.. _Python Developer's Guide: https://devguide.python.org/
.. _core-m... | the `core-mentorship mailing list`_ is a friendly place to get answers to any and all questions pertaining to the process of fixing issues in Python.
.. _Documentation bugs: https://github.com/python/cpython/issues?q=is%3Aissue+is%3Aopen+label%3Adocs
.. _Python Developer's Guide: https://devguide.python.org/
.. _core-m... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
887b3ea1-8697-4910-b576-16e7284f1ae4 | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 645 | supabase-export-v2 | 8a4e79ccb84fb283 | you are welcome to provide it if you can!). To do this, search the tracker using the search box at the top of the page.
If the problem you're reporting is not already in the list, log in to GitHub. If you don't already have a GitHub account, create a new account using the
"Sign up" link. It is not possible to submit a ... | trusted_official_docs | CPython Docs | you are welcome to provide it if you can!). To do this, search the tracker using the search box at the top of the page.
If the problem you're reporting is not already in the list, log in to GitHub. If you don't already have a GitHub account, create a new account using the
"Sign up" link. It is not possible to submit a ... | you are welcome to provide it if you can!). To do this, search the tracker using the search box at the top of the page.
If the problem you're reporting is not already in the list, log in to GitHub. If you don't already have a GitHub account, create a new account using the
"Sign up" link. It is not possible to submit a ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8fe32746-188c-4a9e-99b8-6fc9754c56a1 | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 649 | supabase-export-v2 | 72c569f21922986b | For the "Title" field, enter a *very* short description of the problem; fewer than ten words is good.
In the "Comment" field, describe the problem in detail, including what you
expected to happen and what did happen. Be sure to include whether any
extension modules were involved, and what hardware and software platform... | trusted_official_docs | CPython Docs | For the "Title" field, enter a *very* short description of the problem; fewer than ten words is good.
In the "Comment" field, describe the problem in detail, including what you
expected to happen and what did happen. Be sure to include whether any
extension modules were involved, and what hardware and software platform... | For the "Title" field, enter a *very* short description of the problem; fewer than ten words is good.
In the "Comment" field, describe the problem in detail, including what you
expected to happen and what did happen. Be sure to include whether any
extension modules were involved, and what hardware and software platform... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9ee6c973-d42d-44d1-b70c-f406938dcf77 | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 652 | supabase-export-v2 | b9ab9ad3be68543a | .. seealso::
`How to Report Bugs Effectively <https://www.chiark.greenend.org.uk/~sgtatham/bugs.html>`_
Article which goes into some detail about how to create a useful bug report. This describes what kind of information is useful and why it is useful. | trusted_official_docs | CPython Docs | .. seealso::
`How to Report Bugs Effectively <https://www.chiark.greenend.org.uk/~sgtatham/bugs.html>`_
Article which goes into some detail about how to create a useful bug report. This describes what kind of information is useful and why it is useful. | .. seealso::
`How to Report Bugs Effectively <https://www.chiark.greenend.org.uk/~sgtatham/bugs.html>`_
Article which goes into some detail about how to create a useful bug report. This describes what kind of information is useful and why it is useful. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b86c11af-d70c-4535-98f1-83adc8757fa3 | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 644 | supabase-export-v2 | 61376030efcdfeda | the GitHub issues tracker (https://github.com/python/cpython/issues). The GitHub issues tracker offers a web form which allows pertinent information to be entered and submitted to the developers.
The first step in filing a report is to determine whether the problem has
already been reported. The advantage in doing so, ... | trusted_official_docs | CPython Docs | the GitHub issues tracker (https://github.com/python/cpython/issues). The GitHub issues tracker offers a web form which allows pertinent information to be entered and submitted to the developers.
The first step in filing a report is to determine whether the problem has
already been reported. The advantage in doing so, ... | the GitHub issues tracker (https://github.com/python/cpython/issues). The GitHub issues tracker offers a web form which allows pertinent information to be entered and submitted to the developers.
The first step in filing a report is to determine whether the problem has
already been reported. The advantage in doing so, ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c75505c4-3fdb-4722-a1c5-926b27a6ae7e | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 629 | supabase-export-v2 | 79262edba7d9647c | has established a reputation for stability. In order to maintain this reputation, the developers would like to know of any deficiencies you find in Python.
It can be sometimes faster to fix bugs yourself and contribute patches to
Python as it streamlines the process and involves fewer people. Learn how to
:ref:`contrib... | trusted_official_docs | CPython Docs | has established a reputation for stability. In order to maintain this reputation, the developers would like to know of any deficiencies you find in Python.
It can be sometimes faster to fix bugs yourself and contribute patches to
Python as it streamlines the process and involves fewer people. Learn how to
:ref:`contrib... | has established a reputation for stability. In order to maintain this reputation, the developers would like to know of any deficiencies you find in Python.
It can be sometimes faster to fix bugs yourself and contribute patches to
Python as it streamlines the process and involves fewer people. Learn how to
:ref:`contrib... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e3f846b5-f7df-4646-9ccc-dcf2af8176dd | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 647 | supabase-export-v2 | 0a5b639a5cfccd27 | Being now logged in, you can submit an issue. Click on the "New issue" button in the top bar to report a new issue.
The submission form has two fields, "Title" and "Comment". | trusted_official_docs | CPython Docs | Being now logged in, you can submit an issue. Click on the "New issue" button in the top bar to report a new issue.
The submission form has two fields, "Title" and "Comment". | Being now logged in, you can submit an issue. Click on the "New issue" button in the top bar to report a new issue.
The submission form has two fields, "Title" and "Comment". | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fa6785c4-6522-4735-9f6e-8b3d133c7440 | CPython Docs | file://datasets/cpython/Doc/bugs.rst | unknown | 7b73ed10-e972-47de-b51a-cf9c0f3248d7 | 656 | supabase-export-v2 | 9ee366d080c4ee22 | Getting started contributing to Python yourself ===============================================
Beyond just reporting bugs that you find, you are also welcome to submit
patches to fix them. You can find more information on how to get started
patching Python in the `Python Developer's Guide`_. If you have questions,
the... | trusted_official_docs | CPython Docs | Getting started contributing to Python yourself ===============================================
Beyond just reporting bugs that you find, you are also welcome to submit
patches to fix them. You can find more information on how to get started
patching Python in the `Python Developer's Guide`_. If you have questions,
the... | Getting started contributing to Python yourself ===============================================
Beyond just reporting bugs that you find, you are also welcome to submit
patches to fix them. You can find more information on how to get started
patching Python in the `Python Developer's Guide`_. If you have questions,
the... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
108f8bae-7177-4b01-8997-c30d788066ef | CPython Docs | file://datasets/cpython/Doc/improve-page.rst | unknown | c09cc52f-6539-426c-9c61-108aa8524a2d | 670 | supabase-export-v2 | 8989bc47cf57b0f8 | You have a few ways to ask questions or suggest changes:
- You can start a discussion about the page on the Python discussion forum. This link will start a pre-populated topic:
`Question about page "PAGETITLE" <https://discuss.python.org/new-topic?category=documentation&title=Question+about+page+%22PAGETITLE%22&body=A... | trusted_official_docs | CPython Docs | You have a few ways to ask questions or suggest changes:
- You can start a discussion about the page on the Python discussion forum. This link will start a pre-populated topic:
`Question about page "PAGETITLE" <https://discuss.python.org/new-topic?category=documentation&title=Question+about+page+%22PAGETITLE%22&body=A... | You have a few ways to ask questions or suggest changes:
- You can start a discussion about the page on the Python discussion forum. This link will start a pre-populated topic:
`Question about page "PAGETITLE" <https://discuss.python.org/new-topic?category=documentation&title=Question+about+page+%22PAGETITLE%22&body=A... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
60616cae-e107-4eb7-a47f-d7ffc2302f2f | CPython Docs | file://datasets/cpython/Doc/improve-page.rst | unknown | c09cc52f-6539-426c-9c61-108aa8524a2d | 669 | supabase-export-v2 | ac25297687a9a5db | If the bug or suggested improvement concerns the translation of this documentation, open an issue or edit the page in `translation's repository <TRANSLATION_REPO_>`_ instead.
You have a few ways to ask questions or suggest changes: | trusted_official_docs | CPython Docs | If the bug or suggested improvement concerns the translation of this documentation, open an issue or edit the page in `translation's repository <TRANSLATION_REPO_>`_ instead.
You have a few ways to ask questions or suggest changes: | If the bug or suggested improvement concerns the translation of this documentation, open an issue or edit the page in `translation's repository <TRANSLATION_REPO_>`_ instead.
You have a few ways to ask questions or suggest changes: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7bad13c3-5290-4eb3-82f5-11014ab2aa33 | CPython Docs | file://datasets/cpython/Doc/improve-page.rst | unknown | c09cc52f-6539-426c-9c61-108aa8524a2d | 660 | supabase-export-v2 | 9d92e0a10ea8b06c | of this page. Another version (for those with JavaScript disabled) is improve-page-nojs.rst. If you edit this page, please also edit that one, and vice versa.
.. only:: html and not epub | trusted_official_docs | CPython Docs | of this page. Another version (for those with JavaScript disabled) is improve-page-nojs.rst. If you edit this page, please also edit that one, and vice versa.
.. only:: html and not epub | of this page. Another version (for those with JavaScript disabled) is improve-page-nojs.rst. If you edit this page, please also edit that one, and vice versa.
.. only:: html and not epub | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8f223cc2-ac4a-4d7e-9702-4a79927c8c30 | CPython Docs | file://datasets/cpython/Doc/improve-page.rst | unknown | c09cc52f-6539-426c-9c61-108aa8524a2d | 664 | supabase-export-v2 | 4838ca86a8d8a53f | while (walker.nextNode()) { const node = walker.currentNode;
if (node.nodeType === Node.TEXT_NODE) {
node.textContent = applyReplacements(node.textContent, params)
} else if (node.nodeName === 'A' && node.href) {
node.setAttribute('href', applyReplacements(node.getAttribute('href'), params));
}
}
});
</script> | trusted_official_docs | CPython Docs | while (walker.nextNode()) { const node = walker.currentNode;
if (node.nodeType === Node.TEXT_NODE) {
node.textContent = applyReplacements(node.textContent, params)
} else if (node.nodeName === 'A' && node.href) {
node.setAttribute('href', applyReplacements(node.getAttribute('href'), params));
}
}
});
</script> | while (walker.nextNode()) { const node = walker.currentNode;
if (node.nodeType === Node.TEXT_NODE) {
node.textContent = applyReplacements(node.textContent, params)
} else if (node.nodeName === 'A' && node.href) {
node.setAttribute('href', applyReplacements(node.getAttribute('href'), params));
}
}
});
</script> | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ad2b3880-88bc-4fa1-88d9-1ea7628aeaeb | CPython Docs | file://datasets/cpython/Doc/improve-page.rst | unknown | c09cc52f-6539-426c-9c61-108aa8524a2d | 662 | supabase-export-v2 | b8523572e40e32d9 | <script> function applyReplacements(text, params) { return text .replace(/PAGETITLE/g, params.get('pagetitle')) .replace(/PAGEURL/g, params.get('pageurl')) .replace(/PAGESOURCE/g, params.get('pagesource')); }
document.addEventListener('DOMContentLoaded', () => {
const params = new URLSearchParams(window.location.searc... | trusted_official_docs | CPython Docs | <script> function applyReplacements(text, params) { return text .replace(/PAGETITLE/g, params.get('pagetitle')) .replace(/PAGEURL/g, params.get('pageurl')) .replace(/PAGESOURCE/g, params.get('pagesource')); }
document.addEventListener('DOMContentLoaded', () => {
const params = new URLSearchParams(window.location.searc... | <script> function applyReplacements(text, params) { return text .replace(/PAGETITLE/g, params.get('pagetitle')) .replace(/PAGEURL/g, params.get('pageurl')) .replace(/PAGESOURCE/g, params.get('pagesource')); }
document.addEventListener('DOMContentLoaded', () => {
const params = new URLSearchParams(window.location.searc... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c1eee8a6-e1d7-4df9-9ab3-7776888271f5 | CPython Docs | file://datasets/cpython/Doc/improve-page.rst | unknown | c09cc52f-6539-426c-9c61-108aa8524a2d | 672 | supabase-export-v2 | f53608a640fb6699 | You can open an issue on the Python GitHub issue tracker. This link will create a new pre-populated issue: `Docs: problem with page "PAGETITLE" <https://github.com/python/cpython/issues/new?template=documentation.yml&title=Docs%3A+problem+with+page+%22PAGETITLE%22&description=The+page+at+PAGEURL+has+a+problem%3A>`_.
- ... | trusted_official_docs | CPython Docs | You can open an issue on the Python GitHub issue tracker. This link will create a new pre-populated issue: `Docs: problem with page "PAGETITLE" <https://github.com/python/cpython/issues/new?template=documentation.yml&title=Docs%3A+problem+with+page+%22PAGETITLE%22&description=The+page+at+PAGEURL+has+a+problem%3A>`_.
- ... | You can open an issue on the Python GitHub issue tracker. This link will create a new pre-populated issue: `Docs: problem with page "PAGETITLE" <https://github.com/python/cpython/issues/new?template=documentation.yml&title=Docs%3A+problem+with+page+%22PAGETITLE%22&description=The+page+at+PAGEURL+has+a+problem%3A>`_.
- ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e64451fe-5118-4de5-beaf-e5b1f2a891b1 | CPython Docs | file://datasets/cpython/Doc/improve-page.rst | unknown | c09cc52f-6539-426c-9c61-108aa8524a2d | 671 | supabase-export-v2 | 56b6b08283b0292b | You can start a discussion about the page on the Python discussion forum. This link will start a pre-populated topic: `Question about page "PAGETITLE" <https://discuss.python.org/new-topic?category=documentation&title=Question+about+page+%22PAGETITLE%22&body=About+the+page+at+PAGEURL%3A>`_.
- You can open an issue on t... | trusted_official_docs | CPython Docs | You can start a discussion about the page on the Python discussion forum. This link will start a pre-populated topic: `Question about page "PAGETITLE" <https://discuss.python.org/new-topic?category=documentation&title=Question+about+page+%22PAGETITLE%22&body=About+the+page+at+PAGEURL%3A>`_.
- You can open an issue on t... | You can start a discussion about the page on the Python discussion forum. This link will start a pre-populated topic: `Question about page "PAGETITLE" <https://discuss.python.org/new-topic?category=documentation&title=Question+about+page+%22PAGETITLE%22&body=About+the+page+at+PAGEURL%3A>`_.
- You can open an issue on t... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f954b83a-7406-4084-a208-d8058dc51693 | CPython Docs | file://datasets/cpython/Doc/improve-page.rst | unknown | c09cc52f-6539-426c-9c61-108aa8524a2d | 659 | supabase-export-v2 | 4fade1a6565c1807 | **************************** Improve a documentation page ****************************
.. This is the JavaScript-enabled version of this page. Another version
(for those with JavaScript disabled) is improve-page-nojs.rst. If you
edit this page, please also edit that one, and vice versa. | trusted_official_docs | CPython Docs | **************************** Improve a documentation page ****************************
.. This is the JavaScript-enabled version of this page. Another version
(for those with JavaScript disabled) is improve-page-nojs.rst. If you
edit this page, please also edit that one, and vice versa. | **************************** Improve a documentation page ****************************
.. This is the JavaScript-enabled version of this page. Another version
(for those with JavaScript disabled) is improve-page-nojs.rst. If you
edit this page, please also edit that one, and vice versa. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fe3ba160-73f7-4e0e-9ed2-4f660968934e | CPython Docs | file://datasets/cpython/Doc/improve-page.rst | unknown | c09cc52f-6539-426c-9c61-108aa8524a2d | 665 | supabase-export-v2 | 02bd6707c63f8b6e | if (node.nodeType === Node.TEXT_NODE) { node.textContent = applyReplacements(node.textContent, params) } else if (node.nodeName === 'A' && node.href) { node.setAttribute('href', applyReplacements(node.getAttribute('href'), params)); } } }); </script>
We are always interested to hear ideas about improvements to the docu... | trusted_official_docs | CPython Docs | if (node.nodeType === Node.TEXT_NODE) { node.textContent = applyReplacements(node.textContent, params) } else if (node.nodeName === 'A' && node.href) { node.setAttribute('href', applyReplacements(node.getAttribute('href'), params)); } } }); </script>
We are always interested to hear ideas about improvements to the docu... | if (node.nodeType === Node.TEXT_NODE) { node.textContent = applyReplacements(node.textContent, params) } else if (node.nodeName === 'A' && node.href) { node.setAttribute('href', applyReplacements(node.getAttribute('href'), params)); } } }); </script>
We are always interested to hear ideas about improvements to the docu... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7437f568-44a4-4825-932c-637c687d3323 | CPython Docs | file://datasets/cpython/Doc/improve-page-nojs.rst | unknown | bd2701bf-1103-476e-a22c-ccf6a36b810f | 688 | supabase-export-v2 | fc9375f02bd70de9 | start a discussion about the page on the Python discussion forum. This link will start a topic in the Documentation category: `New Documentation topic <https://discuss.python.org/new-topic?category=documentation>`_.
- You can open an issue on the Python GitHub issue tracker. This link will
create a new issue with the ... | trusted_official_docs | CPython Docs | start a discussion about the page on the Python discussion forum. This link will start a topic in the Documentation category: `New Documentation topic <https://discuss.python.org/new-topic?category=documentation>`_.
- You can open an issue on the Python GitHub issue tracker. This link will
create a new issue with the ... | start a discussion about the page on the Python discussion forum. This link will start a topic in the Documentation category: `New Documentation topic <https://discuss.python.org/new-topic?category=documentation>`_.
- You can open an issue on the Python GitHub issue tracker. This link will
create a new issue with the ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9e6d72f5-4389-498a-9300-f9cca3a9ad4d | CPython Docs | file://datasets/cpython/Doc/improve-page-nojs.rst | unknown | bd2701bf-1103-476e-a22c-ccf6a36b810f | 687 | supabase-export-v2 | 2ab72c80d2d73377 | You have a few ways to ask questions or suggest changes:
- You can start a discussion about the page on the Python discussion forum. This link will start a topic in the Documentation category:
`New Documentation topic <https://discuss.python.org/new-topic?category=documentation>`_. | trusted_official_docs | CPython Docs | You have a few ways to ask questions or suggest changes:
- You can start a discussion about the page on the Python discussion forum. This link will start a topic in the Documentation category:
`New Documentation topic <https://discuss.python.org/new-topic?category=documentation>`_. | You have a few ways to ask questions or suggest changes:
- You can start a discussion about the page on the Python discussion forum. This link will start a topic in the Documentation category:
`New Documentation topic <https://discuss.python.org/new-topic?category=documentation>`_. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a547bdef-d25a-4aad-98e2-b2b5fce63923 | CPython Docs | file://datasets/cpython/Doc/improve-page-nojs.rst | unknown | bd2701bf-1103-476e-a22c-ccf6a36b810f | 682 | supabase-export-v2 | 19944e2a41e76131 | page. The one most people will see (with JavaScript enabled) is improve-page.rst. If you edit this page, please also edit that one, and vice versa.
.. only:: html and not epub | trusted_official_docs | CPython Docs | page. The one most people will see (with JavaScript enabled) is improve-page.rst. If you edit this page, please also edit that one, and vice versa.
.. only:: html and not epub | page. The one most people will see (with JavaScript enabled) is improve-page.rst. If you edit this page, please also edit that one, and vice versa.
.. only:: html and not epub | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b11b94bb-536d-4ebd-8f69-5147125cb923 | CPython Docs | file://datasets/cpython/Doc/improve-page-nojs.rst | unknown | bd2701bf-1103-476e-a22c-ccf6a36b810f | 681 | supabase-export-v2 | 4dff7b1be1cb2cdc | **************************** Improve a documentation page ****************************
.. This is the no-javascript version of this page. The one most people
will see (with JavaScript enabled) is improve-page.rst. If you edit
this page, please also edit that one, and vice versa. | trusted_official_docs | CPython Docs | **************************** Improve a documentation page ****************************
.. This is the no-javascript version of this page. The one most people
will see (with JavaScript enabled) is improve-page.rst. If you edit
this page, please also edit that one, and vice versa. | **************************** Improve a documentation page ****************************
.. This is the no-javascript version of this page. The one most people
will see (with JavaScript enabled) is improve-page.rst. If you edit
this page, please also edit that one, and vice versa. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
03174c9a-ff51-4132-ab6d-d64b8ccf03aa | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 772 | supabase-export-v2 | fb9c5484eba0216e | ::
ok = PyArg_ParseTuple(args, "(ii)s#", &i, &j, &s, &size);
/* A pair of ints and a string, whose size is also returned */
/* Possible Python call: f((1, 2), 'three') */ | trusted_official_docs | CPython Docs | ::
ok = PyArg_ParseTuple(args, "(ii)s#", &i, &j, &s, &size);
/* A pair of ints and a string, whose size is also returned */
/* Possible Python call: f((1, 2), 'three') */ | ::
ok = PyArg_ParseTuple(args, "(ii)s#", &i, &j, &s, &size);
/* A pair of ints and a string, whose size is also returned */
/* Possible Python call: f((1, 2), 'three') */ | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
07192495-e7f7-46f0-8385-b2ac890fdbbc | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 698 | supabase-export-v2 | 8668c24b72b653f7 | need to call :c:func:`PyErr_Occurred` to see whether an error occurred in a function call, since you should be able to tell from the return value.
When a function *f* that calls another function *g* detects that the latter
fails, *f* should itself return an error value (usually ``NULL`` or ``-1``). It
should *not* call... | trusted_official_docs | CPython Docs | need to call :c:func:`PyErr_Occurred` to see whether an error occurred in a function call, since you should be able to tell from the return value.
When a function *f* that calls another function *g* detects that the latter
fails, *f* should itself return an error value (usually ``NULL`` or ``-1``). It
should *not* call... | need to call :c:func:`PyErr_Occurred` to see whether an error occurred in a function call, since you should be able to tell from the return value.
When a function *f* that calls another function *g* detects that the latter
fails, *f* should itself return an error value (usually ``NULL`` or ``-1``). It
should *not* call... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0919dc0d-ea57-42c6-aea5-09fef8f8fa48 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 699 | supabase-export-v2 | a7c77d7baac251bd | reaches the Python interpreter's main loop, this aborts the currently executing Python code and tries to find an exception handler specified by the Python programmer.
(There are situations where a module can actually give a more detailed error
message by calling another ``PyErr_*`` function, and in such cases it is
fin... | trusted_official_docs | CPython Docs | reaches the Python interpreter's main loop, this aborts the currently executing Python code and tries to find an exception handler specified by the Python programmer.
(There are situations where a module can actually give a more detailed error
message by calling another ``PyErr_*`` function, and in such cases it is
fin... | reaches the Python interpreter's main loop, this aborts the currently executing Python code and tries to find an exception handler specified by the Python programmer.
(There are situations where a module can actually give a more detailed error
message by calling another ``PyErr_*`` function, and in such cases it is
fin... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0b83ec99-178d-4261-8579-d42db2d5bc45 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 901 | supabase-export-v2 | 974cad9918b52a67 | :file:`spammodule.h` is rather complicated. However, the basic structure is the same for each function that is exported, so it has to be learned only once.
Finally it should be mentioned that Capsules offer additional functionality,
which is especially useful for memory allocation and deallocation of the pointer
stored... | trusted_official_docs | CPython Docs | :file:`spammodule.h` is rather complicated. However, the basic structure is the same for each function that is exported, so it has to be learned only once.
Finally it should be mentioned that Capsules offer additional functionality,
which is especially useful for memory allocation and deallocation of the pointer
stored... | :file:`spammodule.h` is rather complicated. However, the basic structure is the same for each function that is exported, so it has to be learned only once.
Finally it should be mentioned that Capsules offer additional functionality,
which is especially useful for memory allocation and deallocation of the pointer
stored... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0bd9f4bb-bd45-4fed-9fdd-4531d530cd38 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 742 | supabase-export-v2 | 14a0e72122ea4777 | one argument, pass a singleton tuple. :c:func:`Py_BuildValue` returns a tuple when its format string consists of zero or more format codes between parentheses. For example::
int arg;
PyObject *arglist;
PyObject *result;
... arg = 123;
... /* Time to call the callback */
arglist = Py_BuildValue("(i)", arg);
result... | trusted_official_docs | CPython Docs | one argument, pass a singleton tuple. :c:func:`Py_BuildValue` returns a tuple when its format string consists of zero or more format codes between parentheses. For example::
int arg;
PyObject *arglist;
PyObject *result;
... arg = 123;
... /* Time to call the callback */
arglist = Py_BuildValue("(i)", arg);
result... | one argument, pass a singleton tuple. :c:func:`Py_BuildValue` returns a tuple when its format string consists of zero or more format codes between parentheses. For example::
int arg;
PyObject *arglist;
PyObject *result;
... arg = 123;
... /* Time to call the callback */
arglist = Py_BuildValue("(i)", arg);
result... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
152ae62a-9b79-4d53-b959-ba8b95279d9d | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 851 | supabase-export-v2 | e6a5331fd357aaa8 | argument list passed to C functions (``args`` in the examples) is never ``NULL`` --- in fact it guarantees that it is always a tuple [#old-calling-convention]_.
It is a severe error to ever let a ``NULL`` pointer "escape" to the Python user. | trusted_official_docs | CPython Docs | argument list passed to C functions (``args`` in the examples) is never ``NULL`` --- in fact it guarantees that it is always a tuple [#old-calling-convention]_.
It is a severe error to ever let a ``NULL`` pointer "escape" to the Python user. | argument list passed to C functions (``args`` in the examples) is never ``NULL`` --- in fact it guarantees that it is always a tuple [#old-calling-convention]_.
It is a severe error to ever let a ``NULL`` pointer "escape" to the Python user. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
15face75-a2e7-4f0f-9bf9-2790d88ba017 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 843 | supabase-export-v2 | 9a9dd7ee873996af | variants of this bug and someone spent a considerable amount of time in a C debugger to figure out why his :meth:`!__del__` methods would fail...
The second case of problems with a borrowed reference is a variant involving
threads. Normally, multiple threads in the Python interpreter can't get in each
other's way, beca... | trusted_official_docs | CPython Docs | variants of this bug and someone spent a considerable amount of time in a C debugger to figure out why his :meth:`!__del__` methods would fail...
The second case of problems with a borrowed reference is a variant involving
threads. Normally, multiple threads in the Python interpreter can't get in each
other's way, beca... | variants of this bug and someone spent a considerable amount of time in a C debugger to figure out why his :meth:`!__del__` methods would fail...
The second case of problems with a borrowed reference is a variant involving
threads. Normally, multiple threads in the Python interpreter can't get in each
other's way, beca... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
179e106e-77dd-440b-817e-bc063881d0ff | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 702 | supabase-export-v2 | 935aef8228a1dee2 | failure indicator itself. All the object-creating functions (for example, :c:func:`PyLong_FromLong`) already do this, so this note is only relevant to those who call :c:func:`malloc` directly.
Also note that, with the important exception of :c:func:`PyArg_ParseTuple` and
friends, functions that return an integer status... | trusted_official_docs | CPython Docs | failure indicator itself. All the object-creating functions (for example, :c:func:`PyLong_FromLong`) already do this, so this note is only relevant to those who call :c:func:`malloc` directly.
Also note that, with the important exception of :c:func:`PyArg_ParseTuple` and
friends, functions that return an integer status... | failure indicator itself. All the object-creating functions (for example, :c:func:`PyLong_FromLong`) already do this, so this note is only relevant to those who call :c:func:`malloc` directly.
Also note that, with the important exception of :c:func:`PyArg_ParseTuple` and
friends, functions that return an integer status... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
191fc67d-19bf-4136-b1e0-0cdc89e1f59f | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 829 | supabase-export-v2 | 8d35fde494cf03fb | ownership of the item passed to them --- even if they fail! (Note that :c:func:`PyDict_SetItem` and friends don't take over ownership --- they are "normal.")
When a C function is called from Python, it borrows references to its arguments
from the caller. The caller owns a reference to the object, so the borrowed
refere... | trusted_official_docs | CPython Docs | ownership of the item passed to them --- even if they fail! (Note that :c:func:`PyDict_SetItem` and friends don't take over ownership --- they are "normal.")
When a C function is called from Python, it borrows references to its arguments
from the caller. The caller owns a reference to the object, so the borrowed
refere... | ownership of the item passed to them --- even if they fail! (Note that :c:func:`PyDict_SetItem` and friends don't take over ownership --- they are "normal.")
When a C function is called from Python, it borrows references to its arguments
from the caller. The caller owns a reference to the object, so the borrowed
refere... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
19b5f97b-d3d0-4e14-8ac2-85e97327c4b2 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 719 | supabase-export-v2 | 109290b0c42d399f | a dangling pointer. Should it become a dangling pointer, C code which raises the exception could cause a core dump or other unintended side effects.
For now, the :c:func:`Py_DECREF` call to remove this reference is missing. Even when the Python interpreter shuts down, the global :c:data:`!SpamError`
variable will not b... | trusted_official_docs | CPython Docs | a dangling pointer. Should it become a dangling pointer, C code which raises the exception could cause a core dump or other unintended side effects.
For now, the :c:func:`Py_DECREF` call to remove this reference is missing. Even when the Python interpreter shuts down, the global :c:data:`!SpamError`
variable will not b... | a dangling pointer. Should it become a dangling pointer, C code which raises the exception could cause a core dump or other unintended side effects.
For now, the :c:func:`Py_DECREF` call to remove this reference is missing. Even when the Python interpreter shuts down, the global :c:data:`!SpamError`
variable will not b... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1a7bc076-3746-4398-934d-0f435a9c830f | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 866 | supabase-export-v2 | 5c7704fc85caafb2 | modulename.attributename
The convenience function :c:func:`PyCapsule_Import` makes it easy to
load a C API provided via a Capsule, but only if the Capsule's name
matches this convention. This behavior gives C API users a high degree
of certainty that the Capsule they load contains the correct C API. | trusted_official_docs | CPython Docs | modulename.attributename
The convenience function :c:func:`PyCapsule_Import` makes it easy to
load a C API provided via a Capsule, but only if the Capsule's name
matches this convention. This behavior gives C API users a high degree
of certainty that the Capsule they load contains the correct C API. | modulename.attributename
The convenience function :c:func:`PyCapsule_Import` makes it easy to
load a C API provided via a Capsule, but only if the Capsule's name
matches this convention. This behavior gives C API users a high degree
of certainty that the Capsule they load contains the correct C API. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1d69409d-b6c1-48f8-82e5-de03a098f2da | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 706 | supabase-export-v2 | 48dcaf3c7e888332 | is unique to your module. The simplest way to do this is to declare a static global object variable at the beginning of the file::
static PyObject *SpamError = NULL; | trusted_official_docs | CPython Docs | is unique to your module. The simplest way to do this is to declare a static global object variable at the beginning of the file::
static PyObject *SpamError = NULL; | is unique to your module. The simplest way to do this is to declare a static global object variable at the beginning of the file::
static PyObject *SpamError = NULL; | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1fa83f90-665c-4ce8-8bdd-846fb9edb595 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 703 | supabase-export-v2 | 9e87f29b1d75c145 | and friends, functions that return an integer status usually return a positive value or zero for success and ``-1`` for failure, like Unix system calls.
Finally, be careful to clean up garbage (by making :c:func:`Py_XDECREF` or
:c:func:`Py_DECREF` calls for objects you have already created) when you return
an error ind... | trusted_official_docs | CPython Docs | and friends, functions that return an integer status usually return a positive value or zero for success and ``-1`` for failure, like Unix system calls.
Finally, be careful to clean up garbage (by making :c:func:`Py_XDECREF` or
:c:func:`Py_DECREF` calls for objects you have already created) when you return
an error ind... | and friends, functions that return an integer status usually return a positive value or zero for success and ``-1`` for failure, like Unix system calls.
Finally, be careful to clean up garbage (by making :c:func:`Py_XDECREF` or
:c:func:`Py_DECREF` calls for objects you have already created) when you return
an error ind... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
20ea6169-3c36-4bc7-b66e-d5059c460ede | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 867 | supabase-export-v2 | 285f628ec3dea8c8 | name matches this convention. This behavior gives C API users a high degree of certainty that the Capsule they load contains the correct C API.
The following example demonstrates an approach that puts most of the burden on
the writer of the exporting module, which is appropriate for commonly used
library modules. It st... | trusted_official_docs | CPython Docs | name matches this convention. This behavior gives C API users a high degree of certainty that the Capsule they load contains the correct C API.
The following example demonstrates an approach that puts most of the burden on
the writer of the exporting module, which is appropriate for commonly used
library modules. It st... | name matches this convention. This behavior gives C API users a high degree of certainty that the Capsule they load contains the correct C API.
The following example demonstrates an approach that puts most of the burden on
the writer of the exporting module, which is appropriate for commonly used
library modules. It st... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
24eafdec-3ebd-4d06-b23c-e75c4484e717 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 810 | supabase-export-v2 | 47904944d4d1e66a | :c:func:`malloc` call. This is called :dfn:`using freed memory`. It has the same bad consequences as referencing uninitialized data --- core dumps, wrong results, mysterious crashes.
Common causes of memory leaks are unusual paths through the code. For instance,
a function may allocate a block of memory, do some calcul... | trusted_official_docs | CPython Docs | :c:func:`malloc` call. This is called :dfn:`using freed memory`. It has the same bad consequences as referencing uninitialized data --- core dumps, wrong results, mysterious crashes.
Common causes of memory leaks are unusual paths through the code. For instance,
a function may allocate a block of memory, do some calcul... | :c:func:`malloc` call. This is called :dfn:`using freed memory`. It has the same bad consequences as referencing uninitialized data --- core dumps, wrong results, mysterious crashes.
Common causes of memory leaks are unusual paths through the code. For instance,
a function may allocate a block of memory, do some calcul... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
27801ca5-5b96-4dce-8cb2-98e41b424e61 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 826 | supabase-export-v2 | 64ef551bdd4dbb46 | of a new reference to that object. For instance, :c:func:`PyLong_FromLong` maintains a cache of popular values and can return a reference to a cached item.
Many functions that extract objects from other objects also transfer ownership
with the reference, for instance :c:func:`PyObject_GetAttrString`. The picture
is les... | trusted_official_docs | CPython Docs | of a new reference to that object. For instance, :c:func:`PyLong_FromLong` maintains a cache of popular values and can return a reference to a cached item.
Many functions that extract objects from other objects also transfer ownership
with the reference, for instance :c:func:`PyObject_GetAttrString`. The picture
is les... | of a new reference to that object. For instance, :c:func:`PyLong_FromLong` maintains a cache of popular values and can return a reference to a cached item.
Many functions that extract objects from other objects also transfer ownership
with the reference, for instance :c:func:`PyObject_GetAttrString`. The picture
is les... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2826798c-65fe-4d6d-8c4c-4999fbeefd05 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 749 | supabase-export-v2 | 50e5cdf8c8c3d10f | eventcode); result = PyObject_CallObject(my_callback, arglist); Py_DECREF(arglist); if (result == NULL) return NULL; /* Pass error back */ /* Here maybe use the result */ Py_DECREF(result);
Note the placement of ``Py_DECREF(arglist)`` immediately after the call, before
the error check! Also note that strictly speaking ... | trusted_official_docs | CPython Docs | eventcode); result = PyObject_CallObject(my_callback, arglist); Py_DECREF(arglist); if (result == NULL) return NULL; /* Pass error back */ /* Here maybe use the result */ Py_DECREF(result);
Note the placement of ``Py_DECREF(arglist)`` immediately after the call, before
the error check! Also note that strictly speaking ... | eventcode); result = PyObject_CallObject(my_callback, arglist); Py_DECREF(arglist); if (result == NULL) return NULL; /* Pass error back */ /* Here maybe use the result */ Py_DECREF(result);
Note the placement of ``Py_DECREF(arglist)`` immediately after the call, before
the error check! Also note that strictly speaking ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2a766735-cab6-4816-89cd-58e13343eb1e | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 690 | supabase-export-v2 | c27c3fb52fe94640 | ******************************** Using the C API: Assorted topics ********************************
The :ref:`tutorial <first-extension-module>` walked you through
creating a C API extension module, but left many areas unexplained. This document looks at several concepts that you'll need to learn
in order to write more ... | trusted_official_docs | CPython Docs | ******************************** Using the C API: Assorted topics ********************************
The :ref:`tutorial <first-extension-module>` walked you through
creating a C API extension module, but left many areas unexplained. This document looks at several concepts that you'll need to learn
in order to write more ... | ******************************** Using the C API: Assorted topics ********************************
The :ref:`tutorial <first-extension-module>` walked you through
creating a C API extension module, but left many areas unexplained. This document looks at several concepts that you'll need to learn
in order to write more ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2ade1989-a9c1-484d-9529-1c7f9a073183 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 700 | supabase-export-v2 | 1ce663b56c87282f | is not necessary, and can cause information about the cause of the error to be lost: most operations can fail for a variety of reasons.)
To ignore an exception set by a function call that failed, the exception
condition must be cleared explicitly by calling :c:func:`PyErr_Clear`. The only
time C code should call :c:fun... | trusted_official_docs | CPython Docs | is not necessary, and can cause information about the cause of the error to be lost: most operations can fail for a variety of reasons.)
To ignore an exception set by a function call that failed, the exception
condition must be cleared explicitly by calling :c:func:`PyErr_Clear`. The only
time C code should call :c:fun... | is not necessary, and can cause information about the cause of the error to be lost: most operations can fail for a variety of reasons.)
To ignore an exception set by a function call that failed, the exception
condition must be cleared explicitly by calling :c:func:`PyErr_Clear`. The only
time C code should call :c:fun... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2b7f6ac6-7c69-41a9-a98e-e462fb352234 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 904 | supabase-export-v2 | 8ffbd8bef6d12b62 | .. [#borrow] The metaphor of "borrowing" a reference is not completely correct: the owner still has a copy of the reference.
.. [#dont-check-refcount] Checking that the reference count is at least 1
**does not work** --- the
reference count itself could be in freed memory and may thus be reused for
another object! | trusted_official_docs | CPython Docs | .. [#borrow] The metaphor of "borrowing" a reference is not completely correct: the owner still has a copy of the reference.
.. [#dont-check-refcount] Checking that the reference count is at least 1
**does not work** --- the
reference count itself could be in freed memory and may thus be reused for
another object! | .. [#borrow] The metaphor of "borrowing" a reference is not completely correct: the owner still has a copy of the reference.
.. [#dont-check-refcount] Checking that the reference count is at least 1
**does not work** --- the
reference count itself could be in freed memory and may thus be reused for
another object! | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2b8dc3bc-36ad-4919-8304-e1f9eaaab564 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 694 | supabase-export-v2 | 225ae4a752cd214c | These are the exception type, exception instance, and a traceback object. It is important to know about them to understand how errors are passed around.
The Python API defines a number of functions to set various types of exceptions. | trusted_official_docs | CPython Docs | These are the exception type, exception instance, and a traceback object. It is important to know about them to understand how errors are passed around.
The Python API defines a number of functions to set various types of exceptions. | These are the exception type, exception instance, and a traceback object. It is important to know about them to understand how errors are passed around.
The Python API defines a number of functions to set various types of exceptions. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2cb5620a-1024-460a-8d6d-231f0e7eab3f | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 760 | supabase-export-v2 | 6aea159dfe259bfb | For example, to receive a single Python :py:class:`str` object and turn it into a C buffer, you would use ``"s"`` as the format string::
const char *command;
if (!PyArg_ParseTuple(args, "s", &command)) {
return NULL;
} | trusted_official_docs | CPython Docs | For example, to receive a single Python :py:class:`str` object and turn it into a C buffer, you would use ``"s"`` as the format string::
const char *command;
if (!PyArg_ParseTuple(args, "s", &command)) {
return NULL;
} | For example, to receive a single Python :py:class:`str` object and turn it into a C buffer, you would use ``"s"`` as the format string::
const char *command;
if (!PyArg_ParseTuple(args, "s", &command)) {
return NULL;
} | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2d41076c-3513-4f26-b0a2-e44027976c31 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 722 | supabase-export-v2 | 2e33a5ccfbf30f02 | The :exc:`!spam.error` exception can be raised in your extension module using a call to :c:func:`PyErr_SetString` as shown below::
static PyObject *
spam_system(PyObject *self, PyObject *args)
{
const char *command;
int sts; | trusted_official_docs | CPython Docs | The :exc:`!spam.error` exception can be raised in your extension module using a call to :c:func:`PyErr_SetString` as shown below::
static PyObject *
spam_system(PyObject *self, PyObject *args)
{
const char *command;
int sts; | The :exc:`!spam.error` exception can be raised in your extension module using a call to :c:func:`PyErr_SetString` as shown below::
static PyObject *
spam_system(PyObject *self, PyObject *args)
{
const char *command;
int sts; | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2e7529e5-4c7a-492a-a435-aa0c17a0f985 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 718 | supabase-export-v2 | 3cfe5da5925d4bbf | The :c:func:`PyErr_NewException` function may create a class with the base class being :exc:`Exception` (unless another class is passed in instead of ``NULL``), described in :ref:`bltin-exceptions`.
Note also that the :c:data:`!SpamError` variable retains a reference to the newly
created exception class; this is intent... | trusted_official_docs | CPython Docs | The :c:func:`PyErr_NewException` function may create a class with the base class being :exc:`Exception` (unless another class is passed in instead of ``NULL``), described in :ref:`bltin-exceptions`.
Note also that the :c:data:`!SpamError` variable retains a reference to the newly
created exception class; this is intent... | The :c:func:`PyErr_NewException` function may create a class with the base class being :exc:`Exception` (unless another class is passed in instead of ``NULL``), described in :ref:`bltin-exceptions`.
Note also that the :c:data:`!SpamError` variable retains a reference to the newly
created exception class; this is intent... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
30d9b4ac-776a-4c0a-a656-5696b43e8d5a | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 735 | supabase-export-v2 | 5dc37e81476dc942 | to :c:func:`Py_INCREF` it!) in a global variable --- or wherever you see fit. For example, the following function might be part of a module definition::
static PyObject *my_callback = NULL; | trusted_official_docs | CPython Docs | to :c:func:`Py_INCREF` it!) in a global variable --- or wherever you see fit. For example, the following function might be part of a module definition::
static PyObject *my_callback = NULL; | to :c:func:`Py_INCREF` it!) in a global variable --- or wherever you see fit. For example, the following function might be part of a module definition::
static PyObject *my_callback = NULL; | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
314c1314-eee5-407a-ad7e-771ddb8a86e2 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 758 | supabase-export-v2 | 3cc766a5512e67b0 | int PyArg_ParseTuple(PyObject *arg, const char *format, ...);
The *arg* argument must be a tuple object containing an argument list passed
from Python to a C function. The *format* argument must be a format string,
whose syntax is explained in :ref:`arg-parsing` in the Python/C API Reference
Manual. The remaining argum... | trusted_official_docs | CPython Docs | int PyArg_ParseTuple(PyObject *arg, const char *format, ...);
The *arg* argument must be a tuple object containing an argument list passed
from Python to a C function. The *format* argument must be a format string,
whose syntax is explained in :ref:`arg-parsing` in the Python/C API Reference
Manual. The remaining argum... | int PyArg_ParseTuple(PyObject *arg, const char *format, ...);
The *arg* argument must be a tuple object containing an argument list passed
from Python to a C function. The *format* argument must be a format string,
whose syntax is explained in :ref:`arg-parsing` in the Python/C API Reference
Manual. The remaining argum... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3183d295-bcb4-43a1-b05f-cf7f1431d049 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 733 | supabase-export-v2 | 4c3fbc3db5bd0f38 | a callback mechanism to the Python programmer; the implementation will require calling the Python callback functions from a C callback. Other uses are also imaginable.
Fortunately, the Python interpreter is easily called recursively, and there is a
standard interface to call a Python function. (I won't dwell on how to ... | trusted_official_docs | CPython Docs | a callback mechanism to the Python programmer; the implementation will require calling the Python callback functions from a C callback. Other uses are also imaginable.
Fortunately, the Python interpreter is easily called recursively, and there is a
standard interface to call a Python function. (I won't dwell on how to ... | a callback mechanism to the Python programmer; the implementation will require calling the Python callback functions from a C callback. Other uses are also imaginable.
Fortunately, the Python interpreter is easily called recursively, and there is a
standard interface to call a Python function. (I won't dwell on how to ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
319f180b-0337-4776-afa9-63c26e23abbe | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 721 | supabase-export-v2 | 0c11c202be984814 | We discuss the use of :c:macro:`PyMODINIT_FUNC` as a function return type later in this sample.
The :exc:`!spam.error` exception can be raised in your extension module using a
call to :c:func:`PyErr_SetString` as shown below:: | trusted_official_docs | CPython Docs | We discuss the use of :c:macro:`PyMODINIT_FUNC` as a function return type later in this sample.
The :exc:`!spam.error` exception can be raised in your extension module using a
call to :c:func:`PyErr_SetString` as shown below:: | We discuss the use of :c:macro:`PyMODINIT_FUNC` as a function return type later in this sample.
The :exc:`!spam.error` exception can be raised in your extension module using a
call to :c:func:`PyErr_SetString` as shown below:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
325d5aa0-b74d-40f0-901f-612b81efa63e | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 752 | supabase-export-v2 | fa4f0e584a22178e | result = PyObject_Call(my_callback, NULL, dict); Py_DECREF(dict); if (result == NULL) return NULL; /* Pass error back */ /* Here maybe use the result */ Py_DECREF(result);
.. index:: single: PyArg_ParseTuple (C function) | trusted_official_docs | CPython Docs | result = PyObject_Call(my_callback, NULL, dict); Py_DECREF(dict); if (result == NULL) return NULL; /* Pass error back */ /* Here maybe use the result */ Py_DECREF(result);
.. index:: single: PyArg_ParseTuple (C function) | result = PyObject_Call(my_callback, NULL, dict); Py_DECREF(dict); if (result == NULL) return NULL; /* Pass error back */ /* Here maybe use the result */ Py_DECREF(result);
.. index:: single: PyArg_ParseTuple (C function) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
367baab4-33cb-4764-a255-362d31ea2528 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 860 | supabase-export-v2 | 568473a284348fcb | different strategies (most Unices). And even if symbols are globally visible, the module whose functions one wishes to call might not have been loaded yet!
Portability therefore requires not to make any assumptions about symbol
visibility. This means that all symbols in extension modules should be declared
``static``, ... | trusted_official_docs | CPython Docs | different strategies (most Unices). And even if symbols are globally visible, the module whose functions one wishes to call might not have been loaded yet!
Portability therefore requires not to make any assumptions about symbol
visibility. This means that all symbols in extension modules should be declared
``static``, ... | different strategies (most Unices). And even if symbols are globally visible, the module whose functions one wishes to call might not have been loaded yet!
Portability therefore requires not to make any assumptions about symbol
visibility. This means that all symbols in extension modules should be declared
``static``, ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3adbd41d-44bf-4fe0-9a24-8d3c8d408b51 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 704 | supabase-export-v2 | 475cf2d7d360ec85 | Finally, be careful to clean up garbage (by making :c:func:`Py_XDECREF` or :c:func:`Py_DECREF` calls for objects you have already created) when you return an error indicator!
The choice of which exception to raise is entirely yours. There are predeclared
C objects corresponding to all built-in Python exceptions, such a... | trusted_official_docs | CPython Docs | Finally, be careful to clean up garbage (by making :c:func:`Py_XDECREF` or :c:func:`Py_DECREF` calls for objects you have already created) when you return an error indicator!
The choice of which exception to raise is entirely yours. There are predeclared
C objects corresponding to all built-in Python exceptions, such a... | Finally, be careful to clean up garbage (by making :c:func:`Py_XDECREF` or :c:func:`Py_DECREF` calls for objects you have already created) when you return an error indicator!
The choice of which exception to raise is entirely yours. There are predeclared
C objects corresponding to all built-in Python exceptions, such a... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3cd0549b-d601-454d-b0df-72afdef97982 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 789 | supabase-export-v2 | b53592c7e7ea9f7f | tuples cannot be parsed when using keyword arguments! Keyword parameters passed in which are not present in the *kwlist* will cause :exc:`TypeError` to be raised.
.. index:: single: Philbrick, Geoff | trusted_official_docs | CPython Docs | tuples cannot be parsed when using keyword arguments! Keyword parameters passed in which are not present in the *kwlist* will cause :exc:`TypeError` to be raised.
.. index:: single: Philbrick, Geoff | tuples cannot be parsed when using keyword arguments! Keyword parameters passed in which are not present in the *kwlist* will cause :exc:`TypeError` to be raised.
.. index:: single: Philbrick, Geoff | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3db3e34b-d8d3-4dfb-998b-7304ade9b830 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 878 | supabase-export-v2 | 3668399c8cd82788 | #define SPAM_MODULE #include "spammodule.h"
The ``#define`` is used to tell the header file that it is being included in the
exporting module, not a client module. Finally, the module's :c:data:`mod_exec
<Py_mod_exec>` function must take care of initializing the C API pointer array:: | trusted_official_docs | CPython Docs | #define SPAM_MODULE #include "spammodule.h"
The ``#define`` is used to tell the header file that it is being included in the
exporting module, not a client module. Finally, the module's :c:data:`mod_exec
<Py_mod_exec>` function must take care of initializing the C API pointer array:: | #define SPAM_MODULE #include "spammodule.h"
The ``#define`` is used to tell the header file that it is being included in the
exporting module, not a client module. Finally, the module's :c:data:`mod_exec
<Py_mod_exec>` function must take care of initializing the C API pointer array:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3ea18a37-cdad-41ba-9eb3-8d3e23868e0f | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 840 | supabase-export-v2 | 8198f0dfbccf5b8e | The solution, once you know the source of the problem, is easy: temporarily increment the reference count. The correct version of the function reads::
void
no_bug(PyObject *list)
{
PyObject *item = PyList_GetItem(list, 0); | trusted_official_docs | CPython Docs | The solution, once you know the source of the problem, is easy: temporarily increment the reference count. The correct version of the function reads::
void
no_bug(PyObject *list)
{
PyObject *item = PyList_GetItem(list, 0); | The solution, once you know the source of the problem, is easy: temporarily increment the reference count. The correct version of the function reads::
void
no_bug(PyObject *list)
{
PyObject *item = PyList_GetItem(list, 0); | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
47479f84-4f79-4a4a-a16c-1314c14fb6de | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 863 | supabase-export-v2 | 5eeee532a51d445a | the various tasks of storing and retrieving the pointers can be distributed in different ways between the module providing the code and the client modules.
Whichever method you choose, it's important to name your Capsules properly. The function :c:func:`PyCapsule_New` takes a name parameter
(:c:expr:`const char \*`); y... | trusted_official_docs | CPython Docs | the various tasks of storing and retrieving the pointers can be distributed in different ways between the module providing the code and the client modules.
Whichever method you choose, it's important to name your Capsules properly. The function :c:func:`PyCapsule_New` takes a name parameter
(:c:expr:`const char \*`); y... | the various tasks of storing and retrieving the pointers can be distributed in different ways between the module providing the code and the client modules.
Whichever method you choose, it's important to name your Capsules properly. The function :c:func:`PyCapsule_New` takes a name parameter
(:c:expr:`const char \*`); y... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
47e2ffec-14f0-414f-bc17-24030f0ab814 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 781 | supabase-export-v2 | 1a398f662e86f322 | Keyword Parameters for Extension Functions ==========================================
If you also want your function to accept
:term:`keyword arguments <keyword argument>`, use the :c:data:`METH_KEYWORDS`
flag in combination with :c:data:`METH_VARARGS`. (:c:data:`!METH_KEYWORDS` can also be used with other flags; see i... | trusted_official_docs | CPython Docs | Keyword Parameters for Extension Functions ==========================================
If you also want your function to accept
:term:`keyword arguments <keyword argument>`, use the :c:data:`METH_KEYWORDS`
flag in combination with :c:data:`METH_VARARGS`. (:c:data:`!METH_KEYWORDS` can also be used with other flags; see i... | Keyword Parameters for Extension Functions ==========================================
If you also want your function to accept
:term:`keyword arguments <keyword argument>`, use the :c:data:`METH_KEYWORDS`
flag in combination with :c:data:`METH_VARARGS`. (:c:data:`!METH_KEYWORDS` can also be used with other flags; see i... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
499834b1-155e-47eb-913b-3180a75ef006 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 728 | supabase-export-v2 | 002329955c4c1eb0 | spam spammodule.o
and rebuild the interpreter by running :program:`make` in the toplevel
directory. You can also run :program:`make` in the :file:`Modules/`
subdirectory, but then you must first rebuild :file:`Makefile` there by running
':program:`make` Makefile'. (This is necessary each time you change the
:file:`Setu... | trusted_official_docs | CPython Docs | spam spammodule.o
and rebuild the interpreter by running :program:`make` in the toplevel
directory. You can also run :program:`make` in the :file:`Modules/`
subdirectory, but then you must first rebuild :file:`Makefile` there by running
':program:`make` Makefile'. (This is necessary each time you change the
:file:`Setu... | spam spammodule.o
and rebuild the interpreter by running :program:`make` in the toplevel
directory. You can also run :program:`make` in the :file:`Modules/`
subdirectory, but then you must first rebuild :file:`Makefile` there by running
':program:`make` Makefile'. (This is necessary each time you change the
:file:`Setu... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4aab384c-ba7f-4288-8d76-d2009cee1809 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 812 | supabase-export-v2 | 68c3652a8d4d75fb | a reference to it is deleted. When the counter reaches zero, the last reference to the object has been deleted and the object is freed.
An alternative strategy is called :dfn:`automatic garbage collection`. (Sometimes, reference counting is also referred to as a garbage collection
strategy, hence my use of "automatic" ... | trusted_official_docs | CPython Docs | a reference to it is deleted. When the counter reaches zero, the last reference to the object has been deleted and the object is freed.
An alternative strategy is called :dfn:`automatic garbage collection`. (Sometimes, reference counting is also referred to as a garbage collection
strategy, hence my use of "automatic" ... | a reference to it is deleted. When the counter reaches zero, the last reference to the object has been deleted and the object is freed.
An alternative strategy is called :dfn:`automatic garbage collection`. (Sometimes, reference counting is also referred to as a garbage collection
strategy, hence my use of "automatic" ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4b8a314b-4253-46c7-9492-866b2badaf35 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 751 | supabase-export-v2 | d4af1cd3e0acb97b | with keyword arguments by using :c:func:`PyObject_Call`, which supports arguments and keyword arguments. As in the above example, we use :c:func:`Py_BuildValue` to construct the dictionary. ::
PyObject *dict;
... dict = Py_BuildValue("{s:i}", "name", val);
result = PyObject_Call(my_callback, NULL, dict);
Py_DECREF(d... | trusted_official_docs | CPython Docs | with keyword arguments by using :c:func:`PyObject_Call`, which supports arguments and keyword arguments. As in the above example, we use :c:func:`Py_BuildValue` to construct the dictionary. ::
PyObject *dict;
... dict = Py_BuildValue("{s:i}", "name", val);
result = PyObject_Call(my_callback, NULL, dict);
Py_DECREF(d... | with keyword arguments by using :c:func:`PyObject_Call`, which supports arguments and keyword arguments. As in the above example, we use :c:func:`Py_BuildValue` to construct the dictionary. ::
PyObject *dict;
... dict = Py_BuildValue("{s:i}", "name", val);
result = PyObject_Call(my_callback, NULL, dict);
Py_DECREF(d... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4ebcec92-b684-4e0e-81e1-b11ee81f9430 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 808 | supabase-export-v2 | 75cdad3b09690cdd | Reference Counts ================
In languages like C or C++, the programmer is responsible for dynamic allocation
and deallocation of memory on the heap. In C, this is done using the functions
:c:func:`malloc` and :c:func:`free`. In C++, the operators ``new`` and
``delete`` are used with essentially the same meaning a... | trusted_official_docs | CPython Docs | Reference Counts ================
In languages like C or C++, the programmer is responsible for dynamic allocation
and deallocation of memory on the heap. In C, this is done using the functions
:c:func:`malloc` and :c:func:`free`. In C++, the operators ``new`` and
``delete`` are used with essentially the same meaning a... | Reference Counts ================
In languages like C or C++, the programmer is responsible for dynamic allocation
and deallocation of memory on the heap. In C, this is done using the functions
:c:func:`malloc` and :c:func:`free`. In C++, the operators ``new`` and
``delete`` are used with essentially the same meaning a... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4f22e3e1-45e3-4a31-b06c-eccccf30eec6 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 852 | supabase-export-v2 | a75eb7140fdd337b | It is a severe error to ever let a ``NULL`` pointer "escape" to the Python user.
.. Frank Stajano:
A pedagogically buggy example, along the lines of the previous listing, would
be helpful here -- showing in more concrete terms what sort of actions could
cause the problem. I can't very well imagine it from the descri... | trusted_official_docs | CPython Docs | It is a severe error to ever let a ``NULL`` pointer "escape" to the Python user.
.. Frank Stajano:
A pedagogically buggy example, along the lines of the previous listing, would
be helpful here -- showing in more concrete terms what sort of actions could
cause the problem. I can't very well imagine it from the descri... | It is a severe error to ever let a ``NULL`` pointer "escape" to the Python user.
.. Frank Stajano:
A pedagogically buggy example, along the lines of the previous listing, would
be helpful here -- showing in more concrete terms what sort of actions could
cause the problem. I can't very well imagine it from the descri... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4f30985c-7e75-4cd5-8627-c56e06fa06d4 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 793 | supabase-export-v2 | e67dd175c83d0a1e | *self, PyObject *args, PyObject *keywds) { int voltage; const char *state = "a stiff"; const char *action = "voom"; const char *type = "Norwegian Blue";
static char *kwlist[] = {"voltage", "state", "action", "type", NULL}; | trusted_official_docs | CPython Docs | *self, PyObject *args, PyObject *keywds) { int voltage; const char *state = "a stiff"; const char *action = "voom"; const char *type = "Norwegian Blue";
static char *kwlist[] = {"voltage", "state", "action", "type", NULL}; | *self, PyObject *args, PyObject *keywds) { int voltage; const char *state = "a stiff"; const char *action = "voom"; const char *type = "Norwegian Blue";
static char *kwlist[] = {"voltage", "state", "action", "type", NULL}; | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
546f0484-04b0-41d4-87d1-87ed64a39147 | CPython Docs | file://datasets/cpython/Doc/extending/extending.rst | unknown | 5300cab5-221b-4121-9962-d6b5f617402a | 755 | supabase-export-v2 | f833652458e28cde | Extracting Parameters in Extension Functions ============================================
The :ref:`tutorial <first-extension-module>` uses a ":c:data:`METH_O`"
function, which is limited to a single Python argument. If you want more, you can use :c:data:`METH_VARARGS` instead. With this flag, the C function will recei... | trusted_official_docs | CPython Docs | Extracting Parameters in Extension Functions ============================================
The :ref:`tutorial <first-extension-module>` uses a ":c:data:`METH_O`"
function, which is limited to a single Python argument. If you want more, you can use :c:data:`METH_VARARGS` instead. With this flag, the C function will recei... | Extracting Parameters in Extension Functions ============================================
The :ref:`tutorial <first-extension-module>` uses a ":c:data:`METH_O`"
function, which is limited to a single Python argument. If you want more, you can use :c:data:`METH_VARARGS` instead. With this flag, the C function will recei... | 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.