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
5ec08ed2-5e06-49f3-ad6d-b3942e16944d
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,339
supabase-export-v2
c363ba7b469a8afe
which is guaranteed to be unique and constant for this object during its lifetime. Two objects with non-overlapping lifetimes may have the same :func:`id` value. .. impl-detail:: This is the address of the object in memory.
trusted_official_docs
CPython Docs
which is guaranteed to be unique and constant for this object during its lifetime. Two objects with non-overlapping lifetimes may have the same :func:`id` value. .. impl-detail:: This is the address of the object in memory.
which is guaranteed to be unique and constant for this object during its lifetime. Two objects with non-overlapping lifetimes may have the same :func:`id` value. .. impl-detail:: This is the address of the object in memory.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5f59ae8f-1297-465c-9ad5-c3a71ea14534
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,518
supabase-export-v2
b7a69cd14ecafa01
Return *number* rounded to *ndigits* precision after the decimal point. If *ndigits* is omitted or is ``None``, it returns the nearest integer to its input. For the built-in types supporting :func:`round`, values are rounded to the closest multiple of 10 to the power minus *ndigits*; if two multiples are equally clos...
trusted_official_docs
CPython Docs
Return *number* rounded to *ndigits* precision after the decimal point. If *ndigits* is omitted or is ``None``, it returns the nearest integer to its input. For the built-in types supporting :func:`round`, values are rounded to the closest multiple of 10 to the power minus *ndigits*; if two multiples are equally clos...
Return *number* rounded to *ndigits* precision after the decimal point. If *ndigits* is omitted or is ``None``, it returns the nearest integer to its input. For the built-in types supporting :func:`round`, values are rounded to the closest multiple of 10 to the power minus *ndigits*; if two multiples are equally clos...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6279c9d4-91fc-441b-a1ac-e29e2b2e5576
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,572
supabase-export-v2
bf5fcdc81d1d24eb
in Python are similar to those found in Java or C++. Also, see :func:`classmethod` for a variant that is useful for creating alternate class constructors. Like all decorators, it is also possible to call ``staticmethod`` as a regular function and do something with its result. This is needed in some cases where you ne...
trusted_official_docs
CPython Docs
in Python are similar to those found in Java or C++. Also, see :func:`classmethod` for a variant that is useful for creating alternate class constructors. Like all decorators, it is also possible to call ``staticmethod`` as a regular function and do something with its result. This is needed in some cases where you ne...
in Python are similar to those found in Java or C++. Also, see :func:`classmethod` for a variant that is useful for creating alternate class constructors. Like all decorators, it is also possible to call ``staticmethod`` as a regular function and do something with its result. This is needed in some cases where you ne...
python, official-docs, cpython, P0
Local_Trusted_Corpus
63618e46-0a6b-4827-aa38-0b91e3985d13
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,665
supabase-export-v2
1ba6fe0b22be412a
If you simply want to import a module (potentially within a package) by name, use :func:`importlib.import_module`. .. versionchanged:: 3.3 Negative values for *level* are no longer supported (which also changes the default value to 0).
trusted_official_docs
CPython Docs
If you simply want to import a module (potentially within a package) by name, use :func:`importlib.import_module`. .. versionchanged:: 3.3 Negative values for *level* are no longer supported (which also changes the default value to 0).
If you simply want to import a module (potentially within a package) by name, use :func:`importlib.import_module`. .. versionchanged:: 3.3 Negative values for *level* are no longer supported (which also changes the default value to 0).
python, official-docs, cpython, P0
Local_Trusted_Corpus
63b14277-02b8-4269-ac54-269b80ccae2b
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,390
supabase-export-v2
0ac0bde118c0101c
.. versionchanged:: 3.12 The behaviour of ``locals()`` in a comprehension has been updated as described in :pep:`709`. .. versionchanged:: 3.13 As part of :pep:`667`, the semantics of mutating the mapping objects returned from this function are now defined. The behavior in :term:`optimized scopes <optimized scope>` ...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.12 The behaviour of ``locals()`` in a comprehension has been updated as described in :pep:`709`. .. versionchanged:: 3.13 As part of :pep:`667`, the semantics of mutating the mapping objects returned from this function are now defined. The behavior in :term:`optimized scopes <optimized scope>` ...
.. versionchanged:: 3.12 The behaviour of ``locals()`` in a comprehension has been updated as described in :pep:`709`. .. versionchanged:: 3.13 As part of :pep:`667`, the semantics of mutating the mapping objects returned from this function are now defined. The behavior in :term:`optimized scopes <optimized scope>` ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
63efd6e0-76db-427d-bfef-c81a0dccd830
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,222
supabase-export-v2
f5a4aa846af65284
The default :func:`dir` mechanism behaves differently with different types of objects, as it attempts to produce the most relevant, rather than complete, information: * If the object is a module object, the list contains the names of the module's attributes.
trusted_official_docs
CPython Docs
The default :func:`dir` mechanism behaves differently with different types of objects, as it attempts to produce the most relevant, rather than complete, information: * If the object is a module object, the list contains the names of the module's attributes.
The default :func:`dir` mechanism behaves differently with different types of objects, as it attempts to produce the most relevant, rather than complete, information: * If the object is a module object, the list contains the names of the module's attributes.
python, official-docs, cpython, P0
Local_Trusted_Corpus
640dad56-e8f3-40eb-ba8c-5071b5a125fa
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,652
supabase-export-v2
ae2202615cea2b45
This is an advanced function that is not needed in everyday Python programming, unlike :func:`importlib.import_module`. This function is invoked by the :keyword:`import` statement. It can be replaced (by importing the :mod:`builtins` module and assigning to ``builtins.__import__``) in order to change semantics of the...
trusted_official_docs
CPython Docs
This is an advanced function that is not needed in everyday Python programming, unlike :func:`importlib.import_module`. This function is invoked by the :keyword:`import` statement. It can be replaced (by importing the :mod:`builtins` module and assigning to ``builtins.__import__``) in order to change semantics of the...
This is an advanced function that is not needed in everyday Python programming, unlike :func:`importlib.import_module`. This function is invoked by the :keyword:`import` statement. It can be replaced (by importing the :mod:`builtins` module and assigning to ``builtins.__import__``) in order to change semantics of the...
python, official-docs, cpython, P0
Local_Trusted_Corpus
644e2ba4-b5f0-48f9-953a-6a8b0b5327e9
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,263
supabase-export-v2
61fe1495f66b8313
This function executes arbitrary code. Calling it with untrusted user-supplied input will lead to security vulnerabilities. This function supports dynamic execution of Python code. *source* must be either a string or a code object. If it is a string, the string is parsed as a suite of Python statements which is then ...
trusted_official_docs
CPython Docs
This function executes arbitrary code. Calling it with untrusted user-supplied input will lead to security vulnerabilities. This function supports dynamic execution of Python code. *source* must be either a string or a code object. If it is a string, the string is parsed as a suite of Python statements which is then ...
This function executes arbitrary code. Calling it with untrusted user-supplied input will lead to security vulnerabilities. This function supports dynamic execution of Python code. *source* must be either a string or a code object. If it is a string, the string is parsed as a suite of Python statements which is then ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
64711b39-f316-4439-ad9a-0314eb336a9b
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,221
supabase-export-v2
ecd3813b7f0f83e5
if defined, and from its type object. The resulting list is not necessarily complete and may be inaccurate when the object has a custom :func:`~object.__getattr__`. The default :func:`dir` mechanism behaves differently with different types of objects, as it attempts to produce the most relevant, rather than complete, ...
trusted_official_docs
CPython Docs
if defined, and from its type object. The resulting list is not necessarily complete and may be inaccurate when the object has a custom :func:`~object.__getattr__`. The default :func:`dir` mechanism behaves differently with different types of objects, as it attempts to produce the most relevant, rather than complete, ...
if defined, and from its type object. The resulting list is not necessarily complete and may be inaccurate when the object has a custom :func:`~object.__getattr__`. The default :func:`dir` mechanism behaves differently with different types of objects, as it attempts to produce the most relevant, rather than complete, ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
65928f68-137a-4756-a5ba-c0320c74cb30
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,550
supabase-export-v2
24815e933fe52b12
.. class:: slice(stop, /) slice(start, stop, step=None, /) Return a :term:`slice` object representing the set of indices specified by ``range(start, stop, step)``. The *start* and *step* arguments default to ``None``.
trusted_official_docs
CPython Docs
.. class:: slice(stop, /) slice(start, stop, step=None, /) Return a :term:`slice` object representing the set of indices specified by ``range(start, stop, step)``. The *start* and *step* arguments default to ``None``.
.. class:: slice(stop, /) slice(start, stop, step=None, /) Return a :term:`slice` object representing the set of indices specified by ``range(start, stop, step)``. The *start* and *step* arguments default to ``None``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
65dce512-d611-4926-b8a6-6ab0b9a3b1d9
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,411
supabase-export-v2
785d3ff8ed77b4cb
.. function:: next(iterator, /) next(iterator, default, /) Retrieve the next item from the :term:`iterator` by calling its :meth:`~iterator.__next__` method. If *default* is given, it is returned if the iterator is exhausted, otherwise :exc:`StopIteration` is raised.
trusted_official_docs
CPython Docs
.. function:: next(iterator, /) next(iterator, default, /) Retrieve the next item from the :term:`iterator` by calling its :meth:`~iterator.__next__` method. If *default* is given, it is returned if the iterator is exhausted, otherwise :exc:`StopIteration` is raised.
.. function:: next(iterator, /) next(iterator, default, /) Retrieve the next item from the :term:`iterator` by calling its :meth:`~iterator.__next__` method. If *default* is given, it is returned if the iterator is exhausted, otherwise :exc:`StopIteration` is raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
662ceb31-bd0e-4efe-b661-f46dbfb1497e
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,153
supabase-export-v2
fff21d97d5d4d524
* If it is an *integer*, the array will have that size and will be initialized with null bytes. * If it is an object conforming to the :ref:`buffer interface <bufferobjects>`, a read-only buffer of the object will be used to initialize the bytes array.
trusted_official_docs
CPython Docs
* If it is an *integer*, the array will have that size and will be initialized with null bytes. * If it is an object conforming to the :ref:`buffer interface <bufferobjects>`, a read-only buffer of the object will be used to initialize the bytes array.
* If it is an *integer*, the array will have that size and will be initialized with null bytes. * If it is an object conforming to the :ref:`buffer interface <bufferobjects>`, a read-only buffer of the object will be used to initialize the bytes array.
python, official-docs, cpython, P0
Local_Trusted_Corpus
67ed0fcb-e5c0-4ef3-ba2f-d25fe3bcb698
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,562
supabase-export-v2
ebcf04959fd5a744
Use :func:`functools.cmp_to_key` to convert an old-style *cmp* function to a *key* function. The built-in :func:`sorted` function is guaranteed to be stable. A sort is stable if it guarantees not to change the relative order of elements that compare equal --- this is helpful for sorting in multiple passes (for examp...
trusted_official_docs
CPython Docs
Use :func:`functools.cmp_to_key` to convert an old-style *cmp* function to a *key* function. The built-in :func:`sorted` function is guaranteed to be stable. A sort is stable if it guarantees not to change the relative order of elements that compare equal --- this is helpful for sorting in multiple passes (for examp...
Use :func:`functools.cmp_to_key` to convert an old-style *cmp* function to a *key* function. The built-in :func:`sorted` function is guaranteed to be stable. A sort is stable if it guarantees not to change the relative order of elements that compare equal --- this is helpful for sorting in multiple passes (for examp...
python, official-docs, cpython, P0
Local_Trusted_Corpus
684b4a5b-26c6-4b6c-9e59-1686e79cffe5
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,184
supabase-export-v2
9f5f101eab2bc533
found as the :attr:`~__future__._Feature.compiler_flag` attribute on the :class:`~__future__._Feature` instance in the :mod:`__future__` module. :ref:`Compiler flags <ast-compiler-flags>` can be found in :mod:`ast` module, with ``PyCF_`` prefix. The argument *optimize* specifies the optimization level of the compiler; ...
trusted_official_docs
CPython Docs
found as the :attr:`~__future__._Feature.compiler_flag` attribute on the :class:`~__future__._Feature` instance in the :mod:`__future__` module. :ref:`Compiler flags <ast-compiler-flags>` can be found in :mod:`ast` module, with ``PyCF_`` prefix. The argument *optimize* specifies the optimization level of the compiler; ...
found as the :attr:`~__future__._Feature.compiler_flag` attribute on the :class:`~__future__._Feature` instance in the :mod:`__future__` module. :ref:`Compiler flags <ast-compiler-flags>` can be found in :mod:`ast` module, with ``PyCF_`` prefix. The argument *optimize* specifies the optimization level of the compiler; ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
69a0b3ea-3922-4dfb-b3c4-d6b638b9a570
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,582
supabase-export-v2
daecc1c985c35d25
.. function:: sum(iterable, /, start=0) Sums *start* and the items of an *iterable* from left to right and returns the total. The *iterable*'s items are normally numbers, and the start value is not allowed to be a string.
trusted_official_docs
CPython Docs
.. function:: sum(iterable, /, start=0) Sums *start* and the items of an *iterable* from left to right and returns the total. The *iterable*'s items are normally numbers, and the start value is not allowed to be a string.
.. function:: sum(iterable, /, start=0) Sums *start* and the items of an *iterable* from left to right and returns the total. The *iterable*'s items are normally numbers, and the start value is not allowed to be a string.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6b96bda6-9a6f-41d5-967f-d5e86b65b9c2
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,586
supabase-export-v2
5c59fd69ebff4665
.. versionchanged:: 3.12 Summation of floats switched to an algorithm that gives higher accuracy and better commutativity on most builds. .. versionchanged:: 3.14 Added specialization for summation of complexes, using same algorithm as for summation of floats.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.12 Summation of floats switched to an algorithm that gives higher accuracy and better commutativity on most builds. .. versionchanged:: 3.14 Added specialization for summation of complexes, using same algorithm as for summation of floats.
.. versionchanged:: 3.12 Summation of floats switched to an algorithm that gives higher accuracy and better commutativity on most builds. .. versionchanged:: 3.14 Added specialization for summation of complexes, using same algorithm as for summation of floats.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6d3b4a10-29d0-4711-ae86-0aed92fc1b89
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,398
supabase-export-v2
7806bc9d3b1a931d
specifies an object to return if the provided iterable is empty. If the iterable is empty and *default* is not provided, a :exc:`ValueError` is raised. If multiple items are maximal, the function returns the first one encountered. This is consistent with other sort-stability preserving tools such as ``sorted(iterable...
trusted_official_docs
CPython Docs
specifies an object to return if the provided iterable is empty. If the iterable is empty and *default* is not provided, a :exc:`ValueError` is raised. If multiple items are maximal, the function returns the first one encountered. This is consistent with other sort-stability preserving tools such as ``sorted(iterable...
specifies an object to return if the provided iterable is empty. If the iterable is empty and *default* is not provided, a :exc:`ValueError` is raised. If multiple items are maximal, the function returns the first one encountered. This is consistent with other sort-stability preserving tools such as ``sorted(iterable...
python, official-docs, cpython, P0
Local_Trusted_Corpus
70cfd517-809b-4d8a-80f9-a898f9b79057
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,326
supabase-export-v2
6667ed3e75572be1
when invoking :func:`help`, it means that the parameters prior to the slash are positional-only. For more info, see :ref:`the FAQ entry on positional-only parameters <faq-positional-only-arguments>`. This function is added to the built-in namespace by the :mod:`site` module.
trusted_official_docs
CPython Docs
when invoking :func:`help`, it means that the parameters prior to the slash are positional-only. For more info, see :ref:`the FAQ entry on positional-only parameters <faq-positional-only-arguments>`. This function is added to the built-in namespace by the :mod:`site` module.
when invoking :func:`help`, it means that the parameters prior to the slash are positional-only. For more info, see :ref:`the FAQ entry on positional-only parameters <faq-positional-only-arguments>`. This function is added to the built-in namespace by the :mod:`site` module.
python, official-docs, cpython, P0
Local_Trusted_Corpus
71fb0f36-e8f7-485a-ac22-5e2e478f0f9f
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,501
supabase-export-v2
d6e8553c7abe1664
@x.deleter def x(self): del self._x This code is exactly equivalent to the first example. Be sure to give the additional functions the same name as the original property (``x`` in this case.)
trusted_official_docs
CPython Docs
@x.deleter def x(self): del self._x This code is exactly equivalent to the first example. Be sure to give the additional functions the same name as the original property (``x`` in this case.)
@x.deleter def x(self): del self._x This code is exactly equivalent to the first example. Be sure to give the additional functions the same name as the original property (``x`` in this case.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
729b9300-7403-47ec-a524-3da16091d5f5
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,185
supabase-export-v2
4dec1b564e08b59c
by :option:`-O` options. Explicit levels are ``0`` (no optimization; ``__debug__`` is true), ``1`` (asserts are removed, ``__debug__`` is false) or ``2`` (docstrings are removed too). The optional argument *module* specifies the module name. It is needed to unambiguous :ref:`filter <warning-filter>` syntax warnings by...
trusted_official_docs
CPython Docs
by :option:`-O` options. Explicit levels are ``0`` (no optimization; ``__debug__`` is true), ``1`` (asserts are removed, ``__debug__`` is false) or ``2`` (docstrings are removed too). The optional argument *module* specifies the module name. It is needed to unambiguous :ref:`filter <warning-filter>` syntax warnings by...
by :option:`-O` options. Explicit levels are ``0`` (no optimization; ``__debug__`` is true), ``1`` (asserts are removed, ``__debug__`` is false) or ``2`` (docstrings are removed too). The optional argument *module* specifies the module name. It is needed to unambiguous :ref:`filter <warning-filter>` syntax warnings by...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7476bcd4-3ea7-4935-b2aa-9d3f7bf73d25
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,215
supabase-export-v2
821e0391ec08c890
.. _func-dict: .. class:: dict(**kwargs) dict(mapping, /, **kwargs) dict(iterable, /, **kwargs) :noindex: Create a new dictionary. The :class:`dict` object is the dictionary class. See :class:`dict` and :ref:`typesmapping` for documentation about this class.
trusted_official_docs
CPython Docs
.. _func-dict: .. class:: dict(**kwargs) dict(mapping, /, **kwargs) dict(iterable, /, **kwargs) :noindex: Create a new dictionary. The :class:`dict` object is the dictionary class. See :class:`dict` and :ref:`typesmapping` for documentation about this class.
.. _func-dict: .. class:: dict(**kwargs) dict(mapping, /, **kwargs) dict(iterable, /, **kwargs) :noindex: Create a new dictionary. The :class:`dict` object is the dictionary class. See :class:`dict` and :ref:`typesmapping` for documentation about this class.
python, official-docs, cpython, P0
Local_Trusted_Corpus
757c990a-f0a7-4997-8912-81633ae17254
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,526
supabase-export-v2
5fe0f087439cca5b
.. function:: setattr(object, name, value, /) This is the counterpart of :func:`getattr`. The arguments are an object, a string, and an arbitrary value. The string may name an existing attribute or a new attribute. The function assigns the value to the attribute, provided the object allows it. For example, ``setattr...
trusted_official_docs
CPython Docs
.. function:: setattr(object, name, value, /) This is the counterpart of :func:`getattr`. The arguments are an object, a string, and an arbitrary value. The string may name an existing attribute or a new attribute. The function assigns the value to the attribute, provided the object allows it. For example, ``setattr...
.. function:: setattr(object, name, value, /) This is the counterpart of :func:`getattr`. The arguments are an object, a string, and an arbitrary value. The string may name an existing attribute or a new attribute. The function assigns the value to the attribute, provided the object allows it. For example, ``setattr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
759cfbeb-a3aa-4ffb-afff-9187db3c963c
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,436
supabase-export-v2
1ccbe8c1f4103ac4
* "Interactive" text files (files for which :meth:`~io.IOBase.isatty` returns ``True``) use line buffering. Other text files use the policy described above for binary files. *encoding* is the name of the encoding used to decode or encode the file. This should only be used in text mode. The default encoding is platform ...
trusted_official_docs
CPython Docs
* "Interactive" text files (files for which :meth:`~io.IOBase.isatty` returns ``True``) use line buffering. Other text files use the policy described above for binary files. *encoding* is the name of the encoding used to decode or encode the file. This should only be used in text mode. The default encoding is platform ...
* "Interactive" text files (files for which :meth:`~io.IOBase.isatty` returns ``True``) use line buffering. Other text files use the policy described above for binary files. *encoding* is the name of the encoding used to decode or encode the file. This should only be used in text mode. The default encoding is platform ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
76865ef1-fa2e-412d-80ae-22dced7fa1ab
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,283
supabase-export-v2
c9b5c6537eb486ed
.. function:: filter(function, iterable, /) Construct an iterator from those elements of *iterable* for which *function* is true. *iterable* may be either a sequence, a container which supports iteration, or an iterator. If *function* is ``None``, the identity function is assumed, that is, all elements of *iterable*...
trusted_official_docs
CPython Docs
.. function:: filter(function, iterable, /) Construct an iterator from those elements of *iterable* for which *function* is true. *iterable* may be either a sequence, a container which supports iteration, or an iterator. If *function* is ``None``, the identity function is assumed, that is, all elements of *iterable*...
.. function:: filter(function, iterable, /) Construct an iterator from those elements of *iterable* for which *function* is true. *iterable* may be either a sequence, a container which supports iteration, or an iterator. If *function* is ``None``, the identity function is assumed, that is, all elements of *iterable*...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7720aaed-0992-40ce-8bb3-aa7f1bec0bfd
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,109
supabase-export-v2
da63e6db12341ded
The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order. +---------------------------------------------------------------------------------------------------+ | Built-in Functions | +=========================+=======================+...
trusted_official_docs
CPython Docs
The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order. +---------------------------------------------------------------------------------------------------+ | Built-in Functions | +=========================+=======================+...
The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order. +---------------------------------------------------------------------------------------------------+ | Built-in Functions | +=========================+=======================+...
python, official-docs, cpython, P0
Local_Trusted_Corpus
77716ff3-0ca6-47e8-9b1c-21431315508e
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,292
supabase-export-v2
97069a9b59c1dcfe
negative infinity. More precisely, the input must conform to the :token:`~float:floatvalue` production rule in the following grammar, after leading and trailing whitespace characters are removed: .. productionlist:: float sign: "+" | "-" infinity: "Infinity" | "inf" nan: "nan" digit: <a Unicode decimal digit, i.e. ...
trusted_official_docs
CPython Docs
negative infinity. More precisely, the input must conform to the :token:`~float:floatvalue` production rule in the following grammar, after leading and trailing whitespace characters are removed: .. productionlist:: float sign: "+" | "-" infinity: "Infinity" | "inf" nan: "nan" digit: <a Unicode decimal digit, i.e. ...
negative infinity. More precisely, the input must conform to the :token:`~float:floatvalue` production rule in the following grammar, after leading and trailing whitespace characters are removed: .. productionlist:: float sign: "+" | "-" infinity: "Infinity" | "inf" nan: "nan" digit: <a Unicode decimal digit, i.e. ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7981f8ae-b357-40eb-8490-69e422f81920
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,570
supabase-export-v2
edd8889f0d6b46ce
The ``@staticmethod`` form is a function :term:`decorator` -- see :ref:`function` for details. A static method can be called either on the class (such as ``C.f()``) or on an instance (such as ``C().f()``). Moreover, the static method :term:`descriptor` is also callable, so it can be used in the class definition (such...
trusted_official_docs
CPython Docs
The ``@staticmethod`` form is a function :term:`decorator` -- see :ref:`function` for details. A static method can be called either on the class (such as ``C.f()``) or on an instance (such as ``C().f()``). Moreover, the static method :term:`descriptor` is also callable, so it can be used in the class definition (such...
The ``@staticmethod`` form is a function :term:`decorator` -- see :ref:`function` for details. A static method can be called either on the class (such as ``C.f()``) or on an instance (such as ``C().f()``). Moreover, the static method :term:`descriptor` is also callable, so it can be used in the class definition (such...
python, official-docs, cpython, P0
Local_Trusted_Corpus
798dc80e-ffac-4ed8-8b68-ee3d2d654018
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,405
supabase-export-v2
c2a1d64f4243c117
Return the smallest item in an iterable or the smallest of two or more arguments. If one positional argument is provided, it should be an :term:`iterable`. The smallest item in the iterable is returned. If two or more positional arguments are provided, the smallest of the positional arguments is returned.
trusted_official_docs
CPython Docs
Return the smallest item in an iterable or the smallest of two or more arguments. If one positional argument is provided, it should be an :term:`iterable`. The smallest item in the iterable is returned. If two or more positional arguments are provided, the smallest of the positional arguments is returned.
Return the smallest item in an iterable or the smallest of two or more arguments. If one positional argument is provided, it should be an :term:`iterable`. The smallest item in the iterable is returned. If two or more positional arguments are provided, the smallest of the positional arguments is returned.
python, official-docs, cpython, P0
Local_Trusted_Corpus
799754e5-0be2-48eb-a8f1-a3398effb32e
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,354
supabase-export-v2
522673c0d348df96
If the argument defines :meth:`~object.__int__`, ``int(x)`` returns ``x.__int__()``. If the argument defines :meth:`~object.__index__`, it returns ``x.__index__()``. For floating-point numbers, this truncates towards zero. If the argument is not a number or if *base* is given, then it must be a string, :class:`bytes`,...
trusted_official_docs
CPython Docs
If the argument defines :meth:`~object.__int__`, ``int(x)`` returns ``x.__int__()``. If the argument defines :meth:`~object.__index__`, it returns ``x.__index__()``. For floating-point numbers, this truncates towards zero. If the argument is not a number or if *base* is given, then it must be a string, :class:`bytes`,...
If the argument defines :meth:`~object.__int__`, ``int(x)`` returns ``x.__int__()``. If the argument defines :meth:`~object.__index__`, it returns ``x.__index__()``. For floating-point numbers, this truncates towards zero. If the argument is not a number or if *base* is given, then it must be a string, :class:`bytes`,...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7af9b233-dad2-4c0d-8663-f917e0a36405
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,330
supabase-export-v2
9476f9a73bda9608
string prefixed with "0x". If *integer* is not a Python :class:`int` object, it has to define an :meth:`~object.__index__` method that returns an integer. Some examples: >>> hex(255) '0xff' >>> hex(-42) '-0x2a'
trusted_official_docs
CPython Docs
string prefixed with "0x". If *integer* is not a Python :class:`int` object, it has to define an :meth:`~object.__index__` method that returns an integer. Some examples: >>> hex(255) '0xff' >>> hex(-42) '-0x2a'
string prefixed with "0x". If *integer* is not a Python :class:`int` object, it has to define an :meth:`~object.__index__` method that returns an integer. Some examples: >>> hex(255) '0xff' >>> hex(-42) '-0x2a'
python, official-docs, cpython, P0
Local_Trusted_Corpus
7b58cceb-fbde-471e-ae4c-a3ddf60a0dde
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,483
supabase-export-v2
4110461c751f007e
is a function for setting an attribute value. *fdel* is a function for deleting an attribute value. And *doc* creates a docstring for the attribute. A typical use is to define a managed attribute ``x``::
trusted_official_docs
CPython Docs
is a function for setting an attribute value. *fdel* is a function for deleting an attribute value. And *doc* creates a docstring for the attribute. A typical use is to define a managed attribute ``x``::
is a function for setting an attribute value. *fdel* is a function for deleting an attribute value. And *doc* creates a docstring for the attribute. A typical use is to define a managed attribute ``x``::
python, official-docs, cpython, P0
Local_Trusted_Corpus
7bcff8bb-a6ca-442d-8b97-c2a226d3dba6
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,228
supabase-export-v2
6d48e5f23fc239e5
.. note:: Because :func:`dir` is supplied primarily as a convenience for use at an interactive prompt, it tries to supply an interesting set of names more than it tries to supply a rigorously or consistently defined set of names, and its detailed behavior may change across releases. For example, metaclass attribute...
trusted_official_docs
CPython Docs
.. note:: Because :func:`dir` is supplied primarily as a convenience for use at an interactive prompt, it tries to supply an interesting set of names more than it tries to supply a rigorously or consistently defined set of names, and its detailed behavior may change across releases. For example, metaclass attribute...
.. note:: Because :func:`dir` is supplied primarily as a convenience for use at an interactive prompt, it tries to supply an interesting set of names more than it tries to supply a rigorously or consistently defined set of names, and its detailed behavior may change across releases. For example, metaclass attribute...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7bda2b5a-303d-4820-8d4d-151e68cca0a3
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,630
supabase-export-v2
7d77c8953c62480f
More formally: :func:`zip` returns an iterator of tuples, where the *i*-th tuple contains the *i*-th element from each of the argument iterables. Another way to think of :func:`zip` is that it turns rows into columns, and columns into rows. This is similar to `transposing a matrix <https://en.wikipedia.org/wiki/Trans...
trusted_official_docs
CPython Docs
More formally: :func:`zip` returns an iterator of tuples, where the *i*-th tuple contains the *i*-th element from each of the argument iterables. Another way to think of :func:`zip` is that it turns rows into columns, and columns into rows. This is similar to `transposing a matrix <https://en.wikipedia.org/wiki/Trans...
More formally: :func:`zip` returns an iterator of tuples, where the *i*-th tuple contains the *i*-th element from each of the argument iterables. Another way to think of :func:`zip` is that it turns rows into columns, and columns into rows. This is similar to `transposing a matrix <https://en.wikipedia.org/wiki/Trans...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7c3ae487-384c-4fdd-99f2-6dde332ca00b
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,559
supabase-export-v2
5692865566c59c27
Has two optional arguments which must be specified as keyword arguments. *key* specifies a function of one argument that is used to extract a comparison key from each element in *iterable* (for example, ``key=str.lower``). The default value is ``None`` (compare the elements directly).
trusted_official_docs
CPython Docs
Has two optional arguments which must be specified as keyword arguments. *key* specifies a function of one argument that is used to extract a comparison key from each element in *iterable* (for example, ``key=str.lower``). The default value is ``None`` (compare the elements directly).
Has two optional arguments which must be specified as keyword arguments. *key* specifies a function of one argument that is used to extract a comparison key from each element in *iterable* (for example, ``key=str.lower``). The default value is ``None`` (compare the elements directly).
python, official-docs, cpython, P0
Local_Trusted_Corpus
7d4d931a-e6da-4b29-987b-e9a4ccb26c51
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,472
supabase-export-v2
673a083eb14dce1c
>>> pow(38, -1, mod=97) 23 >>> 23 * 38 % 97 == 1 True .. versionchanged:: 3.8 For :class:`int` operands, the three-argument form of ``pow`` now allows the second argument to be negative, permitting computation of modular inverses.
trusted_official_docs
CPython Docs
>>> pow(38, -1, mod=97) 23 >>> 23 * 38 % 97 == 1 True .. versionchanged:: 3.8 For :class:`int` operands, the three-argument form of ``pow`` now allows the second argument to be negative, permitting computation of modular inverses.
>>> pow(38, -1, mod=97) 23 >>> 23 * 38 % 97 == 1 True .. versionchanged:: 3.8 For :class:`int` operands, the three-argument form of ``pow`` now allows the second argument to be negative, permitting computation of modular inverses.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7e1d986b-3ac3-4289-ae2f-0cb14ce0057e
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,306
supabase-export-v2
b8d8605626cd4cdd
The default *format_spec* is an empty string which usually gives the same effect as calling :func:`str(value) <str>`. A call to ``format(value, format_spec)`` is translated to ``type(value).__format__(value, format_spec)`` which bypasses the instance dictionary when searching for the value's :meth:`~object.__format__...
trusted_official_docs
CPython Docs
The default *format_spec* is an empty string which usually gives the same effect as calling :func:`str(value) <str>`. A call to ``format(value, format_spec)`` is translated to ``type(value).__format__(value, format_spec)`` which bypasses the instance dictionary when searching for the value's :meth:`~object.__format__...
The default *format_spec* is an empty string which usually gives the same effect as calling :func:`str(value) <str>`. A call to ``format(value, format_spec)`` is translated to ``type(value).__format__(value, format_spec)`` which bypasses the instance dictionary when searching for the value's :meth:`~object.__format__...
python, official-docs, cpython, P0
Local_Trusted_Corpus
80829052-8319-4efc-8ff4-d8b158b4d5c8
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,588
supabase-export-v2
c42e2d6da4c0cc76
.. class:: super() super(type, object_or_type=None, /) Return a proxy object that delegates method calls to a parent or sibling class of *type*. This is useful for accessing inherited methods that have been overridden in a class.
trusted_official_docs
CPython Docs
.. class:: super() super(type, object_or_type=None, /) Return a proxy object that delegates method calls to a parent or sibling class of *type*. This is useful for accessing inherited methods that have been overridden in a class.
.. class:: super() super(type, object_or_type=None, /) Return a proxy object that delegates method calls to a parent or sibling class of *type*. This is useful for accessing inherited methods that have been overridden in a class.
python, official-docs, cpython, P0
Local_Trusted_Corpus
813b5502-8ba6-498f-bb3d-0a486d6d3d33
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,307
supabase-export-v2
f4f8d68163e6e709
is raised if the method search reaches :mod:`object` and the *format_spec* is non-empty, or if either the *format_spec* or the return value are not strings. .. versionchanged:: 3.4 ``object().__format__(format_spec)`` raises :exc:`TypeError` if *format_spec* is not an empty string.
trusted_official_docs
CPython Docs
is raised if the method search reaches :mod:`object` and the *format_spec* is non-empty, or if either the *format_spec* or the return value are not strings. .. versionchanged:: 3.4 ``object().__format__(format_spec)`` raises :exc:`TypeError` if *format_spec* is not an empty string.
is raised if the method search reaches :mod:`object` and the *format_spec* is non-empty, or if either the *format_spec* or the return value are not strings. .. versionchanged:: 3.4 ``object().__format__(format_spec)`` raises :exc:`TypeError` if *format_spec* is not an empty string.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8353651a-5af7-433c-883c-e0696348ded6
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,392
supabase-export-v2
0af258aa61844cd4
.. function:: map(function, iterable, /, *iterables, strict=False) Return an iterator that applies *function* to every item of *iterable*, yielding the results. If additional *iterables* arguments are passed, *function* must take that many arguments and is applied to the items from all iterables in parallel. With mu...
trusted_official_docs
CPython Docs
.. function:: map(function, iterable, /, *iterables, strict=False) Return an iterator that applies *function* to every item of *iterable*, yielding the results. If additional *iterables* arguments are passed, *function* must take that many arguments and is applied to the items from all iterables in parallel. With mu...
.. function:: map(function, iterable, /, *iterables, strict=False) Return an iterator that applies *function* to every item of *iterable*, yielding the results. If additional *iterables* arguments are passed, *function* must take that many arguments and is applied to the items from all iterables in parallel. With mu...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8475f92b-8266-4017-9b75-c34d7fb034d4
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,343
supabase-export-v2
187faef0526d7290
reads a line from input, converts it to a string (stripping a trailing newline), and returns that. When EOF is read, :exc:`EOFError` is raised. Example:: >>> s = input('--> ') # doctest: +SKIP --> Monty Python's Flying Circus >>> s # doctest: +SKIP "Monty Python's Flying Circus"
trusted_official_docs
CPython Docs
reads a line from input, converts it to a string (stripping a trailing newline), and returns that. When EOF is read, :exc:`EOFError` is raised. Example:: >>> s = input('--> ') # doctest: +SKIP --> Monty Python's Flying Circus >>> s # doctest: +SKIP "Monty Python's Flying Circus"
reads a line from input, converts it to a string (stripping a trailing newline), and returns that. When EOF is read, :exc:`EOFError` is raised. Example:: >>> s = input('--> ') # doctest: +SKIP --> Monty Python's Flying Circus >>> s # doctest: +SKIP "Monty Python's Flying Circus"
python, official-docs, cpython, P0
Local_Trusted_Corpus
872c2fb5-a76f-48e0-a188-cbe2fd98ccf8
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,596
supabase-export-v2
89b6300fef3f24ab
runtime, because that order adapts to changes in the class hierarchy, and because that order can include sibling classes that are unknown prior to runtime). For both use cases, a typical superclass call looks like this::
trusted_official_docs
CPython Docs
runtime, because that order adapts to changes in the class hierarchy, and because that order can include sibling classes that are unknown prior to runtime). For both use cases, a typical superclass call looks like this::
runtime, because that order adapts to changes in the class hierarchy, and because that order can include sibling classes that are unknown prior to runtime). For both use cases, a typical superclass call looks like this::
python, official-docs, cpython, P0
Local_Trusted_Corpus
87662f4b-d0a3-4f2e-8f0b-366e59ffc882
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,519
supabase-export-v2
314049e86b637f58
zero, or negative). The return value is an integer if *ndigits* is omitted or ``None``. Otherwise, the return value has the same type as *number*. For a general Python object ``number``, ``round`` delegates to ``number.__round__``.
trusted_official_docs
CPython Docs
zero, or negative). The return value is an integer if *ndigits* is omitted or ``None``. Otherwise, the return value has the same type as *number*. For a general Python object ``number``, ``round`` delegates to ``number.__round__``.
zero, or negative). The return value is an integer if *ndigits* is omitted or ``None``. Otherwise, the return value has the same type as *number*. For a general Python object ``number``, ``round`` delegates to ``number.__round__``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
885965d8-3947-4a45-9890-144176867a8d
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,555
supabase-export-v2
c780a82663dc019a
are set to the argument values (or their default). They have no other explicit functionality; however, they are used by NumPy and other third-party packages. .. versionchanged:: 3.12 Slice objects are now :term:`hashable` (provided :attr:`~slice.start`, :attr:`~slice.stop`, and :attr:`~slice.step` are hashable).
trusted_official_docs
CPython Docs
are set to the argument values (or their default). They have no other explicit functionality; however, they are used by NumPy and other third-party packages. .. versionchanged:: 3.12 Slice objects are now :term:`hashable` (provided :attr:`~slice.start`, :attr:`~slice.stop`, and :attr:`~slice.step` are hashable).
are set to the argument values (or their default). They have no other explicit functionality; however, they are used by NumPy and other third-party packages. .. versionchanged:: 3.12 Slice objects are now :term:`hashable` (provided :attr:`~slice.start`, :attr:`~slice.stop`, and :attr:`~slice.step` are hashable).
python, official-docs, cpython, P0
Local_Trusted_Corpus
88ee3e38-de8c-4a25-bd15-faed18f76788
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,661
supabase-export-v2
595bfd90dc3b59b3
Note how :func:`__import__` returns the toplevel module here because this is the object that is bound to a name by the :keyword:`import` statement. On the other hand, the statement ``from spam.ham import eggs, sausage as saus`` results in ::
trusted_official_docs
CPython Docs
Note how :func:`__import__` returns the toplevel module here because this is the object that is bound to a name by the :keyword:`import` statement. On the other hand, the statement ``from spam.ham import eggs, sausage as saus`` results in ::
Note how :func:`__import__` returns the toplevel module here because this is the object that is bound to a name by the :keyword:`import` statement. On the other hand, the statement ``from spam.ham import eggs, sausage as saus`` results in ::
python, official-docs, cpython, P0
Local_Trusted_Corpus
8997fe8b-5322-4f4e-8544-d31ea95b9463
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,367
supabase-export-v2
df5f3286aa2ed668
.. function:: issubclass(class, classinfo, /) Return ``True`` if *class* is a subclass (direct, indirect, or :term:`virtual <abstract base class>`) of *classinfo*. A class is considered a subclass of itself. *classinfo* may be a tuple of class objects (or recursively, other such tuples) or a :ref:`types-union`, in ...
trusted_official_docs
CPython Docs
.. function:: issubclass(class, classinfo, /) Return ``True`` if *class* is a subclass (direct, indirect, or :term:`virtual <abstract base class>`) of *classinfo*. A class is considered a subclass of itself. *classinfo* may be a tuple of class objects (or recursively, other such tuples) or a :ref:`types-union`, in ...
.. function:: issubclass(class, classinfo, /) Return ``True`` if *class* is a subclass (direct, indirect, or :term:`virtual <abstract base class>`) of *classinfo*. A class is considered a subclass of itself. *classinfo* may be a tuple of class objects (or recursively, other such tuples) or a :ref:`types-union`, in ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
89e0c4c7-dbdb-411c-9d95-95acc121d305
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,342
supabase-export-v2
364443ff77989a7c
.. function:: input() input(prompt, /) If the *prompt* argument is present, it is written to standard output without a trailing newline. The function then reads a line from input, converts it to a string (stripping a trailing newline), and returns that. When EOF is read, :exc:`EOFError` is raised. Example::
trusted_official_docs
CPython Docs
.. function:: input() input(prompt, /) If the *prompt* argument is present, it is written to standard output without a trailing newline. The function then reads a line from input, converts it to a string (stripping a trailing newline), and returns that. When EOF is read, :exc:`EOFError` is raised. Example::
.. function:: input() input(prompt, /) If the *prompt* argument is present, it is written to standard output without a trailing newline. The function then reads a line from input, converts it to a string (stripping a trailing newline), and returns that. When EOF is read, :exc:`EOFError` is raised. Example::
python, official-docs, cpython, P0
Local_Trusted_Corpus
8c3f4071-5bd9-4a66-a4a4-c1f927844dfd
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,631
supabase-export-v2
41cc21abaa6a4c00
Another way to think of :func:`zip` is that it turns rows into columns, and columns into rows. This is similar to `transposing a matrix <https://en.wikipedia.org/wiki/Transpose>`_. :func:`zip` is lazy: The elements won't be processed until the iterable is iterated on, e.g. by a :keyword:`!for` loop or by wrapping in a...
trusted_official_docs
CPython Docs
Another way to think of :func:`zip` is that it turns rows into columns, and columns into rows. This is similar to `transposing a matrix <https://en.wikipedia.org/wiki/Transpose>`_. :func:`zip` is lazy: The elements won't be processed until the iterable is iterated on, e.g. by a :keyword:`!for` loop or by wrapping in a...
Another way to think of :func:`zip` is that it turns rows into columns, and columns into rows. This is similar to `transposing a matrix <https://en.wikipedia.org/wiki/Transpose>`_. :func:`zip` is lazy: The elements won't be processed until the iterable is iterated on, e.g. by a :keyword:`!for` loop or by wrapping in a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8d24e96b-5d81-420f-af52-dfb45b92d487
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,662
supabase-export-v2
eea758eff629cb22
On the other hand, the statement ``from spam.ham import eggs, sausage as saus`` results in :: _temp = __import__('spam.ham', globals(), locals(), ['eggs', 'sausage'], 0) eggs = _temp.eggs saus = _temp.sausage
trusted_official_docs
CPython Docs
On the other hand, the statement ``from spam.ham import eggs, sausage as saus`` results in :: _temp = __import__('spam.ham', globals(), locals(), ['eggs', 'sausage'], 0) eggs = _temp.eggs saus = _temp.sausage
On the other hand, the statement ``from spam.ham import eggs, sausage as saus`` results in :: _temp = __import__('spam.ham', globals(), locals(), ['eggs', 'sausage'], 0) eggs = _temp.eggs saus = _temp.sausage
python, official-docs, cpython, P0
Local_Trusted_Corpus
8da5d7c4-5e9b-496a-95f6-4a9a838efe84
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,332
supabase-export-v2
58b6ebaa76108cb0
want to convert an integer number to an uppercase or lower hexadecimal string with prefix or not, you can use either of the following ways: >>> '%#x' % 255, '%x' % 255, '%X' % 255 ('0xff', 'ff', 'FF') >>> format(255, '#x'), format(255, 'x'), format(255, 'X') ('0xff', 'ff', 'FF') >>> f'{255:#x}', f'{255:x}', f'{255:...
trusted_official_docs
CPython Docs
want to convert an integer number to an uppercase or lower hexadecimal string with prefix or not, you can use either of the following ways: >>> '%#x' % 255, '%x' % 255, '%X' % 255 ('0xff', 'ff', 'FF') >>> format(255, '#x'), format(255, 'x'), format(255, 'X') ('0xff', 'ff', 'FF') >>> f'{255:#x}', f'{255:x}', f'{255:...
want to convert an integer number to an uppercase or lower hexadecimal string with prefix or not, you can use either of the following ways: >>> '%#x' % 255, '%x' % 255, '%X' % 255 ('0xff', 'ff', 'FF') >>> format(255, '#x'), format(255, 'x'), format(255, 'X') ('0xff', 'ff', 'FF') >>> f'{255:#x}', f'{255:x}', f'{255:...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8ea07797-dd20-4302-b966-c62eca5dc8d2
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,247
supabase-export-v2
bc5576b83659e97c
>>> x = 1 >>> eval('x+1') 2 This function can also be used to execute arbitrary code objects (such as those created by :func:`compile`). In this case, pass a code object instead of a string. If the code object has been compiled with ``'exec'`` as the *mode* argument, :func:`eval`\'s return value will be ``None``.
trusted_official_docs
CPython Docs
>>> x = 1 >>> eval('x+1') 2 This function can also be used to execute arbitrary code objects (such as those created by :func:`compile`). In this case, pass a code object instead of a string. If the code object has been compiled with ``'exec'`` as the *mode* argument, :func:`eval`\'s return value will be ``None``.
>>> x = 1 >>> eval('x+1') 2 This function can also be used to execute arbitrary code objects (such as those created by :func:`compile`). In this case, pass a code object instead of a string. If the code object has been compiled with ``'exec'`` as the *mode* argument, :func:`eval`\'s return value will be ``None``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8f56384d-deb0-4dfa-bc72-5d0905863987
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,212
supabase-export-v2
71eef37395585bb2
deprecated:: 3.14 Passing a complex number as the *real* or *imag* argument is now deprecated; it should only be passed as a single positional argument. .. function:: delattr(object, name, /)
trusted_official_docs
CPython Docs
deprecated:: 3.14 Passing a complex number as the *real* or *imag* argument is now deprecated; it should only be passed as a single positional argument. .. function:: delattr(object, name, /)
deprecated:: 3.14 Passing a complex number as the *real* or *imag* argument is now deprecated; it should only be passed as a single positional argument. .. function:: delattr(object, name, /)
python, official-docs, cpython, P0
Local_Trusted_Corpus
8fb9ba39-b7e7-4e97-816b-aaa26fa2fcbb
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,601
supabase-export-v2
55b5866b67c7b178
as the compiler fills in the necessary details to correctly retrieve the class being defined, as well as accessing the current instance for ordinary methods. For practical suggestions on how to design cooperative classes using :func:`super`, see `guide to using super() <https://rhettinger.wordpress.com/2011/05/26/sup...
trusted_official_docs
CPython Docs
as the compiler fills in the necessary details to correctly retrieve the class being defined, as well as accessing the current instance for ordinary methods. For practical suggestions on how to design cooperative classes using :func:`super`, see `guide to using super() <https://rhettinger.wordpress.com/2011/05/26/sup...
as the compiler fills in the necessary details to correctly retrieve the class being defined, as well as accessing the current instance for ordinary methods. For practical suggestions on how to design cooperative classes using :func:`super`, see `guide to using super() <https://rhettinger.wordpress.com/2011/05/26/sup...
python, official-docs, cpython, P0
Local_Trusted_Corpus
900180e9-cc86-4276-a4d3-3509fcce25a7
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,219
supabase-export-v2
0b88d57de8986d4f
arguments, return the list of names in the current local scope. With an argument, attempt to return a list of valid attributes for that object. If the object has a method named :meth:`~object.__dir__`, this method will be called and must return the list of attributes. This allows objects that implement a custom :fun...
trusted_official_docs
CPython Docs
arguments, return the list of names in the current local scope. With an argument, attempt to return a list of valid attributes for that object. If the object has a method named :meth:`~object.__dir__`, this method will be called and must return the list of attributes. This allows objects that implement a custom :fun...
arguments, return the list of names in the current local scope. With an argument, attempt to return a list of valid attributes for that object. If the object has a method named :meth:`~object.__dir__`, this method will be called and must return the list of attributes. This allows objects that implement a custom :fun...
python, official-docs, cpython, P0
Local_Trusted_Corpus
926d2dfb-12c6-43a4-9151-50558974f51a
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,449
supabase-export-v2
47b83317e99d3042
returns an :class:`io.BufferedWriter`, and in read/write mode, it returns an :class:`io.BufferedRandom`. When buffering is disabled, the raw stream, a subclass of :class:`io.RawIOBase`, :class:`io.FileIO`, is returned. .. index:: single: line-buffered I/O single: unbuffered I/O single: buffer size, I/O single: I/O ...
trusted_official_docs
CPython Docs
returns an :class:`io.BufferedWriter`, and in read/write mode, it returns an :class:`io.BufferedRandom`. When buffering is disabled, the raw stream, a subclass of :class:`io.RawIOBase`, :class:`io.FileIO`, is returned. .. index:: single: line-buffered I/O single: unbuffered I/O single: buffer size, I/O single: I/O ...
returns an :class:`io.BufferedWriter`, and in read/write mode, it returns an :class:`io.BufferedRandom`. When buffering is disabled, the raw stream, a subclass of :class:`io.RawIOBase`, :class:`io.FileIO`, is returned. .. index:: single: line-buffered I/O single: unbuffered I/O single: buffer size, I/O single: I/O ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
93dbf8c1-7c25-4978-af7a-20525cbec5fb
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,593
supabase-export-v2
fce6808abe070f0c
is an object, ``isinstance(obj, type)`` must be true. If the second argument is a type, ``issubclass(type2, type)`` must be true (this is useful for classmethods). When called directly within an ordinary method of a class, both arguments may be omitted ("zero-argument :func:`!super`"). In this case, *type* will be the...
trusted_official_docs
CPython Docs
is an object, ``isinstance(obj, type)`` must be true. If the second argument is a type, ``issubclass(type2, type)`` must be true (this is useful for classmethods). When called directly within an ordinary method of a class, both arguments may be omitted ("zero-argument :func:`!super`"). In this case, *type* will be the...
is an object, ``isinstance(obj, type)`` must be true. If the second argument is a type, ``issubclass(type2, type)`` must be true (this is useful for classmethods). When called directly within an ordinary method of a class, both arguments may be omitted ("zero-argument :func:`!super`"). In this case, *type* will be the...
python, official-docs, cpython, P0
Local_Trusted_Corpus
94e1ba92-4b7b-486a-bf94-8760770e0456
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,660
supabase-export-v2
1ccf49bfe7c945f0
spam = __import__('spam.ham', globals(), locals(), [], 0) Note how :func:`__import__` returns the toplevel module here because this is the object that is bound to a name by the :keyword:`import` statement.
trusted_official_docs
CPython Docs
spam = __import__('spam.ham', globals(), locals(), [], 0) Note how :func:`__import__` returns the toplevel module here because this is the object that is bound to a name by the :keyword:`import` statement.
spam = __import__('spam.ham', globals(), locals(), [], 0) Note how :func:`__import__` returns the toplevel module here because this is the object that is bound to a name by the :keyword:`import` statement.
python, official-docs, cpython, P0
Local_Trusted_Corpus
95373c98-5e7c-4c3c-b44f-197f03897ad7
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,144
supabase-export-v2
3a33f1aa53520196
and :func:`breakpoint` will automatically call that, allowing you to drop into the debugger of choice. If :func:`sys.breakpointhook` is not accessible, this function will raise :exc:`RuntimeError`. By default, the behavior of :func:`breakpoint` can be changed with the :envvar:`PYTHONBREAKPOINT` environment variable. S...
trusted_official_docs
CPython Docs
and :func:`breakpoint` will automatically call that, allowing you to drop into the debugger of choice. If :func:`sys.breakpointhook` is not accessible, this function will raise :exc:`RuntimeError`. By default, the behavior of :func:`breakpoint` can be changed with the :envvar:`PYTHONBREAKPOINT` environment variable. S...
and :func:`breakpoint` will automatically call that, allowing you to drop into the debugger of choice. If :func:`sys.breakpointhook` is not accessible, this function will raise :exc:`RuntimeError`. By default, the behavior of :func:`breakpoint` can be changed with the :envvar:`PYTHONBREAKPOINT` environment variable. S...
python, official-docs, cpython, P0
Local_Trusted_Corpus
95ca03b1-3c37-4055-a7e3-ba6a26f74276
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,408
supabase-export-v2
c493b49dbb71f204
are minimal, the function returns the first one encountered. This is consistent with other sort-stability preserving tools such as ``sorted(iterable, key=keyfunc)[0]`` and ``heapq.nsmallest(1, iterable, key=keyfunc)``. .. versionchanged:: 3.4 Added the *default* keyword-only parameter.
trusted_official_docs
CPython Docs
are minimal, the function returns the first one encountered. This is consistent with other sort-stability preserving tools such as ``sorted(iterable, key=keyfunc)[0]`` and ``heapq.nsmallest(1, iterable, key=keyfunc)``. .. versionchanged:: 3.4 Added the *default* keyword-only parameter.
are minimal, the function returns the first one encountered. This is consistent with other sort-stability preserving tools such as ``sorted(iterable, key=keyfunc)[0]`` and ``heapq.nsmallest(1, iterable, key=keyfunc)``. .. versionchanged:: 3.4 Added the *default* keyword-only parameter.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9618af39-e581-4f30-a8db-9896cd12a77c
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,320
supabase-export-v2
3da4eb06941eba9b
.. function:: hash(object, /) Return the hash value of the object (if it has one). Hash values are integers. They are used to quickly compare dictionary keys during a dictionary lookup. Numeric values that compare equal have the same hash value (even if they are of different types, as is the case for 1 and 1.0).
trusted_official_docs
CPython Docs
.. function:: hash(object, /) Return the hash value of the object (if it has one). Hash values are integers. They are used to quickly compare dictionary keys during a dictionary lookup. Numeric values that compare equal have the same hash value (even if they are of different types, as is the case for 1 and 1.0).
.. function:: hash(object, /) Return the hash value of the object (if it has one). Hash values are integers. They are used to quickly compare dictionary keys during a dictionary lookup. Numeric values that compare equal have the same hash value (even if they are of different types, as is the case for 1 and 1.0).
python, official-docs, cpython, P0
Local_Trusted_Corpus
96aea043-74fd-4046-869c-ebde4d77694f
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,645
supabase-export-v2
e30f04764a4158db
so that each output tuple has the result of ``n`` calls to the iterator. This has the effect of dividing the input into n-length chunks. * :func:`zip` in conjunction with the ``*`` operator can be used to unzip a list::
trusted_official_docs
CPython Docs
so that each output tuple has the result of ``n`` calls to the iterator. This has the effect of dividing the input into n-length chunks. * :func:`zip` in conjunction with the ``*`` operator can be used to unzip a list::
so that each output tuple has the result of ``n`` calls to the iterator. This has the effect of dividing the input into n-length chunks. * :func:`zip` in conjunction with the ``*`` operator can be used to unzip a list::
python, official-docs, cpython, P0
Local_Trusted_Corpus
97125013-8cef-47a7-97f3-289ea17484cc
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,561
supabase-export-v2
49a6d7af22bb7434
*reverse* is a boolean value. If set to ``True``, then the list elements are sorted as if each comparison were reversed. Use :func:`functools.cmp_to_key` to convert an old-style *cmp* function to a *key* function.
trusted_official_docs
CPython Docs
*reverse* is a boolean value. If set to ``True``, then the list elements are sorted as if each comparison were reversed. Use :func:`functools.cmp_to_key` to convert an old-style *cmp* function to a *key* function.
*reverse* is a boolean value. If set to ``True``, then the list elements are sorted as if each comparison were reversed. Use :func:`functools.cmp_to_key` to convert an old-style *cmp* function to a *key* function.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9996dc61-c7bf-46e4-820e-10883937236e
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,218
supabase-export-v2
821bbba6fd675894
.. function:: dir() dir(object, /) Without arguments, return the list of names in the current local scope. With an argument, attempt to return a list of valid attributes for that object.
trusted_official_docs
CPython Docs
.. function:: dir() dir(object, /) Without arguments, return the list of names in the current local scope. With an argument, attempt to return a list of valid attributes for that object.
.. function:: dir() dir(object, /) Without arguments, return the list of names in the current local scope. With an argument, attempt to return a list of valid attributes for that object.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9ac56d94-4650-426c-b71d-8f36480d1143
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,636
supabase-export-v2
878db846832357e5
are assumed to be of equal length. In such cases, it's recommended to use the ``strict=True`` option. Its output is the same as regular :func:`zip`:: >>> list(zip(('a', 'b', 'c'), (1, 2, 3), strict=True)) [('a', 1), ('b', 2), ('c', 3)]
trusted_official_docs
CPython Docs
are assumed to be of equal length. In such cases, it's recommended to use the ``strict=True`` option. Its output is the same as regular :func:`zip`:: >>> list(zip(('a', 'b', 'c'), (1, 2, 3), strict=True)) [('a', 1), ('b', 2), ('c', 3)]
are assumed to be of equal length. In such cases, it's recommended to use the ``strict=True`` option. Its output is the same as regular :func:`zip`:: >>> list(zip(('a', 'b', 'c'), (1, 2, 3), strict=True)) [('a', 1), ('b', 2), ('c', 3)]
python, official-docs, cpython, P0
Local_Trusted_Corpus
9b1264b0-a11d-4037-9f07-07c9b95fe0be
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,186
supabase-export-v2
105691868a8c93a8
The optional argument *module* specifies the module name. It is needed to unambiguous :ref:`filter <warning-filter>` syntax warnings by module name. This function raises :exc:`SyntaxError` or :exc:`ValueError` if the compiled source is invalid.
trusted_official_docs
CPython Docs
The optional argument *module* specifies the module name. It is needed to unambiguous :ref:`filter <warning-filter>` syntax warnings by module name. This function raises :exc:`SyntaxError` or :exc:`ValueError` if the compiled source is invalid.
The optional argument *module* specifies the module name. It is needed to unambiguous :ref:`filter <warning-filter>` syntax warnings by module name. This function raises :exc:`SyntaxError` or :exc:`ValueError` if the compiled source is invalid.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9b3d1d23-ff14-4311-9da7-67feccf1489e
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,478
supabase-export-v2
639b070067965a46
will be used. Since printed arguments are converted to text strings, :func:`print` cannot be used with binary mode file objects. For these, use ``file.write(...)`` instead. Output buffering is usually determined by *file*. However, if *flush* is true, the stream is forcibly flushed.
trusted_official_docs
CPython Docs
will be used. Since printed arguments are converted to text strings, :func:`print` cannot be used with binary mode file objects. For these, use ``file.write(...)`` instead. Output buffering is usually determined by *file*. However, if *flush* is true, the stream is forcibly flushed.
will be used. Since printed arguments are converted to text strings, :func:`print` cannot be used with binary mode file objects. For these, use ``file.write(...)`` instead. Output buffering is usually determined by *file*. However, if *flush* is true, the stream is forcibly flushed.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9cce1b9c-22de-44f4-a26a-e80b5c035531
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,664
supabase-export-v2
feb322069f0b8c3d
Here, the ``spam.ham`` module is returned from :func:`__import__`. From this object, the names to import are retrieved and assigned to their respective names. If you simply want to import a module (potentially within a package) by name, use :func:`importlib.import_module`.
trusted_official_docs
CPython Docs
Here, the ``spam.ham`` module is returned from :func:`__import__`. From this object, the names to import are retrieved and assigned to their respective names. If you simply want to import a module (potentially within a package) by name, use :func:`importlib.import_module`.
Here, the ``spam.ham`` module is returned from :func:`__import__`. From this object, the names to import are retrieved and assigned to their respective names. If you simply want to import a module (potentially within a package) by name, use :func:`importlib.import_module`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9d1f655f-2f36-4068-bcb0-7ab1b69211b8
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,183
supabase-export-v2
21a74f88bada391a
*dont_inherit* is a non-zero integer then the *flags* argument is it -- the flags (future features and compiler options) in the surrounding code are ignored. Compiler options and future statements are specified by bits which can be bitwise ORed together to specify multiple options. The bitfield required to specify a ...
trusted_official_docs
CPython Docs
*dont_inherit* is a non-zero integer then the *flags* argument is it -- the flags (future features and compiler options) in the surrounding code are ignored. Compiler options and future statements are specified by bits which can be bitwise ORed together to specify multiple options. The bitfield required to specify a ...
*dont_inherit* is a non-zero integer then the *flags* argument is it -- the flags (future features and compiler options) in the surrounding code are ignored. Compiler options and future statements are specified by bits which can be bitwise ORed together to specify multiple options. The bitfield required to specify a ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9d708c36-b0f1-46a1-8c0a-76d11f47923c
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,632
supabase-export-v2
ea4ad206265c1963
:func:`zip` is lazy: The elements won't be processed until the iterable is iterated on, e.g. by a :keyword:`!for` loop or by wrapping in a :class:`list`. One thing to consider is that the iterables passed to :func:`zip` could have different lengths; sometimes by design, and sometimes because of a bug in the code that...
trusted_official_docs
CPython Docs
:func:`zip` is lazy: The elements won't be processed until the iterable is iterated on, e.g. by a :keyword:`!for` loop or by wrapping in a :class:`list`. One thing to consider is that the iterables passed to :func:`zip` could have different lengths; sometimes by design, and sometimes because of a bug in the code that...
:func:`zip` is lazy: The elements won't be processed until the iterable is iterated on, e.g. by a :keyword:`!for` loop or by wrapping in a :class:`list`. One thing to consider is that the iterables passed to :func:`zip` could have different lengths; sometimes by design, and sometimes because of a bug in the code that...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9d9db50e-eef3-472d-9c24-9b25216ee392
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,362
supabase-export-v2
fd19f0ef177a104b
string to an :class:`int` or when converting an :class:`int` into a string would exceed the limit. See the :ref:`integer string conversion length limitation <int_max_str_digits>` documentation. .. versionchanged:: 3.14 :func:`int` no longer delegates to the :meth:`~object.__trunc__` method.
trusted_official_docs
CPython Docs
string to an :class:`int` or when converting an :class:`int` into a string would exceed the limit. See the :ref:`integer string conversion length limitation <int_max_str_digits>` documentation. .. versionchanged:: 3.14 :func:`int` no longer delegates to the :meth:`~object.__trunc__` method.
string to an :class:`int` or when converting an :class:`int` into a string would exceed the limit. See the :ref:`integer string conversion length limitation <int_max_str_digits>` documentation. .. versionchanged:: 3.14 :func:`int` no longer delegates to the :meth:`~object.__trunc__` method.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9eab4218-6873-4403-9275-aa5eaf008929
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,607
supabase-export-v2
ec1217f31ad77d56
.. index:: pair: object; type With one argument, return the type of an *object*. The return value is a type object and generally the same object as returned by :attr:`object.__class__`.
trusted_official_docs
CPython Docs
.. index:: pair: object; type With one argument, return the type of an *object*. The return value is a type object and generally the same object as returned by :attr:`object.__class__`.
.. index:: pair: object; type With one argument, return the type of an *object*. The return value is a type object and generally the same object as returned by :attr:`object.__class__`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9edd2b87-d926-4d15-b2f9-229674fb73c4
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,272
supabase-export-v2
81023bbff99f592b
.. note:: The built-in functions :func:`globals` and :func:`locals` return the current global and local namespace, respectively, which may be useful to pass around for use as the second and third argument to :func:`exec`.
trusted_official_docs
CPython Docs
.. note:: The built-in functions :func:`globals` and :func:`locals` return the current global and local namespace, respectively, which may be useful to pass around for use as the second and third argument to :func:`exec`.
.. note:: The built-in functions :func:`globals` and :func:`locals` return the current global and local namespace, respectively, which may be useful to pass around for use as the second and third argument to :func:`exec`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9f0a65d2-48a1-402e-8c1a-50f8d0ed9d22
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,610
supabase-export-v2
f588369313e7314e
method definitions for the class body; it may be copied or wrapped before becoming the :attr:`~type.__dict__` attribute. The following two statements create identical :class:`!type` objects: >>> class X: ... a = 1 ... >>> X = type('X', (), dict(a=1))
trusted_official_docs
CPython Docs
method definitions for the class body; it may be copied or wrapped before becoming the :attr:`~type.__dict__` attribute. The following two statements create identical :class:`!type` objects: >>> class X: ... a = 1 ... >>> X = type('X', (), dict(a=1))
method definitions for the class body; it may be copied or wrapped before becoming the :attr:`~type.__dict__` attribute. The following two statements create identical :class:`!type` objects: >>> class X: ... a = 1 ... >>> X = type('X', (), dict(a=1))
python, official-docs, cpython, P0
Local_Trusted_Corpus
9f74a056-b481-4bcd-babd-d3f97936d6d0
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,448
supabase-export-v2
6587af435f9431cc
... >>> with open('spamspam.txt', 'w', opener=opener) as f: ... print('This will be written to somedir/spamspam.txt', file=f) ... >>> os.close(dir_fd) # don't leak a file descriptor The type of :term:`file object` returned by the :func:`open` function depends on the mode. When :func:`open` is used to open a file in a ...
trusted_official_docs
CPython Docs
... >>> with open('spamspam.txt', 'w', opener=opener) as f: ... print('This will be written to somedir/spamspam.txt', file=f) ... >>> os.close(dir_fd) # don't leak a file descriptor The type of :term:`file object` returned by the :func:`open` function depends on the mode. When :func:`open` is used to open a file in a ...
... >>> with open('spamspam.txt', 'w', opener=opener) as f: ... print('This will be written to somedir/spamspam.txt', file=f) ... >>> os.close(dir_fd) # don't leak a file descriptor The type of :term:`file object` returned by the :func:`open` function depends on the mode. When :func:`open` is used to open a file in a ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a0f454ee-8a75-4906-bf9a-5c6ed296a343
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,590
supabase-export-v2
a3e963dbe5fb022a
The *object_or_type* determines the :term:`method resolution order` to be searched. The search starts from the class right after the *type*. For example, if :attr:`~type.__mro__` of *object_or_type* is ``D -> B -> C -> A -> object`` and the value of *type* is ``B``, then :func:`super` searches ``C -> A -> object``.
trusted_official_docs
CPython Docs
The *object_or_type* determines the :term:`method resolution order` to be searched. The search starts from the class right after the *type*. For example, if :attr:`~type.__mro__` of *object_or_type* is ``D -> B -> C -> A -> object`` and the value of *type* is ``B``, then :func:`super` searches ``C -> A -> object``.
The *object_or_type* determines the :term:`method resolution order` to be searched. The search starts from the class right after the *type*. For example, if :attr:`~type.__mro__` of *object_or_type* is ``D -> B -> C -> A -> object`` and the value of *type* is ``B``, then :func:`super` searches ``C -> A -> object``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a261f43c-43d6-4947-abe5-7b542386d0b5
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,220
supabase-export-v2
188ed6590df8a0ab
must return the list of attributes. This allows objects that implement a custom :func:`~object.__getattr__` or :func:`~object.__getattribute__` function to customize the way :func:`dir` reports their attributes. If the object does not provide :meth:`~object.__dir__`, the function tries its best to gather information f...
trusted_official_docs
CPython Docs
must return the list of attributes. This allows objects that implement a custom :func:`~object.__getattr__` or :func:`~object.__getattribute__` function to customize the way :func:`dir` reports their attributes. If the object does not provide :meth:`~object.__dir__`, the function tries its best to gather information f...
must return the list of attributes. This allows objects that implement a custom :func:`~object.__getattr__` or :func:`~object.__getattribute__` function to customize the way :func:`dir` reports their attributes. If the object does not provide :meth:`~object.__dir__`, the function tries its best to gather information f...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a2ae1731-c71e-446a-a848-d8c962eb2cdf
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,418
supabase-export-v2
854099810ed94b18
a valid Python expression. If *integer* is not a Python :class:`int` object, it has to define an :meth:`~object.__index__` method that returns an integer. For example: >>> oct(8) '0o10' >>> oct(-56) '-0o70'
trusted_official_docs
CPython Docs
a valid Python expression. If *integer* is not a Python :class:`int` object, it has to define an :meth:`~object.__index__` method that returns an integer. For example: >>> oct(8) '0o10' >>> oct(-56) '-0o70'
a valid Python expression. If *integer* is not a Python :class:`int` object, it has to define an :meth:`~object.__index__` method that returns an integer. For example: >>> oct(8) '0o10' >>> oct(-56) '-0o70'
python, official-docs, cpython, P0
Local_Trusted_Corpus
a3002dd9-1738-4dde-aa22-f3b1600c3d23
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,355
supabase-export-v2
874b80fd721c39ad
be preceded by ``+`` or ``-`` (with no space in between), have leading zeros, be surrounded by whitespace, and have single underscores interspersed between digits. A base-n integer string contains digits, each representing a value from 0 to n-1. The values 0--9 can be represented by any Unicode decimal digit. The val...
trusted_official_docs
CPython Docs
be preceded by ``+`` or ``-`` (with no space in between), have leading zeros, be surrounded by whitespace, and have single underscores interspersed between digits. A base-n integer string contains digits, each representing a value from 0 to n-1. The values 0--9 can be represented by any Unicode decimal digit. The val...
be preceded by ``+`` or ``-`` (with no space in between), have leading zeros, be surrounded by whitespace, and have single underscores interspersed between digits. A base-n integer string contains digits, each representing a value from 0 to n-1. The values 0--9 can be represented by any Unicode decimal digit. The val...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a3275322-8a05-4eaf-810f-afa5025d439d
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,621
supabase-export-v2
df6562bfd877a892
updateable :attr:`~object.__dict__` attribute; however, other objects may have write restrictions on their :attr:`!__dict__` attributes (for example, classes use a :class:`types.MappingProxyType` to prevent direct dictionary updates). Without an argument, :func:`vars` acts like :func:`locals`.
trusted_official_docs
CPython Docs
updateable :attr:`~object.__dict__` attribute; however, other objects may have write restrictions on their :attr:`!__dict__` attributes (for example, classes use a :class:`types.MappingProxyType` to prevent direct dictionary updates). Without an argument, :func:`vars` acts like :func:`locals`.
updateable :attr:`~object.__dict__` attribute; however, other objects may have write restrictions on their :attr:`!__dict__` attributes (for example, classes use a :class:`types.MappingProxyType` to prevent direct dictionary updates). Without an argument, :func:`vars` acts like :func:`locals`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a3b2172a-041a-4ddd-964b-860f1319de15
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,155
supabase-export-v2
9037eeb0a4f86295
it must be an iterable of integers in the range ``0 <= x < 256``, which are used as the initial contents of the array. Without an argument, an array of size 0 is created.
trusted_official_docs
CPython Docs
it must be an iterable of integers in the range ``0 <= x < 256``, which are used as the initial contents of the array. Without an argument, an array of size 0 is created.
it must be an iterable of integers in the range ``0 <= x < 256``, which are used as the initial contents of the array. Without an argument, an array of size 0 is created.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a4de7c2b-a4a9-44d4-9369-e52683871acf
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,284
supabase-export-v2
ec62ca819aa1b9d5
supports iteration, or an iterator. If *function* is ``None``, the identity function is assumed, that is, all elements of *iterable* that are false are removed. Note that ``filter(function, iterable)`` is equivalent to the generator expression ``(item for item in iterable if function(item))`` if function is not ``Non...
trusted_official_docs
CPython Docs
supports iteration, or an iterator. If *function* is ``None``, the identity function is assumed, that is, all elements of *iterable* that are false are removed. Note that ``filter(function, iterable)`` is equivalent to the generator expression ``(item for item in iterable if function(item))`` if function is not ``Non...
supports iteration, or an iterator. If *function* is ``None``, the identity function is assumed, that is, all elements of *iterable* that are false are removed. Note that ``filter(function, iterable)`` is equivalent to the generator expression ``(item for item in iterable if function(item))`` if function is not ``Non...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a6986300-5eb7-4c82-92ae-d2fafec921aa
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,407
supabase-export-v2
c93ddc32b1b21f95
specifies an object to return if the provided iterable is empty. If the iterable is empty and *default* is not provided, a :exc:`ValueError` is raised. If multiple items are minimal, the function returns the first one encountered. This is consistent with other sort-stability preserving tools such as ``sorted(iterable...
trusted_official_docs
CPython Docs
specifies an object to return if the provided iterable is empty. If the iterable is empty and *default* is not provided, a :exc:`ValueError` is raised. If multiple items are minimal, the function returns the first one encountered. This is consistent with other sort-stability preserving tools such as ``sorted(iterable...
specifies an object to return if the provided iterable is empty. If the iterable is empty and *default* is not provided, a :exc:`ValueError` is raised. If multiple items are minimal, the function returns the first one encountered. This is consistent with other sort-stability preserving tools such as ``sorted(iterable...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a6e400da-0e81-4364-9100-8fd0601952de
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,585
supabase-export-v2
707b4b7498188f9a
.. versionchanged:: 3.8 The *start* parameter can be specified as a keyword argument. .. versionchanged:: 3.12 Summation of floats switched to an algorithm that gives higher accuracy and better commutativity on most builds.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.8 The *start* parameter can be specified as a keyword argument. .. versionchanged:: 3.12 Summation of floats switched to an algorithm that gives higher accuracy and better commutativity on most builds.
.. versionchanged:: 3.8 The *start* parameter can be specified as a keyword argument. .. versionchanged:: 3.12 Summation of floats switched to an algorithm that gives higher accuracy and better commutativity on most builds.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a83b77a7-dc4c-4bb6-8112-5bdceff710b8
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,132
supabase-export-v2
cf570b4c453796cc
.. function:: bin(integer, /) Convert an integer number to a binary string prefixed with "0b". The result is a valid Python expression. If *integer* is not a Python :class:`int` object, it has to define an :meth:`~object.__index__` method that returns an integer. Some examples:
trusted_official_docs
CPython Docs
.. function:: bin(integer, /) Convert an integer number to a binary string prefixed with "0b". The result is a valid Python expression. If *integer* is not a Python :class:`int` object, it has to define an :meth:`~object.__index__` method that returns an integer. Some examples:
.. function:: bin(integer, /) Convert an integer number to a binary string prefixed with "0b". The result is a valid Python expression. If *integer* is not a Python :class:`int` object, it has to define an :meth:`~object.__index__` method that returns an integer. Some examples:
python, official-docs, cpython, P0
Local_Trusted_Corpus
a84f3eec-65c4-4fc9-9760-3ef929dcd84b
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,230
supabase-export-v2
f5b642518cebe4d9
.. function:: divmod(a, b, /) Take two (non-complex) numbers as arguments and return a pair of numbers consisting of their quotient and remainder when using integer division. With mixed operand types, the rules for binary arithmetic operators apply. For integers, the result is the same as ``(a // b, a % b)``. For fl...
trusted_official_docs
CPython Docs
.. function:: divmod(a, b, /) Take two (non-complex) numbers as arguments and return a pair of numbers consisting of their quotient and remainder when using integer division. With mixed operand types, the rules for binary arithmetic operators apply. For integers, the result is the same as ``(a // b, a % b)``. For fl...
.. function:: divmod(a, b, /) Take two (non-complex) numbers as arguments and return a pair of numbers consisting of their quotient and remainder when using integer division. With mixed operand types, the rules for binary arithmetic operators apply. For integers, the result is the same as ``(a // b, a % b)``. For fl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a8952216-8082-4c2a-92dd-d9ddf9c18949
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,502
supabase-export-v2
26e761148b1fe16e
is exactly equivalent to the first example. Be sure to give the additional functions the same name as the original property (``x`` in this case.) The returned property object also has the attributes ``fget``, ``fset``, and ``fdel`` corresponding to the constructor arguments.
trusted_official_docs
CPython Docs
is exactly equivalent to the first example. Be sure to give the additional functions the same name as the original property (``x`` in this case.) The returned property object also has the attributes ``fget``, ``fset``, and ``fdel`` corresponding to the constructor arguments.
is exactly equivalent to the first example. Be sure to give the additional functions the same name as the original property (``x`` in this case.) The returned property object also has the attributes ``fget``, ``fset``, and ``fdel`` corresponding to the constructor arguments.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a8f20116-335d-4eea-9c78-e1d6f12262c4
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,583
supabase-export-v2
4c2256282d0a10c2
from left to right and returns the total. The *iterable*'s items are normally numbers, and the start value is not allowed to be a string. For some use cases, there are good alternatives to :func:`sum`. The preferred, fast way to concatenate a sequence of strings is by calling ``''.join(sequence)``. To add floating-poi...
trusted_official_docs
CPython Docs
from left to right and returns the total. The *iterable*'s items are normally numbers, and the start value is not allowed to be a string. For some use cases, there are good alternatives to :func:`sum`. The preferred, fast way to concatenate a sequence of strings is by calling ``''.join(sequence)``. To add floating-poi...
from left to right and returns the total. The *iterable*'s items are normally numbers, and the start value is not allowed to be a string. For some use cases, there are good alternatives to :func:`sum`. The preferred, fast way to concatenate a sequence of strings is by calling ``''.join(sequence)``. To add floating-poi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a8fefadf-c1d8-45c2-8f3d-e23841ff26f0
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,324
supabase-export-v2
242ad8370bb0a906
.. function:: help() help(request) Invoke the built-in help system. (This function is intended for interactive use.) If no argument is given, the interactive help system starts on the interpreter console. If the argument is a string, then the string is looked up as the name of a module, function, class, method, keyw...
trusted_official_docs
CPython Docs
.. function:: help() help(request) Invoke the built-in help system. (This function is intended for interactive use.) If no argument is given, the interactive help system starts on the interpreter console. If the argument is a string, then the string is looked up as the name of a module, function, class, method, keyw...
.. function:: help() help(request) Invoke the built-in help system. (This function is intended for interactive use.) If no argument is given, the interactive help system starts on the interpreter console. If the argument is a string, then the string is looked up as the name of a module, function, class, method, keyw...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a9d51e78-61b6-4390-9a5e-210077f43435
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,285
supabase-export-v2
ebec699caf2f22f6
expression ``(item for item in iterable if function(item))`` if function is not ``None`` and ``(item for item in iterable if item)`` if function is ``None``. See :func:`itertools.filterfalse` for the complementary function that returns elements of *iterable* for which *function* is false.
trusted_official_docs
CPython Docs
expression ``(item for item in iterable if function(item))`` if function is not ``None`` and ``(item for item in iterable if item)`` if function is ``None``. See :func:`itertools.filterfalse` for the complementary function that returns elements of *iterable* for which *function* is false.
expression ``(item for item in iterable if function(item))`` if function is not ``None`` and ``(item for item in iterable if item)`` if function is ``None``. See :func:`itertools.filterfalse` for the complementary function that returns elements of *iterable* for which *function* is false.
python, official-docs, cpython, P0
Local_Trusted_Corpus
aa5ca172-96c3-4437-8bd2-ab8e94f061a5
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,434
supabase-export-v2
fa2cfd223584b7f1
To disable buffering in ``TextIOWrapper``, consider using the ``write_through`` flag for :func:`io.TextIOWrapper.reconfigure`. When no *buffering* argument is given, the default buffering policy works as follows: * Binary files are buffered in fixed-size chunks; the size of the buffer is ``max(min(blocksize, 8 MiB), D...
trusted_official_docs
CPython Docs
To disable buffering in ``TextIOWrapper``, consider using the ``write_through`` flag for :func:`io.TextIOWrapper.reconfigure`. When no *buffering* argument is given, the default buffering policy works as follows: * Binary files are buffered in fixed-size chunks; the size of the buffer is ``max(min(blocksize, 8 MiB), D...
To disable buffering in ``TextIOWrapper``, consider using the ``write_through`` flag for :func:`io.TextIOWrapper.reconfigure`. When no *buffering* argument is given, the default buffering policy works as follows: * Binary files are buffered in fixed-size chunks; the size of the buffer is ``max(min(blocksize, 8 MiB), D...
python, official-docs, cpython, P0
Local_Trusted_Corpus
aaa77024-0ac4-48d4-8a4d-03d103e7ee1d
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,644
supabase-export-v2
ec15f3cdcf95ef3c
Tips and tricks: * The left-to-right evaluation order of the iterables is guaranteed. This makes possible an idiom for clustering a data series into n-length groups using ``zip(*[iter(s)]*n, strict=True)``. This repeats the *same* iterator ``n`` times so that each output tuple has the result of ``n`` calls to the i...
trusted_official_docs
CPython Docs
Tips and tricks: * The left-to-right evaluation order of the iterables is guaranteed. This makes possible an idiom for clustering a data series into n-length groups using ``zip(*[iter(s)]*n, strict=True)``. This repeats the *same* iterator ``n`` times so that each output tuple has the result of ``n`` calls to the i...
Tips and tricks: * The left-to-right evaluation order of the iterables is guaranteed. This makes possible an idiom for clustering a data series into n-length groups using ``zip(*[iter(s)]*n, strict=True)``. This repeats the *same* iterator ``n`` times so that each output tuple has the result of ``n`` calls to the i...
python, official-docs, cpython, P0
Local_Trusted_Corpus
aaaac736-2774-43fc-9551-5087c0370d07
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,206
supabase-export-v2
ee147e21108433b0
component ``real.real-imag.imag`` and the imaginary component ``real.imag+imag.real``. If one of arguments is a real number, only its real component is used in the above expressions. See also :meth:`complex.from_number` which only accepts a single numeric argument.
trusted_official_docs
CPython Docs
component ``real.real-imag.imag`` and the imaginary component ``real.imag+imag.real``. If one of arguments is a real number, only its real component is used in the above expressions. See also :meth:`complex.from_number` which only accepts a single numeric argument.
component ``real.real-imag.imag`` and the imaginary component ``real.imag+imag.real``. If one of arguments is a real number, only its real component is used in the above expressions. See also :meth:`complex.from_number` which only accepts a single numeric argument.
python, official-docs, cpython, P0
Local_Trusted_Corpus
abddf845-59f9-4efd-aa11-df4a46494c4b
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,454
supabase-export-v2
5508e8719da6d7d6
.. versionchanged:: 3.3 * The *opener* parameter was added. * The ``'x'`` mode was added. * :exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`. * :exc:`FileExistsError` is now raised if the file opened in exclusive creation mode (``'x'``) already exists.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.3 * The *opener* parameter was added. * The ``'x'`` mode was added. * :exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`. * :exc:`FileExistsError` is now raised if the file opened in exclusive creation mode (``'x'``) already exists.
.. versionchanged:: 3.3 * The *opener* parameter was added. * The ``'x'`` mode was added. * :exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`. * :exc:`FileExistsError` is now raised if the file opened in exclusive creation mode (``'x'``) already exists.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ac1c07c7-7096-41e0-80bf-4b4ba762aa69
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,554
supabase-export-v2
b9c9da4b6cc91c28
.. attribute:: slice.start slice.stop slice.step These read-only attributes are set to the argument values (or their default). They have no other explicit functionality; however, they are used by NumPy and other third-party packages.
trusted_official_docs
CPython Docs
.. attribute:: slice.start slice.stop slice.step These read-only attributes are set to the argument values (or their default). They have no other explicit functionality; however, they are used by NumPy and other third-party packages.
.. attribute:: slice.start slice.stop slice.step These read-only attributes are set to the argument values (or their default). They have no other explicit functionality; however, they are used by NumPy and other third-party packages.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ad1f1b08-0fcf-4353-a51d-ec981d488e8d
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,577
supabase-export-v2
c49b428cdee39753
Static methods now inherit the method attributes (:attr:`~function.__module__`, :attr:`~function.__name__`, :attr:`~function.__qualname__`, :attr:`~function.__doc__` and :attr:`~function.__annotations__`), have a new ``__wrapped__`` attribute, and are now callable as regular functions. .. index:: single: string; str()...
trusted_official_docs
CPython Docs
Static methods now inherit the method attributes (:attr:`~function.__module__`, :attr:`~function.__name__`, :attr:`~function.__qualname__`, :attr:`~function.__doc__` and :attr:`~function.__annotations__`), have a new ``__wrapped__`` attribute, and are now callable as regular functions. .. index:: single: string; str()...
Static methods now inherit the method attributes (:attr:`~function.__module__`, :attr:`~function.__name__`, :attr:`~function.__qualname__`, :attr:`~function.__doc__` and :attr:`~function.__annotations__`), have a new ``__wrapped__`` attribute, and are now callable as regular functions. .. index:: single: string; str()...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ad95be25-c615-46be-9429-bab0aac9ebc2
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,226
supabase-export-v2
a96d6300b4ca7d7e
The resulting list is sorted alphabetically. For example: >>> import struct >>> dir() # show the names in the module namespace # doctest: +SKIP ['__builtins__', '__name__', 'struct'] >>> dir(struct) # show the names in the struct module # doctest: +SKIP ['Struct', '__all__', '__builtins__', '__doc__', '__file__', ...
trusted_official_docs
CPython Docs
The resulting list is sorted alphabetically. For example: >>> import struct >>> dir() # show the names in the module namespace # doctest: +SKIP ['__builtins__', '__name__', 'struct'] >>> dir(struct) # show the names in the struct module # doctest: +SKIP ['Struct', '__all__', '__builtins__', '__doc__', '__file__', ...
The resulting list is sorted alphabetically. For example: >>> import struct >>> dir() # show the names in the module namespace # doctest: +SKIP ['__builtins__', '__name__', 'struct'] >>> dir(struct) # show the names in the struct module # doctest: +SKIP ['Struct', '__all__', '__builtins__', '__doc__', '__file__', ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
aeca2eb9-25f3-4f6c-88fa-9d765f2bfb60
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,609
supabase-export-v2
b4b40afcfdb3994a
The :func:`isinstance` built-in function is recommended for testing the type of an object, because it takes subclasses into account. With three arguments, return a new type object. This is essentially a dynamic form of the :keyword:`class` statement. The *name* string is the class name and becomes the :attr:`~type.__...
trusted_official_docs
CPython Docs
The :func:`isinstance` built-in function is recommended for testing the type of an object, because it takes subclasses into account. With three arguments, return a new type object. This is essentially a dynamic form of the :keyword:`class` statement. The *name* string is the class name and becomes the :attr:`~type.__...
The :func:`isinstance` built-in function is recommended for testing the type of an object, because it takes subclasses into account. With three arguments, return a new type object. This is essentially a dynamic form of the :keyword:`class` statement. The *name* string is the class name and becomes the :attr:`~type.__...
python, official-docs, cpython, P0
Local_Trusted_Corpus
af5a3949-0651-4420-83d3-3f7d13f98fa3
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,598
supabase-export-v2
1dbb6bc721df61a2
class C(B): def method(self, arg): super().method(arg) # This does the same thing as: # super(C, self).method(arg) In addition to method lookups, :func:`super` also works for attribute lookups. One possible use case for this is calling :term:`descriptors <descriptor>` in a parent or sibling class.
trusted_official_docs
CPython Docs
class C(B): def method(self, arg): super().method(arg) # This does the same thing as: # super(C, self).method(arg) In addition to method lookups, :func:`super` also works for attribute lookups. One possible use case for this is calling :term:`descriptors <descriptor>` in a parent or sibling class.
class C(B): def method(self, arg): super().method(arg) # This does the same thing as: # super(C, self).method(arg) In addition to method lookups, :func:`super` also works for attribute lookups. One possible use case for this is calling :term:`descriptors <descriptor>` in a parent or sibling class.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b05924b6-c58b-4d5f-a534-21bc5fb614d1
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,194
supabase-export-v2
496e11ad7a44c4c5
to crash the Python interpreter with a sufficiently large/complex string when compiling to an AST object due to stack depth limitations in Python's AST compiler. .. versionchanged:: 3.2 Allowed use of Windows and Mac newlines. Also, input in ``'exec'`` mode does not have to end in a newline anymore. Added the *optimi...
trusted_official_docs
CPython Docs
to crash the Python interpreter with a sufficiently large/complex string when compiling to an AST object due to stack depth limitations in Python's AST compiler. .. versionchanged:: 3.2 Allowed use of Windows and Mac newlines. Also, input in ``'exec'`` mode does not have to end in a newline anymore. Added the *optimi...
to crash the Python interpreter with a sufficiently large/complex string when compiling to an AST object due to stack depth limitations in Python's AST compiler. .. versionchanged:: 3.2 Allowed use of Windows and Mac newlines. Also, input in ``'exec'`` mode does not have to end in a newline anymore. Added the *optimi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b15202a1-4272-46b0-9525-58256bc1b013
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,232
supabase-export-v2
0d710a2631163b55
.. function:: enumerate(iterable, start=0) Return an enumerate object. *iterable* must be a sequence, an :term:`iterator`, or some other object which supports iteration. The :meth:`~iterator.__next__` method of the iterator returned by :func:`enumerate` returns a tuple containing a count (from *start* which defaults...
trusted_official_docs
CPython Docs
.. function:: enumerate(iterable, start=0) Return an enumerate object. *iterable* must be a sequence, an :term:`iterator`, or some other object which supports iteration. The :meth:`~iterator.__next__` method of the iterator returned by :func:`enumerate` returns a tuple containing a count (from *start* which defaults...
.. function:: enumerate(iterable, start=0) Return an enumerate object. *iterable* must be a sequence, an :term:`iterator`, or some other object which supports iteration. The :meth:`~iterator.__next__` method of the iterator returned by :func:`enumerate` returns a tuple containing a count (from *start* which defaults...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b1abfa52-fdd7-4662-8764-15164c27f049
CPython Docs
file://datasets/cpython/Doc/library/functions.rst
unknown
1046c4ae-bb1a-49b9-a075-e089ad7cd6a5
4,244
supabase-export-v2
06de619cd3da17c2
This function executes arbitrary code. Calling it with untrusted user-supplied input will lead to security vulnerabilities. The *source* argument is parsed and evaluated as a Python expression (technically speaking, a condition list) using the *globals* and *locals* mappings as global and local namespace. If the *glo...
trusted_official_docs
CPython Docs
This function executes arbitrary code. Calling it with untrusted user-supplied input will lead to security vulnerabilities. The *source* argument is parsed and evaluated as a Python expression (technically speaking, a condition list) using the *globals* and *locals* mappings as global and local namespace. If the *glo...
This function executes arbitrary code. Calling it with untrusted user-supplied input will lead to security vulnerabilities. The *source* argument is parsed and evaluated as a Python expression (technically speaking, a condition list) using the *globals* and *locals* mappings as global and local namespace. If the *glo...
python, official-docs, cpython, P0
Local_Trusted_Corpus