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
715f100e-8f68-4c16-bf71-465eb42c2797
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,087
supabase-export-v2
3346680a2ea4da77
are given as the keys of the ``confstr_names`` dictionary. For configuration variables not included in that mapping, passing an integer for *name* is also accepted. If the configuration value specified by *name* isn't defined, ``None`` is returned.
trusted_official_docs
CPython Docs
are given as the keys of the ``confstr_names`` dictionary. For configuration variables not included in that mapping, passing an integer for *name* is also accepted. If the configuration value specified by *name* isn't defined, ``None`` is returned.
are given as the keys of the ``confstr_names`` dictionary. For configuration variables not included in that mapping, passing an integer for *name* is also accepted. If the configuration value specified by *name* isn't defined, ``None`` is returned.
python, official-docs, cpython, P0
Local_Trusted_Corpus
74a627f7-0a85-4d18-abf3-cad0ef26740d
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,115
supabase-export-v2
b901fb0454d69e9c
The constant string used by the operating system to refer to the current directory. This is ``'.'`` for Windows and POSIX. Also available via :mod:`os.path`. .. index:: single: ..; in pathnames .. data:: pardir
trusted_official_docs
CPython Docs
The constant string used by the operating system to refer to the current directory. This is ``'.'`` for Windows and POSIX. Also available via :mod:`os.path`. .. index:: single: ..; in pathnames .. data:: pardir
The constant string used by the operating system to refer to the current directory. This is ``'.'`` for Windows and POSIX. Also available via :mod:`os.path`. .. index:: single: ..; in pathnames .. data:: pardir
python, official-docs, cpython, P0
Local_Trusted_Corpus
789815ac-47f7-44d3-9987-bed9ed6efc6d
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,116
supabase-export-v2
ea0ee37243eb9362
.. index:: single: ..; in pathnames .. data:: pardir The constant string used by the operating system to refer to the parent directory. This is ``'..'`` for Windows and POSIX. Also available via :mod:`os.path`.
trusted_official_docs
CPython Docs
.. index:: single: ..; in pathnames .. data:: pardir The constant string used by the operating system to refer to the parent directory. This is ``'..'`` for Windows and POSIX. Also available via :mod:`os.path`.
.. index:: single: ..; in pathnames .. data:: pardir The constant string used by the operating system to refer to the parent directory. This is ``'..'`` for Windows and POSIX. Also available via :mod:`os.path`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
84c17b3d-5543-44ea-8d05-63ab018dc12e
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,958
supabase-export-v2
b9f7d871d0d54c48
.. function:: wait4(pid, options) Similar to :func:`waitpid`, except a 3-element tuple, containing the child's process id, exit status indication, and resource usage information is returned. Refer to :func:`resource.getrusage` for details on resource usage information. The arguments to :func:`wait4` are the same as ...
trusted_official_docs
CPython Docs
.. function:: wait4(pid, options) Similar to :func:`waitpid`, except a 3-element tuple, containing the child's process id, exit status indication, and resource usage information is returned. Refer to :func:`resource.getrusage` for details on resource usage information. The arguments to :func:`wait4` are the same as ...
.. function:: wait4(pid, options) Similar to :func:`waitpid`, except a 3-element tuple, containing the child's process id, exit status indication, and resource usage information is returned. Refer to :func:`resource.getrusage` for details on resource usage information. The arguments to :func:`wait4` are the same as ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
89f93c26-6848-4b2d-aa6d-4fe89c9d58d2
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,100
supabase-export-v2
4fb2a870e7c5717d
.. function:: process_cpu_count() Get the number of logical CPUs usable by the calling thread of the **current process**. Returns ``None`` if undetermined. It can be less than :func:`cpu_count` depending on the CPU affinity.
trusted_official_docs
CPython Docs
.. function:: process_cpu_count() Get the number of logical CPUs usable by the calling thread of the **current process**. Returns ``None`` if undetermined. It can be less than :func:`cpu_count` depending on the CPU affinity.
.. function:: process_cpu_count() Get the number of logical CPUs usable by the calling thread of the **current process**. Returns ``None`` if undetermined. It can be less than :func:`cpu_count` depending on the CPU affinity.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8eaf2a0f-205e-46ce-87e5-4c6235ede1cc
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,003
supabase-export-v2
7e5ab10ab8ee403f
.. versionadded:: 3.9 The following functions take a process status code as returned by :func:`system`, :func:`wait`, or :func:`waitpid` as a parameter. They may be used to determine the disposition of a process.
trusted_official_docs
CPython Docs
.. versionadded:: 3.9 The following functions take a process status code as returned by :func:`system`, :func:`wait`, or :func:`waitpid` as a parameter. They may be used to determine the disposition of a process.
.. versionadded:: 3.9 The following functions take a process status code as returned by :func:`system`, :func:`wait`, or :func:`waitpid` as a parameter. They may be used to determine the disposition of a process.
python, official-docs, cpython, P0
Local_Trusted_Corpus
92fc414c-fc46-4fe4-8dbe-9806400d41b6
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,088
supabase-export-v2
bdf7abb4edbc39a3
If the configuration value specified by *name* isn't defined, ``None`` is returned. If *name* is a string and is not known, :exc:`ValueError` is raised. If a specific value for *name* is not supported by the host system, even if it is included in ``confstr_names``, an :exc:`OSError` is raised with :const:`errno.EINV...
trusted_official_docs
CPython Docs
If the configuration value specified by *name* isn't defined, ``None`` is returned. If *name* is a string and is not known, :exc:`ValueError` is raised. If a specific value for *name* is not supported by the host system, even if it is included in ``confstr_names``, an :exc:`OSError` is raised with :const:`errno.EINV...
If the configuration value specified by *name* isn't defined, ``None`` is returned. If *name* is a string and is not known, :exc:`ValueError` is raised. If a specific value for *name* is not supported by the host system, even if it is included in ``confstr_names``, an :exc:`OSError` is raised with :const:`errno.EINV...
python, official-docs, cpython, P0
Local_Trusted_Corpus
93141605-5b8d-4552-b9c9-347a6878ab08
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,066
supabase-export-v2
d5b119434b2041a4
.. function:: sched_setscheduler(pid, policy, param, /) Set the scheduling policy for the process with PID *pid*. A *pid* of 0 means the calling process. *policy* is one of the scheduling policy constants above. *param* is a :class:`sched_param` instance.
trusted_official_docs
CPython Docs
.. function:: sched_setscheduler(pid, policy, param, /) Set the scheduling policy for the process with PID *pid*. A *pid* of 0 means the calling process. *policy* is one of the scheduling policy constants above. *param* is a :class:`sched_param` instance.
.. function:: sched_setscheduler(pid, policy, param, /) Set the scheduling policy for the process with PID *pid*. A *pid* of 0 means the calling process. *policy* is one of the scheduling policy constants above. *param* is a :class:`sched_param` instance.
python, official-docs, cpython, P0
Local_Trusted_Corpus
93806222-0067-4c3c-8166-b266858cc877
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,149
supabase-export-v2
0ff585cbf059f15d
On Windows, it will use ``BCryptGenRandom()``. .. seealso:: The :mod:`secrets` module provides higher level functions. For an easy-to-use interface to the random number generator provided by your platform, please see :class:`random.SystemRandom`.
trusted_official_docs
CPython Docs
On Windows, it will use ``BCryptGenRandom()``. .. seealso:: The :mod:`secrets` module provides higher level functions. For an easy-to-use interface to the random number generator provided by your platform, please see :class:`random.SystemRandom`.
On Windows, it will use ``BCryptGenRandom()``. .. seealso:: The :mod:`secrets` module provides higher level functions. For an easy-to-use interface to the random number generator provided by your platform, please see :class:`random.SystemRandom`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
962b3789-a803-46c6-baab-fa392253a322
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,086
supabase-export-v2
31514bacd691abd1
.. function:: confstr(name, /) Return string-valued system configuration values. *name* specifies the configuration value to retrieve; it may be a string which is the name of a defined system value; these names are specified in a number of standards (POSIX, Unix 95, Unix 98, and others). Some platforms define additi...
trusted_official_docs
CPython Docs
.. function:: confstr(name, /) Return string-valued system configuration values. *name* specifies the configuration value to retrieve; it may be a string which is the name of a defined system value; these names are specified in a number of standards (POSIX, Unix 95, Unix 98, and others). Some platforms define additi...
.. function:: confstr(name, /) Return string-valued system configuration values. *name* specifies the configuration value to retrieve; it may be a string which is the name of a defined system value; these names are specified in a number of standards (POSIX, Unix 95, Unix 98, and others). Some platforms define additi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9908697b-4fca-46c0-91b6-82521bf1442e
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,118
supabase-export-v2
72dad5171fe28d96
.. index:: single: / (slash); in pathnames .. index:: single: \ (backslash); in pathnames (Windows) .. data:: sep The character used by the operating system to separate pathname components. This is ``'/'`` for POSIX and ``'\\'`` for Windows. Note that knowing this is not sufficient to be able to parse or concatenate p...
trusted_official_docs
CPython Docs
.. index:: single: / (slash); in pathnames .. index:: single: \ (backslash); in pathnames (Windows) .. data:: sep The character used by the operating system to separate pathname components. This is ``'/'`` for POSIX and ``'\\'`` for Windows. Note that knowing this is not sufficient to be able to parse or concatenate p...
.. index:: single: / (slash); in pathnames .. index:: single: \ (backslash); in pathnames (Windows) .. data:: sep The character used by the operating system to separate pathname components. This is ``'/'`` for POSIX and ``'\\'`` for Windows. Note that knowing this is not sufficient to be able to parse or concatenate p...
python, official-docs, cpython, P0
Local_Trusted_Corpus
99b22379-7a0a-4e0b-900e-b40971160169
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,155
supabase-export-v2
8285c44d500967ec
.. data:: GRND_NONBLOCK By default, when reading from ``/dev/random``, :func:`getrandom` blocks if no random bytes are available, and when reading from ``/dev/urandom``, it blocks if the entropy pool has not yet been initialized.
trusted_official_docs
CPython Docs
.. data:: GRND_NONBLOCK By default, when reading from ``/dev/random``, :func:`getrandom` blocks if no random bytes are available, and when reading from ``/dev/urandom``, it blocks if the entropy pool has not yet been initialized.
.. data:: GRND_NONBLOCK By default, when reading from ``/dev/random``, :func:`getrandom` blocks if no random bytes are available, and when reading from ``/dev/urandom``, it blocks if the entropy pool has not yet been initialized.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9a2600a5-fc42-4ec2-a2c8-89aa709e9bfb
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,922
supabase-export-v2
37a17399b8428555
Returns the current global process times. The return value is an object with five attributes: * :attr:`!user` - user time * :attr:`!system` - system time * :attr:`!children_user` - user time of all child processes * :attr:`!children_system` - system time of all child processes * :attr:`!elapsed` - elapsed real time...
trusted_official_docs
CPython Docs
Returns the current global process times. The return value is an object with five attributes: * :attr:`!user` - user time * :attr:`!system` - system time * :attr:`!children_user` - user time of all child processes * :attr:`!children_system` - system time of all child processes * :attr:`!elapsed` - elapsed real time...
Returns the current global process times. The return value is an object with five attributes: * :attr:`!user` - user time * :attr:`!system` - system time * :attr:`!children_user` - user time of all child processes * :attr:`!children_system` - system time of all child processes * :attr:`!elapsed` - elapsed real time...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9f774788-3d9a-4473-b304-1ab79d3ef173
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,940
supabase-export-v2
3a0518bcba3e6434
of the child) * :attr:`!si_signo` (always :const:`~signal.SIGCHLD`) * :attr:`!si_status` (the exit status or signal number, depending on :attr:`!si_code`) * :attr:`!si_code` (see :data:`CLD_EXITED` for possible values) If :data:`WNOHANG` is specified and there are no matching children in the requested state, ``None`` ...
trusted_official_docs
CPython Docs
of the child) * :attr:`!si_signo` (always :const:`~signal.SIGCHLD`) * :attr:`!si_status` (the exit status or signal number, depending on :attr:`!si_code`) * :attr:`!si_code` (see :data:`CLD_EXITED` for possible values) If :data:`WNOHANG` is specified and there are no matching children in the requested state, ``None`` ...
of the child) * :attr:`!si_signo` (always :const:`~signal.SIGCHLD`) * :attr:`!si_status` (the exit status or signal number, depending on :attr:`!si_code`) * :attr:`!si_code` (see :data:`CLD_EXITED` for possible values) If :data:`WNOHANG` is specified and there are no matching children in the requested state, ``None`` ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9fe13e40-f501-453d-8d5c-a60267ccc16a
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,145
supabase-export-v2
d9a447a692b4de0c
Return a bytestring of *size* random bytes suitable for cryptographic use. This function returns random bytes from an OS-specific randomness source. The returned data should be unpredictable enough for cryptographic applications, though its exact quality depends on the OS implementation.
trusted_official_docs
CPython Docs
Return a bytestring of *size* random bytes suitable for cryptographic use. This function returns random bytes from an OS-specific randomness source. The returned data should be unpredictable enough for cryptographic applications, though its exact quality depends on the OS implementation.
Return a bytestring of *size* random bytes suitable for cryptographic use. This function returns random bytes from an OS-specific randomness source. The returned data should be unpredictable enough for cryptographic applications, though its exact quality depends on the OS implementation.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a029f8e5-209b-416e-ac75-14dc82927e93
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,156
supabase-export-v2
39097bda6fa0c5d3
``/dev/random``, :func:`getrandom` blocks if no random bytes are available, and when reading from ``/dev/urandom``, it blocks if the entropy pool has not yet been initialized. If the :py:data:`GRND_NONBLOCK` flag is set, then :func:`getrandom` does not block in these cases, but instead immediately raises :exc:`Blockin...
trusted_official_docs
CPython Docs
``/dev/random``, :func:`getrandom` blocks if no random bytes are available, and when reading from ``/dev/urandom``, it blocks if the entropy pool has not yet been initialized. If the :py:data:`GRND_NONBLOCK` flag is set, then :func:`getrandom` does not block in these cases, but instead immediately raises :exc:`Blockin...
``/dev/random``, :func:`getrandom` blocks if no random bytes are available, and when reading from ``/dev/urandom``, it blocks if the entropy pool has not yet been initialized. If the :py:data:`GRND_NONBLOCK` flag is set, then :func:`getrandom` does not block in these cases, but instead immediately raises :exc:`Blockin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b0924f71-edf7-4cb9-b932-4a2c8863bba0
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,924
supabase-export-v2
b7d97ee33489a941
For backwards compatibility, this object also behaves like a five-tuple containing :attr:`!user`, :attr:`!system`, :attr:`!children_user`, :attr:`!children_system`, and :attr:`!elapsed` in that order. See the Unix manual page :manpage:`times(2)` and `times(3) <https://man.freebsd.org/cgi/man.cgi?time(3)>`_ manual page...
trusted_official_docs
CPython Docs
For backwards compatibility, this object also behaves like a five-tuple containing :attr:`!user`, :attr:`!system`, :attr:`!children_user`, :attr:`!children_system`, and :attr:`!elapsed` in that order. See the Unix manual page :manpage:`times(2)` and `times(3) <https://man.freebsd.org/cgi/man.cgi?time(3)>`_ manual page...
For backwards compatibility, this object also behaves like a five-tuple containing :attr:`!user`, :attr:`!system`, :attr:`!children_user`, :attr:`!children_system`, and :attr:`!elapsed` in that order. See the Unix manual page :manpage:`times(2)` and `times(3) <https://man.freebsd.org/cgi/man.cgi?time(3)>`_ manual page...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b1bce5ab-3b27-4bc3-870b-1d368ee59eb6
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,889
supabase-export-v2
ad5ab1a29adba6b0
:func:`spawnvp` and :func:`spawnvpe` are not available on Windows. :func:`spawnle` and :func:`spawnve` are not thread-safe on Windows; we advise you to use the :mod:`subprocess` module instead. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
trusted_official_docs
CPython Docs
:func:`spawnvp` and :func:`spawnvpe` are not available on Windows. :func:`spawnle` and :func:`spawnve` are not thread-safe on Windows; we advise you to use the :mod:`subprocess` module instead. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
:func:`spawnvp` and :func:`spawnvpe` are not available on Windows. :func:`spawnle` and :func:`spawnve` are not thread-safe on Windows; we advise you to use the :mod:`subprocess` module instead. .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b238a007-1301-4f93-8da0-ff39ad8e2e87
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,147
supabase-export-v2
5d8eb8ff17672674
can be used to get random bytes in non-blocking mode (using the :data:`GRND_NONBLOCK` flag) or to poll until the system urandom entropy pool is initialized. On a Unix-like system, random bytes are read from the ``/dev/urandom`` device. If the ``/dev/urandom`` device is not available or not readable, the :exc:`NotImpl...
trusted_official_docs
CPython Docs
can be used to get random bytes in non-blocking mode (using the :data:`GRND_NONBLOCK` flag) or to poll until the system urandom entropy pool is initialized. On a Unix-like system, random bytes are read from the ``/dev/urandom`` device. If the ``/dev/urandom`` device is not available or not readable, the :exc:`NotImpl...
can be used to get random bytes in non-blocking mode (using the :data:`GRND_NONBLOCK` flag) or to poll until the system urandom entropy pool is initialized. On a Unix-like system, random bytes are read from the ``/dev/urandom`` device. If the ``/dev/urandom`` device is not available or not readable, the :exc:`NotImpl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b550a0f7-299f-44f7-957e-fd0dd53213ab
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,121
supabase-export-v2
97221fad05ff4d91
or ``None`` if only one separator character exists. This is set to ``'/'`` on Windows systems where ``sep`` is a backslash. Also available via :mod:`os.path`. .. index:: single: . (dot); in pathnames .. data:: extsep
trusted_official_docs
CPython Docs
or ``None`` if only one separator character exists. This is set to ``'/'`` on Windows systems where ``sep`` is a backslash. Also available via :mod:`os.path`. .. index:: single: . (dot); in pathnames .. data:: extsep
or ``None`` if only one separator character exists. This is set to ``'/'`` on Windows systems where ``sep`` is a backslash. Also available via :mod:`os.path`. .. index:: single: . (dot); in pathnames .. data:: extsep
python, official-docs, cpython, P0
Local_Trusted_Corpus
b59cd9fc-0e71-4a78-8b77-3241c5935c0f
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,120
supabase-export-v2
8a6de36d512ffcdd
.. index:: single: / (slash); in pathnames .. data:: altsep An alternative character used by the operating system to separate pathname components, or ``None`` if only one separator character exists. This is set to ``'/'`` on Windows systems where ``sep`` is a backslash. Also available via :mod:`os.path`.
trusted_official_docs
CPython Docs
.. index:: single: / (slash); in pathnames .. data:: altsep An alternative character used by the operating system to separate pathname components, or ``None`` if only one separator character exists. This is set to ``'/'`` on Windows systems where ``sep`` is a backslash. Also available via :mod:`os.path`.
.. index:: single: / (slash); in pathnames .. data:: altsep An alternative character used by the operating system to separate pathname components, or ``None`` if only one separator character exists. This is set to ``'/'`` on Windows systems where ``sep`` is a backslash. Also available via :mod:`os.path`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b5d1e6ba-dde5-4b65-ad2f-d265d7323fb8
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,078
supabase-export-v2
65c571c573aa467e
.. function:: sched_setaffinity(pid, mask, /) Restrict the process with PID *pid* (or the current process if zero) to a set of CPUs. *mask* is an iterable of integers representing the set of CPUs to which the process should be restricted.
trusted_official_docs
CPython Docs
.. function:: sched_setaffinity(pid, mask, /) Restrict the process with PID *pid* (or the current process if zero) to a set of CPUs. *mask* is an iterable of integers representing the set of CPUs to which the process should be restricted.
.. function:: sched_setaffinity(pid, mask, /) Restrict the process with PID *pid* (or the current process if zero) to a set of CPUs. *mask* is an iterable of integers representing the set of CPUs to which the process should be restricted.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b63da91d-5dd4-49ae-aceb-f869c67c435d
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,949
supabase-export-v2
b3f21ed1653898d6
Otherwise, if there are no matching children that could be waited for, :exc:`ChildProcessError` is raised. Other options that can be used are :data:`WUNTRACED` and :data:`WCONTINUED`. On Windows: Wait for completion of a process given by process handle *pid*, and return a tuple containing *pid*, and its exit status sh...
trusted_official_docs
CPython Docs
Otherwise, if there are no matching children that could be waited for, :exc:`ChildProcessError` is raised. Other options that can be used are :data:`WUNTRACED` and :data:`WCONTINUED`. On Windows: Wait for completion of a process given by process handle *pid*, and return a tuple containing *pid*, and its exit status sh...
Otherwise, if there are no matching children that could be waited for, :exc:`ChildProcessError` is raised. Other options that can be used are :data:`WUNTRACED` and :data:`WCONTINUED`. On Windows: Wait for completion of a process given by process handle *pid*, and return a tuple containing *pid*, and its exit status sh...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b87aaa55-70d8-4f60-9754-a9e0ad80854f
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,151
supabase-export-v2
096df84e8d272eb5
used when available. On OpenBSD 5.6 and newer, the C ``getentropy()`` function is now used. These functions avoid the usage of an internal file descriptor. .. versionchanged:: 3.5.2 On Linux, if the ``getrandom()`` syscall blocks (the urandom entropy pool is not initialized yet), fall back on reading ``/dev/urandom``...
trusted_official_docs
CPython Docs
used when available. On OpenBSD 5.6 and newer, the C ``getentropy()`` function is now used. These functions avoid the usage of an internal file descriptor. .. versionchanged:: 3.5.2 On Linux, if the ``getrandom()`` syscall blocks (the urandom entropy pool is not initialized yet), fall back on reading ``/dev/urandom``...
used when available. On OpenBSD 5.6 and newer, the C ``getentropy()`` function is now used. These functions avoid the usage of an internal file descriptor. .. versionchanged:: 3.5.2 On Linux, if the ``getrandom()`` syscall blocks (the urandom entropy pool is not initialized yet), fall back on reading ``/dev/urandom``...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bc3e5035-dbee-45e8-9762-c16db3d9e331
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,146
supabase-export-v2
4b8539905ea01aa1
bytes from an OS-specific randomness source. The returned data should be unpredictable enough for cryptographic applications, though its exact quality depends on the OS implementation. On Linux, if the ``getrandom()`` syscall is available, it is used in blocking mode: block until the system urandom entropy pool is ini...
trusted_official_docs
CPython Docs
bytes from an OS-specific randomness source. The returned data should be unpredictable enough for cryptographic applications, though its exact quality depends on the OS implementation. On Linux, if the ``getrandom()`` syscall is available, it is used in blocking mode: block until the system urandom entropy pool is ini...
bytes from an OS-specific randomness source. The returned data should be unpredictable enough for cryptographic applications, though its exact quality depends on the OS implementation. On Linux, if the ``getrandom()`` syscall is available, it is used in blocking mode: block until the system urandom entropy pool is ini...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bef4e1b5-93ec-48d3-b785-43aca91e31df
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,918
supabase-export-v2
3a1f055aad75fae6
On Unix, :func:`waitstatus_to_exitcode` can be used to convert the result (exit status) into an exit code. On Windows, the result is directly the exit code. .. audit-event:: os.system command os.system
trusted_official_docs
CPython Docs
On Unix, :func:`waitstatus_to_exitcode` can be used to convert the result (exit status) into an exit code. On Windows, the result is directly the exit code. .. audit-event:: os.system command os.system
On Unix, :func:`waitstatus_to_exitcode` can be used to convert the result (exit status) into an exit code. On Windows, the result is directly the exit code. .. audit-event:: os.system command os.system
python, official-docs, cpython, P0
Local_Trusted_Corpus
bfe74ca5-1c11-4893-a688-5422290c6c77
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,132
supabase-export-v2
2dd5225237316803
.. data:: RTLD_LAZY RTLD_NOW RTLD_GLOBAL RTLD_LOCAL RTLD_NODELETE RTLD_NOLOAD RTLD_DEEPBIND Flags for use with the :func:`~sys.setdlopenflags` and :func:`~sys.getdlopenflags` functions. See the Unix manual page :manpage:`dlopen(3)` for what the different flags mean.
trusted_official_docs
CPython Docs
.. data:: RTLD_LAZY RTLD_NOW RTLD_GLOBAL RTLD_LOCAL RTLD_NODELETE RTLD_NOLOAD RTLD_DEEPBIND Flags for use with the :func:`~sys.setdlopenflags` and :func:`~sys.getdlopenflags` functions. See the Unix manual page :manpage:`dlopen(3)` for what the different flags mean.
.. data:: RTLD_LAZY RTLD_NOW RTLD_GLOBAL RTLD_LOCAL RTLD_NODELETE RTLD_NOLOAD RTLD_DEEPBIND Flags for use with the :func:`~sys.setdlopenflags` and :func:`~sys.getdlopenflags` functions. See the Unix manual page :manpage:`dlopen(3)` for what the different flags mean.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c26ee869-7cdd-4826-8269-2eb40e5a346d
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,021
supabase-export-v2
59844f9de7a26f8f
Return ``True`` if the process exited terminated normally, that is, by calling ``exit()`` or ``_exit()``, or by returning from ``main()``; otherwise return ``False``. .. availability:: Unix, not WASI, not Android, not iOS.
trusted_official_docs
CPython Docs
Return ``True`` if the process exited terminated normally, that is, by calling ``exit()`` or ``_exit()``, or by returning from ``main()``; otherwise return ``False``. .. availability:: Unix, not WASI, not Android, not iOS.
Return ``True`` if the process exited terminated normally, that is, by calling ``exit()`` or ``_exit()``, or by returning from ``main()``; otherwise return ``False``. .. availability:: Unix, not WASI, not Android, not iOS.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c8eb76fe-576f-46c3-973e-bffc51129454
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,939
supabase-export-v2
59c283f0ee955294
The return value is an object representing the data contained in the :c:type:`siginfo_t` structure with the following attributes: * :attr:`!si_pid` (process ID) * :attr:`!si_uid` (real user ID of the child) * :attr:`!si_signo` (always :const:`~signal.SIGCHLD`) * :attr:`!si_status` (the exit status or signal number, ...
trusted_official_docs
CPython Docs
The return value is an object representing the data contained in the :c:type:`siginfo_t` structure with the following attributes: * :attr:`!si_pid` (process ID) * :attr:`!si_uid` (real user ID of the child) * :attr:`!si_signo` (always :const:`~signal.SIGCHLD`) * :attr:`!si_status` (the exit status or signal number, ...
The return value is an object representing the data contained in the :c:type:`siginfo_t` structure with the following attributes: * :attr:`!si_pid` (process ID) * :attr:`!si_uid` (real user ID of the child) * :attr:`!si_signo` (always :const:`~signal.SIGCHLD`) * :attr:`!si_status` (the exit status or signal number, ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cf202bf8-c6c7-4f0b-99d1-a6a8c5a619bb
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,947
supabase-export-v2
58ccfdfaea72eb8f
(encoded as for :func:`wait`). The semantics of the call are affected by the value of the integer *options*, which should be ``0`` for normal operation. If *pid* is greater than ``0``, :func:`waitpid` requests status information for that specific process. If *pid* is ``0``, the request is for the status of any child ...
trusted_official_docs
CPython Docs
(encoded as for :func:`wait`). The semantics of the call are affected by the value of the integer *options*, which should be ``0`` for normal operation. If *pid* is greater than ``0``, :func:`waitpid` requests status information for that specific process. If *pid* is ``0``, the request is for the status of any child ...
(encoded as for :func:`wait`). The semantics of the call are affected by the value of the integer *options*, which should be ``0`` for normal operation. If *pid* is greater than ``0``, :func:`waitpid` requests status information for that specific process. If *pid* is ``0``, the request is for the status of any child ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cf6e3ad8-e839-4e26-bc59-7c3c43187914
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,948
supabase-export-v2
4373e30eb6a453f9
the current process. If *pid* is less than ``-1``, status is requested for any process in the process group ``-pid`` (the absolute value of *pid*). *options* is an OR combination of flags. If it contains :data:`WNOHANG` and there are no matching children in the requested state, ``(0, 0)`` is returned. Otherwise, if t...
trusted_official_docs
CPython Docs
the current process. If *pid* is less than ``-1``, status is requested for any process in the process group ``-pid`` (the absolute value of *pid*). *options* is an OR combination of flags. If it contains :data:`WNOHANG` and there are no matching children in the requested state, ``(0, 0)`` is returned. Otherwise, if t...
the current process. If *pid* is less than ``-1``, status is requested for any process in the process group ``-pid`` (the absolute value of *pid*). *options* is an OR combination of flags. If it contains :data:`WNOHANG` and there are no matching children in the requested state, ``(0, 0)`` is returned. Otherwise, if t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cfe14335-3b16-4320-9967-f9b37d7368bd
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,964
supabase-export-v2
0b07e63bcabf00ba
any child; *id* is ignored. * :data:`!P_PIDFD` - wait for the child identified by the file descriptor *id* (a process file descriptor created with :func:`pidfd_open`). .. availability:: Unix, not WASI, not Android, not iOS.
trusted_official_docs
CPython Docs
any child; *id* is ignored. * :data:`!P_PIDFD` - wait for the child identified by the file descriptor *id* (a process file descriptor created with :func:`pidfd_open`). .. availability:: Unix, not WASI, not Android, not iOS.
any child; *id* is ignored. * :data:`!P_PIDFD` - wait for the child identified by the file descriptor *id* (a process file descriptor created with :func:`pidfd_open`). .. availability:: Unix, not WASI, not Android, not iOS.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d151c941-6ee5-42a8-b014-b1df05fc97d4
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,950
supabase-export-v2
f6b857a5c723d442
can refer to any process whose id is known, not necessarily a child process. The :func:`spawn\* <spawnl>` functions called with :const:`P_NOWAIT` return suitable process handles. :func:`waitstatus_to_exitcode` can be used to convert the exit status into an exit code.
trusted_official_docs
CPython Docs
can refer to any process whose id is known, not necessarily a child process. The :func:`spawn\* <spawnl>` functions called with :const:`P_NOWAIT` return suitable process handles. :func:`waitstatus_to_exitcode` can be used to convert the exit status into an exit code.
can refer to any process whose id is known, not necessarily a child process. The :func:`spawn\* <spawnl>` functions called with :const:`P_NOWAIT` return suitable process handles. :func:`waitstatus_to_exitcode` can be used to convert the exit status into an exit code.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d376dcd8-6de5-4ed5-a656-08646c60cf4a
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,128
supabase-export-v2
dc90212ca3d27a3c
.. data:: linesep The string used to separate (or, rather, terminate) lines on the current platform. This may be a single character, such as ``'\n'`` for POSIX, or multiple characters, for example, ``'\r\n'`` for Windows. Do not use *os.linesep* as a line terminator when writing files opened in text mode (the defau...
trusted_official_docs
CPython Docs
.. data:: linesep The string used to separate (or, rather, terminate) lines on the current platform. This may be a single character, such as ``'\n'`` for POSIX, or multiple characters, for example, ``'\r\n'`` for Windows. Do not use *os.linesep* as a line terminator when writing files opened in text mode (the defau...
.. data:: linesep The string used to separate (or, rather, terminate) lines on the current platform. This may be a single character, such as ``'\n'`` for POSIX, or multiple characters, for example, ``'\r\n'`` for Windows. Do not use *os.linesep* as a line terminator when writing files opened in text mode (the defau...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d44852e6-f7f1-4c61-979e-ae00def209b1
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,996
supabase-export-v2
2ebfd01dad980b6c
On Unix: * If the process exited normally (if ``WIFEXITED(status)`` is true), return the process exit status (return ``WEXITSTATUS(status)``): result greater than or equal to 0. * If the process was terminated by a signal (if ``WIFSIGNALED(status)`` is true), return ``-signum`` where *signum* is the number of the si...
trusted_official_docs
CPython Docs
On Unix: * If the process exited normally (if ``WIFEXITED(status)`` is true), return the process exit status (return ``WEXITSTATUS(status)``): result greater than or equal to 0. * If the process was terminated by a signal (if ``WIFSIGNALED(status)`` is true), return ``-signum`` where *signum* is the number of the si...
On Unix: * If the process exited normally (if ``WIFEXITED(status)`` is true), return the process exit status (return ``WEXITSTATUS(status)``): result greater than or equal to 0. * If the process was terminated by a signal (if ``WIFSIGNALED(status)`` is true), return ``-signum`` where *signum* is the number of the si...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d6b85751-1ab4-4b07-8543-e86c01d43737
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,959
supabase-export-v2
400afe4a992938f6
usage information is returned. Refer to :func:`resource.getrusage` for details on resource usage information. The arguments to :func:`wait4` are the same as those provided to :func:`waitpid`. :func:`waitstatus_to_exitcode` can be used to convert the exit status into an exitcode.
trusted_official_docs
CPython Docs
usage information is returned. Refer to :func:`resource.getrusage` for details on resource usage information. The arguments to :func:`wait4` are the same as those provided to :func:`waitpid`. :func:`waitstatus_to_exitcode` can be used to convert the exit status into an exitcode.
usage information is returned. Refer to :func:`resource.getrusage` for details on resource usage information. The arguments to :func:`wait4` are the same as those provided to :func:`waitpid`. :func:`waitstatus_to_exitcode` can be used to convert the exit status into an exitcode.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d9ae4ad1-955e-4abb-83fc-3ad98523095a
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,114
supabase-export-v2
c366f7f0ec7d24a3
.. index:: single: . (dot); in pathnames .. data:: curdir The constant string used by the operating system to refer to the current directory. This is ``'.'`` for Windows and POSIX. Also available via :mod:`os.path`.
trusted_official_docs
CPython Docs
.. index:: single: . (dot); in pathnames .. data:: curdir The constant string used by the operating system to refer to the current directory. This is ``'.'`` for Windows and POSIX. Also available via :mod:`os.path`.
.. index:: single: . (dot); in pathnames .. data:: curdir The constant string used by the operating system to refer to the current directory. This is ``'.'`` for Windows and POSIX. Also available via :mod:`os.path`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
df8760d8-22f4-4ed2-a759-588e39c0fa39
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,903
supabase-export-v2
400f9d535756f3a9
verbs documented by Microsoft are ``'open'``, ``'print'`` and ``'edit'`` (to be used on files) as well as ``'explore'`` and ``'find'`` (to be used on directories). When launching an application, specify *arguments* to be passed as a single string. This argument may have no effect when using this function to launch a ...
trusted_official_docs
CPython Docs
verbs documented by Microsoft are ``'open'``, ``'print'`` and ``'edit'`` (to be used on files) as well as ``'explore'`` and ``'find'`` (to be used on directories). When launching an application, specify *arguments* to be passed as a single string. This argument may have no effect when using this function to launch a ...
verbs documented by Microsoft are ``'open'``, ``'print'`` and ``'edit'`` (to be used on files) as well as ``'explore'`` and ``'find'`` (to be used on directories). When launching an application, specify *arguments* to be passed as a single string. This argument may have no effect when using this function to launch a ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e14a4e19-dc96-4ba6-b041-721636e9d7b0
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,917
supabase-export-v2
3ee48ce7bb2fdd27
and retrieving their results; using that module is recommended to using this function. See the :ref:`subprocess-replacements` section in the :mod:`subprocess` documentation for some helpful recipes. On Unix, :func:`waitstatus_to_exitcode` can be used to convert the result (exit status) into an exit code. On Windows, t...
trusted_official_docs
CPython Docs
and retrieving their results; using that module is recommended to using this function. See the :ref:`subprocess-replacements` section in the :mod:`subprocess` documentation for some helpful recipes. On Unix, :func:`waitstatus_to_exitcode` can be used to convert the result (exit status) into an exit code. On Windows, t...
and retrieving their results; using that module is recommended to using this function. See the :ref:`subprocess-replacements` section in the :mod:`subprocess` documentation for some helpful recipes. On Unix, :func:`waitstatus_to_exitcode` can be used to convert the result (exit status) into an exit code. On Windows, t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e616451d-de4b-444c-9c01-6201d04ce60d
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,119
supabase-export-v2
2afeba72f3b23dd0
not sufficient to be able to parse or concatenate pathnames --- use :func:`os.path.split` and :func:`os.path.join` --- but it is occasionally useful. Also available via :mod:`os.path`. .. index:: single: / (slash); in pathnames .. data:: altsep
trusted_official_docs
CPython Docs
not sufficient to be able to parse or concatenate pathnames --- use :func:`os.path.split` and :func:`os.path.join` --- but it is occasionally useful. Also available via :mod:`os.path`. .. index:: single: / (slash); in pathnames .. data:: altsep
not sufficient to be able to parse or concatenate pathnames --- use :func:`os.path.split` and :func:`os.path.join` --- but it is occasionally useful. Also available via :mod:`os.path`. .. index:: single: / (slash); in pathnames .. data:: altsep
python, official-docs, cpython, P0
Local_Trusted_Corpus
e69fa112-d899-4624-bc56-bccce3b60fa2
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,106
supabase-export-v2
2d47edc3eaf73a8d
.. function:: sysconf(name, /) Return integer-valued system configuration values. If the configuration value specified by *name* isn't defined, ``-1`` is returned. The comments regarding the *name* parameter for :func:`confstr` apply here as well; the dictionary that provides information on the known names is given ...
trusted_official_docs
CPython Docs
.. function:: sysconf(name, /) Return integer-valued system configuration values. If the configuration value specified by *name* isn't defined, ``-1`` is returned. The comments regarding the *name* parameter for :func:`confstr` apply here as well; the dictionary that provides information on the known names is given ...
.. function:: sysconf(name, /) Return integer-valued system configuration values. If the configuration value specified by *name* isn't defined, ``-1`` is returned. The comments regarding the *name* parameter for :func:`confstr` apply here as well; the dictionary that provides information on the known names is given ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e9a21d68-58c9-4c52-a20d-94d0c9fb998a
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,969
supabase-export-v2
ad3e9299b1c0d623
:func:`wait3`, :func:`wait4`, and :func:`waitid` causes child processes to be reported if they have been continued from a job control stop since they were last reported. .. availability:: Unix, not WASI, not Android, not iOS.
trusted_official_docs
CPython Docs
:func:`wait3`, :func:`wait4`, and :func:`waitid` causes child processes to be reported if they have been continued from a job control stop since they were last reported. .. availability:: Unix, not WASI, not Android, not iOS.
:func:`wait3`, :func:`wait4`, and :func:`waitid` causes child processes to be reported if they have been continued from a job control stop since they were last reported. .. availability:: Unix, not WASI, not Android, not iOS.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ed8467c7-4632-4f82-b1b1-8d189592afe8
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,941
supabase-export-v2
18ce358215d71d44
no matching children in the requested state, ``None`` is returned. Otherwise, if there are no matching children that could be waited for, :exc:`ChildProcessError` is raised. .. availability:: Unix, not WASI, not Android, not iOS.
trusted_official_docs
CPython Docs
no matching children in the requested state, ``None`` is returned. Otherwise, if there are no matching children that could be waited for, :exc:`ChildProcessError` is raised. .. availability:: Unix, not WASI, not Android, not iOS.
no matching children in the requested state, ``None`` is returned. Otherwise, if there are no matching children that could be waited for, :exc:`ChildProcessError` is raised. .. availability:: Unix, not WASI, not Android, not iOS.
python, official-docs, cpython, P0
Local_Trusted_Corpus
edd3fba0-e2c2-41db-aea3-8d08f0c32628
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,997
supabase-export-v2
3dfeff776b8ff2af
where *signum* is the number of the signal that caused the process to terminate (return ``-WTERMSIG(status)``): result less than 0. * Otherwise, raise a :exc:`ValueError`. On Windows, return *status* shifted right by 8 bits.
trusted_official_docs
CPython Docs
where *signum* is the number of the signal that caused the process to terminate (return ``-WTERMSIG(status)``): result less than 0. * Otherwise, raise a :exc:`ValueError`. On Windows, return *status* shifted right by 8 bits.
where *signum* is the number of the signal that caused the process to terminate (return ``-WTERMSIG(status)``): result less than 0. * Otherwise, raise a :exc:`ValueError`. On Windows, return *status* shifted right by 8 bits.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f1b05bec-38a4-499f-924c-f29809502356
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,913
supabase-export-v2
9916a25817caa0f0
.. function:: system(command) Execute the command (a string) in a subshell. This is implemented by calling the Standard C function :c:func:`system`, and has the same limitations. Changes to :data:`sys.stdin`, etc. are not reflected in the environment of the executed command. If *command* generates any output, it will...
trusted_official_docs
CPython Docs
.. function:: system(command) Execute the command (a string) in a subshell. This is implemented by calling the Standard C function :c:func:`system`, and has the same limitations. Changes to :data:`sys.stdin`, etc. are not reflected in the environment of the executed command. If *command* generates any output, it will...
.. function:: system(command) Execute the command (a string) in a subshell. This is implemented by calling the Standard C function :c:func:`system`, and has the same limitations. Changes to :data:`sys.stdin`, etc. are not reflected in the environment of the executed command. If *command* generates any output, it will...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f63915b9-7569-4adc-aad9-13e9a0c5cd7c
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,117
supabase-export-v2
c71323526c4de91c
The constant string used by the operating system to refer to the parent directory. This is ``'..'`` for Windows and POSIX. Also available via :mod:`os.path`. .. index:: single: / (slash); in pathnames .. index:: single: \ (backslash); in pathnames (Windows) .. data:: sep
trusted_official_docs
CPython Docs
The constant string used by the operating system to refer to the parent directory. This is ``'..'`` for Windows and POSIX. Also available via :mod:`os.path`. .. index:: single: / (slash); in pathnames .. index:: single: \ (backslash); in pathnames (Windows) .. data:: sep
The constant string used by the operating system to refer to the parent directory. This is ``'..'`` for Windows and POSIX. Also available via :mod:`os.path`. .. index:: single: / (slash); in pathnames .. index:: single: \ (backslash); in pathnames (Windows) .. data:: sep
python, official-docs, cpython, P0
Local_Trusted_Corpus
f8c0d1ba-9924-49c3-9ee9-4cedd158306c
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
44,055
supabase-export-v2
d9716b941c122df0
.. data:: SCHED_RESET_ON_FORK This flag can be OR'ed with any other scheduling policy. When a process with this flag set forks, its child's scheduling policy and priority are reset to the default.
trusted_official_docs
CPython Docs
.. data:: SCHED_RESET_ON_FORK This flag can be OR'ed with any other scheduling policy. When a process with this flag set forks, its child's scheduling policy and priority are reset to the default.
.. data:: SCHED_RESET_ON_FORK This flag can be OR'ed with any other scheduling policy. When a process with this flag set forks, its child's scheduling policy and priority are reset to the default.
python, official-docs, cpython, P0
Local_Trusted_Corpus
fbfff931-0270-4b00-b819-d503b5fd22bf
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,892
supabase-export-v2
bb8d21bc1475d2cd
.. data:: P_NOWAIT P_NOWAITO Possible values for the *mode* parameter to the :func:`spawn\* <spawnl>` family of functions. If either of these values is given, the :func:`spawn\* <spawnl>` functions will return as soon as the new process has been created, with the process id as the return value.
trusted_official_docs
CPython Docs
.. data:: P_NOWAIT P_NOWAITO Possible values for the *mode* parameter to the :func:`spawn\* <spawnl>` family of functions. If either of these values is given, the :func:`spawn\* <spawnl>` functions will return as soon as the new process has been created, with the process id as the return value.
.. data:: P_NOWAIT P_NOWAITO Possible values for the *mode* parameter to the :func:`spawn\* <spawnl>` family of functions. If either of these values is given, the :func:`spawn\* <spawnl>` functions will return as soon as the new process has been created, with the process id as the return value.
python, official-docs, cpython, P0
Local_Trusted_Corpus
35cb5a28-9b5f-40ac-af3e-22c44208e080
CPython Docs
file://datasets/cpython/Doc/library/copyreg.rst
unknown
d84d4ddf-09c0-4ea1-bec1-b1afd70dd2e1
44,171
supabase-export-v2
eadbcef04c1a020b
The *constructor_ob* parameter is a legacy feature and is now ignored, but if passed it must be a callable. Note that the :attr:`~pickle.Pickler.dispatch_table` attribute of a pickler object or subclass of :class:`pickle.Pickler` can also be used for declaring reduction functions.
trusted_official_docs
CPython Docs
The *constructor_ob* parameter is a legacy feature and is now ignored, but if passed it must be a callable. Note that the :attr:`~pickle.Pickler.dispatch_table` attribute of a pickler object or subclass of :class:`pickle.Pickler` can also be used for declaring reduction functions.
The *constructor_ob* parameter is a legacy feature and is now ignored, but if passed it must be a callable. Note that the :attr:`~pickle.Pickler.dispatch_table` attribute of a pickler object or subclass of :class:`pickle.Pickler` can also be used for declaring reduction functions.
python, official-docs, cpython, P0
Local_Trusted_Corpus
41f3572b-5d54-4d68-bcc8-c8375554004b
CPython Docs
file://datasets/cpython/Doc/library/copyreg.rst
unknown
d84d4ddf-09c0-4ea1-bec1-b1afd70dd2e1
44,170
supabase-export-v2
0047bd7944294c94
must return either a string or a tuple containing between two and six elements. See the :attr:`~pickle.Pickler.dispatch_table` for more details on the interface of *function*. The *constructor_ob* parameter is a legacy feature and is now ignored, but if passed it must be a callable.
trusted_official_docs
CPython Docs
must return either a string or a tuple containing between two and six elements. See the :attr:`~pickle.Pickler.dispatch_table` for more details on the interface of *function*. The *constructor_ob* parameter is a legacy feature and is now ignored, but if passed it must be a callable.
must return either a string or a tuple containing between two and six elements. See the :attr:`~pickle.Pickler.dispatch_table` for more details on the interface of *function*. The *constructor_ob* parameter is a legacy feature and is now ignored, but if passed it must be a callable.
python, official-docs, cpython, P0
Local_Trusted_Corpus
94e2bab2-6a69-4b51-8970-1bd84f8c9e08
CPython Docs
file://datasets/cpython/Doc/library/copyreg.rst
unknown
d84d4ddf-09c0-4ea1-bec1-b1afd70dd2e1
44,169
supabase-export-v2
70e62ae0a1fab22e
.. function:: pickle(type, function, constructor_ob=None) Declares that *function* should be used as a "reduction" function for objects of type *type*. *function* must return either a string or a tuple containing between two and six elements. See the :attr:`~pickle.Pickler.dispatch_table` for more details on the int...
trusted_official_docs
CPython Docs
.. function:: pickle(type, function, constructor_ob=None) Declares that *function* should be used as a "reduction" function for objects of type *type*. *function* must return either a string or a tuple containing between two and six elements. See the :attr:`~pickle.Pickler.dispatch_table` for more details on the int...
.. function:: pickle(type, function, constructor_ob=None) Declares that *function* should be used as a "reduction" function for objects of type *type*. *function* must return either a string or a tuple containing between two and six elements. See the :attr:`~pickle.Pickler.dispatch_table` for more details on the int...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c165c373-66a3-49c1-89dc-2c6bf0f911d1
CPython Docs
file://datasets/cpython/Doc/library/copyreg.rst
unknown
d84d4ddf-09c0-4ea1-bec1-b1afd70dd2e1
44,165
supabase-export-v2
428a8e8d67bb8849
-------------- The :mod:`!copyreg` module offers a way to define functions used while pickling specific objects. The :mod:`pickle` and :mod:`copy` modules use those functions when pickling/copying those objects. The module provides configuration information about object constructors which are not classes. Such construc...
trusted_official_docs
CPython Docs
-------------- The :mod:`!copyreg` module offers a way to define functions used while pickling specific objects. The :mod:`pickle` and :mod:`copy` modules use those functions when pickling/copying those objects. The module provides configuration information about object constructors which are not classes. Such construc...
-------------- The :mod:`!copyreg` module offers a way to define functions used while pickling specific objects. The :mod:`pickle` and :mod:`copy` modules use those functions when pickling/copying those objects. The module provides configuration information about object constructors which are not classes. Such construc...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fec5daf0-7bd5-451b-b41f-c5d03a8e7dad
CPython Docs
file://datasets/cpython/Doc/library/copyreg.rst
unknown
d84d4ddf-09c0-4ea1-bec1-b1afd70dd2e1
44,174
supabase-export-v2
1fdf132b056facbf
The example below would like to show how to register a pickle function and how it will be used: >>> import copyreg, copy, pickle >>> class C: ... def __init__(self, a): ... self.a = a ... >>> def pickle_c(c): ... print("pickling a C instance...") ... return C, (c.a,) ... >>> copyreg.pickle(C, pickle_c) >>> c = ...
trusted_official_docs
CPython Docs
The example below would like to show how to register a pickle function and how it will be used: >>> import copyreg, copy, pickle >>> class C: ... def __init__(self, a): ... self.a = a ... >>> def pickle_c(c): ... print("pickling a C instance...") ... return C, (c.a,) ... >>> copyreg.pickle(C, pickle_c) >>> c = ...
The example below would like to show how to register a pickle function and how it will be used: >>> import copyreg, copy, pickle >>> class C: ... def __init__(self, a): ... self.a = a ... >>> def pickle_c(c): ... print("pickling a C instance...") ... return C, (c.a,) ... >>> copyreg.pickle(C, pickle_c) >>> c = ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0077fff4-f0ce-48cf-bb02-031de5e9f114
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,192
supabase-export-v2
0960fb124284625c
timekeeping. The acronym UTC is not a mistake but conforms to an earlier, language-agnostic naming scheme for time standards such as UT0, UT1, and UT2. .. _Coordinated Universal Time: https://en.wikipedia.org/wiki/Coordinated_Universal_Time .. _Greenwich Mean Time: https://en.wikipedia.org/wiki/Greenwich_Mean_Time
trusted_official_docs
CPython Docs
timekeeping. The acronym UTC is not a mistake but conforms to an earlier, language-agnostic naming scheme for time standards such as UT0, UT1, and UT2. .. _Coordinated Universal Time: https://en.wikipedia.org/wiki/Coordinated_Universal_Time .. _Greenwich Mean Time: https://en.wikipedia.org/wiki/Greenwich_Mean_Time
timekeeping. The acronym UTC is not a mistake but conforms to an earlier, language-agnostic naming scheme for time standards such as UT0, UT1, and UT2. .. _Coordinated Universal Time: https://en.wikipedia.org/wiki/Coordinated_Universal_Time .. _Greenwich Mean Time: https://en.wikipedia.org/wiki/Greenwich_Mean_Time
python, official-docs, cpython, P0
Local_Trusted_Corpus
0200875d-38ad-4754-a574-ec5db3aab125
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,250
supabase-export-v2
f6753261208f4c6d
C :c:func:`localtime` or :c:func:`gmtime` functions, and :exc:`OSError` on :c:func:`localtime` or :c:func:`gmtime` failure. It's common for this to be restricted to years between 1970 and 2038. .. versionchanged:: 3.15 Accepts any real number, not only integer or float.
trusted_official_docs
CPython Docs
C :c:func:`localtime` or :c:func:`gmtime` functions, and :exc:`OSError` on :c:func:`localtime` or :c:func:`gmtime` failure. It's common for this to be restricted to years between 1970 and 2038. .. versionchanged:: 3.15 Accepts any real number, not only integer or float.
C :c:func:`localtime` or :c:func:`gmtime` functions, and :exc:`OSError` on :c:func:`localtime` or :c:func:`gmtime` failure. It's common for this to be restricted to years between 1970 and 2038. .. versionchanged:: 3.15 Accepts any real number, not only integer or float.
python, official-docs, cpython, P0
Local_Trusted_Corpus
030ff111-be66-4a4a-a1c0-9dfbb1511b04
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,198
supabase-export-v2
01c3fb728f46c612
:func:`asctime`, :func:`mktime` and :func:`strftime`, is a sequence of 9 integers. The return values of :func:`gmtime`, :func:`localtime`, and :func:`strptime` also offer attribute names for individual fields. See :class:`struct_time` for a description of these objects.
trusted_official_docs
CPython Docs
:func:`asctime`, :func:`mktime` and :func:`strftime`, is a sequence of 9 integers. The return values of :func:`gmtime`, :func:`localtime`, and :func:`strptime` also offer attribute names for individual fields. See :class:`struct_time` for a description of these objects.
:func:`asctime`, :func:`mktime` and :func:`strftime`, is a sequence of 9 integers. The return values of :func:`gmtime`, :func:`localtime`, and :func:`strptime` also offer attribute names for individual fields. See :class:`struct_time` for a description of these objects.
python, official-docs, cpython, P0
Local_Trusted_Corpus
03702a26-dab9-4c9a-bc69-f8d35ff77853
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,180
supabase-export-v2
8efe5333bea81ba0
library functions with the same name. It may sometimes be helpful to consult the platform documentation, because the semantics of these functions varies among platforms. An explanation of some terminology and conventions is in order.
trusted_official_docs
CPython Docs
library functions with the same name. It may sometimes be helpful to consult the platform documentation, because the semantics of these functions varies among platforms. An explanation of some terminology and conventions is in order.
library functions with the same name. It may sometimes be helpful to consult the platform documentation, because the semantics of these functions varies among platforms. An explanation of some terminology and conventions is in order.
python, official-docs, cpython, P0
Local_Trusted_Corpus
06022a05-c48a-45d0-ad14-b2493aec3d4b
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,288
supabase-export-v2
9dcc0fded9f33e11
.. rubric:: Windows implementation On Windows, if *secs* is zero, the thread relinquishes the remainder of its time slice to any other thread that is ready to run. If there are no other threads ready to run, the function returns immediately, and the thread continues execution. On Windows 10 and newer the implementat...
trusted_official_docs
CPython Docs
.. rubric:: Windows implementation On Windows, if *secs* is zero, the thread relinquishes the remainder of its time slice to any other thread that is ready to run. If there are no other threads ready to run, the function returns immediately, and the thread continues execution. On Windows 10 and newer the implementat...
.. rubric:: Windows implementation On Windows, if *secs* is zero, the thread relinquishes the remainder of its time slice to any other thread that is ready to run. If there are no other threads ready to run, the function returns immediately, and the thread continues execution. On Windows 10 and newer the implementat...
python, official-docs, cpython, P0
Local_Trusted_Corpus
06c885c0-0153-481e-afbc-85e801e3fbe2
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,195
supabase-export-v2
dae78073857b8f81
containing the local rules (often it is read from a system file for flexibility) and is the only source of True Wisdom in this respect. * The precision of the various real-time functions may be less than suggested by the units in which their value or argument is expressed. E.g. on most Unix systems, the clock "ticks"...
trusted_official_docs
CPython Docs
containing the local rules (often it is read from a system file for flexibility) and is the only source of True Wisdom in this respect. * The precision of the various real-time functions may be less than suggested by the units in which their value or argument is expressed. E.g. on most Unix systems, the clock "ticks"...
containing the local rules (often it is read from a system file for flexibility) and is the only source of True Wisdom in this respect. * The precision of the various real-time functions may be less than suggested by the units in which their value or argument is expressed. E.g. on most Unix systems, the clock "ticks"...
python, official-docs, cpython, P0
Local_Trusted_Corpus
09e49ece-1945-4ae4-941b-c1f719aef3a3
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,322
supabase-export-v2
53257eacd6c85e73
listed here have a meaning standardized by ANSI C. To see the full set of format codes supported on your platform, consult the :manpage:`strftime(3)` documentation. On some platforms, an optional field width and precision specification can immediately follow the initial ``'%'`` of a directive in the following order; ...
trusted_official_docs
CPython Docs
listed here have a meaning standardized by ANSI C. To see the full set of format codes supported on your platform, consult the :manpage:`strftime(3)` documentation. On some platforms, an optional field width and precision specification can immediately follow the initial ``'%'`` of a directive in the following order; ...
listed here have a meaning standardized by ANSI C. To see the full set of format codes supported on your platform, consult the :manpage:`strftime(3)` documentation. On some platforms, an optional field width and precision specification can immediately follow the initial ``'%'`` of a directive in the following order; ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0c722c74-0d11-4663-bb3d-cbf5f4078f10
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,319
supabase-export-v2
af2e011124a38e56
When used with the :func:`strptime` function, ``%U`` and ``%W`` are only used in calculations when the day of the week and the year are specified. Here is an example, a format for dates compatible with that specified in the :rfc:`5322` Internet email standard. [1]_ ::
trusted_official_docs
CPython Docs
When used with the :func:`strptime` function, ``%U`` and ``%W`` are only used in calculations when the day of the week and the year are specified. Here is an example, a format for dates compatible with that specified in the :rfc:`5322` Internet email standard. [1]_ ::
When used with the :func:`strptime` function, ``%U`` and ``%W`` are only used in calculations when the day of the week and the year are specified. Here is an example, a format for dates compatible with that specified in the :rfc:`5322` Internet email standard. [1]_ ::
python, official-docs, cpython, P0
Local_Trusted_Corpus
10fe77a0-ec34-4b5e-8967-7e7d0f8158cb
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,312
supabase-export-v2
66bedd71b2a121b9
first Thursday of the calendar year. | | +-----------+------------------------------------------------+-------+ | ``%V`` | ISO 8601 week number (as a decimal number | | | | [01,53]). The first week of the year is the | | | | one that contains the first Thursday of the | | | | year. Weeks start on Monday. | | +------...
trusted_official_docs
CPython Docs
first Thursday of the calendar year. | | +-----------+------------------------------------------------+-------+ | ``%V`` | ISO 8601 week number (as a decimal number | | | | [01,53]). The first week of the year is the | | | | one that contains the first Thursday of the | | | | year. Weeks start on Monday. | | +------...
first Thursday of the calendar year. | | +-----------+------------------------------------------------+-------+ | ``%V`` | ISO 8601 week number (as a decimal number | | | | [01,53]). The first week of the year is the | | | | one that contains the first Thursday of the | | | | year. Weeks start on Monday. | | +------...
python, official-docs, cpython, P0
Local_Trusted_Corpus
11885f50-b0f5-4993-a5f3-fb8cfa903370
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,296
supabase-export-v2
bfd7b8d363cdb6cb
at least *secs* even if the sleep is interrupted by a signal, except if the signal handler raises an exception (see :pep:`475` for the rationale). .. versionchanged:: 3.11 On Unix, the ``clock_nanosleep()`` and ``nanosleep()`` functions are now used if available. On Windows, a waitable timer is now used.
trusted_official_docs
CPython Docs
at least *secs* even if the sleep is interrupted by a signal, except if the signal handler raises an exception (see :pep:`475` for the rationale). .. versionchanged:: 3.11 On Unix, the ``clock_nanosleep()`` and ``nanosleep()`` functions are now used if available. On Windows, a waitable timer is now used.
at least *secs* even if the sleep is interrupted by a signal, except if the signal handler raises an exception (see :pep:`475` for the rationale). .. versionchanged:: 3.11 On Unix, the ``clock_nanosleep()`` and ``nanosleep()`` functions are now used if available. On Windows, a waitable timer is now used.
python, official-docs, cpython, P0
Local_Trusted_Corpus
12130e82-4019-4f70-876f-462653e463b0
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,416
supabase-export-v2
f0f039527ee44266
`International Atomic Time <https://www.nist.gov/pml/time-and-frequency-division/how-utcnist-related-coordinated-universal-time-utc-international>`_ The system must have a current leap second table in order for this to give the correct answer. PTP or NTP software can maintain a leap second table.
trusted_official_docs
CPython Docs
`International Atomic Time <https://www.nist.gov/pml/time-and-frequency-division/how-utcnist-related-coordinated-universal-time-utc-international>`_ The system must have a current leap second table in order for this to give the correct answer. PTP or NTP software can maintain a leap second table.
`International Atomic Time <https://www.nist.gov/pml/time-and-frequency-division/how-utcnist-related-coordinated-universal-time-utc-international>`_ The system must have a current leap second table in order for this to give the correct answer. PTP or NTP software can maintain a leap second table.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1313ae6d-608f-4ab2-90d2-27db14ef30b8
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,189
supabase-export-v2
6cfea5ba98156081
.. index:: single: 2-digit years * Function :func:`strptime` can parse 2-digit years when given ``%y`` format code. When 2-digit years are parsed, they are converted according to the POSIX and ISO C standards: values 69--99 are mapped to 1969--1999, and values 0--68 are mapped to 2000--2068.
trusted_official_docs
CPython Docs
.. index:: single: 2-digit years * Function :func:`strptime` can parse 2-digit years when given ``%y`` format code. When 2-digit years are parsed, they are converted according to the POSIX and ISO C standards: values 69--99 are mapped to 1969--1999, and values 0--68 are mapped to 2000--2068.
.. index:: single: 2-digit years * Function :func:`strptime` can parse 2-digit years when given ``%y`` format code. When 2-digit years are parsed, they are converted according to the POSIX and ISO C standards: values 69--99 are mapped to 1969--1999, and values 0--68 are mapped to 2000--2068.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1352e92e-af18-4dca-93a3-0055eb4b5428
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,310
supabase-export-v2
cdffeaea272d82a6
| | | +-----------+------------------------------------------------+-------+ | ``%x`` | Locale's appropriate date representation. | | | | | | +-----------+------------------------------------------------+-------+ | ``%X`` | Locale's appropriate time representation. | | | | | | +-----------+---------------------------...
trusted_official_docs
CPython Docs
| | | +-----------+------------------------------------------------+-------+ | ``%x`` | Locale's appropriate date representation. | | | | | | +-----------+------------------------------------------------+-------+ | ``%X`` | Locale's appropriate time representation. | | | | | | +-----------+---------------------------...
| | | +-----------+------------------------------------------------+-------+ | ``%x`` | Locale's appropriate date representation. | | | | | | +-----------+------------------------------------------------+-------+ | ``%X`` | Locale's appropriate time representation. | | | | | | +-----------+---------------------------...
python, official-docs, cpython, P0
Local_Trusted_Corpus
14cffbce-90a0-4d04-93c5-84eb2ab2d68b
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,321
supabase-export-v2
f53b4032aceb712f
>>> from time import gmtime, strftime >>> strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime()) 'Thu, 28 Jun 2001 14:17:15 +0000' Additional directives may be supported on certain platforms, but only the ones listed here have a meaning standardized by ANSI C. To see the full set of format codes supported on your platform...
trusted_official_docs
CPython Docs
>>> from time import gmtime, strftime >>> strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime()) 'Thu, 28 Jun 2001 14:17:15 +0000' Additional directives may be supported on certain platforms, but only the ones listed here have a meaning standardized by ANSI C. To see the full set of format codes supported on your platform...
>>> from time import gmtime, strftime >>> strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime()) 'Thu, 28 Jun 2001 14:17:15 +0000' Additional directives may be supported on certain platforms, but only the ones listed here have a meaning standardized by ANSI C. To see the full set of format codes supported on your platform...
python, official-docs, cpython, P0
Local_Trusted_Corpus
175697fd-65a5-4b21-ad31-cf03c451bd95
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,346
supabase-export-v2
6d0c5e3d54ca5991
* - N/A - .. attribute:: tm_gmtoff - offset east of UTC in seconds Note that unlike the C structure, the month value is a range of [1, 12], not [0, 11].
trusted_official_docs
CPython Docs
* - N/A - .. attribute:: tm_gmtoff - offset east of UTC in seconds Note that unlike the C structure, the month value is a range of [1, 12], not [0, 11].
* - N/A - .. attribute:: tm_gmtoff - offset east of UTC in seconds Note that unlike the C structure, the month value is a range of [1, 12], not [0, 11].
python, official-docs, cpython, P0
Local_Trusted_Corpus
17d1adf2-5cbd-4d83-8499-e5553845b6fa
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,278
supabase-export-v2
2ade923580fbafc0
.. index:: single: CPU time single: processor time single: benchmarking Return the value (in fractional seconds) of the sum of the system and user CPU time of the current process. It does not include time elapsed during sleep. It is process-wide by definition. The reference point of the returned value is undefined, ...
trusted_official_docs
CPython Docs
.. index:: single: CPU time single: processor time single: benchmarking Return the value (in fractional seconds) of the sum of the system and user CPU time of the current process. It does not include time elapsed during sleep. It is process-wide by definition. The reference point of the returned value is undefined, ...
.. index:: single: CPU time single: processor time single: benchmarking Return the value (in fractional seconds) of the sum of the system and user CPU time of the current process. It does not include time elapsed during sleep. It is process-wide by definition. The reference point of the returned value is undefined, ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1a9e4172-cf20-40a0-9e5c-497e7f589c64
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,302
supabase-export-v2
b5aca5eb8424828a
as returned by :func:`localtime` is used. *format* must be a string. :exc:`ValueError` is raised if any field in *t* is outside of the allowed range. 0 is a legal argument for any position in the time tuple; if it is normally illegal the value is forced to a correct one.
trusted_official_docs
CPython Docs
as returned by :func:`localtime` is used. *format* must be a string. :exc:`ValueError` is raised if any field in *t* is outside of the allowed range. 0 is a legal argument for any position in the time tuple; if it is normally illegal the value is forced to a correct one.
as returned by :func:`localtime` is used. *format* must be a string. :exc:`ValueError` is raised if any field in *t* is outside of the allowed range. 0 is a legal argument for any position in the time tuple; if it is normally illegal the value is forced to a correct one.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1ee15510-9441-4834-b9d6-78777f793142
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,332
supabase-export-v2
02082a8504821918
.. class:: struct_time The type of the time value sequence returned by :func:`gmtime`, :func:`localtime`, and :func:`strptime`. It is an object with a :term:`named tuple` interface: values can be accessed by index and by attribute name. The following values are present:
trusted_official_docs
CPython Docs
.. class:: struct_time The type of the time value sequence returned by :func:`gmtime`, :func:`localtime`, and :func:`strptime`. It is an object with a :term:`named tuple` interface: values can be accessed by index and by attribute name. The following values are present:
.. class:: struct_time The type of the time value sequence returned by :func:`gmtime`, :func:`localtime`, and :func:`strptime`. It is an object with a :term:`named tuple` interface: values can be accessed by index and by attribute name. The following values are present:
python, official-docs, cpython, P0
Local_Trusted_Corpus
23025eaf-ca93-4840-a3e9-8b11e9b551bd
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,330
supabase-export-v2
673e43e6ac61bd71
true. Because of this, it is platform-specific except for recognizing UTC and GMT which are always known (and are considered to be non-daylight savings timezones). Only the directives specified in the documentation are supported. Because ``strftime()`` is implemented per platform it can sometimes offer more directive...
trusted_official_docs
CPython Docs
true. Because of this, it is platform-specific except for recognizing UTC and GMT which are always known (and are considered to be non-daylight savings timezones). Only the directives specified in the documentation are supported. Because ``strftime()`` is implemented per platform it can sometimes offer more directive...
true. Because of this, it is platform-specific except for recognizing UTC and GMT which are always known (and are considered to be non-daylight savings timezones). Only the directives specified in the documentation are supported. Because ``strftime()`` is implemented per platform it can sometimes offer more directive...
python, official-docs, cpython, P0
Local_Trusted_Corpus
230948e1-1cc9-4420-bb47-4a842d00eff5
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,387
supabase-export-v2
0c19c05e3a86d008
os.environ['TZ'] = 'EST+05EDT,M4.1.0,M10.5.0' >>> time.tzset() >>> time.strftime('%X %x %Z') '02:07:36 05/08/03 EDT' >>> os.environ['TZ'] = 'AEST-10AEDT-11,M10.5.0,M3.5.0' >>> time.tzset() >>> time.strftime('%X %x %Z') '16:08:12 05/08/03 AEST' On many Unix systems (including \*BSD, Linux, Solaris, and Darwin), it is mo...
trusted_official_docs
CPython Docs
os.environ['TZ'] = 'EST+05EDT,M4.1.0,M10.5.0' >>> time.tzset() >>> time.strftime('%X %x %Z') '02:07:36 05/08/03 EDT' >>> os.environ['TZ'] = 'AEST-10AEDT-11,M10.5.0,M3.5.0' >>> time.tzset() >>> time.strftime('%X %x %Z') '16:08:12 05/08/03 AEST' On many Unix systems (including \*BSD, Linux, Solaris, and Darwin), it is mo...
os.environ['TZ'] = 'EST+05EDT,M4.1.0,M10.5.0' >>> time.tzset() >>> time.strftime('%X %x %Z') '02:07:36 05/08/03 EDT' >>> os.environ['TZ'] = 'AEST-10AEDT-11,M10.5.0,M3.5.0' >>> time.tzset() >>> time.strftime('%X %x %Z') '16:08:12 05/08/03 AEST' On many Unix systems (including \*BSD, Linux, Solaris, and Darwin), it is mo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
23b2aa0d-9b44-447b-a70f-71665b142f33
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,371
supabase-export-v2
df10900b8222ec77
.. function:: tzset() Reset the time conversion rules used by the library routines. The environment variable :envvar:`TZ` specifies how this is done. It will also set the variables ``tzname`` (from the :envvar:`TZ` environment variable), ``timezone`` (non-DST seconds West of UTC), ``altzone`` (DST seconds west of UT...
trusted_official_docs
CPython Docs
.. function:: tzset() Reset the time conversion rules used by the library routines. The environment variable :envvar:`TZ` specifies how this is done. It will also set the variables ``tzname`` (from the :envvar:`TZ` environment variable), ``timezone`` (non-DST seconds West of UTC), ``altzone`` (DST seconds west of UT...
.. function:: tzset() Reset the time conversion rules used by the library routines. The environment variable :envvar:`TZ` specifies how this is done. It will also set the variables ``tzname`` (from the :envvar:`TZ` environment variable), ``timezone`` (non-DST seconds West of UTC), ``altzone`` (DST seconds west of UT...
python, official-docs, cpython, P0
Local_Trusted_Corpus
25f5790f-fb04-4ba8-8da3-f4b23ae9e656
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,297
supabase-export-v2
34ccf12c6dd54937
.. versionchanged:: 3.11 On Unix, the ``clock_nanosleep()`` and ``nanosleep()`` functions are now used if available. On Windows, a waitable timer is now used. .. versionchanged:: 3.13 Raises an auditing event.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.11 On Unix, the ``clock_nanosleep()`` and ``nanosleep()`` functions are now used if available. On Windows, a waitable timer is now used. .. versionchanged:: 3.13 Raises an auditing event.
.. versionchanged:: 3.11 On Unix, the ``clock_nanosleep()`` and ``nanosleep()`` functions are now used if available. On Windows, a waitable timer is now used. .. versionchanged:: 3.13 Raises an auditing event.
python, official-docs, cpython, P0
Local_Trusted_Corpus
27ebabff-f8a9-41a3-8b0a-97347385f76a
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,194
supabase-export-v2
c54b11a08e91ed54
.. index:: single: Daylight Saving Time * DST is Daylight Saving Time, an adjustment of the timezone by (usually) one hour during part of the year. DST rules are magic (determined by local law) and can change from year to year. The C library has a table containing the local rules (often it is read from a system file...
trusted_official_docs
CPython Docs
.. index:: single: Daylight Saving Time * DST is Daylight Saving Time, an adjustment of the timezone by (usually) one hour during part of the year. DST rules are magic (determined by local law) and can change from year to year. The C library has a table containing the local rules (often it is read from a system file...
.. index:: single: Daylight Saving Time * DST is Daylight Saving Time, an adjustment of the timezone by (usually) one hour during part of the year. DST rules are magic (determined by local law) and can change from year to year. The C library has a table containing the local rules (often it is read from a system file...
python, official-docs, cpython, P0
Local_Trusted_Corpus
28372464-f76e-44e4-8257-c39e635a5468
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,197
supabase-export-v2
d43eb04752a563c7
available (using Unix :c:func:`!gettimeofday` where available), and :func:`sleep` will accept a time with a nonzero fraction (Unix :c:func:`!select` is used to implement this, where available). * The time value as returned by :func:`gmtime`, :func:`localtime`, and :func:`strptime`, and accepted by :func:`asctime`, :fu...
trusted_official_docs
CPython Docs
available (using Unix :c:func:`!gettimeofday` where available), and :func:`sleep` will accept a time with a nonzero fraction (Unix :c:func:`!select` is used to implement this, where available). * The time value as returned by :func:`gmtime`, :func:`localtime`, and :func:`strptime`, and accepted by :func:`asctime`, :fu...
available (using Unix :c:func:`!gettimeofday` where available), and :func:`sleep` will accept a time with a nonzero fraction (Unix :c:func:`!select` is used to implement this, where available). * The time value as returned by :func:`gmtime`, :func:`localtime`, and :func:`strptime`, and accepted by :func:`asctime`, :fu...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2994d645-3702-4e09-97ee-99b0f28ba5f7
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,425
supabase-export-v2
2945571f01467998
Clock that increments monotonically, tracking the time since an arbitrary point, unaffected by frequency or time adjustments and not incremented while the system is asleep. .. availability:: macOS >= 10.12.
trusted_official_docs
CPython Docs
Clock that increments monotonically, tracking the time since an arbitrary point, unaffected by frequency or time adjustments and not incremented while the system is asleep. .. availability:: macOS >= 10.12.
Clock that increments monotonically, tracking the time since an arbitrary point, unaffected by frequency or time adjustments and not incremented while the system is asleep. .. availability:: macOS >= 10.12.
python, official-docs, cpython, P0
Local_Trusted_Corpus
301e9ff5-1ceb-426e-b9ac-79ae0893cb6a
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,351
supabase-export-v2
eaa99020cf961d3d
Unix systems, the leap seconds are not counted towards the time in seconds since the epoch_. This is commonly referred to as `Unix time <https://en.wikipedia.org/wiki/Unix_time>`_. Note that even though the time is always returned as a floating-point number, not all systems provide time with a better precision than 1 ...
trusted_official_docs
CPython Docs
Unix systems, the leap seconds are not counted towards the time in seconds since the epoch_. This is commonly referred to as `Unix time <https://en.wikipedia.org/wiki/Unix_time>`_. Note that even though the time is always returned as a floating-point number, not all systems provide time with a better precision than 1 ...
Unix systems, the leap seconds are not counted towards the time in seconds since the epoch_. This is commonly referred to as `Unix time <https://en.wikipedia.org/wiki/Unix_time>`_. Note that even though the time is always returned as a floating-point number, not all systems provide time with a better precision than 1 ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
33f08292-9419-4cd5-81ce-232d1ac9485e
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,348
supabase-export-v2
939b3bdbdf6857e8
when it is not. A value of -1 indicates that this is not known, and will usually result in the correct state being filled in. When a tuple with an incorrect length is passed to a function expecting a :class:`struct_time`, or having elements of the wrong type, a :exc:`TypeError` is raised.
trusted_official_docs
CPython Docs
when it is not. A value of -1 indicates that this is not known, and will usually result in the correct state being filled in. When a tuple with an incorrect length is passed to a function expecting a :class:`struct_time`, or having elements of the wrong type, a :exc:`TypeError` is raised.
when it is not. A value of -1 indicates that this is not known, and will usually result in the correct state being filled in. When a tuple with an incorrect length is passed to a function expecting a :class:`struct_time`, or having elements of the wrong type, a :exc:`TypeError` is raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
34b84368-9495-49b7-900c-de0c3b3e4ab1
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,384
supabase-export-v2
91caa19b1ca6be17
in either the fourth or the fifth week). Week 1 is the first week in which the *d*'th day occurs. Day zero is a Sunday. ``time`` has the same format as ``offset`` except that no leading sign ('-' or '+') is allowed. The default, if time is not given, is 02:00:00.
trusted_official_docs
CPython Docs
in either the fourth or the fifth week). Week 1 is the first week in which the *d*'th day occurs. Day zero is a Sunday. ``time`` has the same format as ``offset`` except that no leading sign ('-' or '+') is allowed. The default, if time is not given, is 02:00:00.
in either the fourth or the fifth week). Week 1 is the first week in which the *d*'th day occurs. Day zero is a Sunday. ``time`` has the same format as ``offset`` except that no leading sign ('-' or '+') is allowed. The default, if time is not given, is 02:00:00.
python, official-docs, cpython, P0
Local_Trusted_Corpus
36ca8407-0ece-4274-8739-1ffafdd129c3
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,295
supabase-export-v2
378e66a5c4bcd828
.. audit-event:: time.sleep secs .. versionchanged:: 3.5 The function now sleeps at least *secs* even if the sleep is interrupted by a signal, except if the signal handler raises an exception (see :pep:`475` for the rationale).
trusted_official_docs
CPython Docs
.. audit-event:: time.sleep secs .. versionchanged:: 3.5 The function now sleeps at least *secs* even if the sleep is interrupted by a signal, except if the signal handler raises an exception (see :pep:`475` for the rationale).
.. audit-event:: time.sleep secs .. versionchanged:: 3.5 The function now sleeps at least *secs* even if the sleep is interrupted by a signal, except if the signal handler raises an exception (see :pep:`475` for the rationale).
python, official-docs, cpython, P0
Local_Trusted_Corpus
36d5efbe-d402-413c-8dab-af3f3d0ac053
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,246
supabase-export-v2
3215d10e5c78585e
is used. Fractions of a second are ignored. See above for a description of the :class:`struct_time` object. See :func:`calendar.timegm` for the inverse of this function. .. versionchanged:: 3.15 Accepts any real number, not only integer or float.
trusted_official_docs
CPython Docs
is used. Fractions of a second are ignored. See above for a description of the :class:`struct_time` object. See :func:`calendar.timegm` for the inverse of this function. .. versionchanged:: 3.15 Accepts any real number, not only integer or float.
is used. Fractions of a second are ignored. See above for a description of the :class:`struct_time` object. See :func:`calendar.timegm` for the inverse of this function. .. versionchanged:: 3.15 Accepts any real number, not only integer or float.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3b5138c6-cea5-4674-b1c3-f678fa5d5fa3
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,374
supabase-export-v2
3152425c6edbdafa
many cases, changing the :envvar:`TZ` environment variable may affect the output of functions like :func:`localtime` without calling :func:`tzset`, this behavior should not be relied on. The :envvar:`TZ` environment variable should contain no whitespace.
trusted_official_docs
CPython Docs
many cases, changing the :envvar:`TZ` environment variable may affect the output of functions like :func:`localtime` without calling :func:`tzset`, this behavior should not be relied on. The :envvar:`TZ` environment variable should contain no whitespace.
many cases, changing the :envvar:`TZ` environment variable may affect the output of functions like :func:`localtime` without calling :func:`tzset`, this behavior should not be relied on. The :envvar:`TZ` environment variable should contain no whitespace.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3c40b74c-8a47-42dc-903c-0ed85b40d66e
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,380
supabase-export-v2
d297143c25b5e63d
of the Prime Meridian; otherwise, it is west. If no offset follows dst, summer time is assumed to be one hour ahead of standard time. ``start[/time], end[/time]`` Indicates when to change to and back from DST. The format of the start and end dates are one of the following:
trusted_official_docs
CPython Docs
of the Prime Meridian; otherwise, it is west. If no offset follows dst, summer time is assumed to be one hour ahead of standard time. ``start[/time], end[/time]`` Indicates when to change to and back from DST. The format of the start and end dates are one of the following:
of the Prime Meridian; otherwise, it is west. If no offset follows dst, summer time is assumed to be one hour ahead of standard time. ``start[/time], end[/time]`` Indicates when to change to and back from DST. The format of the start and end dates are one of the following:
python, official-docs, cpython, P0
Local_Trusted_Corpus
40675816-17d9-47c2-8d75-549f2907f955
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,363
supabase-export-v2
b30a3d03d9ad5e3f
.. index:: single: CPU time single: processor time single: benchmarking Return the value (in fractional seconds) of the sum of the system and user CPU time of the current thread. It does not include time elapsed during sleep. It is thread-specific by definition. The reference point of the returned value is undefined...
trusted_official_docs
CPython Docs
.. index:: single: CPU time single: processor time single: benchmarking Return the value (in fractional seconds) of the sum of the system and user CPU time of the current thread. It does not include time elapsed during sleep. It is thread-specific by definition. The reference point of the returned value is undefined...
.. index:: single: CPU time single: processor time single: benchmarking Return the value (in fractional seconds) of the sum of the system and user CPU time of the current thread. It does not include time elapsed during sleep. It is thread-specific by definition. The reference point of the returned value is undefined...
python, official-docs, cpython, P0
Local_Trusted_Corpus
43f891e6-0f7b-409d-833a-49d253818d93
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,200
supabase-export-v2
cad2f36918f0a570
.. versionchanged:: 3.3 The :class:`struct_time` type was extended to provide the :attr:`~struct_time.tm_gmtoff` and :attr:`~struct_time.tm_zone` attributes when platform supports corresponding ``struct tm`` members. .. versionchanged:: 3.6 The :class:`struct_time` attributes :attr:`~struct_time.tm_gmtoff` and :attr:...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.3 The :class:`struct_time` type was extended to provide the :attr:`~struct_time.tm_gmtoff` and :attr:`~struct_time.tm_zone` attributes when platform supports corresponding ``struct tm`` members. .. versionchanged:: 3.6 The :class:`struct_time` attributes :attr:`~struct_time.tm_gmtoff` and :attr:...
.. versionchanged:: 3.3 The :class:`struct_time` type was extended to provide the :attr:`~struct_time.tm_gmtoff` and :attr:`~struct_time.tm_zone` attributes when platform supports corresponding ``struct tm`` members. .. versionchanged:: 3.6 The :class:`struct_time` attributes :attr:`~struct_time.tm_gmtoff` and :attr:...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4b09f228-f219-4546-9288-66bfa2e9a11f
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,394
supabase-export-v2
a626e23a1d1e5da0
Identical to :data:`CLOCK_MONOTONIC`, except it also includes any time that the system is suspended. This allows applications to get a suspend-aware monotonic clock without having to deal with the complications of :data:`CLOCK_REALTIME`, which may have discontinuities if the time is changed using ``settimeofday()`` o...
trusted_official_docs
CPython Docs
Identical to :data:`CLOCK_MONOTONIC`, except it also includes any time that the system is suspended. This allows applications to get a suspend-aware monotonic clock without having to deal with the complications of :data:`CLOCK_REALTIME`, which may have discontinuities if the time is changed using ``settimeofday()`` o...
Identical to :data:`CLOCK_MONOTONIC`, except it also includes any time that the system is suspended. This allows applications to get a suspend-aware monotonic clock without having to deal with the complications of :data:`CLOCK_REALTIME`, which may have discontinuities if the time is changed using ``settimeofday()`` o...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4e12dfe6-285e-40ab-afee-0af3be9dbb47
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,220
supabase-export-v2
3e545658e4287918
Return the time of the specified clock *clk_id*. Refer to :ref:`time-clock-id-constants` for a list of accepted values for *clk_id*. Use :func:`clock_gettime_ns` to avoid the precision loss caused by the :class:`float` type.
trusted_official_docs
CPython Docs
Return the time of the specified clock *clk_id*. Refer to :ref:`time-clock-id-constants` for a list of accepted values for *clk_id*. Use :func:`clock_gettime_ns` to avoid the precision loss caused by the :class:`float` type.
Return the time of the specified clock *clk_id*. Refer to :ref:`time-clock-id-constants` for a list of accepted values for *clk_id*. Use :func:`clock_gettime_ns` to avoid the precision loss caused by the :class:`float` type.
python, official-docs, cpython, P0
Local_Trusted_Corpus
51863478-3d85-424e-9e17-bfbdd9a94f1e
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,285
supabase-export-v2
a679620194ae9bf9
Suspend execution of the calling thread for the given number of seconds. The argument may be a non-integer to indicate a more precise sleep time. If the sleep is interrupted by a signal and no exception is raised by the signal handler, the sleep is restarted with a recomputed timeout.
trusted_official_docs
CPython Docs
Suspend execution of the calling thread for the given number of seconds. The argument may be a non-integer to indicate a more precise sleep time. If the sleep is interrupted by a signal and no exception is raised by the signal handler, the sleep is restarted with a recomputed timeout.
Suspend execution of the calling thread for the given number of seconds. The argument may be a non-integer to indicate a more precise sleep time. If the sleep is interrupted by a signal and no exception is raised by the signal handler, the sleep is restarted with a recomputed timeout.
python, official-docs, cpython, P0
Local_Trusted_Corpus
54f35fa7-7858-42b2-8fe6-953d39fbc952
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,315
supabase-export-v2
9014153cb3cb4a2f
``%f`` format directive only applies to :func:`strptime`, not to :func:`strftime`. However, see also :meth:`datetime.datetime.strptime` and :meth:`datetime.datetime.strftime` where the ``%f`` format directive :ref:`applies to microseconds <format-codes>`. (2) When used with the :func:`strptime` function, the ``%p`` di...
trusted_official_docs
CPython Docs
``%f`` format directive only applies to :func:`strptime`, not to :func:`strftime`. However, see also :meth:`datetime.datetime.strptime` and :meth:`datetime.datetime.strftime` where the ``%f`` format directive :ref:`applies to microseconds <format-codes>`. (2) When used with the :func:`strptime` function, the ``%p`` di...
``%f`` format directive only applies to :func:`strptime`, not to :func:`strftime`. However, see also :meth:`datetime.datetime.strptime` and :meth:`datetime.datetime.strftime` where the ``%f`` format directive :ref:`applies to microseconds <format-codes>`. (2) When used with the :func:`strptime` function, the ``%p`` di...
python, official-docs, cpython, P0
Local_Trusted_Corpus
55ecabc5-c513-4e6b-9cc5-83a9bf2be1ee
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,349
supabase-export-v2
66d92e4fc22b11ae
a tuple with an incorrect length is passed to a function expecting a :class:`struct_time`, or having elements of the wrong type, a :exc:`TypeError` is raised. .. function:: time() -> float
trusted_official_docs
CPython Docs
a tuple with an incorrect length is passed to a function expecting a :class:`struct_time`, or having elements of the wrong type, a :exc:`TypeError` is raised. .. function:: time() -> float
a tuple with an incorrect length is passed to a function expecting a :class:`struct_time`, or having elements of the wrong type, a :exc:`TypeError` is raised. .. function:: time() -> float
python, official-docs, cpython, P0
Local_Trusted_Corpus
5869ad43-687c-4aca-bad0-8dba73b851e4
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,320
supabase-export-v2
04befce806caa864
Here is an example, a format for dates compatible with that specified in the :rfc:`5322` Internet email standard. [1]_ :: >>> from time import gmtime, strftime >>> strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime()) 'Thu, 28 Jun 2001 14:17:15 +0000'
trusted_official_docs
CPython Docs
Here is an example, a format for dates compatible with that specified in the :rfc:`5322` Internet email standard. [1]_ :: >>> from time import gmtime, strftime >>> strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime()) 'Thu, 28 Jun 2001 14:17:15 +0000'
Here is an example, a format for dates compatible with that specified in the :rfc:`5322` Internet email standard. [1]_ :: >>> from time import gmtime, strftime >>> strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime()) 'Thu, 28 Jun 2001 14:17:15 +0000'
python, official-docs, cpython, P0
Local_Trusted_Corpus
58b9eee7-2a41-4a31-8b5e-4c7d866e5dee
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,352
supabase-export-v2
2fbed396f5bfbf65
returns non-decreasing values, it can return a lower value than a previous call if the system clock has been set back between the two calls. The number returned by :func:`.time` may be converted into a more common time format (i.e. year, month, day, hour, etc...) in UTC by passing it to :func:`gmtime` function or in ...
trusted_official_docs
CPython Docs
returns non-decreasing values, it can return a lower value than a previous call if the system clock has been set back between the two calls. The number returned by :func:`.time` may be converted into a more common time format (i.e. year, month, day, hour, etc...) in UTC by passing it to :func:`gmtime` function or in ...
returns non-decreasing values, it can return a lower value than a previous call if the system clock has been set back between the two calls. The number returned by :func:`.time` may be converted into a more common time format (i.e. year, month, day, hour, etc...) in UTC by passing it to :func:`gmtime` function or in ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
646fa109-a6b2-4975-9712-11dd4202d394
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,438
supabase-export-v2
09f879c2a49b3cae
.. data:: altzone The offset of the local DST timezone, in seconds west of UTC, if one is defined. This is negative if the local DST timezone is east of UTC (as in Western Europe, including the UK). Only use this if ``daylight`` is nonzero. See note below.
trusted_official_docs
CPython Docs
.. data:: altzone The offset of the local DST timezone, in seconds west of UTC, if one is defined. This is negative if the local DST timezone is east of UTC (as in Western Europe, including the UK). Only use this if ``daylight`` is nonzero. See note below.
.. data:: altzone The offset of the local DST timezone, in seconds west of UTC, if one is defined. This is negative if the local DST timezone is east of UTC (as in Western Europe, including the UK). Only use this if ``daylight`` is nonzero. See note below.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6864a2bc-0e10-4f0b-808b-555488891e1a
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,383
supabase-export-v2
f1deea434310d81f
:samp:`{n}` The zero-based Julian day (0 <= *n* <= 365). Leap days are counted, and it is possible to refer to February 29. :samp:`M{m}.{n}.{d}` The *d*'th day (0 <= *d* <= 6) of week *n* of month *m* of the year (1 <= *n* <= 5, 1 <= *m* <= 12, where week 5 means "the last *d* day in month *m*" which may occur in ei...
trusted_official_docs
CPython Docs
:samp:`{n}` The zero-based Julian day (0 <= *n* <= 365). Leap days are counted, and it is possible to refer to February 29. :samp:`M{m}.{n}.{d}` The *d*'th day (0 <= *d* <= 6) of week *n* of month *m* of the year (1 <= *n* <= 5, 1 <= *m* <= 12, where week 5 means "the last *d* day in month *m*" which may occur in ei...
:samp:`{n}` The zero-based Julian day (0 <= *n* <= 365). Leap days are counted, and it is possible to refer to February 29. :samp:`M{m}.{n}.{d}` The *d*'th day (0 <= *d* <= 6) of week *n* of month *m* of the year (1 <= *n* <= 5, 1 <= *m* <= 12, where week 5 means "the last *d* day in month *m*" which may occur in ei...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6e243a54-d31e-4579-9b54-cc6c23fc733f
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,260
supabase-export-v2
880eabcd0e47f019
.. versionchanged:: 3.5 The function is now always available and the clock is now the same for all processes. .. versionchanged:: 3.10 On macOS, the clock is now the same for all processes.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.5 The function is now always available and the clock is now the same for all processes. .. versionchanged:: 3.10 On macOS, the clock is now the same for all processes.
.. versionchanged:: 3.5 The function is now always available and the clock is now the same for all processes. .. versionchanged:: 3.10 On macOS, the clock is now the same for all processes.
python, official-docs, cpython, P0
Local_Trusted_Corpus
76a5cf49-e333-4789-9ae4-46087ffc04dd
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,329
supabase-export-v2
9c02b850a124d85b
>>> import time >>> time.strptime("30 Nov 00", "%d %b %y") # doctest: +NORMALIZE_WHITESPACE time.struct_time(tm_year=2000, tm_mon=11, tm_mday=30, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=335, tm_isdst=-1) Support for the ``%Z`` directive is based on the values contained in ``tzname`` and whether ``daylight`` ...
trusted_official_docs
CPython Docs
>>> import time >>> time.strptime("30 Nov 00", "%d %b %y") # doctest: +NORMALIZE_WHITESPACE time.struct_time(tm_year=2000, tm_mon=11, tm_mday=30, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=335, tm_isdst=-1) Support for the ``%Z`` directive is based on the values contained in ``tzname`` and whether ``daylight`` ...
>>> import time >>> time.strptime("30 Nov 00", "%d %b %y") # doctest: +NORMALIZE_WHITESPACE time.struct_time(tm_year=2000, tm_mon=11, tm_mday=30, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=335, tm_isdst=-1) Support for the ``%Z`` directive is based on the values contained in ``tzname`` and whether ``daylight`` ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
781323a4-9d0a-41f6-9fb7-d7b6101dedc1
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,187
supabase-export-v2
f831535d980c9119
.. index:: single: Year 2038 * The functions in this module may not handle dates and times before the epoch_ or far in the future. The cut-off point in the future is determined by the C library; for 32-bit systems, it is typically in 2038.
trusted_official_docs
CPython Docs
.. index:: single: Year 2038 * The functions in this module may not handle dates and times before the epoch_ or far in the future. The cut-off point in the future is determined by the C library; for 32-bit systems, it is typically in 2038.
.. index:: single: Year 2038 * The functions in this module may not handle dates and times before the epoch_ or far in the future. The cut-off point in the future is determined by the C library; for 32-bit systems, it is typically in 2038.
python, official-docs, cpython, P0
Local_Trusted_Corpus
79ca7a3e-66bd-4561-9c78-a369ab027ec6
CPython Docs
file://datasets/cpython/Doc/library/time.rst
unknown
84a7f151-afd7-4c62-bc25-17a4dfccdd30
44,190
supabase-export-v2
cb7248e4d83965fc
parsed, they are converted according to the POSIX and ISO C standards: values 69--99 are mapped to 1969--1999, and values 0--68 are mapped to 2000--2068. .. index:: single: UTC single: Coordinated Universal Time single: Greenwich Mean Time
trusted_official_docs
CPython Docs
parsed, they are converted according to the POSIX and ISO C standards: values 69--99 are mapped to 1969--1999, and values 0--68 are mapped to 2000--2068. .. index:: single: UTC single: Coordinated Universal Time single: Greenwich Mean Time
parsed, they are converted according to the POSIX and ISO C standards: values 69--99 are mapped to 1969--1999, and values 0--68 are mapped to 2000--2068. .. index:: single: UTC single: Coordinated Universal Time single: Greenwich Mean Time
python, official-docs, cpython, P0
Local_Trusted_Corpus