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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c5066634-1858-46f0-ba6c-daae701c31dd | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,449 | supabase-export-v2 | 4b4dfed7419377e3 | Start accepting connections until the coroutine is cancelled. Cancellation of ``serve_forever`` task causes the server to be closed.
This method can be called if the server is already accepting
connections. Only one ``serve_forever`` task can exist per
one *Server* object. | trusted_official_docs | CPython Docs | Start accepting connections until the coroutine is cancelled. Cancellation of ``serve_forever`` task causes the server to be closed.
This method can be called if the server is already accepting
connections. Only one ``serve_forever`` task can exist per
one *Server* object. | Start accepting connections until the coroutine is cancelled. Cancellation of ``serve_forever`` task causes the server to be closed.
This method can be called if the server is already accepting
connections. Only one ``serve_forever`` task can exist per
one *Server* object. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c570a195-bb44-4ad6-a350-a3842dbf652b | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 7,968 | supabase-export-v2 | 18ac885157d17019 | the event loop will issue a warning if a new asynchronous generator is iterated. This should be used to reliably finalize all scheduled asynchronous generators.
Note that there is no need to call this function when
:func:`asyncio.run` is used. | trusted_official_docs | CPython Docs | the event loop will issue a warning if a new asynchronous generator is iterated. This should be used to reliably finalize all scheduled asynchronous generators.
Note that there is no need to call this function when
:func:`asyncio.run` is used. | the event loop will issue a warning if a new asynchronous generator is iterated. This should be used to reliably finalize all scheduled asynchronous generators.
Note that there is no need to call this function when
:func:`asyncio.run` is used. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c73eda58-1581-46da-8397-9acede35f7b7 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,009 | supabase-export-v2 | 0d5c307ca2d0763a | .. versionchanged:: 3.7 The *context* keyword-only parameter was added. See :pep:`567` for more details.
.. versionchanged:: 3.8
In Python 3.7 and earlier with the default event loop implementation,
the *delay* could not exceed one day. This has been fixed in Python 3.8. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.7 The *context* keyword-only parameter was added. See :pep:`567` for more details.
.. versionchanged:: 3.8
In Python 3.7 and earlier with the default event loop implementation,
the *delay* could not exceed one day. This has been fixed in Python 3.8. | .. versionchanged:: 3.7 The *context* keyword-only parameter was added. See :pep:`567` for more details.
.. versionchanged:: 3.8
In Python 3.7 and earlier with the default event loop implementation,
the *delay* could not exceed one day. This has been fixed in Python 3.8. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c7a84a01-4797-4941-83e3-9a29e3937325 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,339 | supabase-export-v2 | 54f1658799dea222 | Set *handler* as the new event loop exception handler.
If *handler* is ``None``, the default exception handler will
be set. Otherwise, *handler* must be a callable with the signature
matching ``(loop, context)``, where ``loop``
is a reference to the active event loop, and ``context``
is a ``dict`` object containing... | trusted_official_docs | CPython Docs | Set *handler* as the new event loop exception handler.
If *handler* is ``None``, the default exception handler will
be set. Otherwise, *handler* must be a callable with the signature
matching ``(loop, context)``, where ``loop``
is a reference to the active event loop, and ``context``
is a ``dict`` object containing... | Set *handler* as the new event loop exception handler.
If *handler* is ``None``, the default exception handler will
be set. Otherwise, *handler* must be a callable with the signature
matching ``(loop, context)``, where ``loop``
is a reference to the active event loop, and ``context``
is a ``dict`` object containing... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c7d82f23-079f-4f4d-8db2-87a8909d5e00 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,398 | supabase-export-v2 | d9c2fe7713ff03a0 | Returns a pair of ``(transport, protocol)``, where *transport* conforms to the :class:`SubprocessTransport` base class and *protocol* is an object instantiated by the *protocol_factory*.
If the transport is closed or is garbage collected, the child process
is killed if it is still running. | trusted_official_docs | CPython Docs | Returns a pair of ``(transport, protocol)``, where *transport* conforms to the :class:`SubprocessTransport` base class and *protocol* is an object instantiated by the *protocol_factory*.
If the transport is closed or is garbage collected, the child process
is killed if it is still running. | Returns a pair of ``(transport, protocol)``, where *transport* conforms to the :class:`SubprocessTransport` base class and *protocol* is an object instantiated by the *protocol_factory*.
If the transport is closed or is garbage collected, the child process
is killed if it is still running. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c8716a5c-4a64-4af8-8b70-b7365c0ef765 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,000 | supabase-export-v2 | b01c7d746da0f19a | Event loop provides mechanisms to schedule callback functions to be called at some point in the future. Event loop uses monotonic clocks to track time.
.. method:: loop.call_later(delay, callback, *args, context=None) | trusted_official_docs | CPython Docs | Event loop provides mechanisms to schedule callback functions to be called at some point in the future. Event loop uses monotonic clocks to track time.
.. method:: loop.call_later(delay, callback, *args, context=None) | Event loop provides mechanisms to schedule callback functions to be called at some point in the future. Event loop uses monotonic clocks to track time.
.. method:: loop.call_later(delay, callback, *args, context=None) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ca2b8091-7b28-4522-9532-67d795b2bf79 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,387 | supabase-export-v2 | 43d9848f28a75bb7 | other keyword arguments are passed to :class:`subprocess.Popen` without interpretation, except for *bufsize*, *universal_newlines*, *shell*, *text*, *encoding* and *errors*, which should not be specified at all.
The ``asyncio`` subprocess API does not support decoding the streams
as text. :func:`bytes.decode` can be u... | trusted_official_docs | CPython Docs | other keyword arguments are passed to :class:`subprocess.Popen` without interpretation, except for *bufsize*, *universal_newlines*, *shell*, *text*, *encoding* and *errors*, which should not be specified at all.
The ``asyncio`` subprocess API does not support decoding the streams
as text. :func:`bytes.decode` can be u... | other keyword arguments are passed to :class:`subprocess.Popen` without interpretation, except for *bufsize*, *universal_newlines*, *shell*, *text*, *encoding* and *errors*, which should not be specified at all.
The ``asyncio`` subprocess API does not support decoding the streams
as text. :func:`bytes.decode` can be u... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cd3b47ac-3637-4fb2-ac59-48107c019079 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,139 | supabase-export-v2 | 39c3dfbec57c6221 | The *sock* argument transfers ownership of the socket to the server created. To close the socket, call the server's :meth:`~asyncio.Server.close` method.
* *backlog* is the maximum number of queued connections passed to
:meth:`~socket.socket.listen` (defaults to 100). | trusted_official_docs | CPython Docs | The *sock* argument transfers ownership of the socket to the server created. To close the socket, call the server's :meth:`~asyncio.Server.close` method.
* *backlog* is the maximum number of queued connections passed to
:meth:`~socket.socket.listen` (defaults to 100). | The *sock* argument transfers ownership of the socket to the server created. To close the socket, call the server's :meth:`~asyncio.Server.close` method.
* *backlog* is the maximum number of queued connections passed to
:meth:`~socket.socket.listen` (defaults to 100). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d0083916-fde5-44dd-bccf-dc6549f7e7f2 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 7,996 | supabase-export-v2 | b06161a3586df500 | # will schedule "print("Hello", flush=True)" loop.call_soon( functools.partial(print, "Hello", flush=True))
Using partial objects is usually more convenient than using lambdas,
as asyncio can render partial objects better in debug and error
messages. | trusted_official_docs | CPython Docs | # will schedule "print("Hello", flush=True)" loop.call_soon( functools.partial(print, "Hello", flush=True))
Using partial objects is usually more convenient than using lambdas,
as asyncio can render partial objects better in debug and error
messages. | # will schedule "print("Hello", flush=True)" loop.call_soon( functools.partial(print, "Hello", flush=True))
Using partial objects is usually more convenient than using lambdas,
as asyncio can render partial objects better in debug and error
messages. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d00e34ca-e092-4939-9149-11e5ee55270b | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,179 | supabase-export-v2 | 9661615236fa6fb4 | * *ssl* can be set to an :class:`~ssl.SSLContext` to enable SSL over the accepted connections.
* *ssl_handshake_timeout* is (for an SSL connection) the time in seconds to
wait for the SSL handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default). | trusted_official_docs | CPython Docs | * *ssl* can be set to an :class:`~ssl.SSLContext` to enable SSL over the accepted connections.
* *ssl_handshake_timeout* is (for an SSL connection) the time in seconds to
wait for the SSL handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default). | * *ssl* can be set to an :class:`~ssl.SSLContext` to enable SSL over the accepted connections.
* *ssl_handshake_timeout* is (for an SSL connection) the time in seconds to
wait for the SSL handshake to complete before aborting the connection. ``60.0`` seconds if ``None`` (default). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d2f29834-c3c9-4973-9b7a-67a414b368b6 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,038 | supabase-export-v2 | a5856339376ea42b | that passes on *name* and *context* (if it is None), while still passing on other arbitrary keyword arguments (to avoid breaking backwards compatibility with 3.13.3).
.. versionchanged:: 3.14
All *kwargs* are now passed on. The *eager_start* parameter works with eager task factories. | trusted_official_docs | CPython Docs | that passes on *name* and *context* (if it is None), while still passing on other arbitrary keyword arguments (to avoid breaking backwards compatibility with 3.13.3).
.. versionchanged:: 3.14
All *kwargs* are now passed on. The *eager_start* parameter works with eager task factories. | that passes on *name* and *context* (if it is None), while still passing on other arbitrary keyword arguments (to avoid breaking backwards compatibility with 3.13.3).
.. versionchanged:: 3.14
All *kwargs* are now passed on. The *eager_start* parameter works with eager task factories. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d30a7c8d-b0af-452f-ae48-41da4519370a | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,031 | supabase-export-v2 | 0c2d54e6b109b554 | the same as that of the :class:`Task` constructor (or factory) - all of the keyword arguments to this function are passed through to that interface.
If the *name* argument is provided and not ``None``, it is set as
the name of the task using :meth:`Task.set_name`. | trusted_official_docs | CPython Docs | the same as that of the :class:`Task` constructor (or factory) - all of the keyword arguments to this function are passed through to that interface.
If the *name* argument is provided and not ``None``, it is set as
the name of the task using :meth:`Task.set_name`. | the same as that of the :class:`Task` constructor (or factory) - all of the keyword arguments to this function are passed through to that interface.
If the *name* argument is provided and not ``None``, it is set as
the name of the task using :meth:`Task.set_name`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d6ab15de-6d45-428b-8045-f9786e9910ad | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,340 | supabase-export-v2 | 15d200c227d5aa6d | reference to the active event loop, and ``context`` is a ``dict`` object containing the details of the exception (see :meth:`call_exception_handler` documentation for details about context).
If the handler is called on behalf of a :class:`~asyncio.Task` or
:class:`~asyncio.Handle`, it is run in the
:class:`contextvar... | trusted_official_docs | CPython Docs | reference to the active event loop, and ``context`` is a ``dict`` object containing the details of the exception (see :meth:`call_exception_handler` documentation for details about context).
If the handler is called on behalf of a :class:`~asyncio.Task` or
:class:`~asyncio.Handle`, it is run in the
:class:`contextvar... | reference to the active event loop, and ``context`` is a ``dict`` object containing the details of the exception (see :meth:`call_exception_handler` documentation for details about context).
If the handler is called on behalf of a :class:`~asyncio.Task` or
:class:`~asyncio.Handle`, it is run in the
:class:`contextvar... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d93f51a0-46d4-4cd6-bd24-1dadc0c486b5 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,379 | supabase-export-v2 | 2b50e4699ec9abeb | list of strings passed as the first argument; however, where :class:`~subprocess.Popen` takes a single argument which is list of strings, *subprocess_exec* takes multiple string arguments.
The *protocol_factory* must be a callable returning a subclass of the
:class:`asyncio.SubprocessProtocol` class. | trusted_official_docs | CPython Docs | list of strings passed as the first argument; however, where :class:`~subprocess.Popen` takes a single argument which is list of strings, *subprocess_exec* takes multiple string arguments.
The *protocol_factory* must be a callable returning a subclass of the
:class:`asyncio.SubprocessProtocol` class. | list of strings passed as the first argument; however, where :class:`~subprocess.Popen` takes a single argument which is list of strings, *subprocess_exec* takes multiple string arguments.
The *protocol_factory* must be a callable returning a subclass of the
:class:`asyncio.SubprocessProtocol` class. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dad2f36d-d7b4-4486-80b9-a8bb1c35c8ea | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,316 | supabase-export-v2 | 8a178fb29a4c604a | Arrange for *func* to be called in the specified executor passing *args* as positional arguments.
The *executor* argument should be an :class:`concurrent.futures.Executor`
instance. The default executor is used if *executor* is ``None``. The default executor can be set by :meth:`loop.set_default_executor`,
otherwise,... | trusted_official_docs | CPython Docs | Arrange for *func* to be called in the specified executor passing *args* as positional arguments.
The *executor* argument should be an :class:`concurrent.futures.Executor`
instance. The default executor is used if *executor* is ``None``. The default executor can be set by :meth:`loop.set_default_executor`,
otherwise,... | Arrange for *func* to be called in the specified executor passing *args* as positional arguments.
The *executor* argument should be an :class:`concurrent.futures.Executor`
instance. The default executor is used if *executor* is ``None``. The default executor can be set by :meth:`loop.set_default_executor`,
otherwise,... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dcb310f2-9cc1-4ee9-8aef-026f4be6f3fd | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,106 | supabase-export-v2 | 6db361ae4a446d3e | The *sock* argument transfers ownership of the socket to the transport created. To close the socket, call the transport's :meth:`~asyncio.BaseTransport.close` method.
See :ref:`UDP echo client protocol <asyncio-udp-echo-client-protocol>` and
:ref:`UDP echo server protocol <asyncio-udp-echo-server-protocol>` examples. | trusted_official_docs | CPython Docs | The *sock* argument transfers ownership of the socket to the transport created. To close the socket, call the transport's :meth:`~asyncio.BaseTransport.close` method.
See :ref:`UDP echo client protocol <asyncio-udp-echo-client-protocol>` and
:ref:`UDP echo server protocol <asyncio-udp-echo-server-protocol>` examples. | The *sock* argument transfers ownership of the socket to the transport created. To close the socket, call the transport's :meth:`~asyncio.BaseTransport.close` method.
See :ref:`UDP echo client protocol <asyncio-udp-echo-client-protocol>` and
:ref:`UDP echo server protocol <asyncio-udp-echo-server-protocol>` examples. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dfd791d2-8a3a-4c3a-8a32-58282594dcc3 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,331 | supabase-export-v2 | 19c57786ca181654 | Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-keywords>` to *func*.
.. versionchanged:: 3.5.3
:meth:`loop.run_in_executor` no longer configures the
``max_workers`` of the thread pool executor it creates, instead
leaving it up to the thread pool executor
(:class:`~concurrent.futures.Thr... | trusted_official_docs | CPython Docs | Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-keywords>` to *func*.
.. versionchanged:: 3.5.3
:meth:`loop.run_in_executor` no longer configures the
``max_workers`` of the thread pool executor it creates, instead
leaving it up to the thread pool executor
(:class:`~concurrent.futures.Thr... | Use :func:`functools.partial` :ref:`to pass keyword arguments <asyncio-pass-keywords>` to *func*.
.. versionchanged:: 3.5.3
:meth:`loop.run_in_executor` no longer configures the
``max_workers`` of the thread pool executor it creates, instead
leaving it up to the thread pool executor
(:class:`~concurrent.futures.Thr... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e523413d-26f8-47ab-86dd-2fdc8d3014d3 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,468 | supabase-export-v2 | 11cd635edeff57f1 | A subclass of :class:`AbstractEventLoop` based on the :mod:`selectors` module.
Uses the most efficient *selector* available for the given
platform. It is also possible to manually configure the
exact selector implementation to be used:: | trusted_official_docs | CPython Docs | A subclass of :class:`AbstractEventLoop` based on the :mod:`selectors` module.
Uses the most efficient *selector* available for the given
platform. It is also possible to manually configure the
exact selector implementation to be used:: | A subclass of :class:`AbstractEventLoop` based on the :mod:`selectors` module.
Uses the most efficient *selector* available for the given
platform. It is also possible to manually configure the
exact selector implementation to be used:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e635f2bd-3f73-4a13-9c57-eb8488c8dd44 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,229 | supabase-export-v2 | fabce39855f21726 | this method was always documented as a coroutine method, releases before Python 3.7 returned a :class:`Future`. Since Python 3.7 this is an ``async def`` method.
.. method:: loop.sock_recv_into(sock, buf)
:async: | trusted_official_docs | CPython Docs | this method was always documented as a coroutine method, releases before Python 3.7 returned a :class:`Future`. Since Python 3.7 this is an ``async def`` method.
.. method:: loop.sock_recv_into(sock, buf)
:async: | this method was always documented as a coroutine method, releases before Python 3.7 returned a :class:`Future`. Since Python 3.7 this is an ``async def`` method.
.. method:: loop.sock_recv_into(sock, buf)
:async: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e7b87a12-9758-4e8c-b277-0d3bc1e62868 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 7,985 | supabase-export-v2 | 15b614a0f124fbce | Callbacks are called in the order in which they are registered. Each callback will be called exactly once.
The optional keyword-only *context* argument specifies a
custom :class:`contextvars.Context` for the *callback* to run in. Callbacks use the current context when no *context* is provided. | trusted_official_docs | CPython Docs | Callbacks are called in the order in which they are registered. Each callback will be called exactly once.
The optional keyword-only *context* argument specifies a
custom :class:`contextvars.Context` for the *callback* to run in. Callbacks use the current context when no *context* is provided. | Callbacks are called in the order in which they are registered. Each callback will be called exactly once.
The optional keyword-only *context* argument specifies a
custom :class:`contextvars.Context` for the *callback* to run in. Callbacks use the current context when no *context* is provided. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ea657f73-8a94-4bc4-86c1-9ad85c68bb68 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,377 | supabase-export-v2 | e500c6f3c38ecd13 | * :class:`str`; * or :class:`bytes`, encoded to the :ref:`filesystem encoding <filesystem-encoding>`.
The first string specifies the program executable,
and the remaining strings specify the arguments. Together, string
arguments form the ``argv`` of the program. | trusted_official_docs | CPython Docs | * :class:`str`; * or :class:`bytes`, encoded to the :ref:`filesystem encoding <filesystem-encoding>`.
The first string specifies the program executable,
and the remaining strings specify the arguments. Together, string
arguments form the ``argv`` of the program. | * :class:`str`; * or :class:`bytes`, encoded to the :ref:`filesystem encoding <filesystem-encoding>`.
The first string specifies the program executable,
and the remaining strings specify the arguments. Together, string
arguments form the ``argv`` of the program. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ed4444c3-dd80-4e00-924f-ff60e7f0df63 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,053 | supabase-export-v2 | 13657ff4615fa474 | *protocol_factory* must be a callable returning an :ref:`asyncio protocol <asyncio-protocol>` implementation.
This method will try to establish the connection in the background. When successful, it returns a ``(transport, protocol)`` pair. | trusted_official_docs | CPython Docs | *protocol_factory* must be a callable returning an :ref:`asyncio protocol <asyncio-protocol>` implementation.
This method will try to establish the connection in the background. When successful, it returns a ``(transport, protocol)`` pair. | *protocol_factory* must be a callable returning an :ref:`asyncio protocol <asyncio-protocol>` implementation.
This method will try to establish the connection in the background. When successful, it returns a ``(transport, protocol)`` pair. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f0197521-a806-4223-8978-48db8378da40 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,485 | supabase-export-v2 | 33bd04414b1c6c52 | Examples ========
Note that all examples in this section **purposefully** show how
to use the low-level event loop APIs, such as :meth:`loop.run_forever`
and :meth:`loop.call_soon`. Modern asyncio applications rarely
need to be written this way; consider using the high-level functions
like :func:`asyncio.run`. | trusted_official_docs | CPython Docs | Examples ========
Note that all examples in this section **purposefully** show how
to use the low-level event loop APIs, such as :meth:`loop.run_forever`
and :meth:`loop.call_soon`. Modern asyncio applications rarely
need to be written this way; consider using the high-level functions
like :func:`asyncio.run`. | Examples ========
Note that all examples in this section **purposefully** show how
to use the low-level event loop APIs, such as :meth:`loop.run_forever`
and :meth:`loop.call_soon`. Modern asyncio applications rarely
need to be written this way; consider using the high-level functions
like :func:`asyncio.run`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f09e6b86-bc35-4594-826c-89b9d71284e5 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,032 | supabase-export-v2 | 3cfaa9804abfb8e1 | If the *name* argument is provided and not ``None``, it is set as the name of the task using :meth:`Task.set_name`.
An optional keyword-only *context* argument allows specifying a
custom :class:`contextvars.Context` for the *coro* to run in. The current context copy is created when no *context* is provided. | trusted_official_docs | CPython Docs | If the *name* argument is provided and not ``None``, it is set as the name of the task using :meth:`Task.set_name`.
An optional keyword-only *context* argument allows specifying a
custom :class:`contextvars.Context` for the *coro* to run in. The current context copy is created when no *context* is provided. | If the *name* argument is provided and not ``None``, it is set as the name of the task using :meth:`Task.set_name`.
An optional keyword-only *context* argument allows specifying a
custom :class:`contextvars.Context` for the *coro* to run in. The current context copy is created when no *context* is provided. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f1dcafa8-0b5d-48c6-8277-597670ca645b | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,101 | supabase-export-v2 | ce129ccfb9c80876 | protocol and flags to be passed through to :meth:`getaddrinfo` for *host* resolution. If given, these should all be integers from the corresponding :mod:`socket` module constants.
* *reuse_port* tells the kernel to allow this endpoint to be bound to the
same port as other existing endpoints are bound to, so long as th... | trusted_official_docs | CPython Docs | protocol and flags to be passed through to :meth:`getaddrinfo` for *host* resolution. If given, these should all be integers from the corresponding :mod:`socket` module constants.
* *reuse_port* tells the kernel to allow this endpoint to be bound to the
same port as other existing endpoints are bound to, so long as th... | protocol and flags to be passed through to :meth:`getaddrinfo` for *host* resolution. If given, these should all be integers from the corresponding :mod:`socket` module constants.
* *reuse_port* tells the kernel to allow this endpoint to be bound to the
same port as other existing endpoints are bound to, so long as th... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f2bc4528-543d-49e6-af79-c13d7382e0b2 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,142 | supabase-export-v2 | 014d051a22e11daa | a local socket in ``TIME_WAIT`` state, without waiting for its natural timeout to expire. If not specified will automatically be set to ``True`` on Unix.
* *reuse_port* tells the kernel to allow this endpoint to be bound to the
same port as other existing endpoints are bound to, so long as they all
set this flag when... | trusted_official_docs | CPython Docs | a local socket in ``TIME_WAIT`` state, without waiting for its natural timeout to expire. If not specified will automatically be set to ``True`` on Unix.
* *reuse_port* tells the kernel to allow this endpoint to be bound to the
same port as other existing endpoints are bound to, so long as they all
set this flag when... | a local socket in ``TIME_WAIT`` state, without waiting for its natural timeout to expire. If not specified will automatically be set to ``True`` on Unix.
* *reuse_port* tells the kernel to allow this endpoint to be bound to the
same port as other existing endpoints are bound to, so long as they all
set this flag when... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f39b6d7c-ab83-4e2b-badd-762900be3990 | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 7,926 | supabase-export-v2 | d0583a725511afd0 | When called from a coroutine or a callback (e.g. scheduled with call_soon or similar API), this function will always return the running event loop.
If there is no running event loop set, the function will return
the result of the ``get_event_loop_policy().get_event_loop()`` call. | trusted_official_docs | CPython Docs | When called from a coroutine or a callback (e.g. scheduled with call_soon or similar API), this function will always return the running event loop.
If there is no running event loop set, the function will return
the result of the ``get_event_loop_policy().get_event_loop()`` call. | When called from a coroutine or a callback (e.g. scheduled with call_soon or similar API), this function will always return the running event loop.
If there is no running event loop set, the function will return
the result of the ``get_event_loop_policy().get_event_loop()`` call. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f3c29ba0-e5ee-4aac-8ed1-2d52693c519c | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,102 | supabase-export-v2 | 22df5f580eae177f | being created. This option is not supported on Windows and some Unixes. If the :ref:`socket.SO_REUSEPORT <socket-unix-constants>` constant is not defined then this capability is unsupported.
* *allow_broadcast* tells the kernel to allow this endpoint to send
messages to the broadcast address. | trusted_official_docs | CPython Docs | being created. This option is not supported on Windows and some Unixes. If the :ref:`socket.SO_REUSEPORT <socket-unix-constants>` constant is not defined then this capability is unsupported.
* *allow_broadcast* tells the kernel to allow this endpoint to send
messages to the broadcast address. | being created. This option is not supported on Windows and some Unixes. If the :ref:`socket.SO_REUSEPORT <socket-unix-constants>` constant is not defined then this capability is unsupported.
* *allow_broadcast* tells the kernel to allow this endpoint to send
messages to the broadcast address. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f5dd0cca-060c-435a-9eac-5241fbceaa2f | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,143 | supabase-export-v2 | b026715c5ca5a0b2 | as other existing endpoints are bound to, so long as they all set this flag when being created. This option is not supported on Windows.
* *keep_alive* set to ``True`` keeps connections active by enabling the
periodic transmission of messages. | trusted_official_docs | CPython Docs | as other existing endpoints are bound to, so long as they all set this flag when being created. This option is not supported on Windows.
* *keep_alive* set to ``True`` keeps connections active by enabling the
periodic transmission of messages. | as other existing endpoints are bound to, so long as they all set this flag when being created. This option is not supported on Windows.
* *keep_alive* set to ``True`` keeps connections active by enabling the
periodic transmission of messages. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f86a55e4-3cd0-4482-8df1-d4d082d382cb | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,397 | supabase-export-v2 | cf567988cdeb9ed7 | See :meth:`~loop.subprocess_exec` for more details about the remaining arguments.
Returns a pair of ``(transport, protocol)``, where *transport*
conforms to the :class:`SubprocessTransport` base class and
*protocol* is an object instantiated by the *protocol_factory*. | trusted_official_docs | CPython Docs | See :meth:`~loop.subprocess_exec` for more details about the remaining arguments.
Returns a pair of ``(transport, protocol)``, where *transport*
conforms to the :class:`SubprocessTransport` base class and
*protocol* is an object instantiated by the *protocol_factory*. | See :meth:`~loop.subprocess_exec` for more details about the remaining arguments.
Returns a pair of ``(transport, protocol)``, where *transport*
conforms to the :class:`SubprocessTransport` base class and
*protocol* is an object instantiated by the *protocol_factory*. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fc18d00d-544d-4886-801d-a33d87011aaf | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,048 | supabase-export-v2 | 95e8ae05d07a89f6 | Opening network connections ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. method:: loop.create_connection(protocol_factory, \
host=None, port=None, *, ssl=None, \
family=0, proto=0, flags=0, sock=None, \
local_addr=None, server_hostname=None, \
ssl_handshake_timeout=None, \
ssl_shutdown_timeout=None, \
happy_eyeballs_delay=None... | trusted_official_docs | CPython Docs | Opening network connections ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. method:: loop.create_connection(protocol_factory, \
host=None, port=None, *, ssl=None, \
family=0, proto=0, flags=0, sock=None, \
local_addr=None, server_hostname=None, \
ssl_handshake_timeout=None, \
ssl_shutdown_timeout=None, \
happy_eyeballs_delay=None... | Opening network connections ^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. method:: loop.create_connection(protocol_factory, \
host=None, port=None, *, ssl=None, \
family=0, proto=0, flags=0, sock=None, \
local_addr=None, server_hostname=None, \
ssl_handshake_timeout=None, \
ssl_shutdown_timeout=None, \
happy_eyeballs_delay=None... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fe087ff2-4afe-460f-a00e-bf08344d0c0a | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 8,217 | supabase-export-v2 | 8681d762c045219a | Start monitoring the *fd* file descriptor for write availability and invoke *callback* with the specified arguments *args* once *fd* is available for writing.
Any preexisting callback registered for *fd* is cancelled and replaced by
*callback*. | trusted_official_docs | CPython Docs | Start monitoring the *fd* file descriptor for write availability and invoke *callback* with the specified arguments *args* once *fd* is available for writing.
Any preexisting callback registered for *fd* is cancelled and replaced by
*callback*. | Start monitoring the *fd* file descriptor for write availability and invoke *callback* with the specified arguments *args* once *fd* is available for writing.
Any preexisting callback registered for *fd* is cancelled and replaced by
*callback*. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
feda8c5a-993c-47c0-9ebb-6e9464aacb5d | CPython Docs | file://datasets/cpython/Doc/library/asyncio-eventloop.rst | unknown | 609f1ddb-4818-40a8-91b8-b7d5046d008f | 7,974 | supabase-export-v2 | 489d96070717a7db | to join all of the threads in the :class:`~concurrent.futures.ThreadPoolExecutor`. Once this method has been called, using the default executor with :meth:`loop.run_in_executor` will raise a :exc:`RuntimeError`.
The *timeout* parameter specifies the amount of time
(in :class:`float` seconds) the executor will be given... | trusted_official_docs | CPython Docs | to join all of the threads in the :class:`~concurrent.futures.ThreadPoolExecutor`. Once this method has been called, using the default executor with :meth:`loop.run_in_executor` will raise a :exc:`RuntimeError`.
The *timeout* parameter specifies the amount of time
(in :class:`float` seconds) the executor will be given... | to join all of the threads in the :class:`~concurrent.futures.ThreadPoolExecutor`. Once this method has been called, using the default executor with :meth:`loop.run_in_executor` will raise a :exc:`RuntimeError`.
The *timeout* parameter specifies the amount of time
(in :class:`float` seconds) the executor will be given... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
02133115-249f-4590-ae64-db443ac7ce44 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,625 | supabase-export-v2 | ae13a3f1341b32ce | but without encoding. The language code and encoding may be ``None`` if their values cannot be determined. The "C" locale is represented as ``(None, None)``.
.. versionchanged:: 3.15
``@``-modifier are no longer silently removed, but included in
the language code. | trusted_official_docs | CPython Docs | but without encoding. The language code and encoding may be ``None`` if their values cannot be determined. The "C" locale is represented as ``(None, None)``.
.. versionchanged:: 3.15
``@``-modifier are no longer silently removed, but included in
the language code. | but without encoding. The language code and encoding may be ``None`` if their values cannot be determined. The "C" locale is represented as ``(None, None)``.
.. versionchanged:: 3.15
``@``-modifier are no longer silently removed, but included in
the language code. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
052e7ca0-a840-43c2-ae7d-243b09473e38 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,669 | supabase-export-v2 | 8c31c3a348af6668 | this variable might be automatically coerced to ``C.UTF-8`` to avoid issues created by invalid settings in containers or incompatible settings passed over remote SSH connections.
Python doesn't internally use locale-dependent character transformation functions
from ``ctype.h``. Instead, ``pyctype.h`` provides locale-i... | trusted_official_docs | CPython Docs | this variable might be automatically coerced to ``C.UTF-8`` to avoid issues created by invalid settings in containers or incompatible settings passed over remote SSH connections.
Python doesn't internally use locale-dependent character transformation functions
from ``ctype.h``. Instead, ``pyctype.h`` provides locale-i... | this variable might be automatically coerced to ``C.UTF-8`` to avoid issues created by invalid settings in containers or incompatible settings passed over remote SSH connections.
Python doesn't internally use locale-dependent character transformation functions
from ``ctype.h``. Instead, ``pyctype.h`` provides locale-i... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
05b21b1b-b7ac-41df-971c-efe97ff45769 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,555 | supabase-export-v2 | a4b4f78b5bd9174b | .. tabularcolumns:: |l|l|L|
+----------------------+-------------------------------------+--------------------------------+
| Category | Key | Meaning |
+======================+=====================================+================================+
| :const:`LC_NUMERIC` | ``'decimal_point'`` | Decimal point characte... | trusted_official_docs | CPython Docs | .. tabularcolumns:: |l|l|L|
+----------------------+-------------------------------------+--------------------------------+
| Category | Key | Meaning |
+======================+=====================================+================================+
| :const:`LC_NUMERIC` | ``'decimal_point'`` | Decimal point characte... | .. tabularcolumns:: |l|l|L|
+----------------------+-------------------------------------+--------------------------------+
| Category | Key | Meaning |
+======================+=====================================+================================+
| :const:`LC_NUMERIC` | ``'decimal_point'`` | Decimal point characte... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
05c24445-2f95-45d7-8ea9-00465697c51a | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,639 | supabase-export-v2 | 3ee596e711451a45 | .. function:: normalize(localename)
Returns a normalized locale code for the given locale name. The returned locale
code is formatted for use with :func:`setlocale`. If normalization fails, the
original name is returned unchanged. | trusted_official_docs | CPython Docs | .. function:: normalize(localename)
Returns a normalized locale code for the given locale name. The returned locale
code is formatted for use with :func:`setlocale`. If normalization fails, the
original name is returned unchanged. | .. function:: normalize(localename)
Returns a normalized locale code for the given locale name. The returned locale
code is formatted for use with :func:`setlocale`. If normalization fails, the
original name is returned unchanged. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
06a6fa87-9b1b-4e4f-8f25-385752178a87 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,551 | supabase-export-v2 | 92eb2e59095ebc41 | to the user's default setting (typically specified in the :envvar:`LANG` environment variable). If the locale is not changed thereafter, using multithreading should not cause problems.
.. versionchanged:: 3.15
Support language codes with ``@``-modifiers. | trusted_official_docs | CPython Docs | to the user's default setting (typically specified in the :envvar:`LANG` environment variable). If the locale is not changed thereafter, using multithreading should not cause problems.
.. versionchanged:: 3.15
Support language codes with ``@``-modifiers. | to the user's default setting (typically specified in the :envvar:`LANG` environment variable). If the locale is not changed thereafter, using multithreading should not cause problems.
.. versionchanged:: 3.15
Support language codes with ``@``-modifiers. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
06cf5dbe-26b8-459b-95ae-f6b3b7225792 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,699 | supabase-export-v2 | 07b147aaca3ee18a | .. productionlist:: locale_name : language ["-" script] ["-" territory] ["." charset] : language ["-" script] "-" territory "-" modifier
where *language* and *territory* have the same meaning as in Posix,
*script* is a four-letter script code from `ISO 15924`_,
and *modifier* is a language subtag, a sort order identifi... | trusted_official_docs | CPython Docs | .. productionlist:: locale_name : language ["-" script] ["-" territory] ["." charset] : language ["-" script] "-" territory "-" modifier
where *language* and *territory* have the same meaning as in Posix,
*script* is a four-letter script code from `ISO 15924`_,
and *modifier* is a language subtag, a sort order identifi... | .. productionlist:: locale_name : language ["-" script] ["-" territory] ["." charset] : language ["-" script] "-" territory "-" modifier
where *language* and *territory* have the same meaning as in Posix,
*script* is a four-letter script code from `ISO 15924`_,
and *modifier* is a language subtag, a sort order identifi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
078ae61f-af29-4df4-9efa-ecb3cf62c0fe | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,640 | supabase-export-v2 | ababa2c3228460bb | code for the given locale name. The returned locale code is formatted for use with :func:`setlocale`. If normalization fails, the original name is returned unchanged.
If the given encoding is not known, the function defaults to the default
encoding for the locale code just like :func:`setlocale`. | trusted_official_docs | CPython Docs | code for the given locale name. The returned locale code is formatted for use with :func:`setlocale`. If normalization fails, the original name is returned unchanged.
If the given encoding is not known, the function defaults to the default
encoding for the locale code just like :func:`setlocale`. | code for the given locale name. The returned locale code is formatted for use with :func:`setlocale`. If normalization fails, the original name is returned unchanged.
If the given encoding is not known, the function defaults to the default
encoding for the locale code just like :func:`setlocale`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0b68e779-847e-4755-ab53-67f660cce3a0 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,544 | supabase-export-v2 | 5d2d4da115664a56 | specifies the user's default settings. If the modification of the locale fails, the exception :exc:`Error` is raised. If successful, the new locale setting is returned.
If *locale* is a pair, it is converted to a locale name using
the locale aliasing engine. The language code has the same format as a :ref:`locale name... | trusted_official_docs | CPython Docs | specifies the user's default settings. If the modification of the locale fails, the exception :exc:`Error` is raised. If successful, the new locale setting is returned.
If *locale* is a pair, it is converted to a locale name using
the locale aliasing engine. The language code has the same format as a :ref:`locale name... | specifies the user's default settings. If the modification of the locale fails, the exception :exc:`Error` is raised. If successful, the new locale setting is returned.
If *locale* is a pair, it is converted to a locale name using
the locale aliasing engine. The language code has the same format as a :ref:`locale name... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0d318bfc-38b3-44fd-9fb3-0a384f64d52a | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,559 | supabase-export-v2 | d6918d4c3afcbe69 | (for positive resp. | | | | negative values). | +----------------------+-------------------------------------+--------------------------------+ | | ``'mon_decimal_point'`` | Decimal point used for | | | | monetary values.
|
+----------------------+-------------------------------------+--------------------------------+... | trusted_official_docs | CPython Docs | (for positive resp. | | | | negative values). | +----------------------+-------------------------------------+--------------------------------+ | | ``'mon_decimal_point'`` | Decimal point used for | | | | monetary values.
|
+----------------------+-------------------------------------+--------------------------------+... | (for positive resp. | | | | negative values). | +----------------------+-------------------------------------+--------------------------------+ | | ``'mon_decimal_point'`` | Decimal point used for | | | | monetary values.
|
+----------------------+-------------------------------------+--------------------------------+... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0eeb6927-60da-4f48-bb86-fc8391278311 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,642 | supabase-export-v2 | a4613c3d61a9799f | .. function:: strcoll(string1, string2)
Compares two strings according to the current :const:`LC_COLLATE` setting. As
any other compare function, returns a negative, or a positive value, or ``0``,
depending on whether *string1* collates before or after *string2* or is equal to
it. | trusted_official_docs | CPython Docs | .. function:: strcoll(string1, string2)
Compares two strings according to the current :const:`LC_COLLATE` setting. As
any other compare function, returns a negative, or a positive value, or ``0``,
depending on whether *string1* collates before or after *string2* or is equal to
it. | .. function:: strcoll(string1, string2)
Compares two strings according to the current :const:`LC_COLLATE` setting. As
any other compare function, returns a negative, or a positive value, or ``0``,
depending on whether *string1* collates before or after *string2* or is equal to
it. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
109dc4cd-0e21-46c7-a295-6657bf6f1f04 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,696 | supabase-export-v2 | 0084350294397928 | .. productionlist:: locale_name : language ["_" territory] ["." charset] ["@" modifier]
where *language* is a two- or three-letter language code from `ISO 639`_,
*territory* is a two-letter country or region code from `ISO 3166`_,
*charset* is a locale encoding, and *modifier* is a script name,
a language subtag, a sor... | trusted_official_docs | CPython Docs | .. productionlist:: locale_name : language ["_" territory] ["." charset] ["@" modifier]
where *language* is a two- or three-letter language code from `ISO 639`_,
*territory* is a two-letter country or region code from `ISO 3166`_,
*charset* is a locale encoding, and *modifier* is a script name,
a language subtag, a sor... | .. productionlist:: locale_name : language ["_" territory] ["." charset] ["@" modifier]
where *language* is a two- or three-letter language code from `ISO 639`_,
*territory* is a two-letter country or region code from `ISO 3166`_,
*charset* is a locale encoding, and *modifier* is a script name,
a language subtag, a sor... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
10fe441c-0153-48ef-9cd9-e95660c5a4c0 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,714 | supabase-export-v2 | 3a2de3c61c727b7c | functions in the :mod:`gettext` module, but use the C library's binary format for message catalogs, and the C library's search algorithms for locating message catalogs.
Python applications should normally find no need to invoke these functions, and
should use :mod:`gettext` instead. A known exception to this rule are
a... | trusted_official_docs | CPython Docs | functions in the :mod:`gettext` module, but use the C library's binary format for message catalogs, and the C library's search algorithms for locating message catalogs.
Python applications should normally find no need to invoke these functions, and
should use :mod:`gettext` instead. A known exception to this rule are
a... | functions in the :mod:`gettext` module, but use the C library's binary format for message catalogs, and the C library's search algorithms for locating message catalogs.
Python applications should normally find no need to invoke these functions, and
should use :mod:`gettext` instead. A known exception to this rule are
a... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
159e5195-b465-46b7-8e73-693dbeeb51f2 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,705 | supabase-export-v2 | 789ebc3fefb967fe | .. _ISO 639: https://www.iso.org/iso-639-language-code .. _ISO 3166: https://www.iso.org/iso-3166-country-codes.html .. _IETF BCP 47: https://www.rfc-editor.org/info/bcp47 .. _ISO 15924: https://www.unicode.org/iso15924/
.. [1] `IEEE Std 1003.1-2024; 8.2 Internationalization Variables <https://pubs.opengroup.org/online... | trusted_official_docs | CPython Docs | .. _ISO 639: https://www.iso.org/iso-639-language-code .. _ISO 3166: https://www.iso.org/iso-3166-country-codes.html .. _IETF BCP 47: https://www.rfc-editor.org/info/bcp47 .. _ISO 15924: https://www.unicode.org/iso15924/
.. [1] `IEEE Std 1003.1-2024; 8.2 Internationalization Variables <https://pubs.opengroup.org/online... | .. _ISO 639: https://www.iso.org/iso-639-language-code .. _ISO 3166: https://www.iso.org/iso-3166-country-codes.html .. _IETF BCP 47: https://www.rfc-editor.org/info/bcp47 .. _ISO 15924: https://www.unicode.org/iso15924/
.. [1] `IEEE Std 1003.1-2024; 8.2 Internationalization Variables <https://pubs.opengroup.org/online... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
18a5e3e9-6366-4a30-b835-acc656ee6f4b | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,700 | supabase-export-v2 | d013f00ee55e5bb8 | modifier (for example, "valencia", "stroke" or "x-python"). Both hyphen (``'-'``) and underscore (``'_'``) separators are supported. Only UTF-8 encoding is allowed for BCP 47 tags.
Windows also supports locale names in the format: | trusted_official_docs | CPython Docs | modifier (for example, "valencia", "stroke" or "x-python"). Both hyphen (``'-'``) and underscore (``'_'``) separators are supported. Only UTF-8 encoding is allowed for BCP 47 tags.
Windows also supports locale names in the format: | modifier (for example, "valencia", "stroke" or "x-python"). Both hyphen (``'-'``) and underscore (``'_'``) separators are supported. Only UTF-8 encoding is allowed for BCP 47 tags.
Windows also supports locale names in the format: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
20cce56d-6911-4b32-aa5c-cfbc9385c699 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,545 | supabase-export-v2 | ffc8b1c7150d6078 | aliasing engine. The language code has the same format as a :ref:`locale name <locale_name>`, but without encoding. The language code and encoding can be ``None``.
If *locale* is omitted or ``None``, the current setting for *category* is
returned. | trusted_official_docs | CPython Docs | aliasing engine. The language code has the same format as a :ref:`locale name <locale_name>`, but without encoding. The language code and encoding can be ``None``.
If *locale* is omitted or ``None``, the current setting for *category* is
returned. | aliasing engine. The language code has the same format as a :ref:`locale name <locale_name>`, but without encoding. The language code and encoding can be ``None``.
If *locale* is omitted or ``None``, the current setting for *category* is
returned. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
23f5fec1-97d7-4026-bd24-cf486a7436c5 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,689 | supabase-export-v2 | 72fb7fa42d4dfb10 | Saving and restoring it is almost as bad: it is expensive and affects other threads that happen to run before the settings have been restored.
If, when coding a module for general use, you need a locale independent version
of an operation that is affected by the locale (such as
certain formats used with :func:`time.str... | trusted_official_docs | CPython Docs | Saving and restoring it is almost as bad: it is expensive and affects other threads that happen to run before the settings have been restored.
If, when coding a module for general use, you need a locale independent version
of an operation that is affected by the locale (such as
certain formats used with :func:`time.str... | Saving and restoring it is almost as bad: it is expensive and affects other threads that happen to run before the settings have been restored.
If, when coding a module for general use, you need a locale independent version
of an operation that is affected by the locale (such as
certain formats used with :func:`time.str... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
25e80b70-ab3c-4c6b-b6e6-240fdd3fc1d2 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,647 | supabase-export-v2 | 7559280bf0cc05d3 | conventions of the ``%`` operator. For floating-point values, the decimal point is modified if appropriate. If *grouping* is ``True``, also takes the grouping into account.
If *monetary* is true, the conversion uses monetary thousands separator and
grouping strings. | trusted_official_docs | CPython Docs | conventions of the ``%`` operator. For floating-point values, the decimal point is modified if appropriate. If *grouping* is ``True``, also takes the grouping into account.
If *monetary* is true, the conversion uses monetary thousands separator and
grouping strings. | conventions of the ``%`` operator. For floating-point values, the decimal point is modified if appropriate. If *grouping* is ``True``, also takes the grouping into account.
If *monetary* is true, the conversion uses monetary thousands separator and
grouping strings. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
25fdca52-86f8-4b86-92f6-262967e71489 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,697 | supabase-export-v2 | e42ec861ce5701fb | encoding, and *modifier* is a script name, a language subtag, a sort order identifier, or other locale modifier (for example, "latin", "valencia", "stroke" and "euro").
On Windows, several formats are supported. [2]_ [3]_
A subset of `IETF BCP 47`_ tags: | trusted_official_docs | CPython Docs | encoding, and *modifier* is a script name, a language subtag, a sort order identifier, or other locale modifier (for example, "latin", "valencia", "stroke" and "euro").
On Windows, several formats are supported. [2]_ [3]_
A subset of `IETF BCP 47`_ tags: | encoding, and *modifier* is a script name, a language subtag, a sort order identifier, or other locale modifier (for example, "latin", "valencia", "stroke" and "euro").
On Windows, several formats are supported. [2]_ [3]_
A subset of `IETF BCP 47`_ tags: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
311b0e74-6b4a-4c65-8c7b-3ceddd244b83 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,619 | supabase-export-v2 | 8b425867e08b673d | Tries to determine the default locale settings and returns them as a tuple of the form ``(language code, encoding)``.
According to POSIX, a program which has not called ``setlocale(LC_ALL, '')``
runs using the portable ``'C'`` locale. Calling ``setlocale(LC_ALL, '')`` lets
it use the default locale as defined by the ... | trusted_official_docs | CPython Docs | Tries to determine the default locale settings and returns them as a tuple of the form ``(language code, encoding)``.
According to POSIX, a program which has not called ``setlocale(LC_ALL, '')``
runs using the portable ``'C'`` locale. Calling ``setlocale(LC_ALL, '')`` lets
it use the default locale as defined by the ... | Tries to determine the default locale settings and returns them as a tuple of the form ``(language code, encoding)``.
According to POSIX, a program which has not called ``setlocale(LC_ALL, '')``
runs using the portable ``'C'`` locale. Calling ``setlocale(LC_ALL, '')`` lets
it use the default locale as defined by the ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
34c11425-8270-4031-9fb7-3e7f34a2d89d | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,630 | supabase-export-v2 | cdd4a34e05ca779a | On Android or if the :ref:`Python UTF-8 Mode <utf8-mode>` is enabled, always return ``'utf-8'``, the :term:`locale encoding` and the *do_setlocale* argument are ignored.
The :ref:`Python preinitialization <c-preinit>` configures the LC_CTYPE
locale. See also the :term:`filesystem encoding and error handler`. | trusted_official_docs | CPython Docs | On Android or if the :ref:`Python UTF-8 Mode <utf8-mode>` is enabled, always return ``'utf-8'``, the :term:`locale encoding` and the *do_setlocale* argument are ignored.
The :ref:`Python preinitialization <c-preinit>` configures the LC_CTYPE
locale. See also the :term:`filesystem encoding and error handler`. | On Android or if the :ref:`Python UTF-8 Mode <utf8-mode>` is enabled, always return ``'utf-8'``, the :term:`locale encoding` and the *do_setlocale* argument are ignored.
The :ref:`Python preinitialization <c-preinit>` configures the LC_CTYPE
locale. See also the :term:`filesystem encoding and error handler`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3c7aa0bc-4576-48b4-9ac2-f7f84bd3ff43 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,566 | supabase-export-v2 | aa45686a3c4e440a | ``4`` | The sign should immediately follow the | | | value. | +--------------+-----------------------------------------+ | ``CHAR_MAX`` | Nothing is specified in this locale. | +--------------+-----------------------------------------+
The function temporarily sets the ``LC_CTYPE`` locale to the ``LC_NUMERIC``
locale ... | trusted_official_docs | CPython Docs | ``4`` | The sign should immediately follow the | | | value. | +--------------+-----------------------------------------+ | ``CHAR_MAX`` | Nothing is specified in this locale. | +--------------+-----------------------------------------+
The function temporarily sets the ``LC_CTYPE`` locale to the ``LC_NUMERIC``
locale ... | ``4`` | The sign should immediately follow the | | | value. | +--------------+-----------------------------------------+ | ``CHAR_MAX`` | Nothing is specified in this locale. | +--------------+-----------------------------------------+
The function temporarily sets the ``LC_CTYPE`` locale to the ``LC_NUMERIC``
locale ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3f035088-ccb8-4c1c-bb1b-76a28ea014d4 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,698 | supabase-export-v2 | 2729a1aeabce7b4a | On Windows, several formats are supported. [2]_ [3]_ A subset of `IETF BCP 47`_ tags:
.. productionlist:: locale_name
: language ["-" script] ["-" territory] ["." charset]
: language ["-" script] "-" territory "-" modifier | trusted_official_docs | CPython Docs | On Windows, several formats are supported. [2]_ [3]_ A subset of `IETF BCP 47`_ tags:
.. productionlist:: locale_name
: language ["-" script] ["-" territory] ["." charset]
: language ["-" script] "-" territory "-" modifier | On Windows, several formats are supported. [2]_ [3]_ A subset of `IETF BCP 47`_ tags:
.. productionlist:: locale_name
: language ["-" script] ["-" territory] ["." charset]
: language ["-" script] "-" territory "-" modifier | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
57100889-3724-4ba1-a15f-ca98cac9a892 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,560 | supabase-export-v2 | 7983c205c1cdc321 | | +----------------------+-------------------------------------+--------------------------------+ | | ``'int_frac_digits'`` | Number of fractional digits | | | | used in international | | | | formatting of monetary values.
|
+----------------------+-------------------------------------+--------------------------------... | trusted_official_docs | CPython Docs | | +----------------------+-------------------------------------+--------------------------------+ | | ``'int_frac_digits'`` | Number of fractional digits | | | | used in international | | | | formatting of monetary values.
|
+----------------------+-------------------------------------+--------------------------------... | | +----------------------+-------------------------------------+--------------------------------+ | | ``'int_frac_digits'`` | Number of fractional digits | | | | used in international | | | | formatting of monetary values.
|
+----------------------+-------------------------------------+--------------------------------... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
585cf57e-f2fe-416c-8969-eaca3a17942e | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,585 | supabase-export-v2 | 8bb4f764138c9066 | This follows the US convention of :const:`DAY_1` being Sunday, not the international convention (ISO 8601) that Monday is the first day of the week.
.. data:: ABDAY_1
ABDAY_2
ABDAY_3
ABDAY_4
ABDAY_5
ABDAY_6
ABDAY_7 | trusted_official_docs | CPython Docs | This follows the US convention of :const:`DAY_1` being Sunday, not the international convention (ISO 8601) that Monday is the first day of the week.
.. data:: ABDAY_1
ABDAY_2
ABDAY_3
ABDAY_4
ABDAY_5
ABDAY_6
ABDAY_7 | This follows the US convention of :const:`DAY_1` being Sunday, not the international convention (ISO 8601) that Monday is the first day of the week.
.. data:: ABDAY_1
ABDAY_2
ABDAY_3
ABDAY_4
ABDAY_5
ABDAY_6
ABDAY_7 | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5b349246-0e8d-4c97-83eb-6a5f7514f88a | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,550 | supabase-export-v2 | 818173dce358a3ea | import locale locale.setlocale(locale.LC_ALL, '')
This sets the locale for all categories to the user's default setting (typically
specified in the :envvar:`LANG` environment variable). If the locale is not
changed thereafter, using multithreading should not cause problems. | trusted_official_docs | CPython Docs | import locale locale.setlocale(locale.LC_ALL, '')
This sets the locale for all categories to the user's default setting (typically
specified in the :envvar:`LANG` environment variable). If the locale is not
changed thereafter, using multithreading should not cause problems. | import locale locale.setlocale(locale.LC_ALL, '')
This sets the locale for all categories to the user's default setting (typically
specified in the :envvar:`LANG` environment variable). If the locale is not
changed thereafter, using multithreading should not cause problems. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5cbb3cfa-dbae-4421-b813-6699ee873ed8 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,620 | supabase-export-v2 | 055e18b38eeb82dd | the :envvar:`LANG` variable. Since we do not want to interfere with the current locale setting we thus emulate the behavior in the way described above.
To maintain compatibility with other platforms, not only the :envvar:`LANG`
variable is tested, but a list of variables given as envvars parameter. The
first found to... | trusted_official_docs | CPython Docs | the :envvar:`LANG` variable. Since we do not want to interfere with the current locale setting we thus emulate the behavior in the way described above.
To maintain compatibility with other platforms, not only the :envvar:`LANG`
variable is tested, but a list of variables given as envvars parameter. The
first found to... | the :envvar:`LANG` variable. Since we do not want to interfere with the current locale setting we thus emulate the behavior in the way described above.
To maintain compatibility with other platforms, not only the :envvar:`LANG`
variable is tested, but a list of variables given as envvars parameter. The
first found to... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5dbc13e3-15bb-433f-9f73-eda69bf5d2e3 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,644 | supabase-export-v2 | 538950390b288573 | .. function:: strxfrm(string)
Transforms a string to one that can be used in locale-aware
comparisons. For example, ``strxfrm(s1) < strxfrm(s2)`` is
equivalent to ``strcoll(s1, s2) < 0``. This function can be used
when the same string is compared repeatedly, e.g. when collating a
sequence of strings. | trusted_official_docs | CPython Docs | .. function:: strxfrm(string)
Transforms a string to one that can be used in locale-aware
comparisons. For example, ``strxfrm(s1) < strxfrm(s2)`` is
equivalent to ``strcoll(s1, s2) < 0``. This function can be used
when the same string is compared repeatedly, e.g. when collating a
sequence of strings. | .. function:: strxfrm(string)
Transforms a string to one that can be used in locale-aware
comparisons. For example, ``strxfrm(s1) < strxfrm(s2)`` is
equivalent to ``strcoll(s1, s2) < 0``. This function can be used
when the same string is compared repeatedly, e.g. when collating a
sequence of strings. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5dd8d620-f442-445a-b07b-207ceb86c254 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,690 | supabase-export-v2 | 38c6c5562073b6cf | that using locale settings is okay. Only as a last resort should you document that your module is not compatible with non-\ ``C`` locale settings.
The only way to perform numeric operations according to the locale is to use the
special functions defined by this module: :func:`atof`, :func:`atoi`,
:func:`format_string`,... | trusted_official_docs | CPython Docs | that using locale settings is okay. Only as a last resort should you document that your module is not compatible with non-\ ``C`` locale settings.
The only way to perform numeric operations according to the locale is to use the
special functions defined by this module: :func:`atof`, :func:`atoi`,
:func:`format_string`,... | that using locale settings is okay. Only as a last resort should you document that your module is not compatible with non-\ ``C`` locale settings.
The only way to perform numeric operations according to the locale is to use the
special functions defined by this module: :func:`atof`, :func:`atoi`,
:func:`format_string`,... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
63004635-929a-4fba-b8cb-87e9f67e2cfb | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,543 | supabase-export-v2 | 9a3da59f1beaa2d3 | .. function:: setlocale(category, locale=None)
If *locale* is given and not ``None``, :func:`setlocale` modifies the locale
setting for the *category*. The available categories are listed in the data
description below. *locale* may be a :ref:`string <locale_name>`, or a pair,
language code and encoding. An empty str... | trusted_official_docs | CPython Docs | .. function:: setlocale(category, locale=None)
If *locale* is given and not ``None``, :func:`setlocale` modifies the locale
setting for the *category*. The available categories are listed in the data
description below. *locale* may be a :ref:`string <locale_name>`, or a pair,
language code and encoding. An empty str... | .. function:: setlocale(category, locale=None)
If *locale* is given and not ``None``, :func:`setlocale` modifies the locale
setting for the *category*. The available categories are listed in the data
description below. *locale* may be a :ref:`string <locale_name>`, or a pair,
language code and encoding. An empty str... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6670fa10-5dc7-48af-9815-7c7f7336c3a1 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,686 | supabase-export-v2 | cc214e9a7fbf7fdf | Background, details, hints, tips and caveats --------------------------------------------
The C standard defines the locale as a program-wide property that may be
relatively expensive to change. On top of that, some implementations are broken
in such a way that frequent locale changes may cause core dumps. This makes t... | trusted_official_docs | CPython Docs | Background, details, hints, tips and caveats --------------------------------------------
The C standard defines the locale as a program-wide property that may be
relatively expensive to change. On top of that, some implementations are broken
in such a way that frequent locale changes may cause core dumps. This makes t... | Background, details, hints, tips and caveats --------------------------------------------
The C standard defines the locale as a program-wide property that may be
relatively expensive to change. On top of that, some implementations are broken
in such a way that frequent locale changes may cause core dumps. This makes t... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7417c5d9-6550-4e9e-8442-297de3284bb6 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,646 | supabase-export-v2 | a7de752cc52dde6f | .. function:: format_string(format, val, grouping=False, monetary=False)
Formats a number *val* according to the current :const:`LC_NUMERIC` setting. The format follows the conventions of the ``%`` operator. For floating-point
values, the decimal point is modified if appropriate. If *grouping* is ``True``,
also takes... | trusted_official_docs | CPython Docs | .. function:: format_string(format, val, grouping=False, monetary=False)
Formats a number *val* according to the current :const:`LC_NUMERIC` setting. The format follows the conventions of the ``%`` operator. For floating-point
values, the decimal point is modified if appropriate. If *grouping* is ``True``,
also takes... | .. function:: format_string(format, val, grouping=False, monetary=False)
Formats a number *val* according to the current :const:`LC_NUMERIC` setting. The format follows the conventions of the ``%`` operator. For floating-point
values, the decimal point is modified if appropriate. If *grouping* is ``True``,
also takes... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
747b0b8a-e672-4815-8dd4-b52f47d8611e | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,682 | supabase-export-v2 | 710d74f2eb09aefb | .. data:: LC_ALL
Combination of all locale settings. If this flag is used when the locale is
changed, setting the locale for all categories is attempted. If that fails for
any category, no category is changed at all. When the locale is retrieved using
this flag, a string indicating the setting for all categories is ... | trusted_official_docs | CPython Docs | .. data:: LC_ALL
Combination of all locale settings. If this flag is used when the locale is
changed, setting the locale for all categories is attempted. If that fails for
any category, no category is changed at all. When the locale is retrieved using
this flag, a string indicating the setting for all categories is ... | .. data:: LC_ALL
Combination of all locale settings. If this flag is used when the locale is
changed, setting the locale for all categories is attempted. If that fails for
any category, no category is changed at all. When the locale is retrieved using
this flag, a string indicating the setting for all categories is ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7522b56d-bf10-4838-9880-90b82f9f5d66 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,567 | supabase-export-v2 | 9dc9044601011072 | to the ``LC_NUMERIC`` locale or the ``LC_MONETARY`` locale if locales are different and numeric or monetary strings are non-ASCII. This temporary change affects other threads.
.. versionchanged:: 3.7
The function now temporarily sets the ``LC_CTYPE`` locale to the
``LC_NUMERIC`` locale in some cases. | trusted_official_docs | CPython Docs | to the ``LC_NUMERIC`` locale or the ``LC_MONETARY`` locale if locales are different and numeric or monetary strings are non-ASCII. This temporary change affects other threads.
.. versionchanged:: 3.7
The function now temporarily sets the ``LC_CTYPE`` locale to the
``LC_NUMERIC`` locale in some cases. | to the ``LC_NUMERIC`` locale or the ``LC_MONETARY`` locale if locales are different and numeric or monetary strings are non-ASCII. This temporary change affects other threads.
.. versionchanged:: 3.7
The function now temporarily sets the ``LC_CTYPE`` locale to the
``LC_NUMERIC`` locale in some cases. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
794041a8-c10c-40bc-ab8e-b7e0b4767d89 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,606 | supabase-export-v2 | 13320966d13bfa24 | define this value is the Japanese one. In Japan, the traditional representation of dates includes the name of the era corresponding to the then-emperor's reign.
Normally it should not be necessary to use this value directly. Specifying
the ``E`` modifier in their format strings causes the :func:`time.strftime`
functi... | trusted_official_docs | CPython Docs | define this value is the Japanese one. In Japan, the traditional representation of dates includes the name of the era corresponding to the then-emperor's reign.
Normally it should not be necessary to use this value directly. Specifying
the ``E`` modifier in their format strings causes the :func:`time.strftime`
functi... | define this value is the Japanese one. In Japan, the traditional representation of dates includes the name of the era corresponding to the then-emperor's reign.
Normally it should not be necessary to use this value directly. Specifying
the ``E`` modifier in their format strings causes the :func:`time.strftime`
functi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7b815b9e-3719-45c6-8de9-e154a5fb4bab | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,556 | supabase-export-v2 | 5edd50682a1ae234 | ``'grouping'`` | Sequence of numbers specifying | | | | which relative positions the | | | | ``'thousands_sep'`` is | | | | expected.
If the sequence is |
| | | terminated with |
| | | :const:`CHAR_MAX`, no further |
| | | grouping is performed. If the |
| | | sequence terminates with a |
| | | ``0``, the last gro... | trusted_official_docs | CPython Docs | ``'grouping'`` | Sequence of numbers specifying | | | | which relative positions the | | | | ``'thousands_sep'`` is | | | | expected.
If the sequence is |
| | | terminated with |
| | | :const:`CHAR_MAX`, no further |
| | | grouping is performed. If the |
| | | sequence terminates with a |
| | | ``0``, the last gro... | ``'grouping'`` | Sequence of numbers specifying | | | | which relative positions the | | | | ``'thousands_sep'`` is | | | | expected.
If the sequence is |
| | | terminated with |
| | | :const:`CHAR_MAX`, no further |
| | | grouping is performed. If the |
| | | sequence terminates with a |
| | | ``0``, the last gro... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7f2df968-4530-42ea-8df3-a89efe7480a8 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,688 | supabase-export-v2 | 7d1bcdb1e1b16589 | the user's preferred locale encoding. The program must explicitly say that it wants the user's preferred locale settings for other categories by calling ``setlocale(LC_ALL, '')``.
It is generally a bad idea to call :func:`setlocale` in some library routine,
since as a side effect it affects the entire program. Saving a... | trusted_official_docs | CPython Docs | the user's preferred locale encoding. The program must explicitly say that it wants the user's preferred locale settings for other categories by calling ``setlocale(LC_ALL, '')``.
It is generally a bad idea to call :func:`setlocale` in some library routine,
since as a side effect it affects the entire program. Saving a... | the user's preferred locale encoding. The program must explicitly say that it wants the user's preferred locale settings for other categories by calling ``setlocale(LC_ALL, '')``.
It is generally a bad idea to call :func:`setlocale` in some library routine,
since as a side effect it affects the entire program. Saving a... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8017e833-b9ea-4014-a6d6-b2876609079e | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,636 | supabase-export-v2 | 3b86e1cf1c6b6c13 | The :ref:`Python preinitialization <c-preinit>` configures the LC_CTYPE locale. See also the :term:`filesystem encoding and error handler`.
This function is similar to
:func:`getpreferredencoding(False) <getpreferredencoding>` except this
function ignores the :ref:`Python UTF-8 Mode <utf8-mode>`. | trusted_official_docs | CPython Docs | The :ref:`Python preinitialization <c-preinit>` configures the LC_CTYPE locale. See also the :term:`filesystem encoding and error handler`.
This function is similar to
:func:`getpreferredencoding(False) <getpreferredencoding>` except this
function ignores the :ref:`Python UTF-8 Mode <utf8-mode>`. | The :ref:`Python preinitialization <c-preinit>` configures the LC_CTYPE locale. See also the :term:`filesystem encoding and error handler`.
This function is similar to
:func:`getpreferredencoding(False) <getpreferredencoding>` except this
function ignores the :ref:`Python UTF-8 Mode <utf8-mode>`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
869d8f42-8eba-44a2-8958-8a0dab246eee | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,623 | supabase-export-v2 | 1627615c3ec80db5 | .. function:: getlocale(category=LC_CTYPE)
Returns the current setting for the given locale category as a tuple containing
the language code and encoding. *category* may be one of the :const:`!LC_\*`
values except :const:`LC_ALL`. It defaults to :const:`LC_CTYPE`. | trusted_official_docs | CPython Docs | .. function:: getlocale(category=LC_CTYPE)
Returns the current setting for the given locale category as a tuple containing
the language code and encoding. *category* may be one of the :const:`!LC_\*`
values except :const:`LC_ALL`. It defaults to :const:`LC_CTYPE`. | .. function:: getlocale(category=LC_CTYPE)
Returns the current setting for the given locale category as a tuple containing
the language code and encoding. *category* may be one of the :const:`!LC_\*`
values except :const:`LC_ALL`. It defaults to :const:`LC_CTYPE`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
876cc62c-7693-409f-b1c8-f511f91fc70b | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,694 | supabase-export-v2 | 23ec2e4d26945a0c | The format of the locale name is platform dependent, and the set of supported locales can depend on the system configuration.
On Posix platforms, it usually has the format [1]_: | trusted_official_docs | CPython Docs | The format of the locale name is platform dependent, and the set of supported locales can depend on the system configuration.
On Posix platforms, it usually has the format [1]_: | The format of the locale name is platform dependent, and the set of supported locales can depend on the system configuration.
On Posix platforms, it usually has the format [1]_: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
895d9a0c-d7a0-472b-8db8-178c30afa6b7 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,713 | supabase-export-v2 | f7963c551fc983e3 | .. function:: gettext(msg) .. function:: dgettext(domain, msg) .. function:: dcgettext(domain, msg, category) .. function:: textdomain(domain) .. function:: bindtextdomain(domain, dir) .. function:: bind_textdomain_codeset(domain, codeset)
The locale module exposes the C library's gettext interface on systems that
prov... | trusted_official_docs | CPython Docs | .. function:: gettext(msg) .. function:: dgettext(domain, msg) .. function:: dcgettext(domain, msg, category) .. function:: textdomain(domain) .. function:: bindtextdomain(domain, dir) .. function:: bind_textdomain_codeset(domain, codeset)
The locale module exposes the C library's gettext interface on systems that
prov... | .. function:: gettext(msg) .. function:: dgettext(domain, msg) .. function:: dcgettext(domain, msg, category) .. function:: textdomain(domain) .. function:: bindtextdomain(domain, dir) .. function:: bind_textdomain_codeset(domain, codeset)
The locale module exposes the C library's gettext interface on systems that
prov... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8e593ce5-1d76-4ecd-b2b7-64d3f15eff7a | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,569 | supabase-export-v2 | 3a4c2430c35c73a0 | .. function:: nl_langinfo(option)
Return some locale-specific information as a string. This function is not
available on all systems, and the set of possible options might also vary
across platforms. The possible argument values are numbers, for which
symbolic constants are available in the locale module. | trusted_official_docs | CPython Docs | .. function:: nl_langinfo(option)
Return some locale-specific information as a string. This function is not
available on all systems, and the set of possible options might also vary
across platforms. The possible argument values are numbers, for which
symbolic constants are available in the locale module. | .. function:: nl_langinfo(option)
Return some locale-specific information as a string. This function is not
available on all systems, and the set of possible options might also vary
across platforms. The possible argument values are numbers, for which
symbolic constants are available in the locale module. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8f3ed0bf-e3d1-41ae-a118-3be4125a6b1f | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,616 | supabase-export-v2 | d0423920c7a30140 | determines the requested value (``LC_TIME``, ``LC_NUMERIC``, ``LC_MONETARY`` or ``LC_MESSAGES``) if locales are different and the resulting string is non-ASCII. This temporary change affects other threads.
.. versionchanged:: 3.14
The function now temporarily sets the ``LC_CTYPE`` locale in some cases. | trusted_official_docs | CPython Docs | determines the requested value (``LC_TIME``, ``LC_NUMERIC``, ``LC_MONETARY`` or ``LC_MESSAGES``) if locales are different and the resulting string is non-ASCII. This temporary change affects other threads.
.. versionchanged:: 3.14
The function now temporarily sets the ``LC_CTYPE`` locale in some cases. | determines the requested value (``LC_TIME``, ``LC_NUMERIC``, ``LC_MONETARY`` or ``LC_MESSAGES``) if locales are different and the resulting string is non-ASCII. This temporary change affects other threads.
.. versionchanged:: 3.14
The function now temporarily sets the ``LC_CTYPE`` locale in some cases. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
916e76e4-eb71-4c0d-9ca3-f6c07bb4b3d6 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,557 | supabase-export-v2 | fd5efa8bcc638892 | | | | ``0``, the last group size is | | | | repeatedly used. | +----------------------+-------------------------------------+--------------------------------+ | | ``'thousands_sep'`` | Character used between groups.
|
+----------------------+-------------------------------------+--------------------------------+
| :c... | trusted_official_docs | CPython Docs | | | | ``0``, the last group size is | | | | repeatedly used. | +----------------------+-------------------------------------+--------------------------------+ | | ``'thousands_sep'`` | Character used between groups.
|
+----------------------+-------------------------------------+--------------------------------+
| :c... | | | | ``0``, the last group size is | | | | repeatedly used. | +----------------------+-------------------------------------+--------------------------------+ | | ``'thousands_sep'`` | Character used between groups.
|
+----------------------+-------------------------------------+--------------------------------+
| :c... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
94e3786c-e7da-43b3-b148-4acbe487930f | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,703 | supabase-export-v2 | f90921d7dd74ca77 | and "United States", and *charset* is either a code page number (for example, "1252") or UTF-8. Only the underscore separator is supported in this format.
The "C" locale is supported on all platforms. | trusted_official_docs | CPython Docs | and "United States", and *charset* is either a code page number (for example, "1252") or UTF-8. Only the underscore separator is supported in this format.
The "C" locale is supported on all platforms. | and "United States", and *charset* is either a code page number (for example, "1252") or UTF-8. Only the underscore separator is supported in this format.
The "C" locale is supported on all platforms. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
96a3c3bb-6776-4886-91c3-d4392daae681 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,652 | supabase-export-v2 | f7b237a6868e9797 | Formats a number *val* according to the current :const:`LC_MONETARY` settings.
The returned string includes the currency symbol if *symbol* is true, which is
the default. If *grouping* is ``True`` (which is not the default), grouping is done
with the value. If *international* is ``True`` (which is not the default), t... | trusted_official_docs | CPython Docs | Formats a number *val* according to the current :const:`LC_MONETARY` settings.
The returned string includes the currency symbol if *symbol* is true, which is
the default. If *grouping* is ``True`` (which is not the default), grouping is done
with the value. If *international* is ``True`` (which is not the default), t... | Formats a number *val* according to the current :const:`LC_MONETARY` settings.
The returned string includes the currency symbol if *symbol* is true, which is
the default. If *grouping* is ``True`` (which is not the default), grouping is done
with the value. If *international* is ``True`` (which is not the default), t... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9861372c-1961-4556-bab8-7041e0ee2207 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,547 | supabase-export-v2 | fcc8c8627669bce1 | Example::
>>> import locale
>>> loc = locale.setlocale(locale.LC_ALL) # get current locale
# use German locale; name and availability varies with platform
>>> locale.setlocale(locale.LC_ALL, 'de_DE.UTF-8')
>>> locale.strcoll('f\xe4n', 'foo') # compare a string containing an umlaut
>>> locale.setlocale(locale.LC_AL... | trusted_official_docs | CPython Docs | Example::
>>> import locale
>>> loc = locale.setlocale(locale.LC_ALL) # get current locale
# use German locale; name and availability varies with platform
>>> locale.setlocale(locale.LC_ALL, 'de_DE.UTF-8')
>>> locale.strcoll('f\xe4n', 'foo') # compare a string containing an umlaut
>>> locale.setlocale(locale.LC_AL... | Example::
>>> import locale
>>> loc = locale.setlocale(locale.LC_ALL) # get current locale
# use German locale; name and availability varies with platform
>>> locale.setlocale(locale.LC_ALL, 'de_DE.UTF-8')
>>> locale.strcoll('f\xe4n', 'foo') # compare a string containing an umlaut
>>> locale.setlocale(locale.LC_AL... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9daf79d6-074e-4a56-b1ad-04945882e54e | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,627 | supabase-export-v2 | 519a3bf2ee526e69 | .. function:: getpreferredencoding(do_setlocale=True)
Return the :term:`locale encoding` used for text data, according to user
preferences. User preferences are expressed differently on different
systems, and might not be available programmatically on some systems, so
this function only returns a guess. | trusted_official_docs | CPython Docs | .. function:: getpreferredencoding(do_setlocale=True)
Return the :term:`locale encoding` used for text data, according to user
preferences. User preferences are expressed differently on different
systems, and might not be available programmatically on some systems, so
this function only returns a guess. | .. function:: getpreferredencoding(do_setlocale=True)
Return the :term:`locale encoding` used for text data, according to user
preferences. User preferences are expressed differently on different
systems, and might not be available programmatically on some systems, so
this function only returns a guess. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a57de21e-f2c6-4ff7-8f83-04afec6d1c40 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,537 | supabase-export-v2 | f1e431f5fcb0fb5f | deal with certain cultural issues in an application, without requiring the programmer to know all the specifics of each country where the software is executed.
.. index:: pair: module; _locale | trusted_official_docs | CPython Docs | deal with certain cultural issues in an application, without requiring the programmer to know all the specifics of each country where the software is executed.
.. index:: pair: module; _locale | deal with certain cultural issues in an application, without requiring the programmer to know all the specifics of each country where the software is executed.
.. index:: pair: module; _locale | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a59df34a-6c8a-4895-86fb-5da7432f02b4 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,558 | supabase-export-v2 | 25b343d35da49606 | | Whether the currency symbol | | | | precedes the value (for | | | | positive resp. negative | | | | values).
|
+----------------------+-------------------------------------+--------------------------------+
| | ``'p_sep_by_space/n_sep_by_space'`` | Whether the currency symbol is |
| | | separated from the value by... | trusted_official_docs | CPython Docs | | Whether the currency symbol | | | | precedes the value (for | | | | positive resp. negative | | | | values).
|
+----------------------+-------------------------------------+--------------------------------+
| | ``'p_sep_by_space/n_sep_by_space'`` | Whether the currency symbol is |
| | | separated from the value by... | | Whether the currency symbol | | | | precedes the value (for | | | | positive resp. negative | | | | values).
|
+----------------------+-------------------------------------+--------------------------------+
| | ``'p_sep_by_space/n_sep_by_space'`` | Whether the currency symbol is |
| | | separated from the value by... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ad1deeb5-b951-48a8-9f64-e442c79dfc90 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,539 | supabase-export-v2 | c3426a264f52ba52 | The :mod:`!locale` module is implemented on top of the :mod:`!_locale` module, which in turn uses an ANSI C locale implementation if available.
The :mod:`!locale` module defines the following exception and functions: | trusted_official_docs | CPython Docs | The :mod:`!locale` module is implemented on top of the :mod:`!_locale` module, which in turn uses an ANSI C locale implementation if available.
The :mod:`!locale` module defines the following exception and functions: | The :mod:`!locale` module is implemented on top of the :mod:`!_locale` module, which in turn uses an ANSI C locale implementation if available.
The :mod:`!locale` module defines the following exception and functions: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ae24b1cf-7bd4-4708-95e5-f4bdc3d67f56 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,561 | supabase-export-v2 | ec1e3e70ca2948e1 | | | | used for monetary values. | +----------------------+-------------------------------------+--------------------------------+ | | ``'positive_sign'`` | Symbol used to annotate a | | | | positive monetary value.
|
+----------------------+-------------------------------------+--------------------------------+
| | `... | trusted_official_docs | CPython Docs | | | | used for monetary values. | +----------------------+-------------------------------------+--------------------------------+ | | ``'positive_sign'`` | Symbol used to annotate a | | | | positive monetary value.
|
+----------------------+-------------------------------------+--------------------------------+
| | `... | | | | used for monetary values. | +----------------------+-------------------------------------+--------------------------------+ | | ``'positive_sign'`` | Symbol used to annotate a | | | | positive monetary value.
|
+----------------------+-------------------------------------+--------------------------------+
| | `... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bc477157-10b8-43e7-91e8-3dd5e6f58974 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,631 | supabase-export-v2 | 38cb208806217694 | The :ref:`Python preinitialization <c-preinit>` configures the LC_CTYPE locale. See also the :term:`filesystem encoding and error handler`.
.. versionchanged:: 3.7
The function now always returns ``"utf-8"`` on Android or if the
:ref:`Python UTF-8 Mode <utf8-mode>` is enabled. | trusted_official_docs | CPython Docs | The :ref:`Python preinitialization <c-preinit>` configures the LC_CTYPE locale. See also the :term:`filesystem encoding and error handler`.
.. versionchanged:: 3.7
The function now always returns ``"utf-8"`` on Android or if the
:ref:`Python UTF-8 Mode <utf8-mode>` is enabled. | The :ref:`Python preinitialization <c-preinit>` configures the LC_CTYPE locale. See also the :term:`filesystem encoding and error handler`.
.. versionchanged:: 3.7
The function now always returns ``"utf-8"`` on Android or if the
:ref:`Python UTF-8 Mode <utf8-mode>` is enabled. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c462eb74-1e27-4685-a480-a131e3ebb310 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,678 | supabase-export-v2 | c9bc13328e0160be | currently does not support application specific locale-aware messages. Messages displayed by the operating system, like those returned by :func:`os.strerror` might be affected by this category.
This value may not be available on operating systems not conforming to the
POSIX standard, most notably Windows. | trusted_official_docs | CPython Docs | currently does not support application specific locale-aware messages. Messages displayed by the operating system, like those returned by :func:`os.strerror` might be affected by this category.
This value may not be available on operating systems not conforming to the
POSIX standard, most notably Windows. | currently does not support application specific locale-aware messages. Messages displayed by the operating system, like those returned by :func:`os.strerror` might be affected by this category.
This value may not be available on operating systems not conforming to the
POSIX standard, most notably Windows. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cba7975d-1e61-4137-96f9-001904ba1461 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,614 | supabase-export-v2 | bea57b0fe667c228 | .. data:: ALT_DIGITS
Get a string consisting of up to 100 semicolon-separated symbols used
to represent the values 0 to 99 in a locale-specific way. In most locales this is an empty string. | trusted_official_docs | CPython Docs | .. data:: ALT_DIGITS
Get a string consisting of up to 100 semicolon-separated symbols used
to represent the values 0 to 99 in a locale-specific way. In most locales this is an empty string. | .. data:: ALT_DIGITS
Get a string consisting of up to 100 semicolon-separated symbols used
to represent the values 0 to 99 in a locale-specific way. In most locales this is an empty string. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ccc070ab-5265-4cf2-b5e7-0f8f6690d0c4 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,677 | supabase-export-v2 | 886bb075a8436d00 | .. data:: LC_MESSAGES
Locale category for message display. Python currently does not support
application specific locale-aware messages. Messages displayed by the operating
system, like those returned by :func:`os.strerror` might be affected by this
category. | trusted_official_docs | CPython Docs | .. data:: LC_MESSAGES
Locale category for message display. Python currently does not support
application specific locale-aware messages. Messages displayed by the operating
system, like those returned by :func:`os.strerror` might be affected by this
category. | .. data:: LC_MESSAGES
Locale category for message display. Python currently does not support
application specific locale-aware messages. Messages displayed by the operating
system, like those returned by :func:`os.strerror` might be affected by this
category. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cdd3e31e-1d07-4dd2-af86-048290476b22 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,687 | supabase-export-v2 | d196089e58920310 | some implementations are broken in such a way that frequent locale changes may cause core dumps. This makes the locale somewhat painful to use correctly.
Initially, when a program is started, the locale is the ``C`` locale, no matter
what the user's preferred locale is. There is one exception: the
:data:`LC_CTYPE` cate... | trusted_official_docs | CPython Docs | some implementations are broken in such a way that frequent locale changes may cause core dumps. This makes the locale somewhat painful to use correctly.
Initially, when a program is started, the locale is the ``C`` locale, no matter
what the user's preferred locale is. There is one exception: the
:data:`LC_CTYPE` cate... | some implementations are broken in such a way that frequent locale changes may cause core dumps. This makes the locale somewhat painful to use correctly.
Initially, when a program is started, the locale is the ``C`` locale, no matter
what the user's preferred locale is. There is one exception: the
:data:`LC_CTYPE` cate... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d0a91295-6388-4350-90da-de424ca4d83a | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,621 | supabase-export-v2 | af11e332c2c567ea | in GNU gettext; it must always contain the variable name ``'LANG'``. The GNU gettext search path contains ``'LC_ALL'``, ``'LC_CTYPE'``, ``'LANG'`` and ``'LANGUAGE'``, in that order.
The language code has the same format as a :ref:`locale name <locale_name>`,
but without encoding and ``@``-modifier. The language code a... | trusted_official_docs | CPython Docs | in GNU gettext; it must always contain the variable name ``'LANG'``. The GNU gettext search path contains ``'LC_ALL'``, ``'LC_CTYPE'``, ``'LANG'`` and ``'LANGUAGE'``, in that order.
The language code has the same format as a :ref:`locale name <locale_name>`,
but without encoding and ``@``-modifier. The language code a... | in GNU gettext; it must always contain the variable name ``'LANG'``. The GNU gettext search path contains ``'LC_ALL'``, ``'LC_CTYPE'``, ``'LANG'`` and ``'LANGUAGE'``, in that order.
The language code has the same format as a :ref:`locale name <locale_name>`,
but without encoding and ``@``-modifier. The language code a... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d12436bd-141a-4e6e-91a9-bcfd97199429 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,570 | supabase-export-v2 | 2a4226379cd6006f | set of possible options might also vary across platforms. The possible argument values are numbers, for which symbolic constants are available in the locale module.
The :func:`nl_langinfo` function accepts one of the following keys. Most
descriptions are taken from the corresponding description in the GNU C
library. | trusted_official_docs | CPython Docs | set of possible options might also vary across platforms. The possible argument values are numbers, for which symbolic constants are available in the locale module.
The :func:`nl_langinfo` function accepts one of the following keys. Most
descriptions are taken from the corresponding description in the GNU C
library. | set of possible options might also vary across platforms. The possible argument values are numbers, for which symbolic constants are available in the locale module.
The :func:`nl_langinfo` function accepts one of the following keys. Most
descriptions are taken from the corresponding description in the GNU C
library. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d52e801e-a766-439b-8acc-cc2d2396a91b | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,691 | supabase-export-v2 | ac717b8a22484edb | The only way to perform numeric operations according to the locale is to use the special functions defined by this module: :func:`atof`, :func:`atoi`, :func:`format_string`, :func:`.str`.
There is no way to perform case conversions and character classifications
according to the locale. For (Unicode) text strings these ... | trusted_official_docs | CPython Docs | The only way to perform numeric operations according to the locale is to use the special functions defined by this module: :func:`atof`, :func:`atoi`, :func:`format_string`, :func:`.str`.
There is no way to perform case conversions and character classifications
according to the locale. For (Unicode) text strings these ... | The only way to perform numeric operations according to the locale is to use the special functions defined by this module: :func:`atof`, :func:`atoi`, :func:`format_string`, :func:`.str`.
There is no way to perform case conversions and character classifications
according to the locale. For (Unicode) text strings these ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d5623c54-2b6d-45a0-b7ca-73227ab1e62e | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,668 | supabase-export-v2 | f85234fecc2075d6 | .. data:: LC_CTYPE
Locale category for the character type functions. Most importantly, this
category defines the text encoding, i.e. how bytes are interpreted as
Unicode codepoints. See :pep:`538` and :pep:`540` for how this variable
might be automatically coerced to ``C.UTF-8`` to avoid issues created by
invalid s... | trusted_official_docs | CPython Docs | .. data:: LC_CTYPE
Locale category for the character type functions. Most importantly, this
category defines the text encoding, i.e. how bytes are interpreted as
Unicode codepoints. See :pep:`538` and :pep:`540` for how this variable
might be automatically coerced to ``C.UTF-8`` to avoid issues created by
invalid s... | .. data:: LC_CTYPE
Locale category for the character type functions. Most importantly, this
category defines the text encoding, i.e. how bytes are interpreted as
Unicode codepoints. See :pep:`538` and :pep:`540` for how this variable
might be automatically coerced to ``C.UTF-8`` to avoid issues created by
invalid s... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
daea706b-bc3c-4834-a202-dc38c58f70af | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,680 | supabase-export-v2 | 49a3f1f7960f684b | .. data:: LC_NUMERIC
Locale category for formatting numbers. The functions :func:`format_string`,
:func:`atoi`, :func:`atof` and :func:`.str` of the :mod:`!locale` module are
affected by that category. All other numeric formatting operations are not
affected. | trusted_official_docs | CPython Docs | .. data:: LC_NUMERIC
Locale category for formatting numbers. The functions :func:`format_string`,
:func:`atoi`, :func:`atof` and :func:`.str` of the :mod:`!locale` module are
affected by that category. All other numeric formatting operations are not
affected. | .. data:: LC_NUMERIC
Locale category for formatting numbers. The functions :func:`format_string`,
:func:`atoi`, :func:`atof` and :func:`.str` of the :mod:`!locale` module are
affected by that category. All other numeric formatting operations are not
affected. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dd9438b3-a7e2-42a6-87f3-d0488f394d45 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,634 | supabase-export-v2 | a334ae8b5dff6379 | Get the current :term:`locale encoding`:
* On Android and VxWorks, return ``"utf-8"``. * On Unix, return the encoding of the current :data:`LC_CTYPE` locale. Return ``"utf-8"`` if ``nl_langinfo(CODESET)`` returns an empty string:
for example, if the current LC_CTYPE locale is not supported. * On Windows, return the AN... | trusted_official_docs | CPython Docs | Get the current :term:`locale encoding`:
* On Android and VxWorks, return ``"utf-8"``. * On Unix, return the encoding of the current :data:`LC_CTYPE` locale. Return ``"utf-8"`` if ``nl_langinfo(CODESET)`` returns an empty string:
for example, if the current LC_CTYPE locale is not supported. * On Windows, return the AN... | Get the current :term:`locale encoding`:
* On Android and VxWorks, return ``"utf-8"``. * On Unix, return the encoding of the current :data:`LC_CTYPE` locale. Return ``"utf-8"`` if ``nl_langinfo(CODESET)`` returns an empty string:
for example, if the current LC_CTYPE locale is not supported. * On Windows, return the AN... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
def63688-e8ed-47ff-a036-f4915d54b86f | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,635 | supabase-export-v2 | c564b6437a9fdaf3 | ``"utf-8"`` if ``nl_langinfo(CODESET)`` returns an empty string: for example, if the current LC_CTYPE locale is not supported. * On Windows, return the ANSI code page.
The :ref:`Python preinitialization <c-preinit>` configures the LC_CTYPE
locale. See also the :term:`filesystem encoding and error handler`. | trusted_official_docs | CPython Docs | ``"utf-8"`` if ``nl_langinfo(CODESET)`` returns an empty string: for example, if the current LC_CTYPE locale is not supported. * On Windows, return the ANSI code page.
The :ref:`Python preinitialization <c-preinit>` configures the LC_CTYPE
locale. See also the :term:`filesystem encoding and error handler`. | ``"utf-8"`` if ``nl_langinfo(CODESET)`` returns an empty string: for example, if the current LC_CTYPE locale is not supported. * On Windows, return the ANSI code page.
The :ref:`Python preinitialization <c-preinit>` configures the LC_CTYPE
locale. See also the :term:`filesystem encoding and error handler`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dfb7a605-f67e-478b-82bf-176fbd06a1a1 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,645 | supabase-export-v2 | af5999ef04222414 | equivalent to ``strcoll(s1, s2) < 0``. This function can be used when the same string is compared repeatedly, e.g. when collating a sequence of strings.
.. function:: format_string(format, val, grouping=False, monetary=False) | trusted_official_docs | CPython Docs | equivalent to ``strcoll(s1, s2) < 0``. This function can be used when the same string is compared repeatedly, e.g. when collating a sequence of strings.
.. function:: format_string(format, val, grouping=False, monetary=False) | equivalent to ``strcoll(s1, s2) < 0``. This function can be used when the same string is compared repeatedly, e.g. when collating a sequence of strings.
.. function:: format_string(format, val, grouping=False, monetary=False) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e026e511-44cf-41ad-b5d6-dde25d098a64 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,615 | supabase-export-v2 | 533b5542666cab15 | up to 100 semicolon-separated symbols used to represent the values 0 to 99 in a locale-specific way. In most locales this is an empty string.
The function temporarily sets the ``LC_CTYPE`` locale to the locale
of the category that determines the requested value (``LC_TIME``,
``LC_NUMERIC``, ``LC_MONETARY`` or ``LC_ME... | trusted_official_docs | CPython Docs | up to 100 semicolon-separated symbols used to represent the values 0 to 99 in a locale-specific way. In most locales this is an empty string.
The function temporarily sets the ``LC_CTYPE`` locale to the locale
of the category that determines the requested value (``LC_TIME``,
``LC_NUMERIC``, ``LC_MONETARY`` or ``LC_ME... | up to 100 semicolon-separated symbols used to represent the values 0 to 99 in a locale-specific way. In most locales this is an empty string.
The function temporarily sets the ``LC_CTYPE`` locale to the locale
of the category that determines the requested value (``LC_TIME``,
``LC_NUMERIC``, ``LC_MONETARY`` or ``LC_ME... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e161f73c-0ed2-4d80-999d-102b62aa27d3 | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,605 | supabase-export-v2 | 7d331669ba44130e | Get a string which describes how years are counted and displayed for each era in a locale.
Most locales do not define this value. An example of a locale which does
define this value is the Japanese one. In Japan, the traditional
representation of dates includes the name of the era corresponding to the
then-emperor's... | trusted_official_docs | CPython Docs | Get a string which describes how years are counted and displayed for each era in a locale.
Most locales do not define this value. An example of a locale which does
define this value is the Japanese one. In Japan, the traditional
representation of dates includes the name of the era corresponding to the
then-emperor's... | Get a string which describes how years are counted and displayed for each era in a locale.
Most locales do not define this value. An example of a locale which does
define this value is the Japanese one. In Japan, the traditional
representation of dates includes the name of the era corresponding to the
then-emperor's... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e170ed6c-cd13-46eb-8b20-4cdc29d7612c | CPython Docs | file://datasets/cpython/Doc/library/locale.rst | unknown | bee6be37-ccb3-44c4-bb92-d247ec047e20 | 8,536 | supabase-export-v2 | 0d15bd3e7db2dad9 | --------------
The :mod:`!locale` module opens access to the POSIX locale database and
functionality. The POSIX locale mechanism allows programmers to deal with
certain cultural issues in an application, without requiring the programmer to
know all the specifics of each country where the software is executed. | trusted_official_docs | CPython Docs | --------------
The :mod:`!locale` module opens access to the POSIX locale database and
functionality. The POSIX locale mechanism allows programmers to deal with
certain cultural issues in an application, without requiring the programmer to
know all the specifics of each country where the software is executed. | --------------
The :mod:`!locale` module opens access to the POSIX locale database and
functionality. The POSIX locale mechanism allows programmers to deal with
certain cultural issues in an application, without requiring the programmer to
know all the specifics of each country where the software is executed. | 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.