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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b3c3400c-7470-4535-808b-ee5d3e1866eb | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,482 | supabase-export-v2 | 2737614ce1f40eb9 | Return a property attribute.
*fget* is a function for getting an attribute value. *fset* is a function
for setting an attribute value. *fdel* is a function for deleting an attribute
value. And *doc* creates a docstring for the attribute. | trusted_official_docs | CPython Docs | Return a property attribute.
*fget* is a function for getting an attribute value. *fset* is a function
for setting an attribute value. *fdel* is a function for deleting an attribute
value. And *doc* creates a docstring for the attribute. | Return a property attribute.
*fget* is a function for getting an attribute value. *fset* is a function
for setting an attribute value. *fdel* is a function for deleting an attribute
value. And *doc* creates a docstring for the attribute. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b4e08222-00a7-451a-8610-07790f7801d9 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,171 | supabase-export-v2 | 4fef209c09730e9a | 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::
class C:
@classmethod
def f(cls, arg1, arg2): ... | trusted_official_docs | CPython Docs | 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::
class C:
@classmethod
def f(cls, arg1, arg2): ... | 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::
class C:
@classmethod
def f(cls, arg1, arg2): ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b4f2b4e4-c1e7-43f3-8f05-83ba84d33e55 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,425 | supabase-export-v2 | 4527ccbe2856ac8a | a corresponding :term:`file object`. If the file cannot be opened, an :exc:`OSError` is raised. See :ref:`tut-files` for more examples of how to use this function.
*file* is a :term:`path-like object` giving the pathname (absolute or
relative to the current working directory) of the file to be opened or an
integer fi... | trusted_official_docs | CPython Docs | a corresponding :term:`file object`. If the file cannot be opened, an :exc:`OSError` is raised. See :ref:`tut-files` for more examples of how to use this function.
*file* is a :term:`path-like object` giving the pathname (absolute or
relative to the current working directory) of the file to be opened or an
integer fi... | a corresponding :term:`file object`. If the file cannot be opened, an :exc:`OSError` is raised. See :ref:`tut-files` for more examples of how to use this function.
*file* is a :term:`path-like object` giving the pathname (absolute or
relative to the current working directory) of the file to be opened or an
integer fi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b55c4a5a-d27b-420c-9f0e-039c69c773c8 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,524 | supabase-export-v2 | daa7b439c44eee04 | 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.
For other containers see the built-in :class:`frozenset`, :class:`list`,
:class:`tuple`, and :class:`dict` classes, as well as the :mo... | trusted_official_docs | CPython Docs | 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.
For other containers see the built-in :class:`frozenset`, :class:`list`,
:class:`tuple`, and :class:`dict` classes, as well as the :mo... | 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.
For other containers see the built-in :class:`frozenset`, :class:`list`,
:class:`tuple`, and :class:`dict` classes, as well as the :mo... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b582f55c-3d58-46c7-8cf2-cc80efb97041 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,633 | supabase-export-v2 | dbd6b8a4570f7de4 | by design, and sometimes because of a bug in the code that prepared these iterables. Python offers three different approaches to dealing with this issue:
* By default, :func:`zip` stops when the shortest iterable is exhausted. It will ignore the remaining items in the longer iterables, cutting off
the result to the le... | trusted_official_docs | CPython Docs | by design, and sometimes because of a bug in the code that prepared these iterables. Python offers three different approaches to dealing with this issue:
* By default, :func:`zip` stops when the shortest iterable is exhausted. It will ignore the remaining items in the longer iterables, cutting off
the result to the le... | by design, and sometimes because of a bug in the code that prepared these iterables. Python offers three different approaches to dealing with this issue:
* By default, :func:`zip` stops when the shortest iterable is exhausted. It will ignore the remaining items in the longer iterables, cutting off
the result to the le... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b698b203-6544-4284-a340-ffe43a4d4277 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,249 | supabase-export-v2 | aa12f475eddf3331 | :func:`globals` and :func:`locals` functions return the current global and local dictionary, respectively, which may be useful to pass around for use by :func:`eval` or :func:`exec`.
If the given source is a string, then leading and trailing spaces and tabs
are stripped. | trusted_official_docs | CPython Docs | :func:`globals` and :func:`locals` functions return the current global and local dictionary, respectively, which may be useful to pass around for use by :func:`eval` or :func:`exec`.
If the given source is a string, then leading and trailing spaces and tabs
are stripped. | :func:`globals` and :func:`locals` functions return the current global and local dictionary, respectively, which may be useful to pass around for use by :func:`eval` or :func:`exec`.
If the given source is a string, then leading and trailing spaces and tabs
are stripped. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b6eccf5c-7a96-471b-8202-93d354e359ed | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,443 | supabase-export-v2 | ea13da16599e4370 | or ``'\n'``, no translation takes place. If *newline* is any of the other legal values, any ``'\n'`` characters written are translated to the given string.
If *closefd* is ``False`` and a file descriptor rather than a filename was
given, the underlying file descriptor will be kept open when the file is
closed. If a f... | trusted_official_docs | CPython Docs | or ``'\n'``, no translation takes place. If *newline* is any of the other legal values, any ``'\n'`` characters written are translated to the given string.
If *closefd* is ``False`` and a file descriptor rather than a filename was
given, the underlying file descriptor will be kept open when the file is
closed. If a f... | or ``'\n'``, no translation takes place. If *newline* is any of the other legal values, any ``'\n'`` characters written are translated to the given string.
If *closefd* is ``False`` and a file descriptor rather than a filename was
given, the underlying file descriptor will be kept open when the file is
closed. If a f... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b91a7762-7aeb-4f8c-beb7-570797b19926 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,357 | supabase-export-v2 | 9279c5f5cf5b1d5c | The integer type is described in :ref:`typesnumeric`.
.. versionchanged:: 3.4
If *base* is not an instance of :class:`int` and the *base* object 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__... | trusted_official_docs | CPython Docs | The integer type is described in :ref:`typesnumeric`.
.. versionchanged:: 3.4
If *base* is not an instance of :class:`int` and the *base* object 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__... | The integer type is described in :ref:`typesnumeric`.
.. versionchanged:: 3.4
If *base* is not an instance of :class:`int` and the *base* object 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__... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b9d9514c-2d0e-40a3-9a8d-0ccc6e82e1f0 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,589 | supabase-export-v2 | 4301473d7f535532 | delegates method calls to a parent or sibling class of *type*. This is useful for accessing inherited methods that have been overridden in a class.
The *object_or_type* determines the :term:`method resolution order`
to be searched. The search starts from the class right after the
*type*. | trusted_official_docs | CPython Docs | delegates method calls to a parent or sibling class of *type*. This is useful for accessing inherited methods that have been overridden in a class.
The *object_or_type* determines the :term:`method resolution order`
to be searched. The search starts from the class right after the
*type*. | delegates method calls to a parent or sibling class of *type*. This is useful for accessing inherited methods that have been overridden in a class.
The *object_or_type* determines the :term:`method resolution order`
to be searched. The search starts from the class right after the
*type*. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ba295192-b0e7-4dfa-95c5-dc6f308a039b | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,638 | supabase-export-v2 | d1cc5d7bdaf035f9 | Unlike the default behavior, it raises a :exc:`ValueError` if one iterable is exhausted before the others:
>>> for item in zip(range(3), ['fee', 'fi', 'fo', 'fum'], strict=True): # doctest: +SKIP
... print(item)
... (0, 'fee')
(1, 'fi')
(2, 'fo')
Traceback (most recent call last):
... ValueError: zip() argument 2... | trusted_official_docs | CPython Docs | Unlike the default behavior, it raises a :exc:`ValueError` if one iterable is exhausted before the others:
>>> for item in zip(range(3), ['fee', 'fi', 'fo', 'fum'], strict=True): # doctest: +SKIP
... print(item)
... (0, 'fee')
(1, 'fi')
(2, 'fo')
Traceback (most recent call last):
... ValueError: zip() argument 2... | Unlike the default behavior, it raises a :exc:`ValueError` if one iterable is exhausted before the others:
>>> for item in zip(range(3), ['fee', 'fi', 'fo', 'fum'], strict=True): # doctest: +SKIP
... print(item)
... (0, 'fee')
(1, 'fi')
(2, 'fo')
Traceback (most recent call last):
... ValueError: zip() argument 2... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ba83f761-8ac1-4d46-9d04-3e1ea5c65ae7 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,264 | supabase-export-v2 | 2e2c23da19db5951 | statements may not be used outside of function definitions even within the context of code passed to the :func:`exec` function. The return value is ``None``.
In all cases, if the optional parts are omitted, the code is executed in the
current scope. If only *globals* is provided, it must be a dictionary
(and not a su... | trusted_official_docs | CPython Docs | statements may not be used outside of function definitions even within the context of code passed to the :func:`exec` function. The return value is ``None``.
In all cases, if the optional parts are omitted, the code is executed in the
current scope. If only *globals* is provided, it must be a dictionary
(and not a su... | statements may not be used outside of function definitions even within the context of code passed to the :func:`exec` function. The return value is ``None``.
In all cases, if the optional parts are omitted, the code is executed in the
current scope. If only *globals* is provided, it must be a dictionary
(and not a su... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bac24c6e-0216-4573-a29d-31da70a537d5 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,245 | supabase-export-v2 | e794ba9baef4c7f2 | to the *globals* dictionary. If both mappings are omitted, the source is executed with the *globals* and *locals* in the environment where :func:`eval` is called.
Note, *eval()* will only have access to the
:term:`nested scopes <nested scope>` (non-locals) in the enclosing
environment if they are already referenced i... | trusted_official_docs | CPython Docs | to the *globals* dictionary. If both mappings are omitted, the source is executed with the *globals* and *locals* in the environment where :func:`eval` is called.
Note, *eval()* will only have access to the
:term:`nested scopes <nested scope>` (non-locals) in the enclosing
environment if they are already referenced i... | to the *globals* dictionary. If both mappings are omitted, the source is executed with the *globals* and *locals* in the environment where :func:`eval` is called.
Note, *eval()* will only have access to the
:term:`nested scopes <nested scope>` (non-locals) in the enclosing
environment if they are already referenced i... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bb31188b-7fec-4ba8-b64f-90f726724b42 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,151 | supabase-export-v2 | 5ce268f068ef7bc7 | The optional *source* parameter can be used to initialize the array in a few different ways:
* 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`. | trusted_official_docs | CPython Docs | The optional *source* parameter can be used to initialize the array in a few different ways:
* 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`. | The optional *source* parameter can be used to initialize the array in a few different ways:
* 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`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bb8f7832-8166-4c68-a521-d113451f9121 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,469 | supabase-export-v2 | 66bced9d9cf26958 | Whereas, for a negative base of type :class:`int` or :class:`float` with an integral exponent, a float result is delivered. For example, ``pow(-9, 2.0)`` returns ``81.0``.
For :class:`int` operands *base* and *exp*, if *mod* is present, *mod* must
also be of integer type and *mod* must be nonzero. If *mod* is present ... | trusted_official_docs | CPython Docs | Whereas, for a negative base of type :class:`int` or :class:`float` with an integral exponent, a float result is delivered. For example, ``pow(-9, 2.0)`` returns ``81.0``.
For :class:`int` operands *base* and *exp*, if *mod* is present, *mod* must
also be of integer type and *mod* must be nonzero. If *mod* is present ... | Whereas, for a negative base of type :class:`int` or :class:`float` with an integral exponent, a float result is delivered. For example, ``pow(-9, 2.0)`` returns ``81.0``.
For :class:`int` operands *base* and *exp*, if *mod* is present, *mod* must
also be of integer type and *mod* must be nonzero. If *mod* is present ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
be1cc564-bb56-42ea-9dbb-7b21264d676b | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,133 | supabase-export-v2 | 857564df9d67be12 | a valid Python expression. If *integer* is not a Python :class:`int` object, it has to define an :meth:`~object.__index__` method that returns an integer. Some examples:
>>> bin(3)
'0b11'
>>> bin(-10)
'-0b1010' | trusted_official_docs | CPython Docs | a valid Python expression. If *integer* is not a Python :class:`int` object, it has to define an :meth:`~object.__index__` method that returns an integer. Some examples:
>>> bin(3)
'0b11'
>>> bin(-10)
'-0b1010' | a valid Python expression. If *integer* is not a Python :class:`int` object, it has to define an :meth:`~object.__index__` method that returns an integer. Some examples:
>>> bin(3)
'0b11'
>>> bin(-10)
'-0b1010' | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c0fc364a-b85d-42a9-ae85-e23bf8d8a296 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,203 | supabase-export-v2 | c0385c8f51186ff9 | More precisely, the input must conform to the :token:`~float:complexvalue` production rule in the following grammar, after parentheses and leading and trailing whitespace characters are removed:
.. productionlist:: float
complexvalue: `floatvalue` |
: `floatvalue` ("j" | "J") |
: `floatvalue` `sign` `absfloatvalue` ... | trusted_official_docs | CPython Docs | More precisely, the input must conform to the :token:`~float:complexvalue` production rule in the following grammar, after parentheses and leading and trailing whitespace characters are removed:
.. productionlist:: float
complexvalue: `floatvalue` |
: `floatvalue` ("j" | "J") |
: `floatvalue` `sign` `absfloatvalue` ... | More precisely, the input must conform to the :token:`~float:complexvalue` production rule in the following grammar, after parentheses and leading and trailing whitespace characters are removed:
.. productionlist:: float
complexvalue: `floatvalue` |
: `floatvalue` ("j" | "J") |
: `floatvalue` `sign` `absfloatvalue` ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c1f1b0ee-2583-4a8d-8e43-956fb559b1f6 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,174 | supabase-export-v2 | ba4eb17a76764561 | except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument.
Class methods are different than C++ or Java static methods. If you want those,
see :func:`staticmethod` in this section. For more information on class methods, see :ref:`types`. | trusted_official_docs | CPython Docs | except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument.
Class methods are different than C++ or Java static methods. If you want those,
see :func:`staticmethod` in this section. For more information on class methods, see :ref:`types`. | except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument.
Class methods are different than C++ or Java static methods. If you want those,
see :func:`staticmethod` in this section. For more information on class methods, see :ref:`types`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c4678a2f-a239-4aee-8ed2-ebd5d27a6bc5 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,467 | supabase-export-v2 | 8c56fcb1080fd0dc | .. function:: pow(base, exp, mod=None)
Return *base* to the power *exp*; if *mod* is present, return *base* to the
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``. | trusted_official_docs | CPython Docs | .. function:: pow(base, exp, mod=None)
Return *base* to the power *exp*; if *mod* is present, return *base* to the
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``. | .. function:: pow(base, exp, mod=None)
Return *base* to the power *exp*; if *mod* is present, return *base* to the
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``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c54cce4f-4770-4592-b9fc-3d5df4f5d5fc | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,173 | supabase-export-v2 | 22b2922bd4bcf829 | The ``@classmethod`` form is a function :term:`decorator` -- see :ref:`function` for details.
A class method can be called either on the class (such as ``C.f()``) or on an instance (such
as ``C().f()``). The instance is ignored except for its class. If a class
method is called for a derived class, the derived class o... | trusted_official_docs | CPython Docs | The ``@classmethod`` form is a function :term:`decorator` -- see :ref:`function` for details.
A class method can be called either on the class (such as ``C.f()``) or on an instance (such
as ``C().f()``). The instance is ignored except for its class. If a class
method is called for a derived class, the derived class o... | The ``@classmethod`` form is a function :term:`decorator` -- see :ref:`function` for details.
A class method can be called either on the class (such as ``C.f()``) or on an instance (such
as ``C().f()``). The instance is ignored except for its class. If a class
method is called for a derived class, the derived class o... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c5625c8f-5a77-485a-98ac-af077d7bfd44 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,327 | supabase-export-v2 | b1f3b9245c0d6fd7 | This function is added to the built-in namespace by the :mod:`site` module.
.. versionchanged:: 3.4
Changes to :mod:`pydoc` and :mod:`inspect` mean that the reported
signatures for callables are now more comprehensive and consistent. | trusted_official_docs | CPython Docs | This function is added to the built-in namespace by the :mod:`site` module.
.. versionchanged:: 3.4
Changes to :mod:`pydoc` and :mod:`inspect` mean that the reported
signatures for callables are now more comprehensive and consistent. | This function is added to the built-in namespace by the :mod:`site` module.
.. versionchanged:: 3.4
Changes to :mod:`pydoc` and :mod:`inspect` mean that the reported
signatures for callables are now more comprehensive and consistent. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c57e8021-9f44-4fd8-94ac-7ece03dcb2f1 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,515 | supabase-export-v2 | 8cb6ccd50a7544af | .. function:: reversed(object, /)
Return a reverse :term:`iterator`. The argument must be an object which has
a :meth:`~object.__reversed__` method or supports the sequence protocol (the
:meth:`~object.__len__` method and the :meth:`~object.__getitem__` method
with integer arguments starting at ``0``). | trusted_official_docs | CPython Docs | .. function:: reversed(object, /)
Return a reverse :term:`iterator`. The argument must be an object which has
a :meth:`~object.__reversed__` method or supports the sequence protocol (the
:meth:`~object.__len__` method and the :meth:`~object.__getitem__` method
with integer arguments starting at ``0``). | .. function:: reversed(object, /)
Return a reverse :term:`iterator`. The argument must be an object which has
a :meth:`~object.__reversed__` method or supports the sequence protocol (the
:meth:`~object.__len__` method and the :meth:`~object.__getitem__` method
with integer arguments starting at ``0``). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c58ed5d8-b5d4-49cf-ade9-c64b6f40ed1e | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,154 | supabase-export-v2 | f15d0e79c063d177 | If it is an object conforming to the :ref:`buffer interface <bufferobjects>`, a read-only buffer of the object will be used to initialize the bytes array.
* If it is an *iterable*, it must be an iterable of integers in the range
``0 <= x < 256``, which are used as the initial contents of the array. | trusted_official_docs | CPython Docs | If it is an object conforming to the :ref:`buffer interface <bufferobjects>`, a read-only buffer of the object will be used to initialize the bytes array.
* If it is an *iterable*, it must be an iterable of integers in the range
``0 <= x < 256``, which are used as the initial contents of the array. | If it is an object conforming to the :ref:`buffer interface <bufferobjects>`, a read-only buffer of the object will be used to initialize the bytes array.
* If it is an *iterable*, it must be an iterable of integers in the range
``0 <= x < 256``, which are used as the initial contents of the array. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c66fb7d8-5303-4984-9cfd-5704bf3195a2 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,613 | supabase-export-v2 | ca2ccdb64c403b8d | * :ref:`Documentation on attributes and methods on classes <class-attrs-and-methods>`. * :ref:`bltin-type-objects`
Keyword arguments provided to the three argument form are passed to the
appropriate metaclass machinery (usually :meth:`~object.__init_subclass__`)
in the same way that keywords in a class
definition (b... | trusted_official_docs | CPython Docs | * :ref:`Documentation on attributes and methods on classes <class-attrs-and-methods>`. * :ref:`bltin-type-objects`
Keyword arguments provided to the three argument form are passed to the
appropriate metaclass machinery (usually :meth:`~object.__init_subclass__`)
in the same way that keywords in a class
definition (b... | * :ref:`Documentation on attributes and methods on classes <class-attrs-and-methods>`. * :ref:`bltin-type-objects`
Keyword arguments provided to the three argument form are passed to the
appropriate metaclass machinery (usually :meth:`~object.__init_subclass__`)
in the same way that keywords in a class
definition (b... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c78d5dc5-f751-4920-adc6-29a80e985af4 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,175 | supabase-export-v2 | 89479bfea25d4998 | are different than C++ or Java static methods. If you want those, see :func:`staticmethod` in this section. For more information on class methods, see :ref:`types`.
.. versionchanged:: 3.9
Class methods can now wrap other :term:`descriptors <descriptor>` such as
:func:`property`. | trusted_official_docs | CPython Docs | are different than C++ or Java static methods. If you want those, see :func:`staticmethod` in this section. For more information on class methods, see :ref:`types`.
.. versionchanged:: 3.9
Class methods can now wrap other :term:`descriptors <descriptor>` such as
:func:`property`. | are different than C++ or Java static methods. If you want those, see :func:`staticmethod` in this section. For more information on class methods, see :ref:`types`.
.. versionchanged:: 3.9
Class methods can now wrap other :term:`descriptors <descriptor>` such as
:func:`property`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c7b0b129-f91a-4709-bc98-0e4072c6f1c2 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,527 | supabase-export-v2 | 950450d56cdd3860 | attribute. The function assigns the value to the attribute, provided the object allows it. For example, ``setattr(x, 'foobar', 123)`` is equivalent to ``x.foobar = 123``.
*name* need not be a Python identifier as defined in :ref:`identifiers`
unless the object chooses to enforce that, for example in a custom
:meth:`~... | trusted_official_docs | CPython Docs | attribute. The function assigns the value to the attribute, provided the object allows it. For example, ``setattr(x, 'foobar', 123)`` is equivalent to ``x.foobar = 123``.
*name* need not be a Python identifier as defined in :ref:`identifiers`
unless the object chooses to enforce that, for example in a custom
:meth:`~... | attribute. The function assigns the value to the attribute, provided the object allows it. For example, ``setattr(x, 'foobar', 123)`` is equivalent to ``x.foobar = 123``.
*name* need not be a Python identifier as defined in :ref:`identifiers`
unless the object chooses to enforce that, for example in a custom
:meth:`~... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c7dbad8b-5e1f-4113-a6f4-32398ddbdce2 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,458 | supabase-export-v2 | e3316e85511bc0c7 | .. versionchanged:: 3.5
* If the system call is interrupted and the signal handler does not raise an
exception, the function now retries the system call instead of raising an
:exc:`InterruptedError` exception (see :pep:`475` for the rationale). * The ``'namereplace'`` error handler was added. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.5
* If the system call is interrupted and the signal handler does not raise an
exception, the function now retries the system call instead of raising an
:exc:`InterruptedError` exception (see :pep:`475` for the rationale). * The ``'namereplace'`` error handler was added. | .. versionchanged:: 3.5
* If the system call is interrupted and the signal handler does not raise an
exception, the function now retries the system call instead of raising an
:exc:`InterruptedError` exception (see :pep:`475` for the rationale). * The ``'namereplace'`` error handler was added. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c804ec7a-96ce-430f-acbb-ff032f9f9dac | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,540 | supabase-export-v2 | 0823cab333ce0041 | Sentinel objects support the :ref:`| <bitwise>` operator for use in type expressions.
:mod:`Pickling <pickle>` is supported for sentinel objects that are
placed in the global scope of a module under a name matching the sentinel's
name, and for sentinels placed in class scopes with a name matching the
:term:`qualifie... | trusted_official_docs | CPython Docs | Sentinel objects support the :ref:`| <bitwise>` operator for use in type expressions.
:mod:`Pickling <pickle>` is supported for sentinel objects that are
placed in the global scope of a module under a name matching the sentinel's
name, and for sentinels placed in class scopes with a name matching the
:term:`qualifie... | Sentinel objects support the :ref:`| <bitwise>` operator for use in type expressions.
:mod:`Pickling <pickle>` is supported for sentinel objects that are
placed in the global scope of a module under a name matching the sentinel's
name, and for sentinels placed in class scopes with a name matching the
:term:`qualifie... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ca57ca32-503b-4aaa-8630-4d1ecdac3d72 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,393 | supabase-export-v2 | 2e692800481cd74b | the iterables is exhausted before the others, a :exc:`ValueError` is raised. For cases where the function inputs are already arranged into argument tuples, see :func:`itertools.starmap`.
.. versionchanged:: 3.14
Added the *strict* parameter. | trusted_official_docs | CPython Docs | the iterables is exhausted before the others, a :exc:`ValueError` is raised. For cases where the function inputs are already arranged into argument tuples, see :func:`itertools.starmap`.
.. versionchanged:: 3.14
Added the *strict* parameter. | the iterables is exhausted before the others, a :exc:`ValueError` is raised. For cases where the function inputs are already arranged into argument tuples, see :func:`itertools.starmap`.
.. versionchanged:: 3.14
Added the *strict* parameter. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ca7e611f-6194-4ecf-bc92-c92e5dfc3480 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,622 | supabase-export-v2 | 6053f90fbb0a98f1 | Without an argument, :func:`vars` acts like :func:`locals`.
A :exc:`TypeError` exception is raised if an object is specified but
it doesn't have a :attr:`~object.__dict__` attribute (for example, if
its class defines the :attr:`~object.__slots__` attribute). | trusted_official_docs | CPython Docs | Without an argument, :func:`vars` acts like :func:`locals`.
A :exc:`TypeError` exception is raised if an object is specified but
it doesn't have a :attr:`~object.__dict__` attribute (for example, if
its class defines the :attr:`~object.__slots__` attribute). | Without an argument, :func:`vars` acts like :func:`locals`.
A :exc:`TypeError` exception is raised if an object is specified but
it doesn't have a :attr:`~object.__dict__` attribute (for example, if
its class defines the :attr:`~object.__slots__` attribute). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
caa67198-8f08-4818-813d-4dbf9832b752 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,435 | supabase-export-v2 | 8bf507194cdc07ee | the buffer is ``max(min(blocksize, 8 MiB), DEFAULT_BUFFER_SIZE)`` when the device block size is available. On most systems, the buffer will typically be 128 kilobytes long.
* "Interactive" text files (files for which :meth:`~io.IOBase.isatty`
returns ``True``) use line buffering. Other text files use the policy
descr... | trusted_official_docs | CPython Docs | the buffer is ``max(min(blocksize, 8 MiB), DEFAULT_BUFFER_SIZE)`` when the device block size is available. On most systems, the buffer will typically be 128 kilobytes long.
* "Interactive" text files (files for which :meth:`~io.IOBase.isatty`
returns ``True``) use line buffering. Other text files use the policy
descr... | the buffer is ``max(min(blocksize, 8 MiB), DEFAULT_BUFFER_SIZE)`` when the device block size is available. On most systems, the buffer will typically be 128 kilobytes long.
* "Interactive" text files (files for which :meth:`~io.IOBase.isatty`
returns ``True``) use line buffering. Other text files use the policy
descr... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cad645e4-2f72-4867-8855-e6ea099101cc | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,191 | supabase-export-v2 | 5970fe73745faacd | .. note::
When compiling a string with multi-line code in ``'single'`` or
``'eval'`` mode, input must be terminated by at least one newline
character. This is to facilitate detection of incomplete and complete
statements in the :mod:`code` module. | trusted_official_docs | CPython Docs | .. note::
When compiling a string with multi-line code in ``'single'`` or
``'eval'`` mode, input must be terminated by at least one newline
character. This is to facilitate detection of incomplete and complete
statements in the :mod:`code` module. | .. note::
When compiling a string with multi-line code in ``'single'`` or
``'eval'`` mode, input must be terminated by at least one newline
character. This is to facilitate detection of incomplete and complete
statements in the :mod:`code` module. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cd8f780a-93a0-470b-96a9-63f5a43ce1e1 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,113 | supabase-export-v2 | e827b356e5be0c14 | .. function:: abs(number, /)
Return the absolute value of a number. The argument may be an
integer, a floating-point number, or an object implementing
:meth:`~object.__abs__`. If the argument is a complex number, its magnitude is returned. | trusted_official_docs | CPython Docs | .. function:: abs(number, /)
Return the absolute value of a number. The argument may be an
integer, a floating-point number, or an object implementing
:meth:`~object.__abs__`. If the argument is a complex number, its magnitude is returned. | .. function:: abs(number, /)
Return the absolute value of a number. The argument may be an
integer, a floating-point number, or an object implementing
:meth:`~object.__abs__`. If the argument is a complex number, its magnitude is returned. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ce600f15-31b9-41ae-9b4a-44aac022a4a4 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,150 | supabase-export-v2 | ecf1b385ecf79681 | It has most of the usual methods of mutable sequences, described in :ref:`typesseq-mutable`, as well as most methods that the :class:`bytes` type has, see :ref:`bytes-methods`.
The optional *source* parameter can be used to initialize the array in a few
different ways: | trusted_official_docs | CPython Docs | It has most of the usual methods of mutable sequences, described in :ref:`typesseq-mutable`, as well as most methods that the :class:`bytes` type has, see :ref:`bytes-methods`.
The optional *source* parameter can be used to initialize the array in a few
different ways: | It has most of the usual methods of mutable sequences, described in :ref:`typesseq-mutable`, as well as most methods that the :class:`bytes` type has, see :ref:`bytes-methods`.
The optional *source* parameter can be used to initialize the array in a few
different ways: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cf2e6f30-38f6-4438-95f5-20709380756a | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,417 | supabase-export-v2 | b59e6984d5d6f277 | .. function:: oct(integer, /)
Convert an integer number to an octal string prefixed with "0o". The result
is a valid Python expression. If *integer* is not a Python :class:`int` object, it
has to define an :meth:`~object.__index__` method that returns an integer. For
example: | trusted_official_docs | CPython Docs | .. function:: oct(integer, /)
Convert an integer number to an octal string prefixed with "0o". The result
is a valid Python expression. If *integer* is not a Python :class:`int` object, it
has to define an :meth:`~object.__index__` method that returns an integer. For
example: | .. function:: oct(integer, /)
Convert an integer number to an octal string prefixed with "0o". The result
is a valid Python expression. If *integer* is not a Python :class:`int` object, it
has to define an :meth:`~object.__index__` method that returns an integer. For
example: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cf6b0fa5-86d9-4392-bfaa-44457016465f | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,205 | supabase-export-v2 | 15b408b9a4a4ed13 | delegates to ``x.__complex__()``. If :meth:`~object.__complex__` is not defined then it falls back to :meth:`~object.__float__`. If :meth:`!__float__` is not defined then it falls back to :meth:`~object.__index__`.
If two arguments are provided or keyword arguments are used, each argument
may be any numeric type (incl... | trusted_official_docs | CPython Docs | delegates to ``x.__complex__()``. If :meth:`~object.__complex__` is not defined then it falls back to :meth:`~object.__float__`. If :meth:`!__float__` is not defined then it falls back to :meth:`~object.__index__`.
If two arguments are provided or keyword arguments are used, each argument
may be any numeric type (incl... | delegates to ``x.__complex__()``. If :meth:`~object.__complex__` is not defined then it falls back to :meth:`~object.__float__`. If :meth:`!__float__` is not defined then it falls back to :meth:`~object.__index__`.
If two arguments are provided or keyword arguments are used, each argument
may be any numeric type (incl... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d00d188d-b7ef-461e-a7f1-5ce6e73ec56f | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,564 | supabase-export-v2 | 08f8963d9590eb6b | rely on a different underlying method. Implementing all six comparisons also helps avoid confusion for mixed type comparisons which can call the reflected :meth:`~object.__gt__` method.
For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`. | trusted_official_docs | CPython Docs | rely on a different underlying method. Implementing all six comparisons also helps avoid confusion for mixed type comparisons which can call the reflected :meth:`~object.__gt__` method.
For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`. | rely on a different underlying method. Implementing all six comparisons also helps avoid confusion for mixed type comparisons which can call the reflected :meth:`~object.__gt__` method.
For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d308a59f-af7d-4715-a3f8-b464aa0772b0 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,571 | supabase-export-v2 | 44f56dd16ae6f1f0 | an instance (such as ``C().f()``). Moreover, the static method :term:`descriptor` is also callable, so it can be used in the class definition (such as ``f()``).
Static methods in Python are similar to those found in Java or C++. Also, see
:func:`classmethod` for a variant that is useful for creating alternate class
c... | trusted_official_docs | CPython Docs | an instance (such as ``C().f()``). Moreover, the static method :term:`descriptor` is also callable, so it can be used in the class definition (such as ``f()``).
Static methods in Python are similar to those found in Java or C++. Also, see
:func:`classmethod` for a variant that is useful for creating alternate class
c... | an instance (such as ``C().f()``). Moreover, the static method :term:`descriptor` is also callable, so it can be used in the class definition (such as ``f()``).
Static methods in Python are similar to those found in Java or C++. Also, see
:func:`classmethod` for a variant that is useful for creating alternate class
c... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d3ad6abe-09a2-4466-b357-5a1a227ed83d | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,420 | supabase-export-v2 | 021160b72d35fa9a | 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.
>>> '%#o' % 10, '%o' % 10
('0o12', '12')
>>> format(10, '#o'), format(10, 'o')
('0o12', '12')
>>> f'{10:#o}', f'{10:o}'
('0o12', '12') | trusted_official_docs | CPython Docs | 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.
>>> '%#o' % 10, '%o' % 10
('0o12', '12')
>>> format(10, '#o'), format(10, 'o')
('0o12', '12')
>>> f'{10:#o}', f'{10:o}'
('0o12', '12') | 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.
>>> '%#o' % 10, '%o' % 10
('0o12', '12')
>>> format(10, '#o'), format(10, 'o')
('0o12', '12')
>>> f'{10:#o}', f'{10:o}'
('0o12', '12') | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d3c61789-d911-44e4-a2de-ec806436c103 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,193 | supabase-export-v2 | c79fb087b3dcf0b7 | .. warning::
It is possible to crash the Python interpreter with a
sufficiently large/complex string when compiling to an AST
object due to stack depth limitations in Python's AST compiler. | trusted_official_docs | CPython Docs | .. warning::
It is possible to crash the Python interpreter with a
sufficiently large/complex string when compiling to an AST
object due to stack depth limitations in Python's AST compiler. | .. warning::
It is possible to crash the Python interpreter with a
sufficiently large/complex string when compiling to an AST
object due to stack depth limitations in Python's AST compiler. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d66a21b3-64d2-4b19-8682-8e56cf16198b | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,385 | supabase-export-v2 | 6868a008b828c18b | When using ``exec()`` or ``eval()`` with separate local and global arguments, it returns the local namespace passed in to the function call.
In all of the above cases, each call to ``locals()`` in a given frame of
execution will return the *same* mapping object. Changes made through
the mapping object returned from `... | trusted_official_docs | CPython Docs | When using ``exec()`` or ``eval()`` with separate local and global arguments, it returns the local namespace passed in to the function call.
In all of the above cases, each call to ``locals()`` in a given frame of
execution will return the *same* mapping object. Changes made through
the mapping object returned from `... | When using ``exec()`` or ``eval()`` with separate local and global arguments, it returns the local namespace passed in to the function call.
In all of the above cases, each call to ``locals()`` in a given frame of
execution will return the *same* mapping object. Changes made through
the mapping object returned from `... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d6a43d0b-0a8a-46b6-a25d-9930badf474f | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,521 | supabase-export-v2 | f3674650a2702540 | .. note::
The behavior of :func:`round` for floats can be surprising: for example,
``round(2.675, 2)`` gives ``2.67`` instead of the expected ``2.68``. This is 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. | trusted_official_docs | CPython Docs | .. note::
The behavior of :func:`round` for floats can be surprising: for example,
``round(2.675, 2)`` gives ``2.67`` instead of the expected ``2.68``. This is 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. | .. note::
The behavior of :func:`round` for floats can be surprising: for example,
``round(2.675, 2)`` gives ``2.67`` instead of the expected ``2.68``. This is 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. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d7d16594-dcd9-4663-9d95-12c75e3fce90 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,296 | supabase-export-v2 | d5e7f6c7c5267228 | 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:`~object.__index__`.
See also :meth:`float.from_number` which only accepts a numeric argument. | trusted_official_docs | CPython Docs | 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:`~object.__index__`.
See also :meth:`float.from_number` which only accepts a numeric argument. | 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:`~object.__index__`.
See also :meth:`float.from_number` which only accepts a numeric argument. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d7faa6f6-9879-46a2-9237-9597b0985a2b | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,406 | supabase-export-v2 | f9770fdb8da3fa0c | :term:`iterable`. The smallest item in the iterable is returned. If two or more positional arguments are provided, the smallest of the positional arguments is returned.
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 smallest item in the iterable is returned. If two or more positional arguments are provided, the smallest 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 smallest item in the iterable is returned. If two or more positional arguments are provided, the smallest 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 | |
d85d1b69-6a68-4644-a11b-fcd2223951cb | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,111 | supabase-export-v2 | ae0c23c876816fc5 | using :func:`dict` would create a link to another page, so local targets are used, with replacement texts to make the output in the table consistent
.. |func-dict| replace:: ``dict()``
.. |func-frozenset| replace:: ``frozenset()``
.. |func-memoryview| replace:: ``memoryview()``
.. |func-set| replace:: ``set()``
.. |fun... | trusted_official_docs | CPython Docs | using :func:`dict` would create a link to another page, so local targets are used, with replacement texts to make the output in the table consistent
.. |func-dict| replace:: ``dict()``
.. |func-frozenset| replace:: ``frozenset()``
.. |func-memoryview| replace:: ``memoryview()``
.. |func-set| replace:: ``set()``
.. |fun... | using :func:`dict` would create a link to another page, so local targets are used, with replacement texts to make the output in the table consistent
.. |func-dict| replace:: ``dict()``
.. |func-frozenset| replace:: ``frozenset()``
.. |func-memoryview| replace:: ``memoryview()``
.. |func-set| replace:: ``set()``
.. |fun... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d935a7fd-f35a-4287-aa94-4a1ec17bd9e0 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,216 | supabase-export-v2 | 96d9ad88a0132707 | Create a new dictionary. The :class:`dict` object is the dictionary class. See :class:`dict` and :ref:`typesmapping` for documentation about this class.
For other containers see the built-in :class:`list`, :class:`set`, and
:class:`tuple` classes, as well as the :mod:`collections` module. | trusted_official_docs | CPython Docs | Create a new dictionary. The :class:`dict` object is the dictionary class. See :class:`dict` and :ref:`typesmapping` for documentation about this class.
For other containers see the built-in :class:`list`, :class:`set`, and
:class:`tuple` classes, as well as the :mod:`collections` module. | Create a new dictionary. The :class:`dict` object is the dictionary class. See :class:`dict` and :ref:`typesmapping` for documentation about this class.
For other containers see the built-in :class:`list`, :class:`set`, and
:class:`tuple` classes, as well as the :mod:`collections` module. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d94742cc-4679-4876-bfa6-5c8b3e260e85 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,248 | supabase-export-v2 | 8c63fff8bd70d5c3 | code object instead of a string. If the code object has been compiled with ``'exec'`` as the *mode* argument, :func:`eval`\'s return value will be ``None``.
Hints: dynamic execution of statements is supported by the :func:`exec`
function. The :func:`globals` and :func:`locals` functions
return the current global and ... | trusted_official_docs | CPython Docs | code object instead of a string. If the code object has been compiled with ``'exec'`` as the *mode* argument, :func:`eval`\'s return value will be ``None``.
Hints: dynamic execution of statements is supported by the :func:`exec`
function. The :func:`globals` and :func:`locals` functions
return the current global and ... | code object instead of a string. If the code object has been compiled with ``'exec'`` as the *mode* argument, :func:`eval`\'s return value will be ``None``.
Hints: dynamic execution of statements is supported by the :func:`exec`
function. The :func:`globals` and :func:`locals` functions
return the current global and ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d96ea079-de8f-43ce-8a17-d4a92713e9ac | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,641 | supabase-export-v2 | 38e4837fd144f297 | argument, any bug that results in iterables of different lengths will be silenced, possibly manifesting as a hard-to-find bug in another part of the program.
* Shorter iterables can be padded with a constant value to make all the
iterables have the same length. This is done by
:func:`itertools.zip_longest`. | trusted_official_docs | CPython Docs | argument, any bug that results in iterables of different lengths will be silenced, possibly manifesting as a hard-to-find bug in another part of the program.
* Shorter iterables can be padded with a constant value to make all the
iterables have the same length. This is done by
:func:`itertools.zip_longest`. | argument, any bug that results in iterables of different lengths will be silenced, possibly manifesting as a hard-to-find bug in another part of the program.
* Shorter iterables can be padded with a constant value to make all the
iterables have the same length. This is done by
:func:`itertools.zip_longest`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dad6b07d-8560-45e7-b868-2943e88e4708 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,309 | supabase-export-v2 | 6886c93369328709 | .. _func-frozenset: .. class:: frozenset(iterable=(), /) :noindex:
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. | trusted_official_docs | CPython Docs | .. _func-frozenset: .. class:: frozenset(iterable=(), /) :noindex:
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. | .. _func-frozenset: .. class:: frozenset(iterable=(), /) :noindex:
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. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dbb90d84-0211-45bd-8c44-8577103208ad | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,413 | supabase-export-v2 | 04ee07555325ac7d | .. class:: object()
This is the ultimate base class of all other classes. It has methods
that are common to all instances of Python classes. When the constructor
is called, it returns a new featureless object. The constructor does not
accept any arguments. | trusted_official_docs | CPython Docs | .. class:: object()
This is the ultimate base class of all other classes. It has methods
that are common to all instances of Python classes. When the constructor
is called, it returns a new featureless object. The constructor does not
accept any arguments. | .. class:: object()
This is the ultimate base class of all other classes. It has methods
that are common to all instances of Python classes. When the constructor
is called, it returns a new featureless object. The constructor does not
accept any arguments. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dbf7d2b6-6691-4248-8979-04c518c30e62 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,642 | supabase-export-v2 | 0e7f49cb88324d66 | * Shorter iterables can be padded with a constant value to make all the iterables have the same length. This is done by :func:`itertools.zip_longest`.
Edge cases: With a single iterable argument, :func:`zip` returns an
iterator of 1-tuples. With no arguments, it returns an empty iterator. | trusted_official_docs | CPython Docs | * Shorter iterables can be padded with a constant value to make all the iterables have the same length. This is done by :func:`itertools.zip_longest`.
Edge cases: With a single iterable argument, :func:`zip` returns an
iterator of 1-tuples. With no arguments, it returns an empty iterator. | * Shorter iterables can be padded with a constant value to make all the iterables have the same length. This is done by :func:`itertools.zip_longest`.
Edge cases: With a single iterable argument, :func:`zip` returns an
iterator of 1-tuples. With no arguments, it returns an empty iterator. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dc47dad6-be35-4e81-8f9f-c206bfc08661 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,584 | supabase-export-v2 | e5bbf9c9f968d932 | sequence of strings is by calling ``''.join(sequence)``. To add floating-point values with extended precision, see :func:`math.fsum`\. To concatenate a series of iterables, consider using :func:`itertools.chain`.
.. versionchanged:: 3.8
The *start* parameter can be specified as a keyword argument. | trusted_official_docs | CPython Docs | sequence of strings is by calling ``''.join(sequence)``. To add floating-point values with extended precision, see :func:`math.fsum`\. To concatenate a series of iterables, consider using :func:`itertools.chain`.
.. versionchanged:: 3.8
The *start* parameter can be specified as a keyword argument. | sequence of strings is by calling ``''.join(sequence)``. To add floating-point values with extended precision, see :func:`math.fsum`\. To concatenate a series of iterables, consider using :func:`itertools.chain`.
.. versionchanged:: 3.8
The *start* parameter can be specified as a keyword argument. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dd243bed-116e-42c1-a30b-75b2466cb6b7 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,653 | supabase-export-v2 | b86006ccb4f48256 | not cause issues with code which assumes the default import implementation is in use. Direct use of :func:`__import__` is also discouraged in favor of :func:`importlib.import_module`.
The function imports the module *name*, potentially using the given *globals*
and *locals* to determine how to interpret the name in a ... | trusted_official_docs | CPython Docs | not cause issues with code which assumes the default import implementation is in use. Direct use of :func:`__import__` is also discouraged in favor of :func:`importlib.import_module`.
The function imports the module *name*, potentially using the given *globals*
and *locals* to determine how to interpret the name in a ... | not cause issues with code which assumes the default import implementation is in use. Direct use of :func:`__import__` is also discouraged in favor of :func:`importlib.import_module`.
The function imports the module *name*, potentially using the given *globals*
and *locals* to determine how to interpret the name in a ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dd2788bf-edf9-4f4b-b9dd-9c0fbea0d854 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,304 | supabase-export-v2 | d4c7fe2c256c6e74 | .. function:: format(value, format_spec="", /)
Convert a *value* to a "formatted" representation, as controlled by
*format_spec*. The interpretation of *format_spec* will depend on the type
of the *value* argument; however, there is a standard formatting syntax that
is used by most built-in types: :ref:`formatspec`. | trusted_official_docs | CPython Docs | .. function:: format(value, format_spec="", /)
Convert a *value* to a "formatted" representation, as controlled by
*format_spec*. The interpretation of *format_spec* will depend on the type
of the *value* argument; however, there is a standard formatting syntax that
is used by most built-in types: :ref:`formatspec`. | .. function:: format(value, format_spec="", /)
Convert a *value* to a "formatted" representation, as controlled by
*format_spec*. The interpretation of *format_spec* will depend on the type
of the *value* argument; however, there is a standard formatting syntax that
is used by most built-in types: :ref:`formatspec`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dd4426c4-6805-4c4c-b6f1-5fee22f624ac | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,389 | supabase-export-v2 | ddcf20178ec0f8b0 | Calling ``locals()`` as part of a generator expression is equivalent to calling it in a nested generator function.
.. versionchanged:: 3.12
The behaviour of ``locals()`` in a comprehension has been updated as
described in :pep:`709`. | trusted_official_docs | CPython Docs | Calling ``locals()`` as part of a generator expression is equivalent to calling it in a nested generator function.
.. versionchanged:: 3.12
The behaviour of ``locals()`` in a comprehension has been updated as
described in :pep:`709`. | Calling ``locals()`` as part of a generator expression is equivalent to calling it in a nested generator function.
.. versionchanged:: 3.12
The behaviour of ``locals()`` in a comprehension has been updated as
described in :pep:`709`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dd6a1432-6ae0-4bd7-9901-e0e5f2481886 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,164 | supabase-export-v2 | 8c624cdd48a3d911 | will never succeed. Note that classes are callable (calling a class returns a new instance); instances are callable if their class has a :meth:`~object.__call__` method.
.. versionadded:: 3.2
This function was first removed in Python 3.0 and then brought back
in Python 3.2. | trusted_official_docs | CPython Docs | will never succeed. Note that classes are callable (calling a class returns a new instance); instances are callable if their class has a :meth:`~object.__call__` method.
.. versionadded:: 3.2
This function was first removed in Python 3.0 and then brought back
in Python 3.2. | will never succeed. Note that classes are callable (calling a class returns a new instance); instances are callable if their class has a :meth:`~object.__call__` method.
.. versionadded:: 3.2
This function was first removed in Python 3.0 and then brought back
in Python 3.2. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
de5e32ae-6ae0-4ad3-ae72-257eb43110c6 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,229 | supabase-export-v2 | 066b8eb8f055a860 | names, and its detailed behavior may change across releases. For example, metaclass attributes are not in the result list when the argument is a class.
.. function:: divmod(a, b, /) | trusted_official_docs | CPython Docs | names, and its detailed behavior may change across releases. For example, metaclass attributes are not in the result list when the argument is a class.
.. function:: divmod(a, b, /) | names, and its detailed behavior may change across releases. For example, metaclass attributes are not in the result list when the argument is a class.
.. function:: divmod(a, b, /) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dea719b1-59c3-47bb-bc93-481adcef70dd | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,654 | supabase-export-v2 | bd04fa08007aff9c | The standard implementation does not use its *locals* argument at all and uses its *globals* only to determine the package context of the :keyword:`import` statement.
*level* specifies whether to use absolute or relative imports. ``0`` (the
default) means only perform absolute imports. Positive values for
*level* ind... | trusted_official_docs | CPython Docs | The standard implementation does not use its *locals* argument at all and uses its *globals* only to determine the package context of the :keyword:`import` statement.
*level* specifies whether to use absolute or relative imports. ``0`` (the
default) means only perform absolute imports. Positive values for
*level* ind... | The standard implementation does not use its *locals* argument at all and uses its *globals* only to determine the package context of the :keyword:`import` statement.
*level* specifies whether to use absolute or relative imports. ``0`` (the
default) means only perform absolute imports. Positive values for
*level* ind... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
df9bfdc4-ada0-4bfb-872d-bb46545d8b06 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,599 | supabase-export-v2 | 91f921f6e516877a | to method lookups, :func:`super` also works for attribute lookups. One possible use case for this is calling :term:`descriptors <descriptor>` in a parent or sibling class.
Note that :func:`super` is implemented as part of the binding process for
explicit dotted attribute lookups such as ``super().__getitem__(name)``. ... | trusted_official_docs | CPython Docs | to method lookups, :func:`super` also works for attribute lookups. One possible use case for this is calling :term:`descriptors <descriptor>` in a parent or sibling class.
Note that :func:`super` is implemented as part of the binding process for
explicit dotted attribute lookups such as ``super().__getitem__(name)``. ... | to method lookups, :func:`super` also works for attribute lookups. One possible use case for this is calling :term:`descriptors <descriptor>` in a parent or sibling class.
Note that :func:`super` is implemented as part of the binding process for
explicit dotted attribute lookups such as ``super().__getitem__(name)``. ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dfbb7253-34f1-4fae-a675-96c9de9aa8e0 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,353 | supabase-export-v2 | a7ff007054911e77 | >>> int(123.45) 123 >>> int('123') 123 >>> int(' -12_345\n') -12345 >>> int('FACE', 16) 64206 >>> int('0xface', 0) 64206 >>> int('01110011', base=2) 115
If the argument defines :meth:`~object.__int__`,
``int(x)`` returns ``x.__int__()``. If the argument defines
:meth:`~object.__index__`, it returns ``x.__index__()``.... | trusted_official_docs | CPython Docs | >>> int(123.45) 123 >>> int('123') 123 >>> int(' -12_345\n') -12345 >>> int('FACE', 16) 64206 >>> int('0xface', 0) 64206 >>> int('01110011', base=2) 115
If the argument defines :meth:`~object.__int__`,
``int(x)`` returns ``x.__int__()``. If the argument defines
:meth:`~object.__index__`, it returns ``x.__index__()``.... | >>> int(123.45) 123 >>> int('123') 123 >>> int(' -12_345\n') -12345 >>> int('FACE', 16) 64206 >>> int('0xface', 0) 64206 >>> int('01110011', base=2) 115
If the argument defines :meth:`~object.__int__`,
``int(x)`` returns ``x.__int__()``. If the argument defines
:meth:`~object.__index__`, it returns ``x.__index__()``.... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e008a064-11cd-4c8b-baf7-ab0fba200d1d | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,331 | supabase-export-v2 | 73d866827a6fa180 | >>> hex(255) '0xff' >>> hex(-42) '-0x2a'
If you want to convert an integer number to an uppercase or lower hexadecimal
string with prefix or not, you can use either of the following ways: | trusted_official_docs | CPython Docs | >>> hex(255) '0xff' >>> hex(-42) '-0x2a'
If you want to convert an integer number to an uppercase or lower hexadecimal
string with prefix or not, you can use either of the following ways: | >>> hex(255) '0xff' >>> hex(-42) '-0x2a'
If you want to convert an integer number to an uppercase or lower hexadecimal
string with prefix or not, you can use either of the following ways: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e0d13928-0e04-4c73-bc6d-02b82984f7ff | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,388 | supabase-export-v2 | 1a7ba58871e4d897 | except that the comprehension's initialised iteration variables will be included. In other scopes, it behaves as if the comprehension were running as a nested function.
Calling ``locals()`` as part of a generator expression is equivalent to
calling it in a nested generator function. | trusted_official_docs | CPython Docs | except that the comprehension's initialised iteration variables will be included. In other scopes, it behaves as if the comprehension were running as a nested function.
Calling ``locals()`` as part of a generator expression is equivalent to
calling it in a nested generator function. | except that the comprehension's initialised iteration variables will be included. In other scopes, it behaves as if the comprehension were running as a nested function.
Calling ``locals()`` as part of a generator expression is equivalent to
calling it in a nested generator function. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e22cee56-aea8-4cdd-a531-1a88dd14fc0f | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,576 | supabase-export-v2 | b0a2cbde06c5a542 | For more information on static methods, see :ref:`types`.
.. versionchanged:: 3.10
Static methods now inherit the method attributes
(:attr:`~function.__module__`, :attr:`~function.__name__`,
:attr:`~function.__qualname__`, :attr:`~function.__doc__` and
:attr:`~function.__annotations__`), have a new ``__wrapped__`` ... | trusted_official_docs | CPython Docs | For more information on static methods, see :ref:`types`.
.. versionchanged:: 3.10
Static methods now inherit the method attributes
(:attr:`~function.__module__`, :attr:`~function.__name__`,
:attr:`~function.__qualname__`, :attr:`~function.__doc__` and
:attr:`~function.__annotations__`), have a new ``__wrapped__`` ... | For more information on static methods, see :ref:`types`.
.. versionchanged:: 3.10
Static methods now inherit the method attributes
(:attr:`~function.__module__`, :attr:`~function.__name__`,
:attr:`~function.__qualname__`, :attr:`~function.__doc__` and
:attr:`~function.__annotations__`), have a new ``__wrapped__`` ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e235458e-45c2-4392-a20c-13e10431e353 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,473 | supabase-export-v2 | eb372bea7ee103ba | .. versionchanged:: 3.8 For :class:`int` operands, the three-argument form of ``pow`` now allows the second argument to be negative, permitting computation of modular inverses.
.. versionchanged:: 3.8
Allow keyword arguments. Formerly, only positional arguments were
supported. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.8 For :class:`int` operands, the three-argument form of ``pow`` now allows the second argument to be negative, permitting computation of modular inverses.
.. versionchanged:: 3.8
Allow keyword arguments. Formerly, only positional arguments were
supported. | .. versionchanged:: 3.8 For :class:`int` operands, the three-argument form of ``pow`` now allows the second argument to be negative, permitting computation of modular inverses.
.. versionchanged:: 3.8
Allow keyword arguments. Formerly, only positional arguments were
supported. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e2964dc7-565c-40e0-8cdc-c13eebb5fd22 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,490 | supabase-export-v2 | 691f73e88e4f9064 | 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.
If given, *doc* will be the docstring of the property attribute. Otherwise, the
property will copy *fget*'s docstring (if it exists). This makes it possible to
create read-only properties... | trusted_official_docs | CPython Docs | 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.
If given, *doc* will be the docstring of the property attribute. Otherwise, the
property will copy *fget*'s docstring (if it exists). This makes it possible to
create read-only properties... | 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.
If given, *doc* will be the docstring of the property attribute. Otherwise, the
property will copy *fget*'s docstring (if it exists). This makes it possible to
create read-only properties... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e2ca0165-f2e8-4e6e-8e48-04b2e57352f2 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,364 | supabase-export-v2 | 93358f7020de87e5 | .. function:: isinstance(object, classinfo, /)
Return ``True`` if the *object* argument is an instance of the *classinfo*
argument, or of a (direct, indirect, or :term:`virtual <abstract base
class>`) subclass thereof. If *object* is not
an object of the given type, the function always returns ``False``. If *classin... | trusted_official_docs | CPython Docs | .. function:: isinstance(object, classinfo, /)
Return ``True`` if the *object* argument is an instance of the *classinfo*
argument, or of a (direct, indirect, or :term:`virtual <abstract base
class>`) subclass thereof. If *object* is not
an object of the given type, the function always returns ``False``. If *classin... | .. function:: isinstance(object, classinfo, /)
Return ``True`` if the *object* argument is an instance of the *classinfo*
argument, or of a (direct, indirect, or :term:`virtual <abstract base
class>`) subclass thereof. If *object* is not
an object of the given type, the function always returns ``False``. If *classin... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e3152e3e-dc0a-4eff-9f52-64c202e7e0b7 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,214 | supabase-export-v2 | 7c39a6256ed55536 | named attribute, provided the object allows it. For example, ``delattr(x, 'foobar')`` is equivalent to ``del x.foobar``. *name* need not be a Python identifier (see :func:`setattr`).
.. _func-dict:
.. class:: dict(**kwargs)
dict(mapping, /, **kwargs)
dict(iterable, /, **kwargs)
:noindex: | trusted_official_docs | CPython Docs | named attribute, provided the object allows it. For example, ``delattr(x, 'foobar')`` is equivalent to ``del x.foobar``. *name* need not be a Python identifier (see :func:`setattr`).
.. _func-dict:
.. class:: dict(**kwargs)
dict(mapping, /, **kwargs)
dict(iterable, /, **kwargs)
:noindex: | named attribute, provided the object allows it. For example, ``delattr(x, 'foobar')`` is equivalent to ``del x.foobar``. *name* need not be a Python identifier (see :func:`setattr`).
.. _func-dict:
.. class:: dict(**kwargs)
dict(mapping, /, **kwargs)
dict(iterable, /, **kwargs)
:noindex: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e3c0c3cb-1d82-4bcd-9d5c-deac827329b3 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,396 | supabase-export-v2 | 7c675038678727b9 | Return the largest item in an iterable or the largest of two or more arguments.
If one positional argument is provided, it should be an :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. | trusted_official_docs | CPython Docs | Return the largest item in an iterable or the largest of two or more arguments.
If one positional argument is provided, it should be an :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. | Return the largest item in an iterable or the largest of two or more arguments.
If one positional argument is provided, it should be an :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. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e46e0267-765b-4a20-8035-b53b2c92ef23 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,372 | supabase-export-v2 | a23d08ee91f51e7f | See also :ref:`typeiter`.
One useful application of the second 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:: | trusted_official_docs | CPython Docs | See also :ref:`typeiter`.
One useful application of the second 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:: | See also :ref:`typeiter`.
One useful application of the second 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:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e56a8f03-f1e8-444e-b1e0-7248d62cf03d | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,275 | supabase-export-v2 | 65f6d35693adcb55 | 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.
.. versionchanged:: 3.11
Added the *closure* parameter. | trusted_official_docs | CPython Docs | 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.
.. versionchanged:: 3.11
Added the *closure* parameter. | 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.
.. versionchanged:: 3.11
Added the *closure* parameter. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e6b2f563-a769-43c9-836e-22c997fe1f43 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,536 | supabase-export-v2 | 479b30336ead832e | Shallow and deep copies of a sentinel object return the object itself.
Sentinels are conventionally assigned to a variable with a matching name. Sentinels defined in this way can be used in :term:`type hints <type hint>`:: | trusted_official_docs | CPython Docs | Shallow and deep copies of a sentinel object return the object itself.
Sentinels are conventionally assigned to a variable with a matching name. Sentinels defined in this way can be used in :term:`type hints <type hint>`:: | Shallow and deep copies of a sentinel object return the object itself.
Sentinels are conventionally assigned to a variable with a matching name. Sentinels defined in this way can be used in :term:`type hints <type hint>`:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e6f35fc6-7b16-41eb-bf8d-db0402799d7b | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,387 | supabase-export-v2 | ced1eb19c6fdb122 | variables or nonlocal cell references, and assigning, reassigning, or deleting local variables and nonlocal cell references does *not* affect the contents of previously returned dictionaries.
Calling ``locals()`` as part of a comprehension in a function, generator, or
coroutine is equivalent to calling it in the conta... | trusted_official_docs | CPython Docs | variables or nonlocal cell references, and assigning, reassigning, or deleting local variables and nonlocal cell references does *not* affect the contents of previously returned dictionaries.
Calling ``locals()`` as part of a comprehension in a function, generator, or
coroutine is equivalent to calling it in the conta... | variables or nonlocal cell references, and assigning, reassigning, or deleting local variables and nonlocal cell references does *not* affect the contents of previously returned dictionaries.
Calling ``locals()`` as part of a comprehension in a function, generator, or
coroutine is equivalent to calling it in the conta... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e798b23b-cedf-43fc-a0a5-18a46f0459be | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,477 | supabase-export-v2 | 064fee2543ae067c | must be strings; they can also be ``None``, which means to use the default values. If no *objects* are given, :func:`print` will just write *end*.
The *file* argument must be an object with a ``write(string)`` method; if it
is not present or ``None``, :data:`sys.stdout` will be used. Since printed
arguments are conve... | trusted_official_docs | CPython Docs | must be strings; they can also be ``None``, which means to use the default values. If no *objects* are given, :func:`print` will just write *end*.
The *file* argument must be an object with a ``write(string)`` method; if it
is not present or ``None``, :data:`sys.stdout` will be used. Since printed
arguments are conve... | must be strings; they can also be ``None``, which means to use the default values. If no *objects* are given, :func:`print` will just write *end*.
The *file* argument must be an object with a ``write(string)`` method; if it
is not present or ``None``, :data:`sys.stdout` will be used. Since printed
arguments are conve... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e8c23a56-91fb-4cd0-bb72-7d02a62637a1 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,124 | supabase-export-v2 | e0516018816dcade | This is the async variant of the :func:`next` builtin, and behaves similarly.
This calls the :meth:`~object.__anext__` method of *async_iterator*,
returning an :term:`awaitable`. Awaiting this returns the next value of the
iterator. If *default* is given, it is returned if the iterator is exhausted,
otherwise :exc:`... | trusted_official_docs | CPython Docs | This is the async variant of the :func:`next` builtin, and behaves similarly.
This calls the :meth:`~object.__anext__` method of *async_iterator*,
returning an :term:`awaitable`. Awaiting this returns the next value of the
iterator. If *default* is given, it is returned if the iterator is exhausted,
otherwise :exc:`... | This is the async variant of the :func:`next` builtin, and behaves similarly.
This calls the :meth:`~object.__anext__` method of *async_iterator*,
returning an :term:`awaitable`. Awaiting this returns the next value of the
iterator. If *default* is given, it is returned if the iterator is exhausted,
otherwise :exc:`... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e8d6700c-947f-4db1-a70b-84313ad7062f | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,158 | supabase-export-v2 | 8829ae2081bbec3f | .. _func-bytes: .. class:: bytes(source=b'') bytes(source, encoding, errors='strict') :noindex:
Return a new "bytes" object which is an immutable sequence of integers in
the range ``0 <= x < 256``. :class:`bytes` is an immutable version of
:class:`bytearray` -- it has the same non-mutating methods and the same
index... | trusted_official_docs | CPython Docs | .. _func-bytes: .. class:: bytes(source=b'') bytes(source, encoding, errors='strict') :noindex:
Return a new "bytes" object which is an immutable sequence of integers in
the range ``0 <= x < 256``. :class:`bytes` is an immutable version of
:class:`bytearray` -- it has the same non-mutating methods and the same
index... | .. _func-bytes: .. class:: bytes(source=b'') bytes(source, encoding, errors='strict') :noindex:
Return a new "bytes" object which is an immutable sequence of integers in
the range ``0 <= x < 256``. :class:`bytes` is an immutable version of
:class:`bytearray` -- it has the same non-mutating methods and the same
index... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e9cfa369-5b53-472e-a72e-0cde006c71cd | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,424 | supabase-export-v2 | 82a17f419db06a16 | .. function:: open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)
Open *file* and return a corresponding :term:`file object`. If the file
cannot be opened, an :exc:`OSError` is raised. See
:ref:`tut-files` for more examples of how to use this function. | trusted_official_docs | CPython Docs | .. function:: open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)
Open *file* and return a corresponding :term:`file object`. If the file
cannot be opened, an :exc:`OSError` is raised. See
:ref:`tut-files` for more examples of how to use this function. | .. function:: open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)
Open *file* and return a corresponding :term:`file object`. If the file
cannot be opened, an :exc:`OSError` is raised. See
:ref:`tut-files` for more examples of how to use this function. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ea0febfc-5d9b-423b-812d-12062f92fe7a | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,291 | supabase-export-v2 | 81ceec3d1e24ef1f | >>> float('+1.23') 1.23 >>> float(' -12345\n') -12345.0 >>> float('1e-003') 0.001 >>> float('+1E6') 1000000.0 >>> float('-Infinity') -inf
If the argument is a string, it should contain a decimal number, optionally
preceded by a sign, and optionally embedded in whitespace. The optional
sign may be ``'+'`` or ``'-'``; ... | trusted_official_docs | CPython Docs | >>> float('+1.23') 1.23 >>> float(' -12345\n') -12345.0 >>> float('1e-003') 0.001 >>> float('+1E6') 1000000.0 >>> float('-Infinity') -inf
If the argument is a string, it should contain a decimal number, optionally
preceded by a sign, and optionally embedded in whitespace. The optional
sign may be ``'+'`` or ``'-'``; ... | >>> float('+1.23') 1.23 >>> float(' -12345\n') -12345.0 >>> float('1e-003') 0.001 >>> float('+1E6') 1000000.0 >>> float('-Infinity') -inf
If the argument is a string, it should contain a decimal number, optionally
preceded by a sign, and optionally embedded in whitespace. The optional
sign may be ``'+'`` or ``'-'``; ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
eac9de48-2f0c-44c9-8a2b-c30c26ba7a7f | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,177 | supabase-export-v2 | 823e91a2e3f7e535 | .. versionchanged:: 3.10 Class methods now inherit the method attributes (:attr:`~function.__module__`, :attr:`~function.__name__`, :attr:`~function.__qualname__`, :attr:`~function.__doc__` and :attr:`~function.__annotations__`) and have a new ``__wrapped__`` attribute.
.. deprecated-removed:: 3.11 3.13
Class methods ... | trusted_official_docs | CPython Docs | .. versionchanged:: 3.10 Class methods now inherit the method attributes (:attr:`~function.__module__`, :attr:`~function.__name__`, :attr:`~function.__qualname__`, :attr:`~function.__doc__` and :attr:`~function.__annotations__`) and have a new ``__wrapped__`` attribute.
.. deprecated-removed:: 3.11 3.13
Class methods ... | .. versionchanged:: 3.10 Class methods now inherit the method attributes (:attr:`~function.__module__`, :attr:`~function.__name__`, :attr:`~function.__qualname__`, :attr:`~function.__doc__` and :attr:`~function.__annotations__`) and have a new ``__wrapped__`` attribute.
.. deprecated-removed:: 3.11 3.13
Class methods ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
eb8494d6-0e39-4d0a-8485-29c2eb8983b6 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,592 | supabase-export-v2 | d8d3ff97a68f0b79 | lists the method resolution search order used by both :func:`getattr` and :func:`super`. The attribute is dynamic and can change whenever the inheritance hierarchy is updated.
If the second argument is omitted, the super object returned is unbound. If
the second argument is an object, ``isinstance(obj, type)`` must be... | trusted_official_docs | CPython Docs | lists the method resolution search order used by both :func:`getattr` and :func:`super`. The attribute is dynamic and can change whenever the inheritance hierarchy is updated.
If the second argument is omitted, the super object returned is unbound. If
the second argument is an object, ``isinstance(obj, type)`` must be... | lists the method resolution search order used by both :func:`getattr` and :func:`super`. The attribute is dynamic and can change whenever the inheritance hierarchy is updated.
If the second argument is omitted, the super object returned is unbound. If
the second argument is an object, ``isinstance(obj, type)`` must be... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ed366a93-4dcb-484b-8f0f-2bbb592927dd | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,145 | supabase-export-v2 | 56391251f9c9537f | By default, the behavior of :func:`breakpoint` can be changed with the :envvar:`PYTHONBREAKPOINT` environment variable. See :func:`sys.breakpointhook` for usage details.
Note that this is not guaranteed if :func:`sys.breakpointhook`
has been replaced. | trusted_official_docs | CPython Docs | By default, the behavior of :func:`breakpoint` can be changed with the :envvar:`PYTHONBREAKPOINT` environment variable. See :func:`sys.breakpointhook` for usage details.
Note that this is not guaranteed if :func:`sys.breakpointhook`
has been replaced. | By default, the behavior of :func:`breakpoint` can be changed with the :envvar:`PYTHONBREAKPOINT` environment variable. See :func:`sys.breakpointhook` for usage details.
Note that this is not guaranteed if :func:`sys.breakpointhook`
has been replaced. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ee67799f-f402-44db-8720-69aa91f2c327 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,269 | supabase-export-v2 | dc27c2e81edc6385 | a code object containing :term:`free (closure) variables <closure variable>`. The length of the tuple must exactly match the length of the code object's :attr:`~codeobject.co_freevars` attribute.
.. audit-event:: exec code_object exec | trusted_official_docs | CPython Docs | a code object containing :term:`free (closure) variables <closure variable>`. The length of the tuple must exactly match the length of the code object's :attr:`~codeobject.co_freevars` attribute.
.. audit-event:: exec code_object exec | a code object containing :term:`free (closure) variables <closure variable>`. The length of the tuple must exactly match the length of the code object's :attr:`~codeobject.co_freevars` attribute.
.. audit-event:: exec code_object exec | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ef986a80-b311-46a9-a350-602908f7a8b2 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,447 | supabase-export-v2 | a9ac215d8c1173bb | The following example uses the :ref:`dir_fd <dir_fd>` parameter of the :func:`os.open` function to open a file relative to a given directory::
>>> import os
>>> dir_fd = os.open('somedir', os.O_RDONLY)
>>> def opener(path, flags):
... return os.open(path, flags, dir_fd=dir_fd)
... >>> with open('spamspam.txt', 'w',... | trusted_official_docs | CPython Docs | The following example uses the :ref:`dir_fd <dir_fd>` parameter of the :func:`os.open` function to open a file relative to a given directory::
>>> import os
>>> dir_fd = os.open('somedir', os.O_RDONLY)
>>> def opener(path, flags):
... return os.open(path, flags, dir_fd=dir_fd)
... >>> with open('spamspam.txt', 'w',... | The following example uses the :ref:`dir_fd <dir_fd>` parameter of the :func:`os.open` function to open a file relative to a given directory::
>>> import os
>>> dir_fd = os.open('somedir', os.O_RDONLY)
>>> def opener(path, flags):
... return os.open(path, flags, dir_fd=dir_fd)
... >>> with open('spamspam.txt', 'w',... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ef9f47ce-e595-47ce-a1f1-30f64e288ffc | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,600 | supabase-export-v2 | 3f754396ba4bce32 | searching classes in a predictable order that supports cooperative multiple inheritance. Accordingly, :func:`super` is undefined for implicit lookups using statements or operators such as ``super()[name]``.
Also note that, aside from the zero argument form, :func:`super` is not
limited to use inside methods. The two a... | trusted_official_docs | CPython Docs | searching classes in a predictable order that supports cooperative multiple inheritance. Accordingly, :func:`super` is undefined for implicit lookups using statements or operators such as ``super()[name]``.
Also note that, aside from the zero argument form, :func:`super` is not
limited to use inside methods. The two a... | searching classes in a predictable order that supports cooperative multiple inheritance. Accordingly, :func:`super` is undefined for implicit lookups using statements or operators such as ``super()[name]``.
Also note that, aside from the zero argument form, :func:`super` is not
limited to use inside methods. The two a... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f00576ad-1bae-47bb-9b8c-c2929aaa856e | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,470 | supabase-export-v2 | 0d0d76ed1ba9b615 | negative, *base* must be relatively prime to *mod*. In that case, ``pow(inv_base, -exp, mod)`` is returned, where *inv_base* is an inverse to *base* modulo *mod*.
Here's an example of computing an inverse for ``38`` modulo ``97``:: | trusted_official_docs | CPython Docs | negative, *base* must be relatively prime to *mod*. In that case, ``pow(inv_base, -exp, mod)`` is returned, where *inv_base* is an inverse to *base* modulo *mod*.
Here's an example of computing an inverse for ``38`` modulo ``97``:: | negative, *base* must be relatively prime to *mod*. In that case, ``pow(inv_base, -exp, mod)`` is returned, where *inv_base* is an inverse to *base* modulo *mod*.
Here's an example of computing an inverse for ``38`` modulo ``97``:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f199f46b-dadd-41b4-9bf4-d6d660d609d6 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,305 | supabase-export-v2 | d3250a0f0295af99 | *format_spec* will depend on the type of the *value* argument; however, there is a standard formatting syntax that is used by most built-in types: :ref:`formatspec`.
The default *format_spec* is an empty string which usually gives the same
effect as calling :func:`str(value) <str>`. | trusted_official_docs | CPython Docs | *format_spec* will depend on the type of the *value* argument; however, there is a standard formatting syntax that is used by most built-in types: :ref:`formatspec`.
The default *format_spec* is an empty string which usually gives the same
effect as calling :func:`str(value) <str>`. | *format_spec* will depend on the type of the *value* argument; however, there is a standard formatting syntax that is used by most built-in types: :ref:`formatspec`.
The default *format_spec* is an empty string which usually gives the same
effect as calling :func:`str(value) <str>`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f30d8f3a-1655-4c61-8876-470c3a315454 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,139 | supabase-export-v2 | c4b94e77da35b232 | .. class:: bool(object=False, /)
Return a Boolean value, i.e. one of ``True`` or ``False``. The argument
is converted using the standard :ref:`truth testing procedure <truth>`. If the argument is false
or omitted, this returns ``False``; otherwise, it returns ``True``. The
:class:`bool` class is a subclass of :class... | trusted_official_docs | CPython Docs | .. class:: bool(object=False, /)
Return a Boolean value, i.e. one of ``True`` or ``False``. The argument
is converted using the standard :ref:`truth testing procedure <truth>`. If the argument is false
or omitted, this returns ``False``; otherwise, it returns ``True``. The
:class:`bool` class is a subclass of :class... | .. class:: bool(object=False, /)
Return a Boolean value, i.e. one of ``True`` or ``False``. The argument
is converted using the standard :ref:`truth testing procedure <truth>`. If the argument is false
or omitted, this returns ``False``; otherwise, it returns ``True``. The
:class:`bool` class is a subclass of :class... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f372762f-3cf0-4844-a45f-d6e6a244ccec | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,333 | supabase-export-v2 | 4a1ea8ea01df11e6 | % 255, '%X' % 255 ('0xff', 'ff', 'FF') >>> format(255, '#x'), format(255, 'x'), format(255, 'X') ('0xff', 'ff', 'FF') >>> f'{255:#x}', f'{255:x}', f'{255:X}' ('0xff', 'ff', 'FF')
See also :func:`format` for more information. | trusted_official_docs | CPython Docs | % 255, '%X' % 255 ('0xff', 'ff', 'FF') >>> format(255, '#x'), format(255, 'x'), format(255, 'X') ('0xff', 'ff', 'FF') >>> f'{255:#x}', f'{255:x}', f'{255:X}' ('0xff', 'ff', 'FF')
See also :func:`format` for more information. | % 255, '%X' % 255 ('0xff', 'ff', 'FF') >>> format(255, '#x'), format(255, 'x'), format(255, 'X') ('0xff', 'ff', 'FF') >>> f'{255:#x}', f'{255:x}', f'{255:X}' ('0xff', 'ff', 'FF')
See also :func:`format` for more information. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f5a9e841-2bd7-4a83-a3a2-aa289d6eb979 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,317 | supabase-export-v2 | 03aa7dd3b9aefbd5 | module namespace. For code within functions, this is set when the function is defined and remains the same regardless of where the function is called.
.. function:: hasattr(object, name, /) | trusted_official_docs | CPython Docs | module namespace. For code within functions, this is set when the function is defined and remains the same regardless of where the function is called.
.. function:: hasattr(object, name, /) | module namespace. For code within functions, this is set when the function is defined and remains the same regardless of where the function is called.
.. function:: hasattr(object, name, /) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f7914aec-5b96-46fc-9447-0656c100fcbf | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,475 | supabase-export-v2 | 19e91421b16c2bf8 | .. function:: print(*objects, sep=' ', end='\n', file=None, flush=False)
Print *objects* 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. | trusted_official_docs | CPython Docs | .. function:: print(*objects, sep=' ', end='\n', file=None, flush=False)
Print *objects* 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. | .. function:: print(*objects, sep=' ', end='\n', file=None, flush=False)
Print *objects* 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. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f7a88804-b5ca-44c7-8525-4d2188e68e31 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,426 | supabase-export-v2 | b7b87741d72fcd9f | to be wrapped. (If a file descriptor is given, it is closed when the returned I/O object is closed unless *closefd* is set to ``False``.)
*mode* is an optional string that specifies the mode in which the file is
opened. It defaults to ``'r'`` which means open for reading in text mode. Other common values are ``'w'`` f... | trusted_official_docs | CPython Docs | to be wrapped. (If a file descriptor is given, it is closed when the returned I/O object is closed unless *closefd* is set to ``False``.)
*mode* is an optional string that specifies the mode in which the file is
opened. It defaults to ``'r'`` which means open for reading in text mode. Other common values are ``'w'`` f... | to be wrapped. (If a file descriptor is given, it is closed when the returned I/O object is closed unless *closefd* is set to ``False``.)
*mode* is an optional string that specifies the mode in which the file is
opened. It defaults to ``'r'`` which means open for reading in text mode. Other common values are ``'w'`` f... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f87f0b33-9524-4b3d-b6c6-a5fe977ee880 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,180 | supabase-export-v2 | 0ccaca73b3f23199 | a normal string, a byte string, or an AST object. Refer to the :mod:`ast` module documentation for information on how to work with AST objects.
The *filename* argument 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). | trusted_official_docs | CPython Docs | a normal string, a byte string, or an AST object. Refer to the :mod:`ast` module documentation for information on how to work with AST objects.
The *filename* argument 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). | a normal string, a byte string, or an AST object. Refer to the :mod:`ast` module documentation for information on how to work with AST objects.
The *filename* argument 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). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f8ef320a-e610-485a-9651-4073f459c258 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,316 | supabase-export-v2 | c78434bd2259ecd7 | .. function:: globals()
Return the dictionary implementing the current module namespace. For code within
functions, this is set when the function is defined and remains the same
regardless of where the function is called. | trusted_official_docs | CPython Docs | .. function:: globals()
Return the dictionary implementing the current module namespace. For code within
functions, this is set when the function is defined and remains the same
regardless of where the function is called. | .. function:: globals()
Return the dictionary implementing the current module namespace. For code within
functions, this is set when the function is defined and remains the same
regardless of where the function is called. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f8fa70f7-72d5-46f1-9195-292742dc5507 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,429 | supabase-export-v2 | 99ed695c6bfaf3e5 | appending to the end of file if it exists ``'b'`` binary mode ``'t'`` text mode (default) ``'+'`` open for updating (reading and writing) ========= ===============================================================
The default mode is ``'r'`` (open for reading text, a synonym of ``'rt'``). Modes ``'w+'`` and ``'w+b'`` ope... | trusted_official_docs | CPython Docs | appending to the end of file if it exists ``'b'`` binary mode ``'t'`` text mode (default) ``'+'`` open for updating (reading and writing) ========= ===============================================================
The default mode is ``'r'`` (open for reading text, a synonym of ``'rt'``). Modes ``'w+'`` and ``'w+b'`` ope... | appending to the end of file if it exists ``'b'`` binary mode ``'t'`` text mode (default) ``'+'`` open for updating (reading and writing) ========= ===============================================================
The default mode is ``'r'`` (open for reading text, a synonym of ``'rt'``). Modes ``'w+'`` and ``'w+b'`` ope... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f93d8f54-7344-433c-aedd-24add6845dac | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,437 | supabase-export-v2 | a986cc14ea04ece3 | platform dependent (whatever :func:`locale.getencoding` returns), but any :term:`text encoding` supported by Python can be used. See the :mod:`codecs` module for the list of supported encodings.
*errors* is an optional string that specifies how encoding and decoding
errors are to be handled—this cannot be used in bina... | trusted_official_docs | CPython Docs | platform dependent (whatever :func:`locale.getencoding` returns), but any :term:`text encoding` supported by Python can be used. See the :mod:`codecs` module for the list of supported encodings.
*errors* is an optional string that specifies how encoding and decoding
errors are to be handled—this cannot be used in bina... | platform dependent (whatever :func:`locale.getencoding` returns), but any :term:`text encoding` supported by Python can be used. See the :mod:`codecs` module for the list of supported encodings.
*errors* is an optional string that specifies how encoding and decoding
errors are to be handled—this cannot be used in bina... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fdd436b4-598a-4f95-ba8f-16c4ff0aacb4 | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,130 | supabase-export-v2 | bd99aa2f0776fe00 | .. function:: ascii(object, /)
As :func:`repr`, return a string containing a printable representation of an
object, but escape the non-ASCII characters in the string returned by
:func:`repr` using ``\x``, ``\u``, or ``\U`` escapes. This generates a string
similar to that returned by :func:`repr` in Python 2. | trusted_official_docs | CPython Docs | .. function:: ascii(object, /)
As :func:`repr`, return a string containing a printable representation of an
object, but escape the non-ASCII characters in the string returned by
:func:`repr` using ``\x``, ``\u``, or ``\U`` escapes. This generates a string
similar to that returned by :func:`repr` in Python 2. | .. function:: ascii(object, /)
As :func:`repr`, return a string containing a printable representation of an
object, but escape the non-ASCII characters in the string returned by
:func:`repr` using ``\x``, ``\u``, or ``\U`` escapes. This generates a string
similar to that returned by :func:`repr` in Python 2. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fe8534ec-e878-4e66-bcc9-d4ff447dca4e | CPython Docs | file://datasets/cpython/Doc/library/functions.rst | unknown | 1046c4ae-bb1a-49b9-a075-e089ad7cd6a5 | 4,149 | supabase-export-v2 | 96e8878159bc0be6 | .. _func-bytearray: .. class:: bytearray(source=b'') bytearray(source, encoding, errors='strict') :noindex:
Return a new array of bytes. The :class:`bytearray` class is a mutable
sequence of integers in the range 0 <= x < 256. It has most of the usual
methods of mutable sequences, described in :ref:`typesseq-mutable`... | trusted_official_docs | CPython Docs | .. _func-bytearray: .. class:: bytearray(source=b'') bytearray(source, encoding, errors='strict') :noindex:
Return a new array of bytes. The :class:`bytearray` class is a mutable
sequence of integers in the range 0 <= x < 256. It has most of the usual
methods of mutable sequences, described in :ref:`typesseq-mutable`... | .. _func-bytearray: .. class:: bytearray(source=b'') bytearray(source, encoding, errors='strict') :noindex:
Return a new array of bytes. The :class:`bytearray` class is a mutable
sequence of integers in the range 0 <= x < 256. It has most of the usual
methods of mutable sequences, described in :ref:`typesseq-mutable`... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
01efc1d1-123c-4e19-b995-4a15351db843 | CPython Docs | file://datasets/cpython/Doc/library/http.cookies.rst | unknown | 65d7d1e2-6c3c-4c4d-ad68-93cf828be2c1 | 4,711 | supabase-export-v2 | 70edc46a80d4747a | the same top-level context that the cookie was first set in. For this to be accepted by the user agent, you **must** also set ``Secure``.
In addition, it is recommended to use the ``__Host`` prefix when setting
partitioned cookies to make them bound to the hostname and not the
registrable domain. Read
`CHIPS (Cookie... | trusted_official_docs | CPython Docs | the same top-level context that the cookie was first set in. For this to be accepted by the user agent, you **must** also set ``Secure``.
In addition, it is recommended to use the ``__Host`` prefix when setting
partitioned cookies to make them bound to the hostname and not the
registrable domain. Read
`CHIPS (Cookie... | the same top-level context that the cookie was first set in. For this to be accepted by the user agent, you **must** also set ``Secure``.
In addition, it is recommended to use the ``__Host`` prefix when setting
partitioned cookies to make them bound to the hostname and not the
registrable domain. Read
`CHIPS (Cookie... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
14155bc7-3f72-478b-be5a-80ad6b64f2f7 | CPython Docs | file://datasets/cpython/Doc/library/http.cookies.rst | unknown | 65d7d1e2-6c3c-4c4d-ad68-93cf828be2c1 | 4,674 | supabase-export-v2 | b828148ea21f71bb | of cookies, an HTTP state management mechanism. It supports both simple string-only cookies, and provides an abstraction for having any serializable data-type as cookie value.
The module formerly strictly applied the parsing rules described in the
:rfc:`2109` and :rfc:`2068` specifications. It has since been discovered... | trusted_official_docs | CPython Docs | of cookies, an HTTP state management mechanism. It supports both simple string-only cookies, and provides an abstraction for having any serializable data-type as cookie value.
The module formerly strictly applied the parsing rules described in the
:rfc:`2109` and :rfc:`2068` specifications. It has since been discovered... | of cookies, an HTTP state management mechanism. It supports both simple string-only cookies, and provides an abstraction for having any serializable data-type as cookie value.
The module formerly strictly applied the parsing rules described in the
:rfc:`2109` and :rfc:`2068` specifications. It has since been discovered... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
21dcb693-3c5c-4640-b3a8-825db93c1faf | CPython Docs | file://datasets/cpython/Doc/library/http.cookies.rst | unknown | 65d7d1e2-6c3c-4c4d-ad68-93cf828be2c1 | 4,703 | supabase-export-v2 | 713ac8537afdf423 | a string, parse it as an ``HTTP_COOKIE`` and add the values found there as :class:`Morsel`\ s. If it is a dictionary, it is equivalent to::
for k, v in rawdata.items():
cookie[k] = v | trusted_official_docs | CPython Docs | a string, parse it as an ``HTTP_COOKIE`` and add the values found there as :class:`Morsel`\ s. If it is a dictionary, it is equivalent to::
for k, v in rawdata.items():
cookie[k] = v | a string, parse it as an ``HTTP_COOKIE`` and add the values found there as :class:`Morsel`\ s. If it is a dictionary, it is equivalent to::
for k, v in rawdata.items():
cookie[k] = v | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2321755f-671f-4f0e-91eb-4225ee756544 | CPython Docs | file://datasets/cpython/Doc/library/http.cookies.rst | unknown | 65d7d1e2-6c3c-4c4d-ad68-93cf828be2c1 | 4,738 | supabase-export-v2 | 55457012d1efa984 | with the values in the dictionary *values*. Raise an error if any of the keys in the *values* dict is not a valid :rfc:`2109` attribute.
.. versionchanged:: 3.5
an error is raised for invalid keys. | trusted_official_docs | CPython Docs | with the values in the dictionary *values*. Raise an error if any of the keys in the *values* dict is not a valid :rfc:`2109` attribute.
.. versionchanged:: 3.5
an error is raised for invalid keys. | with the values in the dictionary *values*. Raise an error if any of the keys in the *values* dict is not a valid :rfc:`2109` attribute.
.. versionchanged:: 3.5
an error is raised for invalid keys. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2875386a-d5ed-477f-bd45-b5677b6c4c1d | CPython Docs | file://datasets/cpython/Doc/library/http.cookies.rst | unknown | 65d7d1e2-6c3c-4c4d-ad68-93cf828be2c1 | 4,710 | supabase-export-v2 | 4d37546c847edce0 | top-level navigations), and "None" (sent with same-site and cross-site requests). When using "None", the "secure" attribute must also be set, as required by modern browsers.
The attribute :attr:`partitioned` indicates to user agents that these
cross-site cookies *should* only be available in the same top-level context... | trusted_official_docs | CPython Docs | top-level navigations), and "None" (sent with same-site and cross-site requests). When using "None", the "secure" attribute must also be set, as required by modern browsers.
The attribute :attr:`partitioned` indicates to user agents that these
cross-site cookies *should* only be available in the same top-level context... | top-level navigations), and "None" (sent with same-site and cross-site requests). When using "None", the "secure" attribute must also be set, as required by modern browsers.
The attribute :attr:`partitioned` indicates to user agents that these
cross-site cookies *should* only be available in the same top-level context... | 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.