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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
021bbc57-3fcb-43b7-9a76-8ad1390eabae | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,312 | supabase-export-v2 | 96aecc989e767381 | .. function:: getattr(object, name, /) getattr(object, name, default, /)
Return the value of the named attribute of *object*. *name* must be a string. If the string is the name of one of the object's attributes, the result is the
value of that attribute. For example, ``getattr(x, 'foobar')`` is equivalent to
``x.foob... | trusted_official_docs | CPython Docs | .. function:: getattr(object, name, /) getattr(object, name, default, /)
Return the value of the named attribute of *object*. *name* must be a string. If the string is the name of one of the object's attributes, the result is the
value of that attribute. For example, ``getattr(x, 'foobar')`` is equivalent to
``x.foob... | .. function:: getattr(object, name, /) getattr(object, name, default, /)
Return the value of the named attribute of *object*. *name* must be a string. If the string is the name of one of the object's attributes, the result is the
value of that attribute. For example, ``getattr(x, 'foobar')`` is equivalent to
``x.foob... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
027cccc3-434f-418b-9423-06c5993bed64 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,195 | supabase-export-v2 | d6dfd131903a7f5a | Allowed use of Windows and Mac newlines. Also, input in ``'exec'`` mode does not have to end in a newline anymore. Added the *optimize* parameter.
.. versionchanged:: 3.5
Previously, :exc:`TypeError` was raised when null bytes were encountered
in *source*. | trusted_official_docs | CPython Docs | Allowed use of Windows and Mac newlines. Also, input in ``'exec'`` mode does not have to end in a newline anymore. Added the *optimize* parameter.
.. versionchanged:: 3.5
Previously, :exc:`TypeError` was raised when null bytes were encountered
in *source*. | Allowed use of Windows and Mac newlines. Also, input in ``'exec'`` mode does not have to end in a newline anymore. Added the *optimize* parameter.
.. versionchanged:: 3.5
Previously, :exc:`TypeError` was raised when null bytes were encountered
in *source*. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
031b6cc3-5ba4-4afc-b8d5-025483e7cb0f | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,211 | supabase-export-v2 | f376668d3f1f5ba7 | .. versionchanged:: 3.8 Falls back to :meth:`~object.__index__` if :meth:`~object.__complex__` and :meth:`~object.__float__` are not defined.
.. 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. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.8 Falls back to :meth:`~object.__index__` if :meth:`~object.__complex__` and :meth:`~object.__float__` are not defined.
.. 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. | .. versionchanged:: 3.8 Falls back to :meth:`~object.__index__` if :meth:`~object.__complex__` and :meth:`~object.__float__` are not defined.
.. 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. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
05a8abe2-15eb-434c-b194-eb0f5160b327 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,225 | supabase-export-v2 | 35fabc3c94f9b14d | * Otherwise, the list contains the object's attributes' names, the names of its class's attributes, and recursively of the attributes of its class's base classes.
The resulting list is sorted alphabetically. For example: | trusted_official_docs | CPython Docs | * Otherwise, the list contains the object's attributes' names, the names of its class's attributes, and recursively of the attributes of its class's base classes.
The resulting list is sorted alphabetically. For example: | * Otherwise, the list contains the object's attributes' names, the names of its class's attributes, and recursively of the attributes of its class's base classes.
The resulting list is sorted alphabetically. For example: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
05def5f7-69a2-4f50-b0f8-e8e1fef34777 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,399 | supabase-export-v2 | b52704c2d808bd3b | maximal, the function returns the first one encountered. This is consistent with other sort-stability preserving tools such as ``sorted(iterable, key=keyfunc, reverse=True)[0]`` and ``heapq.nlargest(1, iterable, key=keyfunc)``.
.. versionchanged:: 3.4
Added the *default* keyword-only parameter. | trusted_official_docs | CPython Docs | maximal, the function returns the first one encountered. This is consistent with other sort-stability preserving tools such as ``sorted(iterable, key=keyfunc, reverse=True)[0]`` and ``heapq.nlargest(1, iterable, key=keyfunc)``.
.. versionchanged:: 3.4
Added the *default* keyword-only parameter. | maximal, the function returns the first one encountered. This is consistent with other sort-stability preserving tools such as ``sorted(iterable, key=keyfunc, reverse=True)[0]`` and ``heapq.nlargest(1, iterable, key=keyfunc)``.
.. versionchanged:: 3.4
Added the *default* keyword-only parameter. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
06342322-a1e8-49d0-80cb-fd8e1dabb869 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,493 | supabase-export-v2 | b340ab962716d7f3 | @property def voltage(self): """Get the current voltage.""" return self._voltage
The ``@property`` decorator turns the :meth:`!voltage` method into a "getter"
for a read-only attribute with the same name, and it sets the docstring for
*voltage* to "Get the current voltage." | trusted_official_docs | CPython Docs | @property def voltage(self): """Get the current voltage.""" return self._voltage
The ``@property`` decorator turns the :meth:`!voltage` method into a "getter"
for a read-only attribute with the same name, and it sets the docstring for
*voltage* to "Get the current voltage." | @property def voltage(self): """Get the current voltage.""" return self._voltage
The ``@property`` decorator turns the :meth:`!voltage` method into a "getter"
for a read-only attribute with the same name, and it sets the docstring for
*voltage* to "Get the current voltage." | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0734535b-302e-4dce-b15c-fdf42fce5a04 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,338 | supabase-export-v2 | 75e7a52efa528d29 | .. function:: id(object, /)
Return the "identity" of an object. This is an integer 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. | trusted_official_docs | CPython Docs | .. function:: id(object, /)
Return the "identity" of an object. This is an integer 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. | .. function:: id(object, /)
Return the "identity" of an object. This is an integer 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. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
084d68f2-0a2b-483a-a722-59b24a68df5e | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,647 | supabase-export-v2 | a72f36ad328b3953 | 6] >>> list(zip(x, y)) [(1, 4), (2, 5), (3, 6)] >>> x2, y2 = zip(*zip(x, y)) >>> x == list(x2) and y == list(y2) True
.. versionchanged:: 3.10
Added the ``strict`` argument. | trusted_official_docs | CPython Docs | 6] >>> list(zip(x, y)) [(1, 4), (2, 5), (3, 6)] >>> x2, y2 = zip(*zip(x, y)) >>> x == list(x2) and y == list(y2) True
.. versionchanged:: 3.10
Added the ``strict`` argument. | 6] >>> list(zip(x, y)) [(1, 4), (2, 5), (3, 6)] >>> x2, y2 = zip(*zip(x, y)) >>> x == list(x2) and y == list(y2) True
.. versionchanged:: 3.10
Added the ``strict`` argument. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
08d5dacd-ab83-43d1-a4d7-82cd2c8d8530 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,361 | supabase-export-v2 | ac133482666a1ecd | .. versionchanged:: 3.8 Falls back to :meth:`~object.__index__` if :meth:`~object.__int__` is not defined.
.. versionchanged:: 3.11
:class:`int` string inputs and string representations can be limited to
help avoid denial of service attacks. A :exc:`ValueError` is raised when
the limit is exceeded while converting a... | trusted_official_docs | CPython Docs | .. versionchanged:: 3.8 Falls back to :meth:`~object.__index__` if :meth:`~object.__int__` is not defined.
.. versionchanged:: 3.11
:class:`int` string inputs and string representations can be limited to
help avoid denial of service attacks. A :exc:`ValueError` is raised when
the limit is exceeded while converting a... | .. versionchanged:: 3.8 Falls back to :meth:`~object.__index__` if :meth:`~object.__int__` is not defined.
.. versionchanged:: 3.11
:class:`int` string inputs and string representations can be limited to
help avoid denial of service attacks. A :exc:`ValueError` is raised when
the limit is exceeded while converting a... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0919e79a-3df3-400b-9921-762f32fc1572 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,419 | supabase-export-v2 | 82338314502584cb | >>> oct(8) '0o10' >>> oct(-56) '-0o70'
If you want to convert an integer number to an octal string either with the prefix
"0o" or not, you can use either of the following ways. | trusted_official_docs | CPython Docs | >>> oct(8) '0o10' >>> oct(-56) '-0o70'
If you want to convert an integer number to an octal string either with the prefix
"0o" or not, you can use either of the following ways. | >>> oct(8) '0o10' >>> oct(-56) '-0o70'
If you want to convert an integer number to an octal string either with the prefix
"0o" or not, you can use either of the following ways. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
09b40dd6-9ae6-420b-b618-d4c863b400c4 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,495 | supabase-export-v2 | 990e367656e85c54 | .. decorator:: property.getter .. decorator:: property.setter .. decorator:: property.deleter
A property object has ``getter``, ``setter``,
and ``deleter`` methods usable as decorators that create a
copy of the property with the corresponding accessor function set to the
decorated function. This is best explained wi... | trusted_official_docs | CPython Docs | .. decorator:: property.getter .. decorator:: property.setter .. decorator:: property.deleter
A property object has ``getter``, ``setter``,
and ``deleter`` methods usable as decorators that create a
copy of the property with the corresponding accessor function set to the
decorated function. This is best explained wi... | .. decorator:: property.getter .. decorator:: property.setter .. decorator:: property.deleter
A property object has ``getter``, ``setter``,
and ``deleter`` methods usable as decorators that create a
copy of the property with the corresponding accessor function set to the
decorated function. This is best explained wi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
09ddbdea-d822-438a-b55d-90e0d95f031c | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,382 | supabase-export-v2 | aa9fcb3d0fe854d3 | Return a mapping object representing the current local symbol table, with variable names as the keys, and their currently bound references as the values.
At module scope, as well as when using :func:`exec` or :func:`eval` with
a single namespace, this function returns the same namespace as
:func:`globals`. | trusted_official_docs | CPython Docs | Return a mapping object representing the current local symbol table, with variable names as the keys, and their currently bound references as the values.
At module scope, as well as when using :func:`exec` or :func:`eval` with
a single namespace, this function returns the same namespace as
:func:`globals`. | Return a mapping object representing the current local symbol table, with variable names as the keys, and their currently bound references as the values.
At module scope, as well as when using :func:`exec` or :func:`eval` with
a single namespace, this function returns the same namespace as
:func:`globals`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
09e585d7-2b50-4f21-b615-57dc3c64f06f | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,563 | supabase-export-v2 | 38ceca58679aba77 | relative order of elements that compare equal --- this is helpful for sorting in multiple passes (for example, sort by department, then by salary grade).
The sort algorithm uses only ``<`` comparisons between items. While
defining an :meth:`~object.__lt__` method will suffice for sorting,
:PEP:`8` recommends that all... | trusted_official_docs | CPython Docs | relative order of elements that compare equal --- this is helpful for sorting in multiple passes (for example, sort by department, then by salary grade).
The sort algorithm uses only ``<`` comparisons between items. While
defining an :meth:`~object.__lt__` method will suffice for sorting,
:PEP:`8` recommends that all... | relative order of elements that compare equal --- this is helpful for sorting in multiple passes (for example, sort by department, then by salary grade).
The sort algorithm uses only ``<`` comparisons between items. While
defining an :meth:`~object.__lt__` method will suffice for sorting,
:PEP:`8` recommends that all... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0bec1118-48d1-411f-b1f1-7818c4ae8ffc | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,202 | supabase-export-v2 | cbae6f0b10ef27d6 | (1.23+0j) >>> complex('-4.5j') -4.5j >>> complex('-1.23+4.5j') (-1.23+4.5j) >>> complex('\t( -1.23+4.5J )\n') (-1.23+4.5j) >>> complex('-Infinity+NaNj') (-inf+nanj) >>> complex(1.23) (1.23+0j) >>> complex(imag=-4.5) -4.5j >>> complex(-1.23, 4.5) (-1.23+4.5j)
If the argument is a string, it must contain either a real pa... | trusted_official_docs | CPython Docs | (1.23+0j) >>> complex('-4.5j') -4.5j >>> complex('-1.23+4.5j') (-1.23+4.5j) >>> complex('\t( -1.23+4.5J )\n') (-1.23+4.5j) >>> complex('-Infinity+NaNj') (-inf+nanj) >>> complex(1.23) (1.23+0j) >>> complex(imag=-4.5) -4.5j >>> complex(-1.23, 4.5) (-1.23+4.5j)
If the argument is a string, it must contain either a real pa... | (1.23+0j) >>> complex('-4.5j') -4.5j >>> complex('-1.23+4.5j') (-1.23+4.5j) >>> complex('\t( -1.23+4.5J )\n') (-1.23+4.5j) >>> complex('-Infinity+NaNj') (-inf+nanj) >>> complex(1.23) (1.23+0j) >>> complex(imag=-4.5) -4.5j >>> complex(-1.23, 4.5) (-1.23+4.5j)
If the argument is a string, it must contain either a real pa... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0ce3e2bb-3bc7-49a2-87ed-7cdab0ad9569 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,441 | supabase-export-v2 | 4c392f1eefedbb42 | *newline* determines how to parse newline characters from the stream. It can be ``None``, ``''``, ``'\n'``, ``'\r'``, and ``'\r\n'``. It works as follows:
* When reading input from the stream, if *newline* is ``None``, universal
newlines mode is enabled. Lines in the input can end in ``'\n'``,
``'\r'``, or ``'\r\n'``... | trusted_official_docs | CPython Docs | *newline* determines how to parse newline characters from the stream. It can be ``None``, ``''``, ``'\n'``, ``'\r'``, and ``'\r\n'``. It works as follows:
* When reading input from the stream, if *newline* is ``None``, universal
newlines mode is enabled. Lines in the input can end in ``'\n'``,
``'\r'``, or ``'\r\n'``... | *newline* determines how to parse newline characters from the stream. It can be ``None``, ``''``, ``'\n'``, ``'\r'``, and ``'\r\n'``. It works as follows:
* When reading input from the stream, if *newline* is ``None``, universal
newlines mode is enabled. Lines in the input can end in ``'\n'``,
``'\r'``, or ``'\r\n'``... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0d3ebc93-cfbb-47c1-8df6-9a1a0c2f14e5 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,167 | supabase-export-v2 | cc8406313c65edf4 | with the specified Unicode code point. For example, ``chr(97)`` returns the string ``'a'``, while ``chr(8364)`` returns the string ``'€'``. This is the inverse of :func:`ord`.
The valid range for the argument is from 0 through 1,114,111 (0x10FFFF in
base 16). :exc:`ValueError` will be raised if it is outside that rang... | trusted_official_docs | CPython Docs | with the specified Unicode code point. For example, ``chr(97)`` returns the string ``'a'``, while ``chr(8364)`` returns the string ``'€'``. This is the inverse of :func:`ord`.
The valid range for the argument is from 0 through 1,114,111 (0x10FFFF in
base 16). :exc:`ValueError` will be raised if it is outside that rang... | with the specified Unicode code point. For example, ``chr(97)`` returns the string ``'a'``, while ``chr(8364)`` returns the string ``'€'``. This is the inverse of :func:`ord`.
The valid range for the argument is from 0 through 1,114,111 (0x10FFFF in
base 16). :exc:`ValueError` will be raised if it is outside that rang... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0e4a663c-557b-493c-abfa-15d875b43023 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,233 | supabase-export-v2 | 2a23d17e5cf458eb | the iterator returned by :func:`enumerate` returns a tuple containing a count (from *start* which defaults to 0) and the values obtained from iterating over *iterable*.
>>> seasons = ['Spring', 'Summer', 'Fall', 'Winter']
>>> list(enumerate(seasons))
[(0, 'Spring'), (1, 'Summer'), (2, 'Fall'), (3, 'Winter')]
>>> lis... | trusted_official_docs | CPython Docs | the iterator returned by :func:`enumerate` returns a tuple containing a count (from *start* which defaults to 0) and the values obtained from iterating over *iterable*.
>>> seasons = ['Spring', 'Summer', 'Fall', 'Winter']
>>> list(enumerate(seasons))
[(0, 'Spring'), (1, 'Summer'), (2, 'Fall'), (3, 'Winter')]
>>> lis... | the iterator returned by :func:`enumerate` returns a tuple containing a count (from *start* which defaults to 0) and the values obtained from iterating over *iterable*.
>>> seasons = ['Spring', 'Summer', 'Fall', 'Winter']
>>> list(enumerate(seasons))
[(0, 'Spring'), (1, 'Summer'), (2, 'Fall'), (3, 'Winter')]
>>> lis... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
10dc0b1c-e8f9-4ba0-9af6-77b7abcc5d9a | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,325 | supabase-export-v2 | a4ba87121e305890 | a help page is printed on the console. If the argument is any other kind of object, a help page on the object is generated.
Note that if a slash(/) appears in the parameter list of a function when
invoking :func:`help`, it means that the parameters prior to the slash are
positional-only. For more info, see
:ref:`the... | trusted_official_docs | CPython Docs | a help page is printed on the console. If the argument is any other kind of object, a help page on the object is generated.
Note that if a slash(/) appears in the parameter list of a function when
invoking :func:`help`, it means that the parameters prior to the slash are
positional-only. For more info, see
:ref:`the... | a help page is printed on the console. If the argument is any other kind of object, a help page on the object is generated.
Note that if a slash(/) appears in the parameter list of a function when
invoking :func:`help`, it means that the parameters prior to the slash are
positional-only. For more info, see
:ref:`the... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
111bee52-848f-42ca-903e-6ed457d527d8 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,629 | supabase-export-v2 | eee000849da08990 | >>> for item in zip([1, 2, 3], ['sugar', 'spice', 'everything nice']): ... print(item) ... (1, 'sugar') (2, 'spice') (3, 'everything nice')
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. | trusted_official_docs | CPython Docs | >>> for item in zip([1, 2, 3], ['sugar', 'spice', 'everything nice']): ... print(item) ... (1, 'sugar') (2, 'spice') (3, 'everything nice')
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. | >>> for item in zip([1, 2, 3], ['sugar', 'spice', 'everything nice']): ... print(item) ... (1, 'sugar') (2, 'spice') (3, 'everything nice')
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. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
11b497f9-72fa-47f3-9162-5791d656ff95 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,442 | supabase-export-v2 | 94350a544b9073c8 | any of the other legal values, input lines are only terminated by the given string, and the line ending is returned to the caller untranslated.
* When writing output to the stream, if *newline* is ``None``, any ``'\n'``
characters written are translated to the system default line separator,
:data:`os.linesep`. If *ne... | trusted_official_docs | CPython Docs | any of the other legal values, input lines are only terminated by the given string, and the line ending is returned to the caller untranslated.
* When writing output to the stream, if *newline* is ``None``, any ``'\n'``
characters written are translated to the system default line separator,
:data:`os.linesep`. If *ne... | any of the other legal values, input lines are only terminated by the given string, and the line ending is returned to the caller untranslated.
* When writing output to the stream, if *newline* is ``None``, any ``'\n'``
characters written are translated to the system default line separator,
:data:`os.linesep`. If *ne... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
12de0028-ec79-40b4-8874-ff4c6ff3582e | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,123 | supabase-export-v2 | 8079aee877edebb2 | When awaited, return the next item from the given :term:`asynchronous iterator`, or *default* if given and the iterator is exhausted.
This is the async variant of the :func:`next` builtin, and behaves
similarly. | trusted_official_docs | CPython Docs | When awaited, return the next item from the given :term:`asynchronous iterator`, or *default* if given and the iterator is exhausted.
This is the async variant of the :func:`next` builtin, and behaves
similarly. | When awaited, return the next item from the given :term:`asynchronous iterator`, or *default* if given and the iterator is exhausted.
This is the async variant of the :func:`next` builtin, and behaves
similarly. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1301c077-1385-4d24-a9f5-425add2dd365 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,595 | supabase-export-v2 | 55bfee7b269ca72a | to parent classes without naming them explicitly, thus making the code more maintainable. This use closely parallels the use of *super* in other programming languages.
The second use case is to support cooperative multiple inheritance in a
dynamic execution environment. This use case is unique to Python and is
not fo... | trusted_official_docs | CPython Docs | to parent classes without naming them explicitly, thus making the code more maintainable. This use closely parallels the use of *super* in other programming languages.
The second use case is to support cooperative multiple inheritance in a
dynamic execution environment. This use case is unique to Python and is
not fo... | to parent classes without naming them explicitly, thus making the code more maintainable. This use closely parallels the use of *super* in other programming languages.
The second use case is to support cooperative multiple inheritance in a
dynamic execution environment. This use case is unique to Python and is
not fo... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
14647c4b-67d1-405e-b8d6-efba89ceb5aa | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,356 | supabase-export-v2 | 8b7568c670650e0d | 10, or 16 as determined by the prefix. Base 0 also disallows leading zeros: ``int('010', 0)`` is not legal, while ``int('010')`` and ``int('010', 8)`` are.
The integer type is described in :ref:`typesnumeric`. | trusted_official_docs | CPython Docs | 10, or 16 as determined by the prefix. Base 0 also disallows leading zeros: ``int('010', 0)`` is not legal, while ``int('010')`` and ``int('010', 8)`` are.
The integer type is described in :ref:`typesnumeric`. | 10, or 16 as determined by the prefix. Base 0 also disallows leading zeros: ``int('010', 0)`` is not legal, while ``int('010')`` and ``int('010', 8)`` are.
The integer type is described in :ref:`typesnumeric`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
146cc211-14d4-41e6-877e-dafe65b5201a | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,179 | supabase-export-v2 | 55da3cf97e539e86 | .. function:: compile(source, filename, mode, flags=0, \ dont_inherit=False, optimize=-1, \ *, module=None)
Compile the *source* into a code or AST object. Code objects can be executed
by :func:`exec` or :func:`eval`. *source* can either be a normal string, a
byte string, or an AST object. Refer to the :mod:`ast` mod... | trusted_official_docs | CPython Docs | .. function:: compile(source, filename, mode, flags=0, \ dont_inherit=False, optimize=-1, \ *, module=None)
Compile the *source* into a code or AST object. Code objects can be executed
by :func:`exec` or :func:`eval`. *source* can either be a normal string, a
byte string, or an AST object. Refer to the :mod:`ast` mod... | .. function:: compile(source, filename, mode, flags=0, \ dont_inherit=False, optimize=-1, \ *, module=None)
Compile the *source* into a code or AST object. Code objects can be executed
by :func:`exec` or :func:`eval`. *source* can either be a normal string, a
byte string, or an AST object. Refer to the :mod:`ast` mod... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
14cea6cf-4c37-43bd-b6b6-50eb9496e98d | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,267 | supabase-export-v2 | 74377c6bbc836e3b | not be able to access variables assigned at the top level (as the "top level" variables are treated as class variables in a class definition).
If the *globals* dictionary does not contain a value for the key
``__builtins__``, a reference to the dictionary of the built-in module
:mod:`builtins` is inserted under that ... | trusted_official_docs | CPython Docs | not be able to access variables assigned at the top level (as the "top level" variables are treated as class variables in a class definition).
If the *globals* dictionary does not contain a value for the key
``__builtins__``, a reference to the dictionary of the built-in module
:mod:`builtins` is inserted under that ... | not be able to access variables assigned at the top level (as the "top level" variables are treated as class variables in a class definition).
If the *globals* dictionary does not contain a value for the key
``__builtins__``, a reference to the dictionary of the built-in module
:mod:`builtins` is inserted under that ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1515299e-c5f7-4c8d-a8ae-05831056e8fa | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,494 | supabase-export-v2 | 08be57b233400578 | :meth:`!voltage` method into a "getter" for a read-only attribute with the same name, and it sets the docstring for *voltage* to "Get the current voltage."
.. decorator:: property.getter
.. decorator:: property.setter
.. decorator:: property.deleter | trusted_official_docs | CPython Docs | :meth:`!voltage` method into a "getter" for a read-only attribute with the same name, and it sets the docstring for *voltage* to "Get the current voltage."
.. decorator:: property.getter
.. decorator:: property.setter
.. decorator:: property.deleter | :meth:`!voltage` method into a "getter" for a read-only attribute with the same name, and it sets the docstring for *voltage* to "Get the current voltage."
.. decorator:: property.getter
.. decorator:: property.setter
.. decorator:: property.deleter | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
16745fc7-3e6f-4c2d-8d7d-5bbc0cda672c | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,491 | supabase-export-v2 | 538d54dd6877234c | attribute. Otherwise, the property will copy *fget*'s docstring (if it exists). This makes it possible to create read-only properties easily using :func:`property` as a :term:`decorator`::
class Parrot:
def __init__(self):
self._voltage = 100000 | trusted_official_docs | CPython Docs | attribute. Otherwise, the property will copy *fget*'s docstring (if it exists). This makes it possible to create read-only properties easily using :func:`property` as a :term:`decorator`::
class Parrot:
def __init__(self):
self._voltage = 100000 | attribute. Otherwise, the property will copy *fget*'s docstring (if it exists). This makes it possible to create read-only properties easily using :func:`property` as a :term:`decorator`::
class Parrot:
def __init__(self):
self._voltage = 100000 | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
16af4af9-e2d0-4ffb-a806-7d1a2d76ebec | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,433 | supabase-export-v2 | b115966f30e6d29d | Python doesn't depend on the underlying operating system's notion of text files; all the processing is done by Python itself, and is therefore platform-independent.
*buffering* is an optional integer used to set the buffering policy. Pass 0
to switch buffering off (only allowed in binary mode), 1 to select line
buffe... | trusted_official_docs | CPython Docs | Python doesn't depend on the underlying operating system's notion of text files; all the processing is done by Python itself, and is therefore platform-independent.
*buffering* is an optional integer used to set the buffering policy. Pass 0
to switch buffering off (only allowed in binary mode), 1 to select line
buffe... | Python doesn't depend on the underlying operating system's notion of text files; all the processing is done by Python itself, and is therefore platform-independent.
*buffering* is an optional integer used to set the buffering policy. Pass 0
to switch buffering off (only allowed in binary mode), 1 to select line
buffe... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
177a9dd1-ccaf-4b50-96e5-5e13b580797d | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,668 | supabase-export-v2 | b94ed14f880d5392 | .. rubric:: Footnotes
.. [#] Note that the parser only accepts the Unix-style end of line convention. If you are reading the code from a file, make sure to use newline conversion
mode to convert Windows or Mac-style newlines. | trusted_official_docs | CPython Docs | .. rubric:: Footnotes
.. [#] Note that the parser only accepts the Unix-style end of line convention. If you are reading the code from a file, make sure to use newline conversion
mode to convert Windows or Mac-style newlines. | .. rubric:: Footnotes
.. [#] Note that the parser only accepts the Unix-style end of line convention. If you are reading the code from a file, make sure to use newline conversion
mode to convert Windows or Mac-style newlines. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
18c92b75-426f-497d-b39e-d4f31b3a61ba | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,373 | supabase-export-v2 | ba7378618512573c | form of :func:`iter` is to build a block-reader. For example, reading fixed-width blocks from a binary database file until the end of file is reached::
from functools import partial
with open('mydata.db', 'rb') as f:
for block in iter(partial(f.read, 64), b''):
process_block(block) | trusted_official_docs | CPython Docs | form of :func:`iter` is to build a block-reader. For example, reading fixed-width blocks from a binary database file until the end of file is reached::
from functools import partial
with open('mydata.db', 'rb') as f:
for block in iter(partial(f.read, 64), b''):
process_block(block) | form of :func:`iter` is to build a block-reader. For example, reading fixed-width blocks from a binary database file until the end of file is reached::
from functools import partial
with open('mydata.db', 'rb') as f:
for block in iter(partial(f.read, 64), b''):
process_block(block) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
196831c8-865b-462b-8e37-b0d1c2259898 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,384 | supabase-export-v2 | 22c41a2a2bad8634 | At class scope, it returns the namespace that will be passed to the metaclass constructor.
When using ``exec()`` or ``eval()`` with separate local and global
arguments, it returns the local namespace passed in to the function call. | trusted_official_docs | CPython Docs | At class scope, it returns the namespace that will be passed to the metaclass constructor.
When using ``exec()`` or ``eval()`` with separate local and global
arguments, it returns the local namespace passed in to the function call. | At class scope, it returns the namespace that will be passed to the metaclass constructor.
When using ``exec()`` or ``eval()`` with separate local and global
arguments, it returns the local namespace passed in to the function call. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
19c586f8-a6e9-4733-b64d-7990f6a4f371 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,465 | supabase-export-v2 | 9b2d0885395b2d5b | Unicode code point of that character. For example, ``ord('a')`` returns the integer ``97`` and ``ord('€')`` (Euro sign) returns ``8364``. This is the inverse of :func:`chr`.
If the argument is a :class:`bytes` or :class:`bytearray` object of
length 1, return its single byte value. For example, ``ord(b'a')`` returns th... | trusted_official_docs | CPython Docs | Unicode code point of that character. For example, ``ord('a')`` returns the integer ``97`` and ``ord('€')`` (Euro sign) returns ``8364``. This is the inverse of :func:`chr`.
If the argument is a :class:`bytes` or :class:`bytearray` object of
length 1, return its single byte value. For example, ``ord(b'a')`` returns th... | Unicode code point of that character. For example, ``ord('a')`` returns the integer ``97`` and ``ord('€')`` (Euro sign) returns ``8364``. This is the inverse of :func:`chr`.
If the argument is a :class:`bytes` or :class:`bytearray` object of
length 1, return its single byte value. For example, ``ord(b'a')`` returns th... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1a3ce097-dcd3-406d-8575-ef87dc877207 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,181 | supabase-export-v2 | ee97faf63c175540 | should give the file from which the code was read; pass some recognizable value if it wasn't read from a file (``'<string>'`` is commonly used).
The *mode* argument specifies what kind of code must be compiled; it can be
``'exec'`` if *source* consists of a sequence of statements, ``'eval'`` if it
consists of a singl... | trusted_official_docs | CPython Docs | should give the file from which the code was read; pass some recognizable value if it wasn't read from a file (``'<string>'`` is commonly used).
The *mode* argument specifies what kind of code must be compiled; it can be
``'exec'`` if *source* consists of a sequence of statements, ``'eval'`` if it
consists of a singl... | should give the file from which the code was read; pass some recognizable value if it wasn't read from a file (``'<string>'`` is commonly used).
The *mode* argument specifies what kind of code must be compiled; it can be
``'exec'`` if *source* consists of a sequence of statements, ``'eval'`` if it
consists of a singl... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1a48bfa9-604a-41b0-bdc2-768a1981c309 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,329 | supabase-export-v2 | 60f8f2a8f2959449 | .. function:: hex(integer, /)
Convert an integer number to a lowercase hexadecimal 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: | trusted_official_docs | CPython Docs | .. function:: hex(integer, /)
Convert an integer number to a lowercase hexadecimal 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: | .. function:: hex(integer, /)
Convert an integer number to a lowercase hexadecimal 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: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1a91a7a3-6e2f-4c46-be9e-ba2064e0c670 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,368 | supabase-export-v2 | d94abc25f019b4a3 | :ref:`types-union`, in which case return ``True`` if *class* is a subclass of any entry in *classinfo*. In any other case, a :exc:`TypeError` exception is raised.
.. versionchanged:: 3.10
*classinfo* can be a :ref:`types-union`. | trusted_official_docs | CPython Docs | :ref:`types-union`, in which case return ``True`` if *class* is a subclass of any entry in *classinfo*. In any other case, a :exc:`TypeError` exception is raised.
.. versionchanged:: 3.10
*classinfo* can be a :ref:`types-union`. | :ref:`types-union`, in which case return ``True`` if *class* is a subclass of any entry in *classinfo*. In any other case, a :exc:`TypeError` exception is raised.
.. versionchanged:: 3.10
*classinfo* can be a :ref:`types-union`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1ab84b65-2acd-4ddb-bf19-0b9c86939d94 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,428 | supabase-export-v2 | 6271cc5517a50792 | .. index:: pair: file; modes
========= ===============================================================
Character Meaning
========= ===============================================================
``'r'`` open for reading (default)
``'w'`` open for writing, truncating the file first
``'x'`` open for exclusive creati... | trusted_official_docs | CPython Docs | .. index:: pair: file; modes
========= ===============================================================
Character Meaning
========= ===============================================================
``'r'`` open for reading (default)
``'w'`` open for writing, truncating the file first
``'x'`` open for exclusive creati... | .. index:: pair: file; modes
========= ===============================================================
Character Meaning
========= ===============================================================
``'r'`` open for reading (default)
``'w'`` open for writing, truncating the file first
``'x'`` open for exclusive creati... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1c8640df-6df0-4e69-aa09-52f20cddfb3c | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,268 | supabase-export-v2 | 2f5f2eacfbfd453b | can be used to restrict or change the available names, but this is **not** a security mechanism: the executed code can still access all builtins.
The *closure* argument specifies a closure--a tuple of cellvars. It's only valid when the *object* is a code object containing
:term:`free (closure) variables <closure varia... | trusted_official_docs | CPython Docs | can be used to restrict or change the available names, but this is **not** a security mechanism: the executed code can still access all builtins.
The *closure* argument specifies a closure--a tuple of cellvars. It's only valid when the *object* is a code object containing
:term:`free (closure) variables <closure varia... | can be used to restrict or change the available names, but this is **not** a security mechanism: the executed code can still access all builtins.
The *closure* argument specifies a closure--a tuple of cellvars. It's only valid when the *object* is a code object containing
:term:`free (closure) variables <closure varia... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
216f65f1-fa2b-41a7-aaf0-c5d2ad56f48a | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,152 | supabase-export-v2 | 297b8355bde1e68f | * If it is a *string*, you must also give the *encoding* (and optionally, *errors*) parameters; :func:`bytearray` then converts the string to bytes using :meth:`str.encode`.
* If it is an *integer*, the array will have that size and will be
initialized with null bytes. | trusted_official_docs | CPython Docs | * If it is a *string*, you must also give the *encoding* (and optionally, *errors*) parameters; :func:`bytearray` then converts the string to bytes using :meth:`str.encode`.
* If it is an *integer*, the array will have that size and will be
initialized with null bytes. | * If it is a *string*, you must also give the *encoding* (and optionally, *errors*) parameters; :func:`bytearray` then converts the string to bytes using :meth:`str.encode`.
* If it is an *integer*, the array will have that size and will be
initialized with null bytes. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2192c3db-0be4-48cd-a53b-e3a5398ecebf | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,620 | supabase-export-v2 | ce067e7a37eec80a | Return the :attr:`~object.__dict__` attribute for a module, class, instance, or any other object with a :attr:`!__dict__` attribute.
Objects such as modules and instances have an updateable :attr:`~object.__dict__`
attribute; however, other objects may have write restrictions on their
:attr:`!__dict__` attributes (fo... | trusted_official_docs | CPython Docs | Return the :attr:`~object.__dict__` attribute for a module, class, instance, or any other object with a :attr:`!__dict__` attribute.
Objects such as modules and instances have an updateable :attr:`~object.__dict__`
attribute; however, other objects may have write restrictions on their
:attr:`!__dict__` attributes (fo... | Return the :attr:`~object.__dict__` attribute for a module, class, instance, or any other object with a :attr:`!__dict__` attribute.
Objects such as modules and instances have an updateable :attr:`~object.__dict__`
attribute; however, other objects may have write restrictions on their
:attr:`!__dict__` attributes (fo... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
21f995b2-78cc-4073-9490-33b69b61e85e | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,314 | supabase-export-v2 | 6c8819d738c0e680 | .. note::
Since :ref:`private name mangling <private-name-mangling>` happens at
compilation time, one must manually mangle a private attribute's
(attributes with two leading underscores) name in order to retrieve it with
:func:`getattr`. | trusted_official_docs | CPython Docs | .. note::
Since :ref:`private name mangling <private-name-mangling>` happens at
compilation time, one must manually mangle a private attribute's
(attributes with two leading underscores) name in order to retrieve it with
:func:`getattr`. | .. note::
Since :ref:`private name mangling <private-name-mangling>` happens at
compilation time, one must manually mangle a private attribute's
(attributes with two leading underscores) name in order to retrieve it with
:func:`getattr`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
235214a3-51a9-421a-9c1a-bdf039f74d3a | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,397 | supabase-export-v2 | 76e8ca05154942df | :term:`iterable`. The largest item in the iterable is returned. If two or more positional arguments are provided, the largest of the positional arguments is returned.
There are two optional keyword-only arguments. The *key* argument specifies
a one-argument ordering function like that used for :meth:`list.sort`. The
... | trusted_official_docs | CPython Docs | :term:`iterable`. The largest item in the iterable is returned. If two or more positional arguments are provided, the largest of the positional arguments is returned.
There are two optional keyword-only arguments. The *key* argument specifies
a one-argument ordering function like that used for :meth:`list.sort`. The
... | :term:`iterable`. The largest item in the iterable is returned. If two or more positional arguments are provided, the largest of the positional arguments is returned.
There are two optional keyword-only arguments. The *key* argument specifies
a one-argument ordering function like that used for :meth:`list.sort`. The
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
24c4a42f-4058-468a-ba7a-d55c21343a2f | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,383 | supabase-export-v2 | e45cd6e8039be05f | At module scope, as well as when using :func:`exec` or :func:`eval` with a single namespace, this function returns the same namespace as :func:`globals`.
At class scope, it returns the namespace that will be passed to the
metaclass constructor. | trusted_official_docs | CPython Docs | At module scope, as well as when using :func:`exec` or :func:`eval` with a single namespace, this function returns the same namespace as :func:`globals`.
At class scope, it returns the namespace that will be passed to the
metaclass constructor. | At module scope, as well as when using :func:`exec` or :func:`eval` with a single namespace, this function returns the same namespace as :func:`globals`.
At class scope, it returns the namespace that will be passed to the
metaclass constructor. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2748f1d4-35b0-4def-9bee-5c97ebe0883e | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,551 | supabase-export-v2 | fa7a6d13105ef43d | Return a :term:`slice` object representing the set of indices specified by ``range(start, stop, step)``. The *start* and *step* arguments default to ``None``.
Slice objects are also generated when :ref:`slicing syntax <slicings>`
is used. For example: ``a[start:stop:step]`` or ``a[start:stop, i]``. | trusted_official_docs | CPython Docs | Return a :term:`slice` object representing the set of indices specified by ``range(start, stop, step)``. The *start* and *step* arguments default to ``None``.
Slice objects are also generated when :ref:`slicing syntax <slicings>`
is used. For example: ``a[start:stop:step]`` or ``a[start:stop, i]``. | Return a :term:`slice` object representing the set of indices specified by ``range(start, stop, step)``. The *start* and *step* arguments default to ``None``.
Slice objects are also generated when :ref:`slicing syntax <slicings>`
is used. For example: ``a[start:stop:step]`` or ``a[start:stop, i]``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
28460b30-84b8-47f9-adbe-516e8108aca2 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,591 | supabase-export-v2 | f3ff2cbafe501289 | is ``D -> B -> C -> A -> object`` and the value of *type* is ``B``, then :func:`super` searches ``C -> A -> object``.
The :attr:`~type.__mro__` attribute of the class corresponding to
*object_or_type* lists the method resolution search order used by both
:func:`getattr` and :func:`super`. The attribute is dynamic and... | trusted_official_docs | CPython Docs | is ``D -> B -> C -> A -> object`` and the value of *type* is ``B``, then :func:`super` searches ``C -> A -> object``.
The :attr:`~type.__mro__` attribute of the class corresponding to
*object_or_type* lists the method resolution search order used by both
:func:`getattr` and :func:`super`. The attribute is dynamic and... | is ``D -> B -> C -> A -> object`` and the value of *type* is ``B``, then :func:`super` searches ``C -> A -> object``.
The :attr:`~type.__mro__` attribute of the class corresponding to
*object_or_type* lists the method resolution search order used by both
:func:`getattr` and :func:`super`. The attribute is dynamic and... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2916dc4a-99a4-4704-b7d9-c0367a9caca1 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,666 | supabase-export-v2 | 08041c96a1704c02 | .. versionchanged:: 3.3 Negative values for *level* are no longer supported (which also changes the default value to 0).
.. versionchanged:: 3.9
When the command line options :option:`-E` or :option:`-I` are being used,
the environment variable :envvar:`PYTHONCASEOK` is now ignored. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.3 Negative values for *level* are no longer supported (which also changes the default value to 0).
.. versionchanged:: 3.9
When the command line options :option:`-E` or :option:`-I` are being used,
the environment variable :envvar:`PYTHONCASEOK` is now ignored. | .. versionchanged:: 3.3 Negative values for *level* are no longer supported (which also changes the default value to 0).
.. versionchanged:: 3.9
When the command line options :option:`-E` or :option:`-I` are being used,
the environment variable :envvar:`PYTHONCASEOK` is now ignored. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2a68c727-96fc-4caf-9992-579425a42b96 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,375 | supabase-export-v2 | 2ee37e10b163cc38 | .. function:: len(object, /)
Return the length (the number of items) of an object. The argument may be a
sequence (such as a string, bytes, tuple, list, or range) or a collection
(such as a dictionary, set, or frozen set). | trusted_official_docs | CPython Docs | .. function:: len(object, /)
Return the length (the number of items) of an object. The argument may be a
sequence (such as a string, bytes, tuple, list, or range) or a collection
(such as a dictionary, set, or frozen set). | .. function:: len(object, /)
Return the length (the number of items) of an object. The argument may be a
sequence (such as a string, bytes, tuple, list, or range) or a collection
(such as a dictionary, set, or frozen set). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2ba7b96f-8475-4a93-a62c-bdff8ed060f9 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,468 | supabase-export-v2 | 6628876a94a78313 | power *exp*, modulo *mod* (computed more efficiently than ``pow(base, exp) % mod``). The two-argument form ``pow(base, exp)`` is equivalent to using the power operator: ``base**exp``.
When arguments are builtin numeric types with mixed operand types, the
coercion rules for binary arithmetic operators apply. For :class... | trusted_official_docs | CPython Docs | power *exp*, modulo *mod* (computed more efficiently than ``pow(base, exp) % mod``). The two-argument form ``pow(base, exp)`` is equivalent to using the power operator: ``base**exp``.
When arguments are builtin numeric types with mixed operand types, the
coercion rules for binary arithmetic operators apply. For :class... | power *exp*, modulo *mod* (computed more efficiently than ``pow(base, exp) % mod``). The two-argument form ``pow(base, exp)`` is equivalent to using the power operator: ``base**exp``.
When arguments are builtin numeric types with mixed operand types, the
coercion rules for binary arithmetic operators apply. For :class... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2c5e7a3f-5590-4a5b-a88d-36ed862839ba | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,110 | supabase-export-v2 | 6b14505634b59437 | | | | :func:`divmod` | | :func:`issubclass` | | | | **_** | | | | | :func:`iter` | | | | :func:`__import__` | +-------------------------+-----------------------+-----------------------+-------------------------+
.. using :func:`dict` would create a link to another page, so local targets are
used, with replacement text... | trusted_official_docs | CPython Docs | | | | :func:`divmod` | | :func:`issubclass` | | | | **_** | | | | | :func:`iter` | | | | :func:`__import__` | +-------------------------+-----------------------+-----------------------+-------------------------+
.. using :func:`dict` would create a link to another page, so local targets are
used, with replacement text... | | | | :func:`divmod` | | :func:`issubclass` | | | | **_** | | | | | :func:`iter` | | | | :func:`__import__` | +-------------------------+-----------------------+-----------------------+-------------------------+
.. using :func:`dict` would create a link to another page, so local targets are
used, with replacement text... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2c74a3fa-bf80-447b-ba09-46d7d4dfc688 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,223 | supabase-export-v2 | 8687c2e6a22ab650 | * If the object is a module object, the list contains the names of the module's attributes.
* If the object is a type or class object, the list contains the names of its
attributes, and recursively of the attributes of its bases. | trusted_official_docs | CPython Docs | * If the object is a module object, the list contains the names of the module's attributes.
* If the object is a type or class object, the list contains the names of its
attributes, and recursively of the attributes of its bases. | * If the object is a module object, the list contains the names of the module's attributes.
* If the object is a type or class object, the list contains the names of its
attributes, and recursively of the attributes of its bases. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2ca586d9-52ba-4baa-9407-7ebb2a63ad89 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,608 | supabase-export-v2 | 1da7b6e1349e7d9a | 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__`.
The :func:`isinstance` built-in function is recommended for testing the type
of an object, because it takes subclasses into account. | trusted_official_docs | CPython Docs | 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__`.
The :func:`isinstance` built-in function is recommended for testing the type
of an object, because it takes subclasses into account. | 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__`.
The :func:`isinstance` built-in function is recommended for testing the type
of an object, because it takes subclasses into account. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2e7ad226-5988-4bc3-a9f2-ab9cfba2949f | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,445 | supabase-export-v2 | 8b8218e451bc0b27 | obtained by calling *opener* with (*file*, *flags*). *opener* must return an open file descriptor (passing :mod:`os.open` as *opener* results in functionality similar to passing ``None``).
The newly created file is :ref:`non-inheritable <fd_inheritance>`. | trusted_official_docs | CPython Docs | obtained by calling *opener* with (*file*, *flags*). *opener* must return an open file descriptor (passing :mod:`os.open` as *opener* results in functionality similar to passing ``None``).
The newly created file is :ref:`non-inheritable <fd_inheritance>`. | obtained by calling *opener* with (*file*, *flags*). *opener* must return an open file descriptor (passing :mod:`os.open` as *opener* results in functionality similar to passing ``None``).
The newly created file is :ref:`non-inheritable <fd_inheritance>`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2ec0df99-7f01-4273-9f54-7d06c0d27bdd | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,634 | supabase-export-v2 | 1174c0ded036502d | shortest iterable is exhausted. It will ignore the remaining items in the longer iterables, cutting off the result to the length of the shortest iterable::
>>> list(zip(range(3), ['fee', 'fi', 'fo', 'fum']))
[(0, 'fee'), (1, 'fi'), (2, 'fo')] | trusted_official_docs | CPython Docs | shortest iterable is exhausted. It will ignore the remaining items in the longer iterables, cutting off the result to the length of the shortest iterable::
>>> list(zip(range(3), ['fee', 'fi', 'fo', 'fum']))
[(0, 'fee'), (1, 'fi'), (2, 'fo')] | shortest iterable is exhausted. It will ignore the remaining items in the longer iterables, cutting off the result to the length of the shortest iterable::
>>> list(zip(range(3), ['fee', 'fi', 'fo', 'fum']))
[(0, 'fee'), (1, 'fi'), (2, 'fo')] | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
30a03044-be79-4f09-8341-666cd32b6e2d | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,365 | supabase-export-v2 | 05659382ed5739e1 | tuple of types and such tuples, a :exc:`TypeError` exception is raised. :exc:`TypeError` may not be raised for an invalid type if an earlier check succeeds.
.. versionchanged:: 3.10
*classinfo* can be a :ref:`types-union`. | trusted_official_docs | CPython Docs | tuple of types and such tuples, a :exc:`TypeError` exception is raised. :exc:`TypeError` may not be raised for an invalid type if an earlier check succeeds.
.. versionchanged:: 3.10
*classinfo* can be a :ref:`types-union`. | tuple of types and such tuples, a :exc:`TypeError` exception is raised. :exc:`TypeError` may not be raised for an invalid type if an earlier check succeeds.
.. versionchanged:: 3.10
*classinfo* can be a :ref:`types-union`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
310b736f-f1b1-4fa8-b987-27f9f5e1a704 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,358 | supabase-export-v2 | 6c6daefdcbde738d | has a :meth:`base.__index__ <object.__index__>` method, that method is called to obtain an integer for the base. Previous versions used :meth:`base.__int__ <object.__int__>` instead of :meth:`base.__index__ <object.__index__>`.
.. versionchanged:: 3.6
Grouping digits with underscores as in code literals is allowed. | trusted_official_docs | CPython Docs | has a :meth:`base.__index__ <object.__index__>` method, that method is called to obtain an integer for the base. Previous versions used :meth:`base.__int__ <object.__int__>` instead of :meth:`base.__index__ <object.__index__>`.
.. versionchanged:: 3.6
Grouping digits with underscores as in code literals is allowed. | has a :meth:`base.__index__ <object.__index__>` method, that method is called to obtain an integer for the base. Previous versions used :meth:`base.__int__ <object.__int__>` instead of :meth:`base.__index__ <object.__index__>`.
.. versionchanged:: 3.6
Grouping digits with underscores as in code literals is allowed. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
32d4b4a9-b295-4ae3-97f1-f7881c1da4e7 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,159 | supabase-export-v2 | 083994b2bbc603c9 | <= x < 256``. :class:`bytes` is an immutable version of :class:`bytearray` -- it has the same non-mutating methods and the same indexing and slicing behavior.
Accordingly, constructor arguments are interpreted as for :func:`bytearray`. | trusted_official_docs | CPython Docs | <= x < 256``. :class:`bytes` is an immutable version of :class:`bytearray` -- it has the same non-mutating methods and the same indexing and slicing behavior.
Accordingly, constructor arguments are interpreted as for :func:`bytearray`. | <= x < 256``. :class:`bytes` is an immutable version of :class:`bytearray` -- it has the same non-mutating methods and the same indexing and slicing behavior.
Accordingly, constructor arguments are interpreted as for :func:`bytearray`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
332cbf65-fec1-435e-a62c-cfdb5c89acad | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,655 | supabase-export-v2 | 3e6f9362167b6e02 | values for *level* indicate the number of parent directories to search relative to the directory of the module calling :func:`__import__` (see :pep:`328` for the details).
When the *name* variable is of the form ``package.module``, normally, the
top-level package (the name up till the first dot) is returned, *not* the... | trusted_official_docs | CPython Docs | values for *level* indicate the number of parent directories to search relative to the directory of the module calling :func:`__import__` (see :pep:`328` for the details).
When the *name* variable is of the form ``package.module``, normally, the
top-level package (the name up till the first dot) is returned, *not* the... | values for *level* indicate the number of parent directories to search relative to the directory of the module calling :func:`__import__` (see :pep:`328` for the details).
When the *name* variable is of the form ``package.module``, normally, the
top-level package (the name up till the first dot) is returned, *not* the... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
347be35c-f7b6-4780-a3cb-df49eda6b07b | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,640 | supabase-export-v2 | f766c2a3245bcd43 | .. This doctest is disabled because doctest does not support capturing output and exceptions in the same code unit. https://github.com/python/cpython/issues/65382
Without the ``strict=True`` argument, any bug that results in iterables of
different lengths will be silenced, possibly manifesting as a hard-to-find
bug i... | trusted_official_docs | CPython Docs | .. This doctest is disabled because doctest does not support capturing output and exceptions in the same code unit. https://github.com/python/cpython/issues/65382
Without the ``strict=True`` argument, any bug that results in iterables of
different lengths will be silenced, possibly manifesting as a hard-to-find
bug i... | .. This doctest is disabled because doctest does not support capturing output and exceptions in the same code unit. https://github.com/python/cpython/issues/65382
Without the ``strict=True`` argument, any bug that results in iterables of
different lengths will be silenced, possibly manifesting as a hard-to-find
bug i... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
34d8cd3f-8c52-4d8d-a9a1-ff9edc972229 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,594 | supabase-export-v2 | 6287694e8c6052e2 | enclosing function (typically ``self``). (This means that zero-argument :func:`!super` will not work as expected within nested functions, including generator expressions, which implicitly create nested functions.)
There are two typical use cases for *super*. In a class hierarchy with
single inheritance, *super* can be... | trusted_official_docs | CPython Docs | enclosing function (typically ``self``). (This means that zero-argument :func:`!super` will not work as expected within nested functions, including generator expressions, which implicitly create nested functions.)
There are two typical use cases for *super*. In a class hierarchy with
single inheritance, *super* can be... | enclosing function (typically ``self``). (This means that zero-argument :func:`!super` will not work as expected within nested functions, including generator expressions, which implicitly create nested functions.)
There are two typical use cases for *super*. In a class hierarchy with
single inheritance, *super* can be... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
354dc39d-c0bd-46b8-9378-eb9d7e26acf0 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,166 | supabase-export-v2 | 99c030205ea0947c | .. function:: chr(codepoint, /)
Return the string representing a character with the specified Unicode code point. For example, ``chr(97)`` returns the string ``'a'``, while
``chr(8364)`` returns the string ``'€'``. This is the inverse of :func:`ord`. | trusted_official_docs | CPython Docs | .. function:: chr(codepoint, /)
Return the string representing a character with the specified Unicode code point. For example, ``chr(97)`` returns the string ``'a'``, while
``chr(8364)`` returns the string ``'€'``. This is the inverse of :func:`ord`. | .. function:: chr(codepoint, /)
Return the string representing a character with the specified Unicode code point. For example, ``chr(97)`` returns the string ``'a'``, while
``chr(8364)`` returns the string ``'€'``. This is the inverse of :func:`ord`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3612c03d-a541-4724-94fa-9f242f289925 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,182 | supabase-export-v2 | fd311106b297dc41 | ``'single'`` if it consists of a single interactive statement (in the latter case, expression statements that evaluate to something other than ``None`` will be printed).
The optional arguments *flags* and *dont_inherit* control which
:ref:`compiler options <ast-compiler-flags>` should be activated
and which :ref:`fut... | trusted_official_docs | CPython Docs | ``'single'`` if it consists of a single interactive statement (in the latter case, expression statements that evaluate to something other than ``None`` will be printed).
The optional arguments *flags* and *dont_inherit* control which
:ref:`compiler options <ast-compiler-flags>` should be activated
and which :ref:`fut... | ``'single'`` if it consists of a single interactive statement (in the latter case, expression statements that evaluate to something other than ``None`` will be printed).
The optional arguments *flags* and *dont_inherit* control which
:ref:`compiler options <ast-compiler-flags>` should be activated
and which :ref:`fut... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3a435213-bedd-4a57-bd5a-128f98f8471f | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,510 | supabase-export-v2 | ec9bcf9fb98e4b72 | .. function:: repr(object, /)
Return a string containing a printable representation of an object. For many
types, this function makes an attempt to return a string that would yield an
object with the same value when passed to :func:`eval`; otherwise, the
representation is a string enclosed in angle brackets that con... | trusted_official_docs | CPython Docs | .. function:: repr(object, /)
Return a string containing a printable representation of an object. For many
types, this function makes an attempt to return a string that would yield an
object with the same value when passed to :func:`eval`; otherwise, the
representation is a string enclosed in angle brackets that con... | .. function:: repr(object, /)
Return a string containing a printable representation of an object. For many
types, this function makes an attempt to return a string that would yield an
object with the same value when passed to :func:`eval`; otherwise, the
representation is a string enclosed in angle brackets that con... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3c7beb86-28aa-4a37-bd3a-3c29b303de66 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,522 | supabase-export-v2 | 9c2adc901d4facdb | not a bug: it's a result of the fact that most decimal fractions can't be represented exactly as a float. See :ref:`tut-fp-issues` for more information.
.. _func-set:
.. class:: set(iterable=(), /)
:noindex: | trusted_official_docs | CPython Docs | not a bug: it's a result of the fact that most decimal fractions can't be represented exactly as a float. See :ref:`tut-fp-issues` for more information.
.. _func-set:
.. class:: set(iterable=(), /)
:noindex: | not a bug: it's a result of the fact that most decimal fractions can't be represented exactly as a float. See :ref:`tut-fp-issues` for more information.
.. _func-set:
.. class:: set(iterable=(), /)
:noindex: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3dfe5fc3-16fb-41f2-97d3-6c4dc918cb35 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,266 | supabase-export-v2 | 6f2b2f91d7828c4b | .. note::
When ``exec`` gets two separate objects as *globals* and *locals*, the
code will be executed as if it were embedded in a class definition. This
means functions and classes defined in the executed code will not be able
to access variables assigned at the top level (as the "top level"
variables are treated ... | trusted_official_docs | CPython Docs | .. note::
When ``exec`` gets two separate objects as *globals* and *locals*, the
code will be executed as if it were embedded in a class definition. This
means functions and classes defined in the executed code will not be able
to access variables assigned at the top level (as the "top level"
variables are treated ... | .. note::
When ``exec`` gets two separate objects as *globals* and *locals*, the
code will be executed as if it were embedded in a class definition. This
means functions and classes defined in the executed code will not be able
to access variables assigned at the top level (as the "top level"
variables are treated ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3e91ca76-5312-45b1-a27d-7b6b9b93901d | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,639 | supabase-export-v2 | dda8ad4c4e6c4168 | +SKIP ... print(item) ... (0, 'fee') (1, 'fi') (2, 'fo') Traceback (most recent call last): ... ValueError: zip() argument 2 is longer than argument 1
.. This doctest is disabled because doctest does not support capturing
output and exceptions in the same code unit. https://github.com/python/cpython/issues/65382 | trusted_official_docs | CPython Docs | +SKIP ... print(item) ... (0, 'fee') (1, 'fi') (2, 'fo') Traceback (most recent call last): ... ValueError: zip() argument 2 is longer than argument 1
.. This doctest is disabled because doctest does not support capturing
output and exceptions in the same code unit. https://github.com/python/cpython/issues/65382 | +SKIP ... print(item) ... (0, 'fee') (1, 'fi') (2, 'fo') Traceback (most recent call last): ... ValueError: zip() argument 2 is longer than argument 1
.. This doctest is disabled because doctest does not support capturing
output and exceptions in the same code unit. https://github.com/python/cpython/issues/65382 | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3f1b46ba-9d58-46f0-84b3-d66168a036ae | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,395 | supabase-export-v2 | 60d54604bc30b076 | .. function:: max(iterable, /, *, key=None) max(iterable, /, *, default, key=None) max(arg1, arg2, /, *args, key=None)
Return the largest item in an iterable or the largest of two or more
arguments. | trusted_official_docs | CPython Docs | .. function:: max(iterable, /, *, key=None) max(iterable, /, *, default, key=None) max(arg1, arg2, /, *args, key=None)
Return the largest item in an iterable or the largest of two or more
arguments. | .. function:: max(iterable, /, *, key=None) max(iterable, /, *, default, key=None) max(arg1, arg2, /, *args, key=None)
Return the largest item in an iterable or the largest of two or more
arguments. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
41c294a1-f35f-4863-aff9-69e80bc7bb37 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,294 | supabase-export-v2 | d1a306ea6b2ac403 | Case is not significant, so, for example, "inf", "Inf", "INFINITY", and "iNfINity" are all acceptable spellings for positive infinity.
Otherwise, if the argument is an integer or a floating-point number, a
floating-point number with the same value (within Python's floating-point
precision) is returned. If the argumen... | trusted_official_docs | CPython Docs | Case is not significant, so, for example, "inf", "Inf", "INFINITY", and "iNfINity" are all acceptable spellings for positive infinity.
Otherwise, if the argument is an integer or a floating-point number, a
floating-point number with the same value (within Python's floating-point
precision) is returned. If the argumen... | Case is not significant, so, for example, "inf", "Inf", "INFINITY", and "iNfINity" are all acceptable spellings for positive infinity.
Otherwise, if the argument is an integer or a floating-point number, a
floating-point number with the same value (within Python's floating-point
precision) is returned. If the argumen... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
42272b38-3577-4fc6-a056-eb01738d64cc | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,511 | supabase-export-v2 | 3e3e6b9a1289f6b6 | class can control what this function returns for its instances by defining a :meth:`~object.__repr__` method. If :func:`sys.displayhook` is not accessible, this function will raise :exc:`RuntimeError`.
This class has a custom representation that can be evaluated:: | trusted_official_docs | CPython Docs | class can control what this function returns for its instances by defining a :meth:`~object.__repr__` method. If :func:`sys.displayhook` is not accessible, this function will raise :exc:`RuntimeError`.
This class has a custom representation that can be evaluated:: | class can control what this function returns for its instances by defining a :meth:`~object.__repr__` method. If :func:`sys.displayhook` is not accessible, this function will raise :exc:`RuntimeError`.
This class has a custom representation that can be evaluated:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
449165eb-38b1-448a-91e3-b23879ec7a11 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,391 | supabase-export-v2 | 74700cda32da0fed | behavior in :term:`optimized scopes <optimized scope>` is now as described above. Aside from being defined, the behaviour in other scopes remains unchanged from previous versions.
.. function:: map(function, iterable, /, *iterables, strict=False) | trusted_official_docs | CPython Docs | behavior in :term:`optimized scopes <optimized scope>` is now as described above. Aside from being defined, the behaviour in other scopes remains unchanged from previous versions.
.. function:: map(function, iterable, /, *iterables, strict=False) | behavior in :term:`optimized scopes <optimized scope>` is now as described above. Aside from being defined, the behaviour in other scopes remains unchanged from previous versions.
.. function:: map(function, iterable, /, *iterables, strict=False) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
45ffd962-acab-44cc-ac5c-7e92bf252e7a | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,523 | supabase-export-v2 | 5d708c74295d3d82 | .. _func-set: .. class:: set(iterable=(), /) :noindex:
Return a new :class:`set` object, optionally with elements taken from
*iterable*. ``set`` is a built-in class. See :class:`set` and
:ref:`types-set` for documentation about this class. | trusted_official_docs | CPython Docs | .. _func-set: .. class:: set(iterable=(), /) :noindex:
Return a new :class:`set` object, optionally with elements taken from
*iterable*. ``set`` is a built-in class. See :class:`set` and
:ref:`types-set` for documentation about this class. | .. _func-set: .. class:: set(iterable=(), /) :noindex:
Return a new :class:`set` object, optionally with elements taken from
*iterable*. ``set`` is a built-in class. See :class:`set` and
:ref:`types-set` for documentation about this class. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
46f1c95e-8dc9-40c9-96d8-3da8039cdf1b | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,293 | supabase-export-v2 | f7b558707dee3e6a | number: [`digitpart`] "." `digitpart` | `digitpart` ["."] exponent: ("e" | "E") [`sign`] `digitpart` floatnumber: `number` [`exponent`] absfloatvalue: `floatnumber` | `infinity` | `nan` floatvalue: [`sign`] `absfloatvalue`
Case is not significant, so, for example, "inf", "Inf", "INFINITY", and
"iNfINity" are all accep... | trusted_official_docs | CPython Docs | number: [`digitpart`] "." `digitpart` | `digitpart` ["."] exponent: ("e" | "E") [`sign`] `digitpart` floatnumber: `number` [`exponent`] absfloatvalue: `floatnumber` | `infinity` | `nan` floatvalue: [`sign`] `absfloatvalue`
Case is not significant, so, for example, "inf", "Inf", "INFINITY", and
"iNfINity" are all accep... | number: [`digitpart`] "." `digitpart` | `digitpart` ["."] exponent: ("e" | "E") [`sign`] `digitpart` floatnumber: `number` [`exponent`] absfloatvalue: `floatnumber` | `infinity` | `nan` floatvalue: [`sign`] `absfloatvalue`
Case is not significant, so, for example, "inf", "Inf", "INFINITY", and
"iNfINity" are all accep... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
480622cc-28f1-49a2-8981-8d99b11679f2 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,224 | supabase-export-v2 | ff783e66f6f8a219 | If the object is a type or class object, the list contains the names of its attributes, and recursively of the attributes of its bases.
* Otherwise, the list contains the object's attributes' names, the names of its
class's attributes, and recursively of the attributes of its class's base
classes. | trusted_official_docs | CPython Docs | If the object is a type or class object, the list contains the names of its attributes, and recursively of the attributes of its bases.
* Otherwise, the list contains the object's attributes' names, the names of its
class's attributes, and recursively of the attributes of its class's base
classes. | If the object is a type or class object, the list contains the names of its attributes, and recursively of the attributes of its bases.
* Otherwise, the list contains the object's attributes' names, the names of its
class's attributes, and recursively of the attributes of its class's base
classes. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4849e2ec-aab2-496d-927e-8ef0e08436e4 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,370 | supabase-export-v2 | 892ac7ae58693607 | .. function:: iter(iterable, /) iter(callable, sentinel, /)
Return an :term:`iterator` object. The first argument is interpreted very
differently depending on the presence of the second argument. Without a
second argument, the single argument must be a collection object which supports the
:term:`iterable` protocol (... | trusted_official_docs | CPython Docs | .. function:: iter(iterable, /) iter(callable, sentinel, /)
Return an :term:`iterator` object. The first argument is interpreted very
differently depending on the presence of the second argument. Without a
second argument, the single argument must be a collection object which supports the
:term:`iterable` protocol (... | .. function:: iter(iterable, /) iter(callable, sentinel, /)
Return an :term:`iterator` object. The first argument is interpreted very
differently depending on the presence of the second argument. Without a
second argument, the single argument must be a collection object which supports the
:term:`iterable` protocol (... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
48db76c3-73b3-4e54-a499-d1e7ba6f22ce | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,143 | supabase-export-v2 | 1be5ee7b0e4c1319 | .. function:: breakpoint(*args, **kws)
This function drops you into the debugger at the call site. Specifically,
it calls :func:`sys.breakpointhook`, passing ``args`` and ``kws`` straight
through. By default, ``sys.breakpointhook()`` calls
:func:`pdb.set_trace` expecting no arguments. In this case, it is
purely a c... | trusted_official_docs | CPython Docs | .. function:: breakpoint(*args, **kws)
This function drops you into the debugger at the call site. Specifically,
it calls :func:`sys.breakpointhook`, passing ``args`` and ``kws`` straight
through. By default, ``sys.breakpointhook()`` calls
:func:`pdb.set_trace` expecting no arguments. In this case, it is
purely a c... | .. function:: breakpoint(*args, **kws)
This function drops you into the debugger at the call site. Specifically,
it calls :func:`sys.breakpointhook`, passing ``args`` and ``kws`` straight
through. By default, ``sys.breakpointhook()`` calls
:func:`pdb.set_trace` expecting no arguments. In this case, it is
purely a c... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
48f743a7-afbd-4f89-8371-a201ac47ae16 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,163 | supabase-export-v2 | 750dc729dfcc6e14 | .. function:: callable(object, /)
Return :const:`True` if the *object* argument appears callable,
:const:`False` if not. If this returns ``True``, it is still possible that a
call fails, but if it is ``False``, calling *object* will never succeed. Note that classes are callable (calling a class returns a new instance... | trusted_official_docs | CPython Docs | .. function:: callable(object, /)
Return :const:`True` if the *object* argument appears callable,
:const:`False` if not. If this returns ``True``, it is still possible that a
call fails, but if it is ``False``, calling *object* will never succeed. Note that classes are callable (calling a class returns a new instance... | .. function:: callable(object, /)
Return :const:`True` if the *object* argument appears callable,
:const:`False` if not. If this returns ``True``, it is still possible that a
call fails, but if it is ``False``, calling *object* will never succeed. Note that classes are callable (calling a class returns a new instance... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4a0f4b86-c87a-43bd-b7df-0246ed6907c4 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,295 | supabase-export-v2 | 6f0ed2c87142ae07 | the same value (within Python's floating-point precision) is returned. If the argument is outside the range of a Python float, an :exc:`OverflowError` will be raised.
For a general Python object ``x``, ``float(x)`` delegates to
``x.__float__()``. If :meth:`~object.__float__` is not defined then it falls back
to :meth... | trusted_official_docs | CPython Docs | the same value (within Python's floating-point precision) is returned. If the argument is outside the range of a Python float, an :exc:`OverflowError` will be raised.
For a general Python object ``x``, ``float(x)`` delegates to
``x.__float__()``. If :meth:`~object.__float__` is not defined then it falls back
to :meth... | the same value (within Python's floating-point precision) is returned. If the argument is outside the range of a Python float, an :exc:`OverflowError` will be raised.
For a general Python object ``x``, ``float(x)`` delegates to
``x.__float__()``. If :meth:`~object.__float__` is not defined then it falls back
to :meth... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4ca59e26-c31c-433e-acf8-e43469b379a4 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,444 | supabase-export-v2 | 51876b0f5cc3656c | be kept open when the file is closed. If a filename is given *closefd* must be ``True`` (the default); otherwise, an error will be raised.
A custom opener can be used by passing a callable as *opener*. The underlying
file descriptor for the file object is then obtained by calling *opener* with
(*file*, *flags*). *ope... | trusted_official_docs | CPython Docs | be kept open when the file is closed. If a filename is given *closefd* must be ``True`` (the default); otherwise, an error will be raised.
A custom opener can be used by passing a callable as *opener*. The underlying
file descriptor for the file object is then obtained by calling *opener* with
(*file*, *flags*). *ope... | be kept open when the file is closed. If a filename is given *closefd* must be ``True`` (the default); otherwise, an error will be raised.
A custom opener can be used by passing a callable as *opener*. The underlying
file descriptor for the file object is then obtained by calling *opener* with
(*file*, *flags*). *ope... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4dbf1d52-c41e-4a63-92b5-0a9b631a7653 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,489 | supabase-export-v2 | c07ce50fe3193d2e | x = property(getx, setx, delx, "I'm the 'x' property.")
If *c* is an instance of *C*, ``c.x`` will invoke the getter,
``c.x = value`` will invoke the setter, and ``del c.x`` the deleter. | trusted_official_docs | CPython Docs | x = property(getx, setx, delx, "I'm the 'x' property.")
If *c* is an instance of *C*, ``c.x`` will invoke the getter,
``c.x = value`` will invoke the setter, and ``del c.x`` the deleter. | x = property(getx, setx, delx, "I'm the 'x' property.")
If *c* is an instance of *C*, ``c.x`` will invoke the getter,
``c.x = value`` will invoke the setter, and ``del c.x`` the deleter. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4dda0ef0-cbe2-4ec8-9623-32c80ce9263b | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,430 | supabase-export-v2 | a4b860ae414c9a19 | reading text, a synonym of ``'rt'``). Modes ``'w+'`` and ``'w+b'`` open and truncate the file. Modes ``'r+'`` and ``'r+b'`` open the file with no truncation.
As mentioned in the :ref:`io-overview`, Python distinguishes between binary
and text I/O. Files opened in binary mode (including ``'b'`` in the *mode*
argument)... | trusted_official_docs | CPython Docs | reading text, a synonym of ``'rt'``). Modes ``'w+'`` and ``'w+b'`` open and truncate the file. Modes ``'r+'`` and ``'r+b'`` open the file with no truncation.
As mentioned in the :ref:`io-overview`, Python distinguishes between binary
and text I/O. Files opened in binary mode (including ``'b'`` in the *mode*
argument)... | reading text, a synonym of ``'rt'``). Modes ``'w+'`` and ``'w+b'`` open and truncate the file. Modes ``'r+'`` and ``'r+b'`` open the file with no truncation.
As mentioned in the :ref:`io-overview`, Python distinguishes between binary
and text I/O. Files opened in binary mode (including ``'b'`` in the *mode*
argument)... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4de0e636-9f7a-41e0-bd00-e5124fb4505e | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,120 | supabase-export-v2 | 5fd6b6a8143b2cf2 | Return ``True`` if all elements of the *iterable* are true (or if the iterable is empty). Equivalent to::
def all(iterable):
for element in iterable:
if not element:
return False
return True | trusted_official_docs | CPython Docs | Return ``True`` if all elements of the *iterable* are true (or if the iterable is empty). Equivalent to::
def all(iterable):
for element in iterable:
if not element:
return False
return True | Return ``True`` if all elements of the *iterable* are true (or if the iterable is empty). Equivalent to::
def all(iterable):
for element in iterable:
if not element:
return False
return True | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4fd8e54a-c8ce-433d-92c5-1a48d4ee204e | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,344 | supabase-export-v2 | dfdabeaebb1fbdfa | >>> s = input('--> ') # doctest: +SKIP --> Monty Python's Flying Circus >>> s # doctest: +SKIP "Monty Python's Flying Circus"
If the :mod:`readline` module was loaded, then :func:`input` will use it
to provide elaborate line editing and history features. | trusted_official_docs | CPython Docs | >>> s = input('--> ') # doctest: +SKIP --> Monty Python's Flying Circus >>> s # doctest: +SKIP "Monty Python's Flying Circus"
If the :mod:`readline` module was loaded, then :func:`input` will use it
to provide elaborate line editing and history features. | >>> s = input('--> ') # doctest: +SKIP --> Monty Python's Flying Circus >>> s # doctest: +SKIP "Monty Python's Flying Circus"
If the :mod:`readline` module was loaded, then :func:`input` will use it
to provide elaborate line editing and history features. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4fe42b18-b620-4680-a243-8f05bceda0a6 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,646 | supabase-export-v2 | e181806c9ba4eaa1 | * :func:`zip` in conjunction with the ``*`` operator can be used to unzip a list::
>>> x = [1, 2, 3]
>>> y = [4, 5, 6]
>>> list(zip(x, y))
[(1, 4), (2, 5), (3, 6)]
>>> x2, y2 = zip(*zip(x, y))
>>> x == list(x2) and y == list(y2)
True | trusted_official_docs | CPython Docs | * :func:`zip` in conjunction with the ``*`` operator can be used to unzip a list::
>>> x = [1, 2, 3]
>>> y = [4, 5, 6]
>>> list(zip(x, y))
[(1, 4), (2, 5), (3, 6)]
>>> x2, y2 = zip(*zip(x, y))
>>> x == list(x2) and y == list(y2)
True | * :func:`zip` in conjunction with the ``*`` operator can be used to unzip a list::
>>> x = [1, 2, 3]
>>> y = [4, 5, 6]
>>> list(zip(x, y))
[(1, 4), (2, 5), (3, 6)]
>>> x2, y2 = zip(*zip(x, y))
>>> x == list(x2) and y == list(y2)
True | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
512f1e56-6557-4a43-8951-57e8d9897b29 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,403 | supabase-export-v2 | 20fea2f242427b55 | Return a "memory view" object created from the given argument. See :ref:`typememoryview` for more information.
.. function:: min(iterable, /, *, key=None)
min(iterable, /, *, default, key=None)
min(arg1, arg2, /, *args, key=None) | trusted_official_docs | CPython Docs | Return a "memory view" object created from the given argument. See :ref:`typememoryview` for more information.
.. function:: min(iterable, /, *, key=None)
min(iterable, /, *, default, key=None)
min(arg1, arg2, /, *args, key=None) | Return a "memory view" object created from the given argument. See :ref:`typememoryview` for more information.
.. function:: min(iterable, /, *, key=None)
min(iterable, /, *, default, key=None)
min(arg1, arg2, /, *args, key=None) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5192156e-62ad-433a-93f4-de5f78e80021 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,310 | supabase-export-v2 | 14e145249eb2fc73 | Return a new :class:`frozenset` object, optionally with elements taken from *iterable*. ``frozenset`` is a built-in class. See :class:`frozenset` and :ref:`types-set` for documentation about this class.
For other containers see the built-in :class:`set`, :class:`list`,
:class:`tuple`, and :class:`dict` classes, as wel... | trusted_official_docs | CPython Docs | Return a new :class:`frozenset` object, optionally with elements taken from *iterable*. ``frozenset`` is a built-in class. See :class:`frozenset` and :ref:`types-set` for documentation about this class.
For other containers see the built-in :class:`set`, :class:`list`,
:class:`tuple`, and :class:`dict` classes, as wel... | Return a new :class:`frozenset` object, optionally with elements taken from *iterable*. ``frozenset`` is a built-in class. See :class:`frozenset` and :ref:`types-set` for documentation about this class.
For other containers see the built-in :class:`set`, :class:`list`,
:class:`tuple`, and :class:`dict` classes, as wel... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
519d3591-b593-43d6-bad5-d8a4e79b8b39 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,637 | supabase-export-v2 | d633f922514a35ac | >>> list(zip(('a', 'b', 'c'), (1, 2, 3), strict=True)) [('a', 1), ('b', 2), ('c', 3)]
Unlike the default behavior, it raises a :exc:`ValueError` if one iterable
is exhausted before the others: | trusted_official_docs | CPython Docs | >>> list(zip(('a', 'b', 'c'), (1, 2, 3), strict=True)) [('a', 1), ('b', 2), ('c', 3)]
Unlike the default behavior, it raises a :exc:`ValueError` if one iterable
is exhausted before the others: | >>> list(zip(('a', 'b', 'c'), (1, 2, 3), strict=True)) [('a', 1), ('b', 2), ('c', 3)]
Unlike the default behavior, it raises a :exc:`ValueError` if one iterable
is exhausted before the others: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
51c00f9e-3383-4d44-910c-ba83640145a4 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,464 | supabase-export-v2 | a419c05f14723909 | Return the ordinal value of a character.
If the argument is a one-character string, return the Unicode code point
of that character. For example,
``ord('a')`` returns the integer ``97`` and ``ord('€')`` (Euro sign)
returns ``8364``. This is the inverse of :func:`chr`. | trusted_official_docs | CPython Docs | Return the ordinal value of a character.
If the argument is a one-character string, return the Unicode code point
of that character. For example,
``ord('a')`` returns the integer ``97`` and ``ord('€')`` (Euro sign)
returns ``8364``. This is the inverse of :func:`chr`. | Return the ordinal value of a character.
If the argument is a one-character string, return the Unicode code point
of that character. For example,
``ord('a')`` returns the integer ``97`` and ``ord('€')`` (Euro sign)
returns ``8364``. This is the inverse of :func:`chr`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
521ad7de-d727-4097-8bf2-22407a1bd3ef | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,560 | supabase-export-v2 | 845364649948509a | 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).
*reverse* is a boolean value. If set to ``True``, then the list elements are
sorted as if each comparison were reversed. | trusted_official_docs | CPython Docs | 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).
*reverse* is a boolean value. If set to ``True``, then the list elements are
sorted as if each comparison were reversed. | 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).
*reverse* is a boolean value. If set to ``True``, then the list elements are
sorted as if each comparison were reversed. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
529cea80-f4b0-4b7e-996d-27f1938338cf | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,196 | supabase-export-v2 | 4a9a1377a0eaf859 | .. versionchanged:: 3.5 Previously, :exc:`TypeError` was raised when null bytes were encountered in *source*.
.. versionadded:: 3.8
``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` can now be passed in flags to enable
support for top-level ``await``, ``async for``, and ``async with``. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.5 Previously, :exc:`TypeError` was raised when null bytes were encountered in *source*.
.. versionadded:: 3.8
``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` can now be passed in flags to enable
support for top-level ``await``, ``async for``, and ``async with``. | .. versionchanged:: 3.5 Previously, :exc:`TypeError` was raised when null bytes were encountered in *source*.
.. versionadded:: 3.8
``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` can now be passed in flags to enable
support for top-level ``await``, ``async for``, and ``async with``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5595da98-10b3-4d90-9f8a-16539596eb2a | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,404 | supabase-export-v2 | cd1882bbbf6ff06f | .. function:: min(iterable, /, *, key=None) min(iterable, /, *, default, key=None) min(arg1, arg2, /, *args, key=None)
Return the smallest item in an iterable or the smallest of two or more
arguments. | trusted_official_docs | CPython Docs | .. function:: min(iterable, /, *, key=None) min(iterable, /, *, default, key=None) min(arg1, arg2, /, *args, key=None)
Return the smallest item in an iterable or the smallest of two or more
arguments. | .. function:: min(iterable, /, *, key=None) min(iterable, /, *, default, key=None) min(arg1, arg2, /, *args, key=None)
Return the smallest item in an iterable or the smallest of two or more
arguments. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
55974c0d-259e-4474-8ad4-13308b177fe6 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,461 | supabase-export-v2 | 682f5bc3771508c3 | * Support added to accept objects implementing :class:`os.PathLike`. * On Windows, opening a console buffer may return a subclass of :class:`io.RawIOBase` other than :class:`io.FileIO`.
.. versionchanged:: 3.11
The ``'U'`` mode has been removed. | trusted_official_docs | CPython Docs | * Support added to accept objects implementing :class:`os.PathLike`. * On Windows, opening a console buffer may return a subclass of :class:`io.RawIOBase` other than :class:`io.FileIO`.
.. versionchanged:: 3.11
The ``'U'`` mode has been removed. | * Support added to accept objects implementing :class:`os.PathLike`. * On Windows, opening a console buffer may return a subclass of :class:`io.RawIOBase` other than :class:`io.FileIO`.
.. versionchanged:: 3.11
The ``'U'`` mode has been removed. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
56b0f278-6e0d-4dfe-bd79-5c356c06ca26 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,318 | supabase-export-v2 | b52842efa156f8ba | .. function:: hasattr(object, name, /)
The arguments are an object and a string. The result is ``True`` if the
string is the name of one of the object's attributes, ``False`` if not. (This
is implemented by calling ``getattr(object, name)`` and seeing whether it
raises an :exc:`AttributeError` or not.) | trusted_official_docs | CPython Docs | .. function:: hasattr(object, name, /)
The arguments are an object and a string. The result is ``True`` if the
string is the name of one of the object's attributes, ``False`` if not. (This
is implemented by calling ``getattr(object, name)`` and seeing whether it
raises an :exc:`AttributeError` or not.) | .. function:: hasattr(object, name, /)
The arguments are an object and a string. The result is ``True`` if the
string is the name of one of the object's attributes, ``False`` if not. (This
is implemented by calling ``getattr(object, name)`` and seeing whether it
raises an :exc:`AttributeError` or not.) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
57d2f86a-da22-41ff-883d-00a851a13932 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,274 | supabase-export-v2 | 42f70f98cae567e0 | .. note::
The default *locals* act as described for function :func:`locals` below. Pass an explicit *locals* dictionary if you need to see effects of the
code on *locals* after function :func:`exec` returns. | trusted_official_docs | CPython Docs | .. note::
The default *locals* act as described for function :func:`locals` below. Pass an explicit *locals* dictionary if you need to see effects of the
code on *locals* after function :func:`exec` returns. | .. note::
The default *locals* act as described for function :func:`locals` below. Pass an explicit *locals* dictionary if you need to see effects of the
code on *locals* after function :func:`exec` returns. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
582e9ab4-3cf6-4085-89ca-0c4e82f3d6b2 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,170 | supabase-export-v2 | 37fee72e6d75c43a | Transform a method into a class method.
A class method receives the class as an implicit first argument, just like an
instance method receives the instance. To declare a class method, use this
idiom:: | trusted_official_docs | CPython Docs | Transform a method into a class method.
A class method receives the class as an implicit first argument, just like an
instance method receives the instance. To declare a class method, use this
idiom:: | Transform a method into a class method.
A class method receives the class as an implicit first argument, just like an
instance method receives the instance. To declare a class method, use this
idiom:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5838e246-b24a-4f70-a254-195fddf41138 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,204 | supabase-export-v2 | 4d131834ad7d4ab7 | .. productionlist:: float complexvalue: `floatvalue` | : `floatvalue` ("j" | "J") | : `floatvalue` `sign` `absfloatvalue` ("j" | "J")
If the argument is a number, the constructor serves as a numeric
conversion like :class:`int` and :class:`float`. For a general Python object ``x``, ``complex(x)`` delegates to
``x.__c... | trusted_official_docs | CPython Docs | .. productionlist:: float complexvalue: `floatvalue` | : `floatvalue` ("j" | "J") | : `floatvalue` `sign` `absfloatvalue` ("j" | "J")
If the argument is a number, the constructor serves as a numeric
conversion like :class:`int` and :class:`float`. For a general Python object ``x``, ``complex(x)`` delegates to
``x.__c... | .. productionlist:: float complexvalue: `floatvalue` | : `floatvalue` ("j" | "J") | : `floatvalue` `sign` `absfloatvalue` ("j" | "J")
If the argument is a number, the constructor serves as a numeric
conversion like :class:`int` and :class:`float`. For a general Python object ``x``, ``complex(x)`` delegates to
``x.__c... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
58e76611-3fc4-4b07-b9d3-fa78fed027a5 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,213 | supabase-export-v2 | 0877d4a6c90cb1ed | .. function:: delattr(object, name, /)
This is a relative of :func:`setattr`. The arguments are an object and a
string. The string must be the name of one of the object's attributes. The
function deletes the named attribute, provided the object allows it. For
example, ``delattr(x, 'foobar')`` is equivalent to ``del ... | trusted_official_docs | CPython Docs | .. function:: delattr(object, name, /)
This is a relative of :func:`setattr`. The arguments are an object and a
string. The string must be the name of one of the object's attributes. The
function deletes the named attribute, provided the object allows it. For
example, ``delattr(x, 'foobar')`` is equivalent to ``del ... | .. function:: delattr(object, name, /)
This is a relative of :func:`setattr`. The arguments are an object and a
string. The string must be the name of one of the object's attributes. The
function deletes the named attribute, provided the object allows it. For
example, ``delattr(x, 'foobar')`` is equivalent to ``del ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5a43d780-20ae-4871-867f-5ed6f0603aab | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,476 | supabase-export-v2 | 5105947b4cfb9610 | to the text stream *file*, separated by *sep* and followed by *end*. *sep*, *end*, *file*, and *flush*, if present, must be given as keyword arguments.
All non-keyword arguments are converted to strings like :func:`str` does and
written to the stream, separated by *sep* and followed by *end*. Both *sep*
and *end* mus... | trusted_official_docs | CPython Docs | to the text stream *file*, separated by *sep* and followed by *end*. *sep*, *end*, *file*, and *flush*, if present, must be given as keyword arguments.
All non-keyword arguments are converted to strings like :func:`str` does and
written to the stream, separated by *sep* and followed by *end*. Both *sep*
and *end* mus... | to the text stream *file*, separated by *sep* and followed by *end*. *sep*, *end*, *file*, and *flush*, if present, must be given as keyword arguments.
All non-keyword arguments are converted to strings like :func:`str` does and
written to the stream, separated by *sep* and followed by *end*. Both *sep*
and *end* mus... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5a45f116-78af-44d7-9c93-5618b7ce37dc | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,176 | supabase-export-v2 | 3ddcc540260d9fe2 | .. versionchanged:: 3.9 Class methods can now wrap other :term:`descriptors <descriptor>` such as :func:`property`.
.. versionchanged:: 3.10
Class methods now inherit the method attributes
(:attr:`~function.__module__`, :attr:`~function.__name__`,
:attr:`~function.__qualname__`, :attr:`~function.__doc__` and
:attr:... | trusted_official_docs | CPython Docs | .. versionchanged:: 3.9 Class methods can now wrap other :term:`descriptors <descriptor>` such as :func:`property`.
.. versionchanged:: 3.10
Class methods now inherit the method attributes
(:attr:`~function.__module__`, :attr:`~function.__name__`,
:attr:`~function.__qualname__`, :attr:`~function.__doc__` and
:attr:... | .. versionchanged:: 3.9 Class methods can now wrap other :term:`descriptors <descriptor>` such as :func:`property`.
.. versionchanged:: 3.10
Class methods now inherit the method attributes
(:attr:`~function.__module__`, :attr:`~function.__name__`,
:attr:`~function.__qualname__`, :attr:`~function.__doc__` and
:attr:... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5abeabe5-1dc3-442c-97e4-a7e69d55bff9 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,386 | supabase-export-v2 | f8df2a8105db22a6 | visible as assigned, reassigned, or deleted local variables, and assigning, reassigning, or deleting local variables will immediately affect the contents of the returned mapping object.
In an :term:`optimized scope` (including functions, generators, and
coroutines), each call to ``locals()`` instead returns a fresh di... | trusted_official_docs | CPython Docs | visible as assigned, reassigned, or deleted local variables, and assigning, reassigning, or deleting local variables will immediately affect the contents of the returned mapping object.
In an :term:`optimized scope` (including functions, generators, and
coroutines), each call to ``locals()`` instead returns a fresh di... | visible as assigned, reassigned, or deleted local variables, and assigning, reassigning, or deleting local variables will immediately affect the contents of the returned mapping object.
In an :term:`optimized scope` (including functions, generators, and
coroutines), each call to ``locals()`` instead returns a fresh di... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5d38e91c-bc92-4293-9b20-71978c082104 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,128 | supabase-export-v2 | a1acca573f5e69d5 | Return ``True`` if any element of the *iterable* is true. If the iterable is empty, return ``False``. Equivalent to::
def any(iterable):
for element in iterable:
if element:
return True
return False | trusted_official_docs | CPython Docs | Return ``True`` if any element of the *iterable* is true. If the iterable is empty, return ``False``. Equivalent to::
def any(iterable):
for element in iterable:
if element:
return True
return False | Return ``True`` if any element of the *iterable* is true. If the iterable is empty, return ``False``. Equivalent to::
def any(iterable):
for element in iterable:
if element:
return True
return False | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5d6cc1fe-678e-4855-ad8d-8337478205b9 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,140 | supabase-export-v2 | de617371d1c96f2a | ``True``. The :class:`bool` class is a subclass of :class:`int` (see :ref:`typesnumeric`). It cannot be subclassed further. Its only instances are ``False`` and ``True`` (see :ref:`typebool`).
.. index:: pair: Boolean; type | trusted_official_docs | CPython Docs | ``True``. The :class:`bool` class is a subclass of :class:`int` (see :ref:`typesnumeric`). It cannot be subclassed further. Its only instances are ``False`` and ``True`` (see :ref:`typebool`).
.. index:: pair: Boolean; type | ``True``. The :class:`bool` class is a subclass of :class:`int` (see :ref:`typesnumeric`). It cannot be subclassed further. Its only instances are ``False`` and ``True`` (see :ref:`typebool`).
.. index:: pair: Boolean; type | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5dd54109-d885-4271-a52e-8eaccfd7cd40 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,663 | supabase-export-v2 | b85c4dcf9f811225 | _temp = __import__('spam.ham', globals(), locals(), ['eggs', 'sausage'], 0) eggs = _temp.eggs saus = _temp.sausage
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. | trusted_official_docs | CPython Docs | _temp = __import__('spam.ham', globals(), locals(), ['eggs', 'sausage'], 0) eggs = _temp.eggs saus = _temp.sausage
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. | _temp = __import__('spam.ham', globals(), locals(), ['eggs', 'sausage'], 0) eggs = _temp.eggs saus = _temp.sausage
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. | python, official-docs, cpython, P0 | Local_Trusted_Corpus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.