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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72101c37-d2c0-49a7-8f2c-92b74df9bd72 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,146 | supabase-export-v2 | 50c091625bb0b775 | .. versionchanged:: 3.6 Use 2 bytes for each instruction. Previously the number of bytes varied by instruction.
.. versionchanged:: 3.10
The argument of jump, exception handling and loop instructions is now
the instruction offset rather than the byte offset. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.6 Use 2 bytes for each instruction. Previously the number of bytes varied by instruction.
.. versionchanged:: 3.10
The argument of jump, exception handling and loop instructions is now
the instruction offset rather than the byte offset. | .. versionchanged:: 3.6 Use 2 bytes for each instruction. Previously the number of bytes varied by instruction.
.. versionchanged:: 3.10
The argument of jump, exception handling and loop instructions is now
the instruction offset rather than the byte offset. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
76863901-16d6-48cd-b53a-182c464b77df | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,182 | supabase-export-v2 | 1099038a08533322 | reported for the first source line in the disassembled code. Otherwise, the source line information (if any) is taken directly from the disassembled code object.
If *current_offset* is not ``None``, it refers to an instruction offset in the
disassembled code. Setting this means :meth:`.dis` will display a "current
in... | trusted_official_docs | CPython Docs | reported for the first source line in the disassembled code. Otherwise, the source line information (if any) is taken directly from the disassembled code object.
If *current_offset* is not ``None``, it refers to an instruction offset in the
disassembled code. Setting this means :meth:`.dis` will display a "current
in... | reported for the first source line in the disassembled code. Otherwise, the source line information (if any) is taken directly from the disassembled code object.
If *current_offset* is not ``None``, it refers to an instruction offset in the
disassembled code. Setting this means :meth:`.dis` will display a "current
in... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7845e68a-e12a-45a0-bd7a-c0d4254e01a8 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,432 | supabase-export-v2 | d9a8f50419f3551b | .. opcode:: MATCH_SEQUENCE
If ``STACK[-1]`` is an instance of :class:`collections.abc.Sequence` and is *not* an instance
of :class:`str`/:class:`bytes`/:class:`bytearray` (or, more technically: if it has
the :c:macro:`Py_TPFLAGS_SEQUENCE` flag set in its :c:member:`~PyTypeObject.tp_flags`),
push ``True`` onto the st... | trusted_official_docs | CPython Docs | .. opcode:: MATCH_SEQUENCE
If ``STACK[-1]`` is an instance of :class:`collections.abc.Sequence` and is *not* an instance
of :class:`str`/:class:`bytes`/:class:`bytearray` (or, more technically: if it has
the :c:macro:`Py_TPFLAGS_SEQUENCE` flag set in its :c:member:`~PyTypeObject.tp_flags`),
push ``True`` onto the st... | .. opcode:: MATCH_SEQUENCE
If ``STACK[-1]`` is an instance of :class:`collections.abc.Sequence` and is *not* an instance
of :class:`str`/:class:`bytes`/:class:`bytearray` (or, more technically: if it has
the :c:macro:`Py_TPFLAGS_SEQUENCE` flag set in its :c:member:`~PyTypeObject.tp_flags`),
push ``True`` onto the st... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
78f2ff23-300e-4297-bffa-56d9e3997432 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,649 | supabase-export-v2 | 0f7643dd24ed267c | value = STACK.pop() result = func(value) STACK.append(result)
* ``oparg == 1``: call :func:`str` on *value*
* ``oparg == 2``: call :func:`repr` on *value*
* ``oparg == 3``: call :func:`ascii` on *value* | trusted_official_docs | CPython Docs | value = STACK.pop() result = func(value) STACK.append(result)
* ``oparg == 1``: call :func:`str` on *value*
* ``oparg == 2``: call :func:`repr` on *value*
* ``oparg == 3``: call :func:`ascii` on *value* | value = STACK.pop() result = func(value) STACK.append(result)
* ``oparg == 1``: call :func:`str` on *value*
* ``oparg == 2``: call :func:`repr` on *value*
* ``oparg == 3``: call :func:`ascii` on *value* | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
811c24ae-5eff-4b11-b338-e9749bced0ca | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,147 | supabase-export-v2 | ac5c12572a270c59 | .. versionchanged:: 3.10 The argument of jump, exception handling and loop instructions is now the instruction offset rather than the byte offset.
.. versionchanged:: 3.11
Some instructions are accompanied by one or more inline cache entries,
which take the form of :opcode:`CACHE` instructions. These instructions
ar... | trusted_official_docs | CPython Docs | .. versionchanged:: 3.10 The argument of jump, exception handling and loop instructions is now the instruction offset rather than the byte offset.
.. versionchanged:: 3.11
Some instructions are accompanied by one or more inline cache entries,
which take the form of :opcode:`CACHE` instructions. These instructions
ar... | .. versionchanged:: 3.10 The argument of jump, exception handling and loop instructions is now the instruction offset rather than the byte offset.
.. versionchanged:: 3.11
Some instructions are accompanied by one or more inline cache entries,
which take the form of :opcode:`CACHE` instructions. These instructions
ar... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
862428ae-f10f-40dd-a5ee-85c2d76325aa | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,677 | supabase-export-v2 | 21df9f9eb397879c | Equivalent to ``STACK[-1] = STACK[-2].send(STACK[-1])``. Used in ``yield from`` and ``await`` statements.
If the call raises :exc:`StopIteration`, pop the top value from the stack,
push the exception's ``value`` attribute, and increment the bytecode counter
by *delta*. | trusted_official_docs | CPython Docs | Equivalent to ``STACK[-1] = STACK[-2].send(STACK[-1])``. Used in ``yield from`` and ``await`` statements.
If the call raises :exc:`StopIteration`, pop the top value from the stack,
push the exception's ``value`` attribute, and increment the bytecode counter
by *delta*. | Equivalent to ``STACK[-1] = STACK[-2].send(STACK[-1])``. Used in ``yield from`` and ``await`` statements.
If the call raises :exc:`StopIteration`, pop the top value from the stack,
push the exception's ``value`` attribute, and increment the bytecode counter
by *delta*. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8642c8b6-17d4-4d7c-961d-f7a0fe2d533c | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,479 | supabase-export-v2 | 253f8de6670d20d9 | conversion. The value of ``format >> 2`` is the conversion type (``0`` for no conversion, ``1`` for ``!s``, ``2`` for ``!r``, and ``3`` for ``!a``)::
conversion = format >> 2
if format & 1:
format_spec = STACK.pop()
else:
format_spec = None
expression = STACK.pop()
value = STACK.pop()
STACK.append(_build_interpo... | trusted_official_docs | CPython Docs | conversion. The value of ``format >> 2`` is the conversion type (``0`` for no conversion, ``1`` for ``!s``, ``2`` for ``!r``, and ``3`` for ``!a``)::
conversion = format >> 2
if format & 1:
format_spec = STACK.pop()
else:
format_spec = None
expression = STACK.pop()
value = STACK.pop()
STACK.append(_build_interpo... | conversion. The value of ``format >> 2`` is the conversion type (``0`` for no conversion, ``1`` for ``!s``, ``2`` for ``!r``, and ``3`` for ``!a``)::
conversion = format >> 2
if format & 1:
format_spec = STACK.pop()
else:
format_spec = None
expression = STACK.pop()
value = STACK.pop()
STACK.append(_build_interpo... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
86a283a3-182b-4cd5-aff4-a618986cd584 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,421 | supabase-export-v2 | f1b23802e3b4a14e | .. versionadded:: 3.9
.. versionchanged:: 3.11
The ``__exit__`` function is in position 4 of the stack rather than 7. Exception representation on the stack now consist of one, not three, items. | trusted_official_docs | CPython Docs | .. versionadded:: 3.9
.. versionchanged:: 3.11
The ``__exit__`` function is in position 4 of the stack rather than 7. Exception representation on the stack now consist of one, not three, items. | .. versionadded:: 3.9
.. versionchanged:: 3.11
The ``__exit__`` function is in position 4 of the stack rather than 7. Exception representation on the stack now consist of one, not three, items. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
883e9909-2f81-45d7-aad8-718182d0bb2c | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,562 | supabase-export-v2 | 8134ccd28ac5d69e | Pushes a reference to the local ``co_varnames[var_num]`` onto the stack.
.. versionchanged:: 3.12
This opcode is now only used in situations where the local variable is
guaranteed to be initialized. It cannot raise :exc:`UnboundLocalError`. | trusted_official_docs | CPython Docs | Pushes a reference to the local ``co_varnames[var_num]`` onto the stack.
.. versionchanged:: 3.12
This opcode is now only used in situations where the local variable is
guaranteed to be initialized. It cannot raise :exc:`UnboundLocalError`. | Pushes a reference to the local ``co_varnames[var_num]`` onto the stack.
.. versionchanged:: 3.12
This opcode is now only used in situations where the local variable is
guaranteed to be initialized. It cannot raise :exc:`UnboundLocalError`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8f643603-7c18-4b1a-b6fb-77e3ba1b8edf | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,434 | supabase-export-v2 | ce4eefa8b2a7fa1c | .. opcode:: MATCH_KEYS
``STACK[-1]`` is a tuple of mapping keys, and ``STACK[-2]`` is the match subject. If ``STACK[-2]`` contains all of the keys in ``STACK[-1]``, push a :class:`tuple`
containing the corresponding values. Otherwise, push ``None``. | trusted_official_docs | CPython Docs | .. opcode:: MATCH_KEYS
``STACK[-1]`` is a tuple of mapping keys, and ``STACK[-2]`` is the match subject. If ``STACK[-2]`` contains all of the keys in ``STACK[-1]``, push a :class:`tuple`
containing the corresponding values. Otherwise, push ``None``. | .. opcode:: MATCH_KEYS
``STACK[-1]`` is a tuple of mapping keys, and ``STACK[-2]`` is the match subject. If ``STACK[-2]`` contains all of the keys in ``STACK[-1]``, push a :class:`tuple`
containing the corresponding values. Otherwise, push ``None``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9109ecd0-aebc-49f9-8b1c-9e70cadff9c4 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,513 | supabase-export-v2 | d917548fdb533e42 | load, as with :opcode:`LOAD_ATTR`, which results in pushing ``NULL`` and the loaded method. When it is unset a single value is pushed to the stack.
The second-low bit of ``namei``, if set, means that this was a two-argument
call to :func:`super` (unset means zero-argument). | trusted_official_docs | CPython Docs | load, as with :opcode:`LOAD_ATTR`, which results in pushing ``NULL`` and the loaded method. When it is unset a single value is pushed to the stack.
The second-low bit of ``namei``, if set, means that this was a two-argument
call to :func:`super` (unset means zero-argument). | load, as with :opcode:`LOAD_ATTR`, which results in pushing ``NULL`` and the loaded method. When it is unset a single value is pushed to the stack.
The second-low bit of ``namei``, if set, means that this was a two-argument
call to :func:`super` (unset means zero-argument). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
91550417-32aa-4580-b588-869ae690f0d4 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,669 | supabase-export-v2 | 7ab7e11a3e3209f3 | The ``context`` operand consists of two parts. The lowest two bits indicate where the ``RESUME`` occurs:
* ``0`` The start of a function, which is neither a generator, coroutine
nor an async generator
* ``1`` After a ``yield`` expression
* ``2`` After a ``yield from`` expression
* ``3`` After an ``await`` expressio... | trusted_official_docs | CPython Docs | The ``context`` operand consists of two parts. The lowest two bits indicate where the ``RESUME`` occurs:
* ``0`` The start of a function, which is neither a generator, coroutine
nor an async generator
* ``1`` After a ``yield`` expression
* ``2`` After a ``yield from`` expression
* ``3`` After an ``await`` expressio... | The ``context`` operand consists of two parts. The lowest two bits indicate where the ``RESUME`` occurs:
* ``0`` The start of a function, which is neither a generator, coroutine
nor an async generator
* ``1`` After a ``yield`` expression
* ``2`` After a ``yield from`` expression
* ``3`` After an ``await`` expressio... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
93a22278-69a3-4fc2-851a-8d4e56d9511a | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,509 | supabase-export-v2 | 42698e0a324cef89 | This opcode implements :func:`super`, both in its zero-argument and two-argument forms (e.g. ``super().method()``, ``super().attr`` and ``super(cls, self).method()``, ``super(cls, self).attr``).
It pops three values from the stack (from top of stack down): | trusted_official_docs | CPython Docs | This opcode implements :func:`super`, both in its zero-argument and two-argument forms (e.g. ``super().method()``, ``super().attr`` and ``super(cls, self).method()``, ``super(cls, self).attr``).
It pops three values from the stack (from top of stack down): | This opcode implements :func:`super`, both in its zero-argument and two-argument forms (e.g. ``super().method()``, ``super().attr`` and ``super(cls, self).method()``, ``super(cls, self).attr``).
It pops three values from the stack (from top of stack down): | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
94189bc0-3b6f-4e01-9f03-c0929199d2b6 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,517 | supabase-export-v2 | 3ae14c5ede22a462 | can be found in ``cmp_op[opname >> 5]``. If the fifth-lowest bit of ``opname`` is set (``opname & 16``), the result should be coerced to ``bool``.
.. versionchanged:: 3.13
The fifth-lowest bit of the oparg now indicates a forced conversion to
:class:`bool`. | trusted_official_docs | CPython Docs | can be found in ``cmp_op[opname >> 5]``. If the fifth-lowest bit of ``opname`` is set (``opname & 16``), the result should be coerced to ``bool``.
.. versionchanged:: 3.13
The fifth-lowest bit of the oparg now indicates a forced conversion to
:class:`bool`. | can be found in ``cmp_op[opname >> 5]``. If the fifth-lowest bit of ``opname`` is set (``opname & 16``), the result should be coerced to ``bool``.
.. versionchanged:: 3.13
The fifth-lowest bit of the oparg now indicates a forced conversion to
:class:`bool`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
95b247fd-f312-451b-b089-4adb707d3400 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,594 | supabase-export-v2 | 60920825fe3ab0fc | .. opcode:: LOAD_FROM_DICT_OR_DEREF (i)
Pops a mapping off the stack and looks up the name associated with
slot ``i`` of the "fast locals" storage in this mapping. If the name is not found there, loads it from the cell contained in
slot ``i``, similar to :opcode:`LOAD_DEREF`. This is used for loading
:term:`closure ... | trusted_official_docs | CPython Docs | .. opcode:: LOAD_FROM_DICT_OR_DEREF (i)
Pops a mapping off the stack and looks up the name associated with
slot ``i`` of the "fast locals" storage in this mapping. If the name is not found there, loads it from the cell contained in
slot ``i``, similar to :opcode:`LOAD_DEREF`. This is used for loading
:term:`closure ... | .. opcode:: LOAD_FROM_DICT_OR_DEREF (i)
Pops a mapping off the stack and looks up the name associated with
slot ``i`` of the "fast locals" storage in this mapping. If the name is not found there, loads it from the cell contained in
slot ``i``, similar to :opcode:`LOAD_DEREF`. This is used for loading
:term:`closure ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9af8725d-a29a-4d5b-993f-5f9854b017c0 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,234 | supabase-export-v2 | cf350ef3ea290912 | Disassemble a code object, indicating the last instruction if *lasti* was provided. The output is divided in the following columns:
#. the source code location of the instruction. Complete location information
is shown if *show_positions* is true. Otherwise (the default) only the
line number is displayed. #. the curr... | trusted_official_docs | CPython Docs | Disassemble a code object, indicating the last instruction if *lasti* was provided. The output is divided in the following columns:
#. the source code location of the instruction. Complete location information
is shown if *show_positions* is true. Otherwise (the default) only the
line number is displayed. #. the curr... | Disassemble a code object, indicating the last instruction if *lasti* was provided. The output is divided in the following columns:
#. the source code location of the instruction. Complete location information
is shown if *show_positions* is true. Otherwise (the default) only the
line number is displayed. #. the curr... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9c11829a-cd3c-4a96-9aa3-473c5b685366 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,592 | supabase-export-v2 | 46085691e3edceb2 | Loads the cell contained in slot ``i`` of the "fast locals" storage. Pushes a reference to the object the cell contains on the stack.
.. versionchanged:: 3.11
``i`` is no longer offset by the length of :attr:`~codeobject.co_varnames`. | trusted_official_docs | CPython Docs | Loads the cell contained in slot ``i`` of the "fast locals" storage. Pushes a reference to the object the cell contains on the stack.
.. versionchanged:: 3.11
``i`` is no longer offset by the length of :attr:`~codeobject.co_varnames`. | Loads the cell contained in slot ``i`` of the "fast locals" storage. Pushes a reference to the object the cell contains on the stack.
.. versionchanged:: 3.11
``i`` is no longer offset by the length of :attr:`~codeobject.co_varnames`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a00b5665-8294-43df-87fb-fe905d2a8885 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,697 | supabase-export-v2 | 8fe88769f4cfaeda | | | :exc:`ExceptionGroup` to raise | | | from a ``try-except*``. | +----------------------------------------+-----------------------------------+ | ``INTRINSIC_TYPEVAR_WITH_BOUND`` | Creates a :class:`typing.TypeVar` | | | with a bound.
|
+----------------------------------------+-----------------------------------+
... | trusted_official_docs | CPython Docs | | | :exc:`ExceptionGroup` to raise | | | from a ``try-except*``. | +----------------------------------------+-----------------------------------+ | ``INTRINSIC_TYPEVAR_WITH_BOUND`` | Creates a :class:`typing.TypeVar` | | | with a bound.
|
+----------------------------------------+-----------------------------------+
... | | | :exc:`ExceptionGroup` to raise | | | from a ``try-except*``. | +----------------------------------------+-----------------------------------+ | ``INTRINSIC_TYPEVAR_WITH_BOUND`` | Creates a :class:`typing.TypeVar` | | | with a bound.
|
+----------------------------------------+-----------------------------------+
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a391b85c-a258-4414-9d31-bd1edd6ff166 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,330 | supabase-export-v2 | 0e117f6703419f4a | .. opcode:: CACHE
Rather than being an actual instruction, this opcode is used to mark extra
space for the interpreter to cache useful data directly in the bytecode
itself. It is automatically hidden by all ``dis`` utilities, but can be
viewed with ``show_caches=True``. | trusted_official_docs | CPython Docs | .. opcode:: CACHE
Rather than being an actual instruction, this opcode is used to mark extra
space for the interpreter to cache useful data directly in the bytecode
itself. It is automatically hidden by all ``dis`` utilities, but can be
viewed with ``show_caches=True``. | .. opcode:: CACHE
Rather than being an actual instruction, this opcode is used to mark extra
space for the interpreter to cache useful data directly in the bytecode
itself. It is automatically hidden by all ``dis`` utilities, but can be
viewed with ``show_caches=True``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a4906eda-2e3b-48e5-84e1-420b27f38b30 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,511 | supabase-export-v2 | 57e1af00025c8c64 | * ``self``: the first argument to the current method * ``cls``: the class within which the current method was defined * the global ``super``
With respect to its argument, it works similarly to :opcode:`LOAD_ATTR`,
except that ``namei`` is shifted left by 2 bits instead of 1. | trusted_official_docs | CPython Docs | * ``self``: the first argument to the current method * ``cls``: the class within which the current method was defined * the global ``super``
With respect to its argument, it works similarly to :opcode:`LOAD_ATTR`,
except that ``namei`` is shifted left by 2 bits instead of 1. | * ``self``: the first argument to the current method * ``cls``: the class within which the current method was defined * the global ``super``
With respect to its argument, it works similarly to :opcode:`LOAD_ATTR`,
except that ``namei`` is shifted left by 2 bits instead of 1. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a6334a06-ebf2-496b-a1d8-2b067ebf5c6c | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,392 | supabase-export-v2 | 34bcf382fd41e0bc | .. versionadded:: 3.1 .. versionchanged:: 3.8 Map value is ``STACK[-1]`` and map key is ``STACK[-2]``. Before, those were reversed.
For all of the :opcode:`SET_ADD`, :opcode:`LIST_APPEND` and :opcode:`MAP_ADD`
instructions, while the added value or key/value pair is popped off, the
container object remains on the stack... | trusted_official_docs | CPython Docs | .. versionadded:: 3.1 .. versionchanged:: 3.8 Map value is ``STACK[-1]`` and map key is ``STACK[-2]``. Before, those were reversed.
For all of the :opcode:`SET_ADD`, :opcode:`LIST_APPEND` and :opcode:`MAP_ADD`
instructions, while the added value or key/value pair is popped off, the
container object remains on the stack... | .. versionadded:: 3.1 .. versionchanged:: 3.8 Map value is ``STACK[-1]`` and map key is ``STACK[-2]``. Before, those were reversed.
For all of the :opcode:`SET_ADD`, :opcode:`LIST_APPEND` and :opcode:`MAP_ADD`
instructions, while the added value or key/value pair is popped off, the
container object remains on the stack... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a746a882-324d-470f-b119-228b965ac17d | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,680 | supabase-export-v2 | 449c70a4cb053bc9 | identifies the dividing line between opcodes in the range [0,255] which don't use their argument and those that do (``< HAVE_ARGUMENT`` and ``>= HAVE_ARGUMENT``, respectively).
If your application uses pseudo instructions or specialized instructions,
use the :data:`hasarg` collection instead. | trusted_official_docs | CPython Docs | identifies the dividing line between opcodes in the range [0,255] which don't use their argument and those that do (``< HAVE_ARGUMENT`` and ``>= HAVE_ARGUMENT``, respectively).
If your application uses pseudo instructions or specialized instructions,
use the :data:`hasarg` collection instead. | identifies the dividing line between opcodes in the range [0,255] which don't use their argument and those that do (``< HAVE_ARGUMENT`` and ``>= HAVE_ARGUMENT``, respectively).
If your application uses pseudo instructions or specialized instructions,
use the :data:`hasarg` collection instead. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ac424c16-f1ac-47ed-8218-49adf6891fc6 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,446 | supabase-export-v2 | cc8cce68019622cd | values can be smaller than the number of items in the iterable: one of the new values will be a list of all leftover items.
The number of values before and after the list value is limited to 255. | trusted_official_docs | CPython Docs | values can be smaller than the number of items in the iterable: one of the new values will be a list of all leftover items.
The number of values before and after the list value is limited to 255. | values can be smaller than the number of items in the iterable: one of the new values will be a list of all leftover items.
The number of values before and after the list value is limited to 255. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b2bc517b-9a45-48bd-8249-4a7909d953c7 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,476 | supabase-export-v2 | eb13c9368c942280 | Constructs a new :class:`~string.templatelib.Interpolation` instance from a value and its source expression and pushes the resulting object onto the stack.
If no conversion or format specification is present, ``format`` is set to
``2``. | trusted_official_docs | CPython Docs | Constructs a new :class:`~string.templatelib.Interpolation` instance from a value and its source expression and pushes the resulting object onto the stack.
If no conversion or format specification is present, ``format`` is set to
``2``. | Constructs a new :class:`~string.templatelib.Interpolation` instance from a value and its source expression and pushes the resulting object onto the stack.
If no conversion or format specification is present, ``format`` is set to
``2``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b3651a23-f7cd-4b48-97df-a493b2150a53 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,261 | supabase-export-v2 | 62971ed6b0978029 | .. versionchanged:: 3.8 Added *jump* parameter.
.. versionchanged:: 3.13
If ``oparg`` is omitted (or ``None``), the stack effect is now returned
for ``oparg=0``. Previously this was an error for opcodes that use their
arg. It is also no longer an error to pass an integer ``oparg`` when
the ``opcode`` does not use i... | trusted_official_docs | CPython Docs | .. versionchanged:: 3.8 Added *jump* parameter.
.. versionchanged:: 3.13
If ``oparg`` is omitted (or ``None``), the stack effect is now returned
for ``oparg=0``. Previously this was an error for opcodes that use their
arg. It is also no longer an error to pass an integer ``oparg`` when
the ``opcode`` does not use i... | .. versionchanged:: 3.8 Added *jump* parameter.
.. versionchanged:: 3.13
If ``oparg`` is omitted (or ``None``), the stack effect is now returned
for ``oparg=0``. Previously this was an error for opcodes that use their
arg. It is also no longer an error to pass an integer ``oparg`` when
the ``opcode`` does not use i... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b5a89a08-94a9-4a33-943b-34539a6edbd0 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,233 | supabase-export-v2 | 769786ed9f7f004f | .. function:: disassemble(code, lasti=-1, *, file=None, show_caches=False,\ adaptive=False, show_offsets=False, show_positions=False) disco(code, lasti=-1, *, file=None, show_caches=False, adaptive=False,\ show_offsets=False, show_positions=False)
Disassemble a code object, indicating the last instruction if *lasti* wa... | trusted_official_docs | CPython Docs | .. function:: disassemble(code, lasti=-1, *, file=None, show_caches=False,\ adaptive=False, show_offsets=False, show_positions=False) disco(code, lasti=-1, *, file=None, show_caches=False, adaptive=False,\ show_offsets=False, show_positions=False)
Disassemble a code object, indicating the last instruction if *lasti* wa... | .. function:: disassemble(code, lasti=-1, *, file=None, show_caches=False,\ adaptive=False, show_offsets=False, show_positions=False) disco(code, lasti=-1, *, file=None, show_caches=False, adaptive=False,\ show_offsets=False, show_positions=False)
Disassemble a code object, indicating the last instruction if *lasti* wa... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bc4ba0be-1e5e-4224-ac2c-5cf112e41feb | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,613 | supabase-export-v2 | 224207e066092add | ``argc`` is the total of the positional arguments, excluding ``self``.
``CALL`` pops all arguments and the callable object off the stack,
calls the callable object with those arguments, and pushes the return value
returned by the callable object. | trusted_official_docs | CPython Docs | ``argc`` is the total of the positional arguments, excluding ``self``.
``CALL`` pops all arguments and the callable object off the stack,
calls the callable object with those arguments, and pushes the return value
returned by the callable object. | ``argc`` is the total of the positional arguments, excluding ``self``.
``CALL`` pops all arguments and the callable object off the stack,
calls the callable object with those arguments, and pushes the return value
returned by the callable object. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bcc00b95-8302-4579-977f-e6837a078b30 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,423 | supabase-export-v2 | 71efbd449b186465 | .. opcode:: LOAD_COMMON_CONSTANT
Pushes a common constant onto the stack. The interpreter contains a hardcoded
list of constants supported by this instruction. Used by the :keyword:`assert`
statement to load :exc:`AssertionError`. | trusted_official_docs | CPython Docs | .. opcode:: LOAD_COMMON_CONSTANT
Pushes a common constant onto the stack. The interpreter contains a hardcoded
list of constants supported by this instruction. Used by the :keyword:`assert`
statement to load :exc:`AssertionError`. | .. opcode:: LOAD_COMMON_CONSTANT
Pushes a common constant onto the stack. The interpreter contains a hardcoded
list of constants supported by this instruction. Used by the :keyword:`assert`
statement to load :exc:`AssertionError`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
be8384fb-e038-4c5e-b534-a2ca8d6742d5 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,151 | supabase-export-v2 | 56197bbf9f8ea150 | output shows logical labels rather than instruction offsets for jump targets and exception handlers. The ``-O`` command line option and the ``show_offsets`` argument were added.
.. versionchanged:: 3.14
The :option:`-P <dis --show-positions>` command-line option
and the ``show_positions`` argument were added. | trusted_official_docs | CPython Docs | output shows logical labels rather than instruction offsets for jump targets and exception handlers. The ``-O`` command line option and the ``show_offsets`` argument were added.
.. versionchanged:: 3.14
The :option:`-P <dis --show-positions>` command-line option
and the ``show_positions`` argument were added. | output shows logical labels rather than instruction offsets for jump targets and exception handlers. The ``-O`` command line option and the ``show_offsets`` argument were added.
.. versionchanged:: 3.14
The :option:`-P <dis --show-positions>` command-line option
and the ``show_positions`` argument were added. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bf5fc28c-8c0d-46e7-bb6d-9ef994bb489b | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,604 | supabase-export-v2 | 3a0e31ef5514195d | .. opcode:: COPY_FREE_VARS (n)
Copies the ``n`` :term:`free (closure) variables <closure variable>` from the closure
into the frame. Removes the need for special code on the caller's side when calling
closures. | trusted_official_docs | CPython Docs | .. opcode:: COPY_FREE_VARS (n)
Copies the ``n`` :term:`free (closure) variables <closure variable>` from the closure
into the frame. Removes the need for special code on the caller's side when calling
closures. | .. opcode:: COPY_FREE_VARS (n)
Copies the ``n`` :term:`free (closure) variables <closure variable>` from the closure
into the frame. Removes the need for special code on the caller's side when calling
closures. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c24a6ef5-1fd7-477e-a82b-494fd4e8bac9 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,559 | supabase-export-v2 | ac888efe1b01993c | Loads the global named ``co_names[namei>>1]`` onto the stack.
.. versionchanged:: 3.11
If the low bit of ``namei`` is set, then a ``NULL`` is pushed to the
stack before the global variable. | trusted_official_docs | CPython Docs | Loads the global named ``co_names[namei>>1]`` onto the stack.
.. versionchanged:: 3.11
If the low bit of ``namei`` is set, then a ``NULL`` is pushed to the
stack before the global variable. | Loads the global named ``co_names[namei>>1]`` onto the stack.
.. versionchanged:: 3.11
If the low bit of ``namei`` is set, then a ``NULL`` is pushed to the
stack before the global variable. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c37a0246-0d7a-4cb4-9762-4af0765bd029 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,251 | supabase-export-v2 | 3935a30eddb74147 | the :ref:`code object <code-objects>` *code* to find the offsets which are starts of lines in the source code. They are generated as ``(offset, lineno)`` pairs.
.. versionchanged:: 3.6
Line numbers can be decreasing. Before, they were always increasing. | trusted_official_docs | CPython Docs | the :ref:`code object <code-objects>` *code* to find the offsets which are starts of lines in the source code. They are generated as ``(offset, lineno)`` pairs.
.. versionchanged:: 3.6
Line numbers can be decreasing. Before, they were always increasing. | the :ref:`code object <code-objects>` *code* to find the offsets which are starts of lines in the source code. They are generated as ``(offset, lineno)`` pairs.
.. versionchanged:: 3.6
Line numbers can be decreasing. Before, they were always increasing. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c499e905-f316-49f0-9a83-1094a2da0d76 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,179 | supabase-export-v2 | 03985a5d3abb0b77 | .. class:: Bytecode(x, *, first_line=None, current_offset=None,\ show_caches=False, adaptive=False, show_offsets=False,\ show_positions=False)
Analyse the bytecode corresponding to a function, generator, asynchronous
generator, coroutine, method, string of source code, or a code object (as
returned by :func:`compile`... | trusted_official_docs | CPython Docs | .. class:: Bytecode(x, *, first_line=None, current_offset=None,\ show_caches=False, adaptive=False, show_offsets=False,\ show_positions=False)
Analyse the bytecode corresponding to a function, generator, asynchronous
generator, coroutine, method, string of source code, or a code object (as
returned by :func:`compile`... | .. class:: Bytecode(x, *, first_line=None, current_offset=None,\ show_caches=False, adaptive=False, show_offsets=False,\ show_positions=False)
Analyse the bytecode corresponding to a function, generator, asynchronous
generator, coroutine, method, string of source code, or a code object (as
returned by :func:`compile`... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c5e86760-56df-4be5-b0dd-87c394e50337 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,543 | supabase-export-v2 | 534de3093c3dd62e | If ``STACK[-1]`` is false, increments the bytecode counter by *delta*. ``STACK[-1]`` is popped.
.. versionchanged:: 3.11
The oparg is now a relative delta rather than an absolute target. This opcode is a pseudo-instruction, replaced in final bytecode by
the directed versions (forward/backward). | trusted_official_docs | CPython Docs | If ``STACK[-1]`` is false, increments the bytecode counter by *delta*. ``STACK[-1]`` is popped.
.. versionchanged:: 3.11
The oparg is now a relative delta rather than an absolute target. This opcode is a pseudo-instruction, replaced in final bytecode by
the directed versions (forward/backward). | If ``STACK[-1]`` is false, increments the bytecode counter by *delta*. ``STACK[-1]`` is popped.
.. versionchanged:: 3.11
The oparg is now a relative delta rather than an absolute target. This opcode is a pseudo-instruction, replaced in final bytecode by
the directed versions (forward/backward). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c770a791-cb60-4d5e-89f0-f43adb8225ef | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,703 | supabase-export-v2 | fbcabe098f591ad4 | .. opcode:: SETUP_FINALLY (target)
Set up an exception handler for the following code block. If an exception
occurs, the value stack level is restored to its current state and control
is transferred to the exception handler at ``target``. | trusted_official_docs | CPython Docs | .. opcode:: SETUP_FINALLY (target)
Set up an exception handler for the following code block. If an exception
occurs, the value stack level is restored to its current state and control
is transferred to the exception handler at ``target``. | .. opcode:: SETUP_FINALLY (target)
Set up an exception handler for the following code block. If an exception
occurs, the value stack level is restored to its current state and control
is transferred to the exception handler at ``target``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cac2fcf2-27f0-45b0-a10d-3f845ff573b5 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,506 | supabase-export-v2 | 6cc334306d2a1aab | the first argument (``self``) by :opcode:`CALL` or :opcode:`CALL_KW` when calling the unbound method. Otherwise, ``NULL`` and the object returned by the attribute lookup are pushed.
.. versionchanged:: 3.12
If the low bit of ``namei`` is set, then a ``NULL`` or ``self`` is
pushed to the stack before the attribute or ... | trusted_official_docs | CPython Docs | the first argument (``self``) by :opcode:`CALL` or :opcode:`CALL_KW` when calling the unbound method. Otherwise, ``NULL`` and the object returned by the attribute lookup are pushed.
.. versionchanged:: 3.12
If the low bit of ``namei`` is set, then a ``NULL`` or ``self`` is
pushed to the stack before the attribute or ... | the first argument (``self``) by :opcode:`CALL` or :opcode:`CALL_KW` when calling the unbound method. Otherwise, ``NULL`` and the object returned by the attribute lookup are pushed.
.. versionchanged:: 3.12
If the low bit of ``namei`` is set, then a ``NULL`` or ``self`` is
pushed to the stack before the attribute or ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cc2258c9-9004-43f9-947b-9a6f1e979636 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,149 | supabase-export-v2 | 90861871b5f98cf6 | The argument of a jump is the offset of the target instruction relative to the instruction that appears immediately after the jump instruction's :opcode:`CACHE` entries.
As a consequence, the presence of the :opcode:`CACHE` instructions is
transparent for forward jumps but needs to be taken into account when
reasonin... | trusted_official_docs | CPython Docs | The argument of a jump is the offset of the target instruction relative to the instruction that appears immediately after the jump instruction's :opcode:`CACHE` entries.
As a consequence, the presence of the :opcode:`CACHE` instructions is
transparent for forward jumps but needs to be taken into account when
reasonin... | The argument of a jump is the offset of the target instruction relative to the instruction that appears immediately after the jump instruction's :opcode:`CACHE` entries.
As a consequence, the presence of the :opcode:`CACHE` instructions is
transparent for forward jumps but needs to be taken into account when
reasonin... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cc7dc07d-d878-475e-834b-613fa342fc4b | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,377 | supabase-export-v2 | 418409ee47b2f7c5 | .. opcode:: END_ASYNC_FOR
Terminates an :keyword:`async for` loop. Handles an exception raised
when awaiting a next item. The stack contains the async iterable in
``STACK[-2]`` and the raised exception in ``STACK[-1]``. Both are popped. If the exception is not :exc:`StopAsyncIteration`, it is re-raised. | trusted_official_docs | CPython Docs | .. opcode:: END_ASYNC_FOR
Terminates an :keyword:`async for` loop. Handles an exception raised
when awaiting a next item. The stack contains the async iterable in
``STACK[-2]`` and the raised exception in ``STACK[-1]``. Both are popped. If the exception is not :exc:`StopAsyncIteration`, it is re-raised. | .. opcode:: END_ASYNC_FOR
Terminates an :keyword:`async for` loop. Handles an exception raised
when awaiting a next item. The stack contains the async iterable in
``STACK[-2]`` and the raised exception in ``STACK[-1]``. Both are popped. If the exception is not :exc:`StopAsyncIteration`, it is re-raised. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d068a8ed-a570-485f-8924-732a92d67068 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,235 | supabase-export-v2 | d7cc473a58d988d8 | indicated with ``>>``, #. the address of the instruction, #. the operation code name, #. operation parameters, and #. interpretation of the parameters in parentheses.
The parameter interpretation recognizes local and global variable names,
constant values, branch targets, and compare operators. | trusted_official_docs | CPython Docs | indicated with ``>>``, #. the address of the instruction, #. the operation code name, #. operation parameters, and #. interpretation of the parameters in parentheses.
The parameter interpretation recognizes local and global variable names,
constant values, branch targets, and compare operators. | indicated with ``>>``, #. the address of the instruction, #. the operation code name, #. operation parameters, and #. interpretation of the parameters in parentheses.
The parameter interpretation recognizes local and global variable names,
constant values, branch targets, and compare operators. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d13e6bf9-ce6f-4132-8830-9c918d8fa7f6 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,662 | supabase-export-v2 | 2e42069669b0ec3b | .. opcode:: MATCH_CLASS (count)
``STACK[-1]`` is a tuple of keyword attribute names, ``STACK[-2]`` is the class
being matched against, and ``STACK[-3]`` is the match subject. *count* is the
number of positional sub-patterns. | trusted_official_docs | CPython Docs | .. opcode:: MATCH_CLASS (count)
``STACK[-1]`` is a tuple of keyword attribute names, ``STACK[-2]`` is the class
being matched against, and ``STACK[-3]`` is the match subject. *count* is the
number of positional sub-patterns. | .. opcode:: MATCH_CLASS (count)
``STACK[-1]`` is a tuple of keyword attribute names, ``STACK[-2]`` is the class
being matched against, and ``STACK[-3]`` is the match subject. *count* is the
number of positional sub-patterns. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d28caa17-5bbf-4403-836b-2d482880b8a8 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,620 | supabase-export-v2 | aabafde816ae9e1e | * The callable * ``self`` or ``NULL`` * The remaining positional arguments * The named arguments * A :class:`tuple` of keyword argument names
``argc`` is the total of the positional and named arguments, excluding ``self``. The length of the tuple of keyword argument names is the number of named arguments. | trusted_official_docs | CPython Docs | * The callable * ``self`` or ``NULL`` * The remaining positional arguments * The named arguments * A :class:`tuple` of keyword argument names
``argc`` is the total of the positional and named arguments, excluding ``self``. The length of the tuple of keyword argument names is the number of named arguments. | * The callable * ``self`` or ``NULL`` * The remaining positional arguments * The named arguments * A :class:`tuple` of keyword argument names
``argc`` is the total of the positional and named arguments, excluding ``self``. The length of the tuple of keyword argument names is the number of named arguments. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d2d431ac-600c-4a62-9efd-c0b0361b571a | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,621 | supabase-export-v2 | 16255eac147d8d2f | the total of the positional and named arguments, excluding ``self``. The length of the tuple of keyword argument names is the number of named arguments.
``CALL_KW`` pops all arguments, the keyword names, and the callable object
off the stack, calls the callable object with those arguments, and pushes the
return value... | trusted_official_docs | CPython Docs | the total of the positional and named arguments, excluding ``self``. The length of the tuple of keyword argument names is the number of named arguments.
``CALL_KW`` pops all arguments, the keyword names, and the callable object
off the stack, calls the callable object with those arguments, and pushes the
return value... | the total of the positional and named arguments, excluding ``self``. The length of the tuple of keyword argument names is the number of named arguments.
``CALL_KW`` pops all arguments, the keyword names, and the callable object
off the stack, calls the callable object with those arguments, and pushes the
return value... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d351a10d-46f2-406b-a001-2b8391a601da | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,248 | supabase-export-v2 | 345e7320752b464d | .. versionchanged:: 3.11 Added the *show_caches* and *adaptive* parameters.
.. versionchanged:: 3.13
The *show_caches* parameter is deprecated and has no effect. The iterator
generates the :class:`Instruction` instances with the *cache_info*
field populated (regardless of the value of *show_caches*) and it no longer... | trusted_official_docs | CPython Docs | .. versionchanged:: 3.11 Added the *show_caches* and *adaptive* parameters.
.. versionchanged:: 3.13
The *show_caches* parameter is deprecated and has no effect. The iterator
generates the :class:`Instruction` instances with the *cache_info*
field populated (regardless of the value of *show_caches*) and it no longer... | .. versionchanged:: 3.11 Added the *show_caches* and *adaptive* parameters.
.. versionchanged:: 3.13
The *show_caches* parameter is deprecated and has no effect. The iterator
generates the :class:`Instruction` instances with the *cache_info*
field populated (regardless of the value of *show_caches*) and it no longer... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d443e9a5-b7cb-48fd-8a9b-48054130c7f6 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,351 | supabase-export-v2 | a373b8e8e2897502 | Binary operations remove the top two items from the stack (``STACK[-1]`` and ``STACK[-2]``). They perform the operation, then put the result back on the stack.
In-place operations are like binary operations, but the operation is done in-place
when ``STACK[-2]`` supports it, and the resulting ``STACK[-1]`` may be (but d... | trusted_official_docs | CPython Docs | Binary operations remove the top two items from the stack (``STACK[-1]`` and ``STACK[-2]``). They perform the operation, then put the result back on the stack.
In-place operations are like binary operations, but the operation is done in-place
when ``STACK[-2]`` supports it, and the resulting ``STACK[-1]`` may be (but d... | Binary operations remove the top two items from the stack (``STACK[-1]`` and ``STACK[-2]``). They perform the operation, then put the result back on the stack.
In-place operations are like binary operations, but the operation is done in-place
when ``STACK[-2]`` supports it, and the resulting ``STACK[-1]`` may be (but d... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d4c7d671-582d-41c7-b3d8-8253b3e88748 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,505 | supabase-export-v2 | 6584186a2a75b211 | If the low bit of ``namei`` is not set, this replaces ``STACK[-1]`` with ``getattr(STACK[-1], co_names[namei>>1])``.
If the low bit of ``namei`` is set, this will attempt to load a method named
``co_names[namei>>1]`` from the ``STACK[-1]`` object. ``STACK[-1]`` is popped. This bytecode distinguishes two cases: if ``ST... | trusted_official_docs | CPython Docs | If the low bit of ``namei`` is not set, this replaces ``STACK[-1]`` with ``getattr(STACK[-1], co_names[namei>>1])``.
If the low bit of ``namei`` is set, this will attempt to load a method named
``co_names[namei>>1]`` from the ``STACK[-1]`` object. ``STACK[-1]`` is popped. This bytecode distinguishes two cases: if ``ST... | If the low bit of ``namei`` is not set, this replaces ``STACK[-1]`` with ``getattr(STACK[-1], co_names[namei>>1])``.
If the low bit of ``namei`` is set, this will attempt to load a method named
``co_names[namei>>1]`` from the ``STACK[-1]`` object. ``STACK[-1]`` is popped. This bytecode distinguishes two cases: if ``ST... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d9cd4db7-ba2f-4164-89d2-3a1bfa9375d7 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,645 | supabase-export-v2 | d912b817cac02866 | .. opcode:: EXTENDED_ARG (ext)
Prefixes any opcode which has an argument too big to fit into the default one
byte. *ext* holds an additional byte which act as higher bits in the argument. For each opcode, at most three prefixal ``EXTENDED_ARG`` are allowed, forming
an argument from two-byte to four-byte. | trusted_official_docs | CPython Docs | .. opcode:: EXTENDED_ARG (ext)
Prefixes any opcode which has an argument too big to fit into the default one
byte. *ext* holds an additional byte which act as higher bits in the argument. For each opcode, at most three prefixal ``EXTENDED_ARG`` are allowed, forming
an argument from two-byte to four-byte. | .. opcode:: EXTENDED_ARG (ext)
Prefixes any opcode which has an argument too big to fit into the default one
byte. *ext* holds an additional byte which act as higher bits in the argument. For each opcode, at most three prefixal ``EXTENDED_ARG`` are allowed, forming
an argument from two-byte to four-byte. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
df044068-f0ee-42a6-831f-a8b1fa283f9e | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,699 | supabase-export-v2 | fa3122da3a92a2e1 | .. opcode:: LOAD_SPECIAL
Performs special method lookup on ``STACK[-1]``. If ``type(STACK[-1]).__xxx__`` is a method, leave
``type(STACK[-1]).__xxx__; STACK[-1]`` on the stack. If ``type(STACK[-1]).__xxx__`` is not a method, leave
``STACK[-1].__xxx__; NULL`` on the stack. | trusted_official_docs | CPython Docs | .. opcode:: LOAD_SPECIAL
Performs special method lookup on ``STACK[-1]``. If ``type(STACK[-1]).__xxx__`` is a method, leave
``type(STACK[-1]).__xxx__; STACK[-1]`` on the stack. If ``type(STACK[-1]).__xxx__`` is not a method, leave
``STACK[-1].__xxx__; NULL`` on the stack. | .. opcode:: LOAD_SPECIAL
Performs special method lookup on ``STACK[-1]``. If ``type(STACK[-1]).__xxx__`` is a method, leave
``type(STACK[-1]).__xxx__; STACK[-1]`` on the stack. If ``type(STACK[-1]).__xxx__`` is not a method, leave
``STACK[-1].__xxx__; NULL`` on the stack. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
df6a10fc-deeb-4a00-93f2-2515036da557 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,663 | supabase-export-v2 | 9bb8cac583400eb7 | tuple of keyword attribute names, ``STACK[-2]`` is the class being matched against, and ``STACK[-3]`` is the match subject. *count* is the number of positional sub-patterns.
Pop ``STACK[-1]``, ``STACK[-2]``, and ``STACK[-3]``. If ``STACK[-3]`` is an
instance of ``STACK[-2]`` and has the positional and keyword attribut... | trusted_official_docs | CPython Docs | tuple of keyword attribute names, ``STACK[-2]`` is the class being matched against, and ``STACK[-3]`` is the match subject. *count* is the number of positional sub-patterns.
Pop ``STACK[-1]``, ``STACK[-2]``, and ``STACK[-3]``. If ``STACK[-3]`` is an
instance of ``STACK[-2]`` and has the positional and keyword attribut... | tuple of keyword attribute names, ``STACK[-2]`` is the class being matched against, and ``STACK[-3]`` is the match subject. *count* is the number of positional sub-patterns.
Pop ``STACK[-1]``, ``STACK[-2]``, and ``STACK[-3]``. If ``STACK[-3]`` is an
instance of ``STACK[-2]`` and has the positional and keyword attribut... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e03acd68-655d-447c-8933-78e3785cd9ea | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,215 | supabase-export-v2 | 19271bd469fd896e | are first compiled to code objects with the :func:`compile` built-in function before being disassembled. If no object is provided, this function disassembles the last traceback.
The disassembly is written as text to the supplied *file* argument if
provided and to ``sys.stdout`` otherwise. | trusted_official_docs | CPython Docs | are first compiled to code objects with the :func:`compile` built-in function before being disassembled. If no object is provided, this function disassembles the last traceback.
The disassembly is written as text to the supplied *file* argument if
provided and to ``sys.stdout`` otherwise. | are first compiled to code objects with the :func:`compile` built-in function before being disassembled. If no object is provided, this function disassembles the last traceback.
The disassembly is written as text to the supplied *file* argument if
provided and to ``sys.stdout`` otherwise. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e06eb394-9a6a-402f-bd4f-62179e95b594 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,252 | supabase-export-v2 | a518740af58a04d6 | .. versionchanged:: 3.6 Line numbers can be decreasing. Before, they were always increasing.
.. versionchanged:: 3.10
The :pep:`626` :meth:`~codeobject.co_lines` method is used instead of the
:attr:`~codeobject.co_firstlineno` and :attr:`!codeobject.co_lnotab`
attributes of the :ref:`code object <code-objects>`. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.6 Line numbers can be decreasing. Before, they were always increasing.
.. versionchanged:: 3.10
The :pep:`626` :meth:`~codeobject.co_lines` method is used instead of the
:attr:`~codeobject.co_firstlineno` and :attr:`!codeobject.co_lnotab`
attributes of the :ref:`code object <code-objects>`. | .. versionchanged:: 3.6 Line numbers can be decreasing. Before, they were always increasing.
.. versionchanged:: 3.10
The :pep:`626` :meth:`~codeobject.co_lines` method is used instead of the
:attr:`~codeobject.co_firstlineno` and :attr:`!codeobject.co_lnotab`
attributes of the :ref:`code object <code-objects>`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e150d502-837d-4967-b73f-d90afff921a3 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,556 | supabase-export-v2 | eb88b03f7427eb8c | it on the stack (leaving the iterator below it). If the iterator indicates it is exhausted then the byte code counter is incremented by *delta*.
.. versionchanged:: 3.12
Up until 3.11 the iterator was popped when it was exhausted. | trusted_official_docs | CPython Docs | it on the stack (leaving the iterator below it). If the iterator indicates it is exhausted then the byte code counter is incremented by *delta*.
.. versionchanged:: 3.12
Up until 3.11 the iterator was popped when it was exhausted. | it on the stack (leaving the iterator below it). If the iterator indicates it is exhausted then the byte code counter is incremented by *delta*.
.. versionchanged:: 3.12
Up until 3.11 the iterator was popped when it was exhausted. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e525bd7a-1ff5-45e9-a9e7-b926b4690885 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,218 | supabase-export-v2 | d6fc854ca91d9b30 | If *show_caches* is ``True``, this function will display inline cache entries used by the interpreter to specialize the bytecode.
If *adaptive* is ``True``, this function will display specialized bytecode
that may be different from the original bytecode. | trusted_official_docs | CPython Docs | If *show_caches* is ``True``, this function will display inline cache entries used by the interpreter to specialize the bytecode.
If *adaptive* is ``True``, this function will display specialized bytecode
that may be different from the original bytecode. | If *show_caches* is ``True``, this function will display inline cache entries used by the interpreter to specialize the bytecode.
If *adaptive* is ``True``, this function will display specialized bytecode
that may be different from the original bytecode. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e592b5ee-d819-4fbe-9958-8b7c328c100c | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,688 | supabase-export-v2 | 8661065f83d932e7 | to standard | | | out. Used in the REPL. | +-----------------------------------+-----------------------------------+ | ``INTRINSIC_IMPORT_STAR`` | Performs ``import *`` for the | | | named module.
|
+-----------------------------------+-----------------------------------+
| ``INTRINSIC_STOPITERATION_ERROR`` | Extract... | trusted_official_docs | CPython Docs | to standard | | | out. Used in the REPL. | +-----------------------------------+-----------------------------------+ | ``INTRINSIC_IMPORT_STAR`` | Performs ``import *`` for the | | | named module.
|
+-----------------------------------+-----------------------------------+
| ``INTRINSIC_STOPITERATION_ERROR`` | Extract... | to standard | | | out. Used in the REPL. | +-----------------------------------+-----------------------------------+ | ``INTRINSIC_IMPORT_STAR`` | Performs ``import *`` for the | | | named module.
|
+-----------------------------------+-----------------------------------+
| ``INTRINSIC_STOPITERATION_ERROR`` | Extract... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e66233f3-e924-4152-8140-d057c2779474 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,438 | supabase-export-v2 | b4277e1d7704056d | .. opcode:: STORE_NAME (namei)
Implements ``name = STACK.pop()``. *namei* is the index of *name* in the attribute
:attr:`~codeobject.co_names` of the :ref:`code object <code-objects>`. The compiler tries to use :opcode:`STORE_FAST` or :opcode:`STORE_GLOBAL` if possible. | trusted_official_docs | CPython Docs | .. opcode:: STORE_NAME (namei)
Implements ``name = STACK.pop()``. *namei* is the index of *name* in the attribute
:attr:`~codeobject.co_names` of the :ref:`code object <code-objects>`. The compiler tries to use :opcode:`STORE_FAST` or :opcode:`STORE_GLOBAL` if possible. | .. opcode:: STORE_NAME (namei)
Implements ``name = STACK.pop()``. *namei* is the index of *name* in the attribute
:attr:`~codeobject.co_names` of the :ref:`code object <code-objects>`. The compiler tries to use :opcode:`STORE_FAST` or :opcode:`STORE_GLOBAL` if possible. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e75c250f-5bc9-4e1f-9bde-da275020c33e | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,250 | supabase-export-v2 | 4c16bed28eac4e2c | .. function:: findlinestarts(code)
This generator function uses the :meth:`~codeobject.co_lines` method
of the :ref:`code object <code-objects>` *code* to find the offsets which
are starts of
lines in the source code. They are generated as ``(offset, lineno)`` pairs. | trusted_official_docs | CPython Docs | .. function:: findlinestarts(code)
This generator function uses the :meth:`~codeobject.co_lines` method
of the :ref:`code object <code-objects>` *code* to find the offsets which
are starts of
lines in the source code. They are generated as ``(offset, lineno)`` pairs. | .. function:: findlinestarts(code)
This generator function uses the :meth:`~codeobject.co_lines` method
of the :ref:`code object <code-objects>` *code* to find the offsets which
are starts of
lines in the source code. They are generated as ``(offset, lineno)`` pairs. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e8f58b90-18b7-4541-bcc1-720b3ba001db | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,236 | supabase-export-v2 | 597bfdb7b8dbc522 | The parameter interpretation recognizes local and global variable names, constant values, branch targets, and compare operators.
The disassembly is written as text to the supplied *file* argument if
provided and to ``sys.stdout`` otherwise. | trusted_official_docs | CPython Docs | The parameter interpretation recognizes local and global variable names, constant values, branch targets, and compare operators.
The disassembly is written as text to the supplied *file* argument if
provided and to ``sys.stdout`` otherwise. | The parameter interpretation recognizes local and global variable names, constant values, branch targets, and compare operators.
The disassembly is written as text to the supplied *file* argument if
provided and to ``sys.stdout`` otherwise. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e9a6987a-7834-4be6-b305-283070efd78a | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,202 | supabase-export-v2 | 3ee28fe5752b7dc1 | Analysis functions ------------------
The :mod:`!dis` module also defines the following analysis functions that convert
the input directly to the desired output. They can be useful if only a single
operation is being performed, so the intermediate analysis object isn't useful: | trusted_official_docs | CPython Docs | Analysis functions ------------------
The :mod:`!dis` module also defines the following analysis functions that convert
the input directly to the desired output. They can be useful if only a single
operation is being performed, so the intermediate analysis object isn't useful: | Analysis functions ------------------
The :mod:`!dis` module also defines the following analysis functions that convert
the input directly to the desired output. They can be useful if only a single
operation is being performed, so the intermediate analysis object isn't useful: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
eb473730-bb13-4b31-bc8a-bc3162de9b47 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,633 | supabase-export-v2 | a4120506ca73c43c | .. opcode:: SET_FUNCTION_ATTRIBUTE (flag)
Sets an attribute on a function object. Expects the function at ``STACK[-1]``
and the attribute value to set at ``STACK[-2]``; consumes both and leaves the
function at ``STACK[-1]``. The flag determines which attribute to set: | trusted_official_docs | CPython Docs | .. opcode:: SET_FUNCTION_ATTRIBUTE (flag)
Sets an attribute on a function object. Expects the function at ``STACK[-1]``
and the attribute value to set at ``STACK[-2]``; consumes both and leaves the
function at ``STACK[-1]``. The flag determines which attribute to set: | .. opcode:: SET_FUNCTION_ATTRIBUTE (flag)
Sets an attribute on a function object. Expects the function at ``STACK[-1]``
and the attribute value to set at ``STACK[-2]``; consumes both and leaves the
function at ``STACK[-1]``. The flag determines which attribute to set: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ec9ff338-5a0e-44f9-8317-140f176e2ec9 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,670 | supabase-export-v2 | dce19424ec8e8a04 | generator, coroutine nor an async generator * ``1`` After a ``yield`` expression * ``2`` After a ``yield from`` expression * ``3`` After an ``await`` expression
The next bit is ``1`` if the RESUME is at except-depth ``1``, and ``0``
otherwise. | trusted_official_docs | CPython Docs | generator, coroutine nor an async generator * ``1`` After a ``yield`` expression * ``2`` After a ``yield from`` expression * ``3`` After an ``await`` expression
The next bit is ``1`` if the RESUME is at except-depth ``1``, and ``0``
otherwise. | generator, coroutine nor an async generator * ``1`` After a ``yield`` expression * ``2`` After a ``yield from`` expression * ``3`` After an ``await`` expression
The next bit is ``1`` if the RESUME is at except-depth ``1``, and ``0``
otherwise. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ee15a66f-2734-41bd-8601-1ec666ec4134 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,634 | supabase-export-v2 | 20cbddfd9e476f6a | at ``STACK[-1]`` and the attribute value to set at ``STACK[-2]``; consumes both and leaves the function at ``STACK[-1]``. The flag determines which attribute to set:
* ``0x01`` a tuple of default values for positional-only and
positional-or-keyword parameters in positional order
* ``0x02`` a dictionary of keyword-onl... | trusted_official_docs | CPython Docs | at ``STACK[-1]`` and the attribute value to set at ``STACK[-2]``; consumes both and leaves the function at ``STACK[-1]``. The flag determines which attribute to set:
* ``0x01`` a tuple of default values for positional-only and
positional-or-keyword parameters in positional order
* ``0x02`` a dictionary of keyword-onl... | at ``STACK[-1]`` and the attribute value to set at ``STACK[-2]``; consumes both and leaves the function at ``STACK[-1]``. The flag determines which attribute to set:
* ``0x01`` a tuple of default values for positional-only and
positional-or-keyword parameters in positional order
* ``0x02`` a dictionary of keyword-onl... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ef7cb816-f624-44d7-baba-da48b96f3580 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,679 | supabase-export-v2 | bd93a4ef814f30d5 | .. opcode:: HAVE_ARGUMENT
This is not really an opcode. It identifies the dividing line between
opcodes in the range [0,255] which don't use their argument and those
that do (``< HAVE_ARGUMENT`` and ``>= HAVE_ARGUMENT``, respectively). | trusted_official_docs | CPython Docs | .. opcode:: HAVE_ARGUMENT
This is not really an opcode. It identifies the dividing line between
opcodes in the range [0,255] which don't use their argument and those
that do (``< HAVE_ARGUMENT`` and ``>= HAVE_ARGUMENT``, respectively). | .. opcode:: HAVE_ARGUMENT
This is not really an opcode. It identifies the dividing line between
opcodes in the range [0,255] which don't use their argument and those
that do (``< HAVE_ARGUMENT`` and ``>= HAVE_ARGUMENT``, respectively). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f158fb4a-0c01-40cc-8896-4dc8df35a861 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,696 | supabase-export-v2 | 063a96d6eb63ad61 | The operand determines which intrinsic function is called:
+----------------------------------------+-----------------------------------+
| Operand | Description |
+========================================+===================================+
| ``INTRINSIC_2_INVALID`` | Not valid |
+--------------------------------... | trusted_official_docs | CPython Docs | The operand determines which intrinsic function is called:
+----------------------------------------+-----------------------------------+
| Operand | Description |
+========================================+===================================+
| ``INTRINSIC_2_INVALID`` | Not valid |
+--------------------------------... | The operand determines which intrinsic function is called:
+----------------------------------------+-----------------------------------+
| Operand | Description |
+========================================+===================================+
| ``INTRINSIC_2_INVALID`` | Not valid |
+--------------------------------... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f48b9fc7-9a10-46d2-a27b-3598b181bc23 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,445 | supabase-export-v2 | 3d8171c86aeebb06 | .. opcode:: UNPACK_EX (counts)
Implements assignment with a starred target: Unpacks an iterable in ``STACK[-1]``
into individual values, where the total number of values can be smaller than the
number of items in the iterable: one of the new values will be a list of all
leftover items. | trusted_official_docs | CPython Docs | .. opcode:: UNPACK_EX (counts)
Implements assignment with a starred target: Unpacks an iterable in ``STACK[-1]``
into individual values, where the total number of values can be smaller than the
number of items in the iterable: one of the new values will be a list of all
leftover items. | .. opcode:: UNPACK_EX (counts)
Implements assignment with a starred target: Unpacks an iterable in ``STACK[-1]``
into individual values, where the total number of values can be smaller than the
number of items in the iterable: one of the new values will be a list of all
leftover items. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fa451084-e24c-444f-83b1-0c512cac9c85 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,447 | supabase-export-v2 | cc14009aef85035b | The number of values before and after the list value is limited to 255.
The number of values before the list value is encoded in the argument of the
opcode. The number of values after the list if any is encoded using an
``EXTENDED_ARG``. As a consequence, the argument can be seen as a two bytes values
where the low ... | trusted_official_docs | CPython Docs | The number of values before and after the list value is limited to 255.
The number of values before the list value is encoded in the argument of the
opcode. The number of values after the list if any is encoded using an
``EXTENDED_ARG``. As a consequence, the argument can be seen as a two bytes values
where the low ... | The number of values before and after the list value is limited to 255.
The number of values before the list value is encoded in the argument of the
opcode. The number of values after the list if any is encoded using an
``EXTENDED_ARG``. As a consequence, the argument can be seen as a two bytes values
where the low ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fa4e146c-c85c-420b-bba7-750b28a1ad26 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,217 | supabase-export-v2 | 76ad8228e17c730d | The maximal depth of recursion is limited by *depth* unless it is ``None``. ``depth=0`` means no recursion.
If *show_caches* is ``True``, this function will display inline cache
entries used by the interpreter to specialize the bytecode. | trusted_official_docs | CPython Docs | The maximal depth of recursion is limited by *depth* unless it is ``None``. ``depth=0`` means no recursion.
If *show_caches* is ``True``, this function will display inline cache
entries used by the interpreter to specialize the bytecode. | The maximal depth of recursion is limited by *depth* unless it is ``None``. ``depth=0`` means no recursion.
If *show_caches* is ``True``, this function will display inline cache
entries used by the interpreter to specialize the bytecode. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fb9bdfcf-9787-43ac-887d-51ccdafe165c | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,491 | supabase-export-v2 | d56aa57f78b09c7b | Pushes a new dictionary object onto the stack. Pops ``2 * count`` items so that the dictionary holds *count* entries: ``{..., STACK[-4]: STACK[-3], STACK[-2]: STACK[-1]}``.
.. versionchanged:: 3.5
The dictionary is created from stack items instead of creating an
empty dictionary pre-sized to hold *count* items. | trusted_official_docs | CPython Docs | Pushes a new dictionary object onto the stack. Pops ``2 * count`` items so that the dictionary holds *count* entries: ``{..., STACK[-4]: STACK[-3], STACK[-2]: STACK[-1]}``.
.. versionchanged:: 3.5
The dictionary is created from stack items instead of creating an
empty dictionary pre-sized to hold *count* items. | Pushes a new dictionary object onto the stack. Pops ``2 * count`` items so that the dictionary holds *count* entries: ``{..., STACK[-4]: STACK[-3], STACK[-2]: STACK[-1]}``.
.. versionchanged:: 3.5
The dictionary is created from stack items instead of creating an
empty dictionary pre-sized to hold *count* items. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fc74765f-ab54-4417-866e-3692daa38343 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,448 | supabase-export-v2 | dd02dddbf0b2150c | the low byte of *counts* is the number of values before the list value, the high byte of *counts* the number of values after it.
The extracted values are put onto the stack right-to-left, i.e. ``a, *b, c = d``
will be stored after execution as ``STACK.extend((a, b, c))``. | trusted_official_docs | CPython Docs | the low byte of *counts* is the number of values before the list value, the high byte of *counts* the number of values after it.
The extracted values are put onto the stack right-to-left, i.e. ``a, *b, c = d``
will be stored after execution as ``STACK.extend((a, b, c))``. | the low byte of *counts* is the number of values before the list value, the high byte of *counts* the number of values after it.
The extracted values are put onto the stack right-to-left, i.e. ``a, *b, c = d``
will be stored after execution as ``STACK.extend((a, b, c))``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ff3457f5-0b62-4182-a721-072f44b1a5d1 | CPython Docs | file://datasets/cpython/Doc/library/dis.rst | unknown | 042f3535-e48e-4c80-96dd-0d8bcf67c5cb | 48,399 | supabase-export-v2 | 779e4df02ba20d18 | .. versionchanged:: 3.12 oparg set to be the exception block depth, for efficient closing of generators.
.. versionchanged:: 3.13
oparg is ``1`` if this instruction is part of a yield-from or await, and ``0``
otherwise. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.12 oparg set to be the exception block depth, for efficient closing of generators.
.. versionchanged:: 3.13
oparg is ``1`` if this instruction is part of a yield-from or await, and ``0``
otherwise. | .. versionchanged:: 3.12 oparg set to be the exception block depth, for efficient closing of generators.
.. versionchanged:: 3.13
oparg is ``1`` if this instruction is part of a yield-from or await, and ``0``
otherwise. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ae3e6cdf-4ef6-486e-beff-3104208b4fe5 | CPython Docs | file://datasets/cpython/Doc/library/ipc.rst | unknown | 2b1b9351-514f-4b45-82c8-f467cfb71da2 | 48,753 | supabase-export-v2 | 424bcf0a65777cfe | The modules described in this chapter provide mechanisms for networking and inter-processes communication.
Some modules only work for two processes that are on the same machine, e.g. :mod:`signal` and :mod:`mmap`. Other modules support networking protocols
that two or more processes can use to communicate across machin... | trusted_official_docs | CPython Docs | The modules described in this chapter provide mechanisms for networking and inter-processes communication.
Some modules only work for two processes that are on the same machine, e.g. :mod:`signal` and :mod:`mmap`. Other modules support networking protocols
that two or more processes can use to communicate across machin... | The modules described in this chapter provide mechanisms for networking and inter-processes communication.
Some modules only work for two processes that are on the same machine, e.g. :mod:`signal` and :mod:`mmap`. Other modules support networking protocols
that two or more processes can use to communicate across machin... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d96d68df-b8fc-4ffc-8588-e9d4f5d14756 | CPython Docs | file://datasets/cpython/Doc/library/ipc.rst | unknown | 2b1b9351-514f-4b45-82c8-f467cfb71da2 | 48,754 | supabase-export-v2 | 6e964d8ba0a2f1df | are on the same machine, e.g. :mod:`signal` and :mod:`mmap`. Other modules support networking protocols that two or more processes can use to communicate across machines.
The list of modules described in this chapter is: | trusted_official_docs | CPython Docs | are on the same machine, e.g. :mod:`signal` and :mod:`mmap`. Other modules support networking protocols that two or more processes can use to communicate across machines.
The list of modules described in this chapter is: | are on the same machine, e.g. :mod:`signal` and :mod:`mmap`. Other modules support networking protocols that two or more processes can use to communicate across machines.
The list of modules described in this chapter is: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
082d75c9-bb7e-4155-a0ec-a4a9cb6960dc | CPython Docs | file://datasets/cpython/Doc/library/wave.rst | unknown | fdb75d1b-0cdb-4747-aa90-c0f7313a5d11 | 48,774 | supabase-export-v2 | ff495c7a20a42e8b | returns a :class:`Wave_write` object. If *mode* is omitted and a file-like object is passed as *file*, ``file.mode`` is used as the default value for *mode*.
If you pass in a file-like object, the wave object will not close it when its
``close()`` method is called; it is the caller's responsibility to close
the file ... | trusted_official_docs | CPython Docs | returns a :class:`Wave_write` object. If *mode* is omitted and a file-like object is passed as *file*, ``file.mode`` is used as the default value for *mode*.
If you pass in a file-like object, the wave object will not close it when its
``close()`` method is called; it is the caller's responsibility to close
the file ... | returns a :class:`Wave_write` object. If *mode* is omitted and a file-like object is passed as *file*, ``file.mode`` is used as the default value for *mode*.
If you pass in a file-like object, the wave object will not close it when its
``close()`` method is called; it is the caller's responsibility to close
the file ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
19a2313d-8034-4d57-9951-2cc0d416e2e9 | CPython Docs | file://datasets/cpython/Doc/library/wave.rst | unknown | fdb75d1b-0cdb-4747-aa90-c0f7313a5d11 | 48,826 | supabase-export-v2 | f8a946533bba2a3c | .. method:: close()
Make sure *nframes* is correct, and close the file if it was opened by
:mod:`!wave`. This method is called upon object collection. It will raise
an exception if the output stream is not seekable and *nframes* does not
match the number of frames actually written. | trusted_official_docs | CPython Docs | .. method:: close()
Make sure *nframes* is correct, and close the file if it was opened by
:mod:`!wave`. This method is called upon object collection. It will raise
an exception if the output stream is not seekable and *nframes* does not
match the number of frames actually written. | .. method:: close()
Make sure *nframes* is correct, and close the file if it was opened by
:mod:`!wave`. This method is called upon object collection. It will raise
an exception if the output stream is not seekable and *nframes* does not
match the number of frames actually written. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1ae0f59e-7629-4312-a248-aa9b1a4ce79c | CPython Docs | file://datasets/cpython/Doc/library/wave.rst | unknown | fdb75d1b-0cdb-4747-aa90-c0f7313a5d11 | 48,773 | supabase-export-v2 | ffe561075f02c583 | Note that it does not allow read/write WAV files.
A *mode* of ``'rb'`` returns a :class:`Wave_read` object, while a *mode* of
``'wb'`` returns a :class:`Wave_write` object. If *mode* is omitted and a
file-like object is passed as *file*, ``file.mode`` is used as the default
value for *mode*. | trusted_official_docs | CPython Docs | Note that it does not allow read/write WAV files.
A *mode* of ``'rb'`` returns a :class:`Wave_read` object, while a *mode* of
``'wb'`` returns a :class:`Wave_write` object. If *mode* is omitted and a
file-like object is passed as *file*, ``file.mode`` is used as the default
value for *mode*. | Note that it does not allow read/write WAV files.
A *mode* of ``'rb'`` returns a :class:`Wave_read` object, while a *mode* of
``'wb'`` returns a :class:`Wave_write` object. If *mode* is omitted and a
file-like object is passed as *file*, ``file.mode`` is used as the default
value for *mode*. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2202310d-c21e-4d87-812e-05cfe00d4093 | CPython Docs | file://datasets/cpython/Doc/library/wave.rst | unknown | fdb75d1b-0cdb-4747-aa90-c0f7313a5d11 | 48,869 | supabase-export-v2 | 61e9fe6722fdb7b2 | .. versionchanged:: 3.4 Any :term:`bytes-like object` is now accepted.
Note that it is invalid to set any parameters after calling :meth:`writeframes`
or :meth:`writeframesraw`, and any attempt to do so will raise
:exc:`wave.Error`. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.4 Any :term:`bytes-like object` is now accepted.
Note that it is invalid to set any parameters after calling :meth:`writeframes`
or :meth:`writeframesraw`, and any attempt to do so will raise
:exc:`wave.Error`. | .. versionchanged:: 3.4 Any :term:`bytes-like object` is now accepted.
Note that it is invalid to set any parameters after calling :meth:`writeframes`
or :meth:`writeframesraw`, and any attempt to do so will raise
:exc:`wave.Error`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
357c8279-538c-4f28-8385-b0efdc46a8ee | CPython Docs | file://datasets/cpython/Doc/library/wave.rst | unknown | fdb75d1b-0cdb-4747-aa90-c0f7313a5d11 | 48,867 | supabase-export-v2 | 474e95a83682662a | .. method:: writeframes(data)
Write audio frames and make sure *nframes* is correct. It will raise an
error if the output stream is not seekable and the total number of frames
that have been written after *data* has been written does not match the
previously set value for *nframes*. | trusted_official_docs | CPython Docs | .. method:: writeframes(data)
Write audio frames and make sure *nframes* is correct. It will raise an
error if the output stream is not seekable and the total number of frames
that have been written after *data* has been written does not match the
previously set value for *nframes*. | .. method:: writeframes(data)
Write audio frames and make sure *nframes* is correct. It will raise an
error if the output stream is not seekable and the total number of frames
that have been written after *data* has been written does not match the
previously set value for *nframes*. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
42eb6817-bee3-4abe-8dfe-2bf9ef14a2a5 | CPython Docs | file://datasets/cpython/Doc/library/wave.rst | unknown | fdb75d1b-0cdb-4747-aa90-c0f7313a5d11 | 48,769 | supabase-export-v2 | daad05ad8a8e64c2 | .. function:: open(file, mode=None)
If *file* is a string, a :term:`path-like object` or a
:term:`bytes-like object` open the file by that name, otherwise treat it as
a file-like object. *mode* can be: | trusted_official_docs | CPython Docs | .. function:: open(file, mode=None)
If *file* is a string, a :term:`path-like object` or a
:term:`bytes-like object` open the file by that name, otherwise treat it as
a file-like object. *mode* can be: | .. function:: open(file, mode=None)
If *file* is a string, a :term:`path-like object` or a
:term:`bytes-like object` open the file by that name, otherwise treat it as
a file-like object. *mode* can be: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
63706496-dffb-498e-b4ee-83ea97110eb1 | CPython Docs | file://datasets/cpython/Doc/library/wave.rst | unknown | fdb75d1b-0cdb-4747-aa90-c0f7313a5d11 | 48,822 | supabase-export-v2 | ff9ec7a4306d3598 | Wave_write objects, as returned by :func:`.open`.
For seekable output streams, the ``wave`` header will automatically be updated
to reflect the number of frames actually written. For unseekable streams, the
*nframes* value must be accurate when the first frame data is written. An
accurate *nframes* value can be achi... | trusted_official_docs | CPython Docs | Wave_write objects, as returned by :func:`.open`.
For seekable output streams, the ``wave`` header will automatically be updated
to reflect the number of frames actually written. For unseekable streams, the
*nframes* value must be accurate when the first frame data is written. An
accurate *nframes* value can be achi... | Wave_write objects, as returned by :func:`.open`.
For seekable output streams, the ``wave`` header will automatically be updated
to reflect the number of frames actually written. For unseekable streams, the
*nframes* value must be accurate when the first frame data is written. An
accurate *nframes* value can be achi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6401a82a-f71e-4555-874e-18abcf464751 | CPython Docs | file://datasets/cpython/Doc/library/wave.rst | unknown | fdb75d1b-0cdb-4747-aa90-c0f7313a5d11 | 48,857 | supabase-export-v2 | 14703baac863bd92 | The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype, compname, format)``, with values valid for the ``set*()`` methods. Sets all parameters.
For backwards compatibility, a 6-item tuple without *format* is also
accepted and defaults to :data:`WAVE_FORMAT_PCM`. | trusted_official_docs | CPython Docs | The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype, compname, format)``, with values valid for the ``set*()`` methods. Sets all parameters.
For backwards compatibility, a 6-item tuple without *format* is also
accepted and defaults to :data:`WAVE_FORMAT_PCM`. | The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype, compname, format)``, with values valid for the ``set*()`` methods. Sets all parameters.
For backwards compatibility, a 6-item tuple without *format* is also
accepted and defaults to :data:`WAVE_FORMAT_PCM`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9e97a2f0-c395-45e1-9fd8-8c18721aea82 | CPython Docs | file://datasets/cpython/Doc/library/wave.rst | unknown | fdb75d1b-0cdb-4747-aa90-c0f7313a5d11 | 48,776 | supabase-export-v2 | f3fecdfeaba6745f | The :func:`.open` function may be used in a :keyword:`with` statement. When the :keyword:`!with` block completes, the :meth:`Wave_read.close` or :meth:`Wave_write.close` method is called.
.. versionchanged:: 3.4
Added support for unseekable files. | trusted_official_docs | CPython Docs | The :func:`.open` function may be used in a :keyword:`with` statement. When the :keyword:`!with` block completes, the :meth:`Wave_read.close` or :meth:`Wave_write.close` method is called.
.. versionchanged:: 3.4
Added support for unseekable files. | The :func:`.open` function may be used in a :keyword:`with` statement. When the :keyword:`!with` block completes, the :meth:`Wave_read.close` or :meth:`Wave_write.close` method is called.
.. versionchanged:: 3.4
Added support for unseekable files. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9ffeadc0-eff6-47fc-856c-77f75704abd5 | CPython Docs | file://datasets/cpython/Doc/library/wave.rst | unknown | fdb75d1b-0cdb-4747-aa90-c0f7313a5d11 | 48,868 | supabase-export-v2 | e4558ee8a3791e5f | seekable and the total number of frames that have been written after *data* has been written does not match the previously set value for *nframes*.
.. versionchanged:: 3.4
Any :term:`bytes-like object` is now accepted. | trusted_official_docs | CPython Docs | seekable and the total number of frames that have been written after *data* has been written does not match the previously set value for *nframes*.
.. versionchanged:: 3.4
Any :term:`bytes-like object` is now accepted. | seekable and the total number of frames that have been written after *data* has been written does not match the previously set value for *nframes*.
.. versionchanged:: 3.4
Any :term:`bytes-like object` is now accepted. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b0507713-fb0a-49b9-8f7f-aaaf281ed9ad | CPython Docs | file://datasets/cpython/Doc/library/wave.rst | unknown | fdb75d1b-0cdb-4747-aa90-c0f7313a5d11 | 48,823 | supabase-export-v2 | 8e24b3827a4307ec | be written. In the latter case :meth:`writeframes` will calculate the number of frames in the data and set *nframes* accordingly before writing the frame data.
.. versionchanged:: 3.4
Added support for unseekable files. | trusted_official_docs | CPython Docs | be written. In the latter case :meth:`writeframes` will calculate the number of frames in the data and set *nframes* accordingly before writing the frame data.
.. versionchanged:: 3.4
Added support for unseekable files. | be written. In the latter case :meth:`writeframes` will calculate the number of frames in the data and set *nframes* accordingly before writing the frame data.
.. versionchanged:: 3.4
Added support for unseekable files. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d9e43900-878c-4cfa-bf34-3ee474f7d7e1 | CPython Docs | file://datasets/cpython/Doc/library/wave.rst | unknown | fdb75d1b-0cdb-4747-aa90-c0f7313a5d11 | 48,775 | supabase-export-v2 | c9eaa4540f71a180 | file-like object, the wave object will not close it when its ``close()`` method is called; it is the caller's responsibility to close the file object.
The :func:`.open` function may be used in a :keyword:`with` statement. When
the :keyword:`!with` block completes, the :meth:`Wave_read.close` or
:meth:`Wave_write.clos... | trusted_official_docs | CPython Docs | file-like object, the wave object will not close it when its ``close()`` method is called; it is the caller's responsibility to close the file object.
The :func:`.open` function may be used in a :keyword:`with` statement. When
the :keyword:`!with` block completes, the :meth:`Wave_read.close` or
:meth:`Wave_write.clos... | file-like object, the wave object will not close it when its ``close()`` method is called; it is the caller's responsibility to close the file object.
The :func:`.open` function may be used in a :keyword:`with` statement. When
the :keyword:`!with` block completes, the :meth:`Wave_read.close` or
:meth:`Wave_write.clos... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f2845ad7-7c82-45bc-8674-5d29eec49679 | CPython Docs | file://datasets/cpython/Doc/library/wave.rst | unknown | fdb75d1b-0cdb-4747-aa90-c0f7313a5d11 | 48,840 | supabase-export-v2 | 8df6c7eba2e38f46 | .. method:: setnframes(n)
Set the number of frames to *n*. This will be changed later if the number
of frames actually written is different (this update attempt will
raise an error if the output stream is not seekable). | trusted_official_docs | CPython Docs | .. method:: setnframes(n)
Set the number of frames to *n*. This will be changed later if the number
of frames actually written is different (this update attempt will
raise an error if the output stream is not seekable). | .. method:: setnframes(n)
Set the number of frames to *n*. This will be changed later if the number
of frames actually written is different (this update attempt will
raise an error if the output stream is not seekable). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f6b556d3-bb9a-41e2-adc6-b1f9ef3ac018 | CPython Docs | file://datasets/cpython/Doc/library/wave.rst | unknown | fdb75d1b-0cdb-4747-aa90-c0f7313a5d11 | 48,870 | supabase-export-v2 | b602792a125711f3 | Note that it is invalid to set any parameters after calling :meth:`writeframes` or :meth:`writeframesraw`, and any attempt to do so will raise :exc:`wave.Error`.
For :data:`WAVE_FORMAT_IEEE_FLOAT` output, a ``fact`` chunk is written as
required by the WAVE specification for non-PCM formats. | trusted_official_docs | CPython Docs | Note that it is invalid to set any parameters after calling :meth:`writeframes` or :meth:`writeframesraw`, and any attempt to do so will raise :exc:`wave.Error`.
For :data:`WAVE_FORMAT_IEEE_FLOAT` output, a ``fact`` chunk is written as
required by the WAVE specification for non-PCM formats. | Note that it is invalid to set any parameters after calling :meth:`writeframes` or :meth:`writeframesraw`, and any attempt to do so will raise :exc:`wave.Error`.
For :data:`WAVE_FORMAT_IEEE_FLOAT` output, a ``fact`` chunk is written as
required by the WAVE specification for non-PCM formats. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f238ae91-fb5a-4816-a772-47cc33911b57 | CPython Docs | file://datasets/cpython/Doc/library/superseded.rst | unknown | 53fb589e-5528-41d6-b5ae-d9403a8efce0 | 48,874 | supabase-export-v2 | 091bf2c92042d3db | of "mimic the C :c:func:`!getopt` API in Python", rather than the broader command line option parsing and argument parsing capabilities offered by :mod:`optparse` and :mod:`argparse`).
Alternatively, modules may appear in this chapter because they are deprecated
outright, and awaiting removal in a future release, or th... | trusted_official_docs | CPython Docs | of "mimic the C :c:func:`!getopt` API in Python", rather than the broader command line option parsing and argument parsing capabilities offered by :mod:`optparse` and :mod:`argparse`).
Alternatively, modules may appear in this chapter because they are deprecated
outright, and awaiting removal in a future release, or th... | of "mimic the C :c:func:`!getopt` API in Python", rather than the broader command line option parsing and argument parsing capabilities offered by :mod:`optparse` and :mod:`argparse`).
Alternatively, modules may appear in this chapter because they are deprecated
outright, and awaiting removal in a future release, or th... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fb1a18e7-dfd2-4648-9842-3a4d683b3f72 | CPython Docs | file://datasets/cpython/Doc/library/superseded.rst | unknown | 53fb589e-5528-41d6-b5ae-d9403a8efce0 | 48,873 | supabase-export-v2 | 30bcdd5053871d76 | The modules described in this chapter have been superseded by other modules for most use cases, and are retained primarily to preserve backwards compatibility.
Modules may appear in this chapter because they only cover a limited subset of
a problem space, and a more generally applicable solution is available elsewhere
... | trusted_official_docs | CPython Docs | The modules described in this chapter have been superseded by other modules for most use cases, and are retained primarily to preserve backwards compatibility.
Modules may appear in this chapter because they only cover a limited subset of
a problem space, and a more generally applicable solution is available elsewhere
... | The modules described in this chapter have been superseded by other modules for most use cases, and are retained primarily to preserve backwards compatibility.
Modules may appear in this chapter because they only cover a limited subset of
a problem space, and a more generally applicable solution is available elsewhere
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
079808f7-d53a-4009-bf9e-de830416916c | CPython Docs | file://datasets/cpython/Doc/library/urllib.robotparser.rst | unknown | e03e6f1f-617f-4dee-b442-78c327c71aa7 | 48,901 | supabase-export-v2 | 95b4021de93c96b1 | .. method:: request_rate(useragent)
Returns the contents of the ``Request-rate`` parameter from
``robots.txt`` as a :term:`named tuple` ``RequestRate(requests, seconds)``. If there is no such parameter or it doesn't apply to the *useragent*
specified or the ``robots.txt`` entry for this parameter has invalid
syntax,... | trusted_official_docs | CPython Docs | .. method:: request_rate(useragent)
Returns the contents of the ``Request-rate`` parameter from
``robots.txt`` as a :term:`named tuple` ``RequestRate(requests, seconds)``. If there is no such parameter or it doesn't apply to the *useragent*
specified or the ``robots.txt`` entry for this parameter has invalid
syntax,... | .. method:: request_rate(useragent)
Returns the contents of the ``Request-rate`` parameter from
``robots.txt`` as a :term:`named tuple` ``RequestRate(requests, seconds)``. If there is no such parameter or it doesn't apply to the *useragent*
specified or the ``robots.txt`` entry for this parameter has invalid
syntax,... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
70af7fa1-0da9-42ee-8cae-e09691daf753 | CPython Docs | file://datasets/cpython/Doc/library/urllib.robotparser.rst | unknown | e03e6f1f-617f-4dee-b442-78c327c71aa7 | 48,903 | supabase-export-v2 | a5040797f79b32e6 | .. method:: site_maps()
Returns the contents of the ``Sitemap`` parameter from
``robots.txt`` in the form of a :func:`list`. If there is no such
parameter or the ``robots.txt`` entry for this parameter has
invalid syntax, return ``None``. | trusted_official_docs | CPython Docs | .. method:: site_maps()
Returns the contents of the ``Sitemap`` parameter from
``robots.txt`` in the form of a :func:`list`. If there is no such
parameter or the ``robots.txt`` entry for this parameter has
invalid syntax, return ``None``. | .. method:: site_maps()
Returns the contents of the ``Sitemap`` parameter from
``robots.txt`` in the form of a :func:`list`. If there is no such
parameter or the ``robots.txt`` entry for this parameter has
invalid syntax, return ``None``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a07cf479-e003-4e3e-b22c-6ad6e572626d | CPython Docs | file://datasets/cpython/Doc/library/urllib.robotparser.rst | unknown | e03e6f1f-617f-4dee-b442-78c327c71aa7 | 48,898 | supabase-export-v2 | d2594ac418104724 | .. method:: crawl_delay(useragent)
Returns the value of the ``Crawl-delay`` parameter from ``robots.txt``
for the *useragent* in question. If there is no such parameter or it
doesn't apply to the *useragent* specified or the ``robots.txt`` entry
for this parameter has invalid syntax, return ``None``. | trusted_official_docs | CPython Docs | .. method:: crawl_delay(useragent)
Returns the value of the ``Crawl-delay`` parameter from ``robots.txt``
for the *useragent* in question. If there is no such parameter or it
doesn't apply to the *useragent* specified or the ``robots.txt`` entry
for this parameter has invalid syntax, return ``None``. | .. method:: crawl_delay(useragent)
Returns the value of the ``Crawl-delay`` parameter from ``robots.txt``
for the *useragent* in question. If there is no such parameter or it
doesn't apply to the *useragent* specified or the ``robots.txt`` entry
for this parameter has invalid syntax, return ``None``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
aef4ea46-21f6-4e53-82c7-11bbe7de25d2 | CPython Docs | file://datasets/cpython/Doc/library/urllib.robotparser.rst | unknown | e03e6f1f-617f-4dee-b442-78c327c71aa7 | 48,882 | supabase-export-v2 | 3c53c58def148654 | --------------
This module provides a single class, :class:`RobotFileParser`, which answers
questions about whether or not a particular user agent can fetch a URL on the
website that published the :file:`robots.txt` file. For more details on the
structure of :file:`robots.txt` files, see http://www.robotstxt.org/orig.h... | trusted_official_docs | CPython Docs | --------------
This module provides a single class, :class:`RobotFileParser`, which answers
questions about whether or not a particular user agent can fetch a URL on the
website that published the :file:`robots.txt` file. For more details on the
structure of :file:`robots.txt` files, see http://www.robotstxt.org/orig.h... | --------------
This module provides a single class, :class:`RobotFileParser`, which answers
questions about whether or not a particular user agent can fetch a URL on the
website that published the :file:`robots.txt` file. For more details on the
structure of :file:`robots.txt` files, see http://www.robotstxt.org/orig.h... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b1479e56-4f63-4c58-84e1-7a2a5f72393c | CPython Docs | file://datasets/cpython/Doc/library/urllib.robotparser.rst | unknown | e03e6f1f-617f-4dee-b442-78c327c71aa7 | 48,906 | supabase-export-v2 | 5723bbd7e821fc44 | The following example demonstrates basic use of the :class:`RobotFileParser` class::
>>> import urllib.robotparser
>>> rp = urllib.robotparser.RobotFileParser()
>>> rp.set_url("http://www.pythontest.net/robots.txt")
>>> rp.read()
>>> rrate = rp.request_rate("*")
>>> rrate.requests
1
>>> rrate.seconds
1
>>> rp.... | trusted_official_docs | CPython Docs | The following example demonstrates basic use of the :class:`RobotFileParser` class::
>>> import urllib.robotparser
>>> rp = urllib.robotparser.RobotFileParser()
>>> rp.set_url("http://www.pythontest.net/robots.txt")
>>> rp.read()
>>> rrate = rp.request_rate("*")
>>> rrate.requests
1
>>> rrate.seconds
1
>>> rp.... | The following example demonstrates basic use of the :class:`RobotFileParser` class::
>>> import urllib.robotparser
>>> rp = urllib.robotparser.RobotFileParser()
>>> rp.set_url("http://www.pythontest.net/robots.txt")
>>> rp.read()
>>> rrate = rp.request_rate("*")
>>> rrate.requests
1
>>> rrate.seconds
1
>>> rp.... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
00d96d38-9ea4-4a11-8721-72ed4aa8700b | CPython Docs | file://datasets/cpython/Doc/library/optparse.rst | unknown | fb35db8d-6782-49dd-8f4e-89244d3635e0 | 48,952 | supabase-export-v2 | e58aca4d4a208149 | list other than ``sys.argv[1:]``, so you should read "argument" as "an element of ``sys.argv[1:]``, or of some other list provided as a substitute for ``sys.argv[1:]``".
option
an argument used to supply extra information to guide or customize the
execution of a program. There are many different syntaxes for options;... | trusted_official_docs | CPython Docs | list other than ``sys.argv[1:]``, so you should read "argument" as "an element of ``sys.argv[1:]``, or of some other list provided as a substitute for ``sys.argv[1:]``".
option
an argument used to supply extra information to guide or customize the
execution of a program. There are many different syntaxes for options;... | list other than ``sys.argv[1:]``, so you should read "argument" as "an element of ``sys.argv[1:]``, or of some other list provided as a substitute for ``sys.argv[1:]``".
option
an argument used to supply extra information to guide or customize the
execution of a program. There are many different syntaxes for options;... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
012c158a-39d2-4c24-9029-05f33c68a282 | CPython Docs | file://datasets/cpython/Doc/library/optparse.rst | unknown | fb35db8d-6782-49dd-8f4e-89244d3635e0 | 49,463 | supabase-export-v2 | a5e09fd496dbaac2 | uses the new option type just like any other :mod:`!optparse`\ -based script, except you have to instruct your OptionParser to use MyOption instead of Option::
parser = OptionParser(option_class=MyOption)
parser.add_option("-c", type="complex") | trusted_official_docs | CPython Docs | uses the new option type just like any other :mod:`!optparse`\ -based script, except you have to instruct your OptionParser to use MyOption instead of Option::
parser = OptionParser(option_class=MyOption)
parser.add_option("-c", type="complex") | uses the new option type just like any other :mod:`!optparse`\ -based script, except you have to instruct your OptionParser to use MyOption instead of Option::
parser = OptionParser(option_class=MyOption)
parser.add_option("-c", type="complex") | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
019e2953-a9e2-4048-92b2-12c4d99a1d21 | CPython Docs | file://datasets/cpython/Doc/library/optparse.rst | unknown | fb35db8d-6782-49dd-8f4e-89244d3635e0 | 49,178 | supabase-export-v2 | 4b24eb89f599f244 | (If you don't supply an action, the default is ``"store"``. For this action, you may also supply :attr:`~Option.type` and :attr:`~Option.dest` option attributes; see :ref:`optparse-standard-option-actions`.)
As you can see, most actions involve storing or updating a value somewhere. :mod:`!optparse` always creates a sp... | trusted_official_docs | CPython Docs | (If you don't supply an action, the default is ``"store"``. For this action, you may also supply :attr:`~Option.type` and :attr:`~Option.dest` option attributes; see :ref:`optparse-standard-option-actions`.)
As you can see, most actions involve storing or updating a value somewhere. :mod:`!optparse` always creates a sp... | (If you don't supply an action, the default is ``"store"``. For this action, you may also supply :attr:`~Option.type` and :attr:`~Option.dest` option attributes; see :ref:`optparse-standard-option-actions`.)
As you can see, most actions involve storing or updating a value somewhere. :mod:`!optparse` always creates a sp... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0278a234-39f0-4d5f-b974-452f8d188bb7 | CPython Docs | file://datasets/cpython/Doc/library/optparse.rst | unknown | fb35db8d-6782-49dd-8f4e-89244d3635e0 | 48,924 | supabase-export-v2 | bc3d080d773a1426 | if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('-o', '--output') parser.add_argument('-v', dest='verbose', action='store_true') parser.add_argument('rest', nargs='*') args = parser.parse_args() process(args.rest, output=args.output, verbose=args.verbose)
The most obvious difference is... | trusted_official_docs | CPython Docs | if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('-o', '--output') parser.add_argument('-v', dest='verbose', action='store_true') parser.add_argument('rest', nargs='*') args = parser.parse_args() process(args.rest, output=args.output, verbose=args.verbose)
The most obvious difference is... | if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('-o', '--output') parser.add_argument('-v', dest='verbose', action='store_true') parser.add_argument('rest', nargs='*') args = parser.parse_args() process(args.rest, output=args.output, verbose=args.verbose)
The most obvious difference is... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0292995c-1eec-40c8-b6d2-4111847ee5bc | CPython Docs | file://datasets/cpython/Doc/library/optparse.rst | unknown | fb35db8d-6782-49dd-8f4e-89244d3635e0 | 49,383 | supabase-export-v2 | 8ea08442e0622429 | :mod:`!optparse` to consume one argument and convert it to :attr:`~Option.type`. Rather than storing the converted value(s) anywhere, though, :mod:`!optparse` passes it to your callback function.
:attr:`~Option.nargs`
also has its usual meaning: if it is supplied and > 1, :mod:`!optparse` will
consume :attr:`~Option.... | trusted_official_docs | CPython Docs | :mod:`!optparse` to consume one argument and convert it to :attr:`~Option.type`. Rather than storing the converted value(s) anywhere, though, :mod:`!optparse` passes it to your callback function.
:attr:`~Option.nargs`
also has its usual meaning: if it is supplied and > 1, :mod:`!optparse` will
consume :attr:`~Option.... | :mod:`!optparse` to consume one argument and convert it to :attr:`~Option.type`. Rather than storing the converted value(s) anywhere, though, :mod:`!optparse` passes it to your callback function.
:attr:`~Option.nargs`
also has its usual meaning: if it is supplied and > 1, :mod:`!optparse` will
consume :attr:`~Option.... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
02eed481-2291-41dc-8d5c-748528d31b16 | CPython Docs | file://datasets/cpython/Doc/library/optparse.rst | unknown | fb35db8d-6782-49dd-8f4e-89244d3635e0 | 49,292 | supabase-export-v2 | c085ad671d6240e4 | are not checked or converted in any way: the text on the command line is stored in the destination (or passed to the callback) as-is.
Integer arguments (type ``"int"``) are parsed as follows: | trusted_official_docs | CPython Docs | are not checked or converted in any way: the text on the command line is stored in the destination (or passed to the callback) as-is.
Integer arguments (type ``"int"``) are parsed as follows: | are not checked or converted in any way: the text on the command line is stored in the destination (or passed to the callback) as-is.
Integer arguments (type ``"int"``) are parsed as follows: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
04fd8234-a458-4429-a0b3-7500509b07b9 | CPython Docs | file://datasets/cpython/Doc/library/optparse.rst | unknown | fb35db8d-6782-49dd-8f4e-89244d3635e0 | 49,493 | supabase-export-v2 | 13fb1b9008105b06 | * to ensure that :mod:`!optparse` assigns the default type of ``"string"`` to ``"extend"`` actions, we put the ``"extend"`` action in :attr:`~Option.ALWAYS_TYPED_ACTIONS` as well.
* :meth:`MyOption.take_action` implements just this one new action, and passes
control back to :meth:`Option.take_action` for the standard ... | trusted_official_docs | CPython Docs | * to ensure that :mod:`!optparse` assigns the default type of ``"string"`` to ``"extend"`` actions, we put the ``"extend"`` action in :attr:`~Option.ALWAYS_TYPED_ACTIONS` as well.
* :meth:`MyOption.take_action` implements just this one new action, and passes
control back to :meth:`Option.take_action` for the standard ... | * to ensure that :mod:`!optparse` assigns the default type of ``"string"`` to ``"extend"`` actions, we put the ``"extend"`` action in :attr:`~Option.ALWAYS_TYPED_ACTIONS` as well.
* :meth:`MyOption.take_action` implements just this one new action, and passes
control back to :meth:`Option.take_action` for the standard ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0523ef3f-7c9d-42fc-b6f2-b3c32e2dbe03 | CPython Docs | file://datasets/cpython/Doc/library/optparse.rst | unknown | fb35db8d-6782-49dd-8f4e-89244d3635e0 | 49,156 | supabase-export-v2 | b4b31726571351f6 | option_list = [ make_option("-f", "--filename", action="store", type="string", dest="filename"), make_option("-q", "--quiet", action="store_false", dest="verbose"), ] parser = OptionParser(option_list=option_list)
(:func:`make_option` is a factory function for creating Option instances;
currently it is an alias for the... | trusted_official_docs | CPython Docs | option_list = [ make_option("-f", "--filename", action="store", type="string", dest="filename"), make_option("-q", "--quiet", action="store_false", dest="verbose"), ] parser = OptionParser(option_list=option_list)
(:func:`make_option` is a factory function for creating Option instances;
currently it is an alias for the... | option_list = [ make_option("-f", "--filename", action="store", type="string", dest="filename"), make_option("-q", "--quiet", action="store_false", dest="verbose"), ] parser = OptionParser(option_list=option_list)
(:func:`make_option` is a factory function for creating Option instances;
currently it is an alias for the... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
05f395f7-ef41-4c14-af48-94ede30e26d3 | CPython Docs | file://datasets/cpython/Doc/library/optparse.rst | unknown | fb35db8d-6782-49dd-8f4e-89244d3635e0 | 49,061 | supabase-export-v2 | aab2c4f8616e5321 | ``%prog`` in the usage string to the name of the current program, i.e. ``os.path.basename(sys.argv[0])``. The expanded string is then printed before the detailed option help.
If you don't supply a usage string, :mod:`!optparse` uses a bland but sensible
default: ``"Usage: %prog [options]"``, which is fine if your scri... | trusted_official_docs | CPython Docs | ``%prog`` in the usage string to the name of the current program, i.e. ``os.path.basename(sys.argv[0])``. The expanded string is then printed before the detailed option help.
If you don't supply a usage string, :mod:`!optparse` uses a bland but sensible
default: ``"Usage: %prog [options]"``, which is fine if your scri... | ``%prog`` in the usage string to the name of the current program, i.e. ``os.path.basename(sys.argv[0])``. The expanded string is then printed before the detailed option help.
If you don't supply a usage string, :mod:`!optparse` uses a bland but sensible
default: ``"Usage: %prog [options]"``, which is fine if your scri... | 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.