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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4fedf070-3171-4ca7-aa6a-4fdbe1fcb748 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,190 | supabase-export-v2 | fb7a25b64bf14eff | this information as possible without making additional system calls. When a ``stat()`` or ``lstat()`` system call is made, the ``os.DirEntry`` object will cache the result.
``os.DirEntry`` instances are not intended to be stored in long-lived data
structures; if you know the file metadata has changed or if a long time... | trusted_official_docs | CPython Docs | this information as possible without making additional system calls. When a ``stat()`` or ``lstat()`` system call is made, the ``os.DirEntry`` object will cache the result.
``os.DirEntry`` instances are not intended to be stored in long-lived data
structures; if you know the file metadata has changed or if a long time... | this information as possible without making additional system calls. When a ``stat()`` or ``lstat()`` system call is made, the ``os.DirEntry`` object will cache the result.
``os.DirEntry`` instances are not intended to be stored in long-lived data
structures; if you know the file metadata has changed or if a long time... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
50cac329-9c38-4470-b207-94c1580b3cd3 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,520 | supabase-export-v2 | 87f77ef9b9a5cd85 | ``False`` has no effect on the behavior of the walk, because in bottom-up mode the directories in *dirnames* are generated before *dirpath* itself is generated.
By default, errors from the :func:`scandir` call are ignored. If optional
argument *onerror* is specified, it should be a function; it will be called with
on... | trusted_official_docs | CPython Docs | ``False`` has no effect on the behavior of the walk, because in bottom-up mode the directories in *dirnames* are generated before *dirpath* itself is generated.
By default, errors from the :func:`scandir` call are ignored. If optional
argument *onerror* is specified, it should be a function; it will be called with
on... | ``False`` has no effect on the behavior of the walk, because in bottom-up mode the directories in *dirnames* are generated before *dirpath* itself is generated.
By default, errors from the :func:`scandir` call are ignored. If optional
argument *onerror* is specified, it should be a function; it will be called with
on... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
516b3cb3-cb59-4769-9dff-05398a137b29 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,893 | supabase-export-v2 | 0f0c5898a3bb6ebc | Return the size of the terminal window as ``(columns, lines)``, tuple of type :class:`terminal_size`.
The optional argument ``fd`` (default ``STDOUT_FILENO``, or standard
output) specifies which file descriptor should be queried. | trusted_official_docs | CPython Docs | Return the size of the terminal window as ``(columns, lines)``, tuple of type :class:`terminal_size`.
The optional argument ``fd`` (default ``STDOUT_FILENO``, or standard
output) specifies which file descriptor should be queried. | Return the size of the terminal window as ``(columns, lines)``, tuple of type :class:`terminal_size`.
The optional argument ``fd`` (default ``STDOUT_FILENO``, or standard
output) specifies which file descriptor should be queried. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
51b0b6fc-7bc0-4c78-bb2b-5c6c58100f77 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,237 | supabase-export-v2 | dbc0fd1300114dc7 | far as possible and call :func:`lstat` on the result. This does not apply to dangling symlinks or junction points, which will raise the usual exceptions.
.. index:: pair: module; stat | trusted_official_docs | CPython Docs | far as possible and call :func:`lstat` on the result. This does not apply to dangling symlinks or junction points, which will raise the usual exceptions.
.. index:: pair: module; stat | far as possible and call :func:`lstat` on the result. This does not apply to dangling symlinks or junction points, which will raise the usual exceptions.
.. index:: pair: module; stat | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
524e17ef-d827-4ad2-beaa-8f4c9419740f | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,311 | supabase-export-v2 | bb8f0413f2fc3f22 | will contain the last metadata change time, for consistency with other platforms, but for now still contains creation time. Use :attr:`st_birthtime` for the creation time.
On Windows, :attr:`st_ino` may now be up to 128 bits, depending
on the file system. Previously it would not be above 64 bits, and
larger file iden... | trusted_official_docs | CPython Docs | will contain the last metadata change time, for consistency with other platforms, but for now still contains creation time. Use :attr:`st_birthtime` for the creation time.
On Windows, :attr:`st_ino` may now be up to 128 bits, depending
on the file system. Previously it would not be above 64 bits, and
larger file iden... | will contain the last metadata change time, for consistency with other platforms, but for now still contains creation time. Use :attr:`st_birthtime` for the creation time.
On Windows, :attr:`st_ino` may now be up to 128 bits, depending
on the file system. Previously it would not be above 64 bits, and
larger file iden... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5333713f-4874-4588-b24e-002ceaf8e2ef | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,869 | supabase-export-v2 | af0b19345685edb4 | * *after_in_parent* is a function called from the parent process after forking a child process. * *after_in_child* is a function called from the child process.
These calls are only made if control is expected to return to the
Python interpreter. A typical :mod:`subprocess` launch will not
trigger them as the child is... | trusted_official_docs | CPython Docs | * *after_in_parent* is a function called from the parent process after forking a child process. * *after_in_child* is a function called from the child process.
These calls are only made if control is expected to return to the
Python interpreter. A typical :mod:`subprocess` launch will not
trigger them as the child is... | * *after_in_parent* is a function called from the parent process after forking a child process. * *after_in_child* is a function called from the child process.
These calls are only made if control is expected to return to the
Python interpreter. A typical :mod:`subprocess` launch will not
trigger them as the child is... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
541011bc-3eab-43fb-83df-0aae0e53c34d | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,369 | supabase-export-v2 | a821e87bfcbeb56a | On Unix, keys and values use :func:`sys.getfilesystemencoding` and ``'surrogateescape'`` error handler. Use :data:`environb` if you would like to use a different encoding.
On Windows, the keys are converted to uppercase. This also applies when
getting, setting, or deleting an item. For example,
``environ['monty'] = '... | trusted_official_docs | CPython Docs | On Unix, keys and values use :func:`sys.getfilesystemencoding` and ``'surrogateescape'`` error handler. Use :data:`environb` if you would like to use a different encoding.
On Windows, the keys are converted to uppercase. This also applies when
getting, setting, or deleting an item. For example,
``environ['monty'] = '... | On Unix, keys and values use :func:`sys.getfilesystemencoding` and ``'surrogateescape'`` error handler. Use :data:`environb` if you would like to use a different encoding.
On Windows, the keys are converted to uppercase. This also applies when
getting, setting, or deleting an item. For example,
``environ['monty'] = '... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
54acaaa0-3f81-476f-947f-53ed9632f3ab | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,682 | supabase-export-v2 | c420f50560b53670 | to position *pos*, modified by *whence*, and return the new position in bytes relative to the start of the file. Valid values for *whence* are:
* :const:`SEEK_SET` or ``0`` -- set *pos* relative to the beginning of the file
* :const:`SEEK_CUR` or ``1`` -- set *pos* relative to the current file position
* :const:`SEEK... | trusted_official_docs | CPython Docs | to position *pos*, modified by *whence*, and return the new position in bytes relative to the start of the file. Valid values for *whence* are:
* :const:`SEEK_SET` or ``0`` -- set *pos* relative to the beginning of the file
* :const:`SEEK_CUR` or ``1`` -- set *pos* relative to the current file position
* :const:`SEEK... | to position *pos*, modified by *whence*, and return the new position in bytes relative to the start of the file. Valid values for *whence* are:
* :const:`SEEK_SET` or ``0`` -- set *pos* relative to the beginning of the file
* :const:`SEEK_CUR` or ``1`` -- set *pos* relative to the current file position
* :const:`SEEK... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
55380e63-8492-4078-adad-4bf0d095c670 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,593 | supabase-export-v2 | 8533b862cc27150c | returned by :func:`os.open` or :func:`pipe`. To close a "file object" returned by the built-in function :func:`open` or by :func:`popen` or :func:`fdopen`, use its :meth:`~io.IOBase.close` method.
.. function:: closerange(fd_low, fd_high, /) | trusted_official_docs | CPython Docs | returned by :func:`os.open` or :func:`pipe`. To close a "file object" returned by the built-in function :func:`open` or by :func:`popen` or :func:`fdopen`, use its :meth:`~io.IOBase.close` method.
.. function:: closerange(fd_low, fd_high, /) | returned by :func:`os.open` or :func:`pipe`. To close a "file object" returned by the built-in function :func:`open` or by :func:`popen` or :func:`fdopen`, use its :meth:`~io.IOBase.close` method.
.. function:: closerange(fd_low, fd_high, /) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
554fd6a6-9c0b-48dc-8bf8-ddf119dab7d1 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,847 | supabase-export-v2 | 721b901c14201ef5 | Transfer *count* bytes from file descriptor *src*, starting from offset *offset_src*, to file descriptor *dst*, starting from offset *offset_dst*.
The splicing behaviour can be modified by specifying a *flags* value. Any of the following variables may used, combined using bitwise OR
(the ``|`` operator): | trusted_official_docs | CPython Docs | Transfer *count* bytes from file descriptor *src*, starting from offset *offset_src*, to file descriptor *dst*, starting from offset *offset_dst*.
The splicing behaviour can be modified by specifying a *flags* value. Any of the following variables may used, combined using bitwise OR
(the ``|`` operator): | Transfer *count* bytes from file descriptor *src*, starting from offset *offset_src*, to file descriptor *dst*, starting from offset *offset_dst*.
The splicing behaviour can be modified by specifying a *flags* value. Any of the following variables may used, combined using bitwise OR
(the ``|`` operator): | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5564eeee-c154-4a3a-9926-f8ac73b9c70e | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,035 | supabase-export-v2 | b9516b6c078ce2b6 | volume, and some may be inaccessible for a variety of reasons, including permissions, network connectivity or missing media. This function does not test for access.
May raise :exc:`OSError` if an error occurs collecting the drive
names. | trusted_official_docs | CPython Docs | volume, and some may be inaccessible for a variety of reasons, including permissions, network connectivity or missing media. This function does not test for access.
May raise :exc:`OSError` if an error occurs collecting the drive
names. | volume, and some may be inaccessible for a variety of reasons, including permissions, network connectivity or missing media. This function does not test for access.
May raise :exc:`OSError` if an error occurs collecting the drive
names. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
55f30ecb-9313-48f4-848c-55038fefa851 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,521 | supabase-export-v2 | 56fdd0816fec440c | with the walk, or raise the exception to abort the walk. Note that the filename is available as the ``filename`` attribute of the exception object.
By default, :func:`walk` will not walk down into symbolic links that resolve to
directories. Set *followlinks* to ``True`` to visit directories pointed to by
symlinks, on... | trusted_official_docs | CPython Docs | with the walk, or raise the exception to abort the walk. Note that the filename is available as the ``filename`` attribute of the exception object.
By default, :func:`walk` will not walk down into symbolic links that resolve to
directories. Set *followlinks* to ``True`` to visit directories pointed to by
symlinks, on... | with the walk, or raise the exception to abort the walk. Note that the filename is available as the ``filename`` attribute of the exception object.
By default, :func:`walk` will not walk down into symbolic links that resolve to
directories. Set *followlinks* to ``True`` to visit directories pointed to by
symlinks, on... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
566601cf-ff15-4257-8a72-9c5d65dbd247 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,849 | supabase-export-v2 | 91187665c85e9522 | kernel is asked to move pages instead of copying, but pages may still be copied if the kernel cannot move the pages from the pipe.
* If :const:`SPLICE_F_NONBLOCK` is specified,
the kernel is asked to not block on I/O. This makes the splice pipe operations nonblocking,
but splice may nevertheless block because the spl... | trusted_official_docs | CPython Docs | kernel is asked to move pages instead of copying, but pages may still be copied if the kernel cannot move the pages from the pipe.
* If :const:`SPLICE_F_NONBLOCK` is specified,
the kernel is asked to not block on I/O. This makes the splice pipe operations nonblocking,
but splice may nevertheless block because the spl... | kernel is asked to move pages instead of copying, but pages may still be copied if the kernel cannot move the pages from the pipe.
* If :const:`SPLICE_F_NONBLOCK` is specified,
the kernel is asked to not block on I/O. This makes the splice pipe operations nonblocking,
but splice may nevertheless block because the spl... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
582ce288-0fbb-49e4-a774-46f607e88fa0 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,884 | supabase-export-v2 | 540421e8d3943f56 | signal handler does not raise an exception, the function now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
.. function:: writev(fd, buffers, /) | trusted_official_docs | CPython Docs | signal handler does not raise an exception, the function now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
.. function:: writev(fd, buffers, /) | signal handler does not raise an exception, the function now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
.. function:: writev(fd, buffers, /) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
59276ca5-f294-4a33-a9ea-01fb6c0da226 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,551 | supabase-export-v2 | 9da4cd3826787485 | purposes. Names do not affect the behavior of the file descriptor, and as such multiple files can have the same name without any side effects.
.. availability:: Linux >= 3.17 with glibc >= 2.27. | trusted_official_docs | CPython Docs | purposes. Names do not affect the behavior of the file descriptor, and as such multiple files can have the same name without any side effects.
.. availability:: Linux >= 3.17 with glibc >= 2.27. | purposes. Names do not affect the behavior of the file descriptor, and as such multiple files can have the same name without any side effects.
.. availability:: Linux >= 3.17 with glibc >= 2.27. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
595bec6a-18f9-43f0-9102-8a6e10f64856 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,503 | supabase-export-v2 | 4399f3bb7781ca21 | *groups*. *groups* must be a sequence, and each element must be an integer identifying a group. This operation is typically available only to the superuser.
.. availability:: Unix, not WASI. | trusted_official_docs | CPython Docs | *groups*. *groups* must be a sequence, and each element must be an integer identifying a group. This operation is typically available only to the superuser.
.. availability:: Unix, not WASI. | *groups*. *groups* must be a sequence, and each element must be an integer identifying a group. This operation is typically available only to the superuser.
.. availability:: Unix, not WASI. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
59ee9658-6263-4b1a-a8d9-21b61b11fb51 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,526 | supabase-export-v2 | 86430d81410a2df9 | relative pathname, don't change the current working directory between resumptions of :func:`walk`. :func:`walk` never changes the current directory, and assumes that its caller doesn't either.
This example displays the number of bytes taken by non-directory files in each
directory under the starting directory, except ... | trusted_official_docs | CPython Docs | relative pathname, don't change the current working directory between resumptions of :func:`walk`. :func:`walk` never changes the current directory, and assumes that its caller doesn't either.
This example displays the number of bytes taken by non-directory files in each
directory under the starting directory, except ... | relative pathname, don't change the current working directory between resumptions of :func:`walk`. :func:`walk` never changes the current directory, and assumes that its caller doesn't either.
This example displays the number of bytes taken by non-directory files in each
directory under the starting directory, except ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5a6d7f4f-04a7-4688-9193-9c2bb46e5341 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,824 | supabase-export-v2 | e0746994cba4e554 | On macOS and FreeBSD, a value of ``0`` for *count* specifies to send until the end of *in_fd* is reached.
All platforms support sockets as *out_fd* file descriptor, and some platforms
allow other types (e.g. regular file, pipe) as well. | trusted_official_docs | CPython Docs | On macOS and FreeBSD, a value of ``0`` for *count* specifies to send until the end of *in_fd* is reached.
All platforms support sockets as *out_fd* file descriptor, and some platforms
allow other types (e.g. regular file, pipe) as well. | On macOS and FreeBSD, a value of ``0`` for *count* specifies to send until the end of *in_fd* is reached.
All platforms support sockets as *out_fd* file descriptor, and some platforms
allow other types (e.g. regular file, pipe) as well. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5afca7cc-db6c-4c7d-bcb8-ad11623d6264 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,034 | supabase-export-v2 | 1b6fd52051b97b8a | Return a list containing the names of drives on a Windows system.
A drive name typically looks like ``'C:\\'``. Not every drive name
will be associated with a volume, and some may be inaccessible for
a variety of reasons, including permissions, network connectivity
or missing media. This function does not test for a... | trusted_official_docs | CPython Docs | Return a list containing the names of drives on a Windows system.
A drive name typically looks like ``'C:\\'``. Not every drive name
will be associated with a volume, and some may be inaccessible for
a variety of reasons, including permissions, network connectivity
or missing media. This function does not test for a... | Return a list containing the names of drives on a Windows system.
A drive name typically looks like ``'C:\\'``. Not every drive name
will be associated with a volume, and some may be inaccessible for
a variety of reasons, including permissions, network connectivity
or missing media. This function does not test for a... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5b1f5e43-7039-4722-8b67-c7ebff51750d | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,550 | supabase-export-v2 | 034430c6b39c2020 | .. placed in this section since it relates to errno.... a little weak .. function:: strerror(code, /)
Return the error message corresponding to the error code in *code*. On platforms where :c:func:`!strerror` returns ``NULL`` when given an unknown
error number, :exc:`ValueError` is raised. | trusted_official_docs | CPython Docs | .. placed in this section since it relates to errno.... a little weak .. function:: strerror(code, /)
Return the error message corresponding to the error code in *code*. On platforms where :c:func:`!strerror` returns ``NULL`` when given an unknown
error number, :exc:`ValueError` is raised. | .. placed in this section since it relates to errno.... a little weak .. function:: strerror(code, /)
Return the error message corresponding to the error code in *code*. On platforms where :c:func:`!strerror` returns ``NULL`` when given an unknown
error number, :exc:`ValueError` is raised. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5b4b2bb2-9582-418a-96ea-e0fb9507a00c | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,654 | supabase-export-v2 | 35c87529e8a05798 | A flag for the :func:`timerfd_settime` and :func:`timerfd_settime_ns` functions along with :const:`TFD_TIMER_ABSTIME`. The timer is cancelled when the time of the underlying clock changes discontinuously.
.. availability:: Linux >= 2.6.27 with glibc >= 2.8 | trusted_official_docs | CPython Docs | A flag for the :func:`timerfd_settime` and :func:`timerfd_settime_ns` functions along with :const:`TFD_TIMER_ABSTIME`. The timer is cancelled when the time of the underlying clock changes discontinuously.
.. availability:: Linux >= 2.6.27 with glibc >= 2.8 | A flag for the :func:`timerfd_settime` and :func:`timerfd_settime_ns` functions along with :const:`TFD_TIMER_ABSTIME`. The timer is cancelled when the time of the underlying clock changes discontinuously.
.. availability:: Linux >= 2.6.27 with glibc >= 2.8 | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5c5a2bd2-5517-4005-9212-a7db4173c702 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,596 | supabase-export-v2 | f692ff55d4c3d657 | :func:`~select.select` and :func:`~select.poll` can be used to wait until timer expires and the file descriptor is readable.
*clockid* must be a valid :ref:`clock ID <time-clock-id-constants>`,
as defined in the :py:mod:`time` module: | trusted_official_docs | CPython Docs | :func:`~select.select` and :func:`~select.poll` can be used to wait until timer expires and the file descriptor is readable.
*clockid* must be a valid :ref:`clock ID <time-clock-id-constants>`,
as defined in the :py:mod:`time` module: | :func:`~select.select` and :func:`~select.poll` can be used to wait until timer expires and the file descriptor is readable.
*clockid* must be a valid :ref:`clock ID <time-clock-id-constants>`,
as defined in the :py:mod:`time` module: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5c5f549c-4768-4f6f-b052-5a3ea3f80c42 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,231 | supabase-export-v2 | 4f30943a2e401c13 | .. versionchanged:: 3.6 Added support for the :class:`~os.PathLike` interface. Added support for :class:`bytes` paths on Windows.
.. versionchanged:: 3.12
The ``st_ctime`` attribute of a stat result is deprecated on Windows. The file creation time is properly available as ``st_birthtime``, and
in the future ``st_ctim... | trusted_official_docs | CPython Docs | .. versionchanged:: 3.6 Added support for the :class:`~os.PathLike` interface. Added support for :class:`bytes` paths on Windows.
.. versionchanged:: 3.12
The ``st_ctime`` attribute of a stat result is deprecated on Windows. The file creation time is properly available as ``st_birthtime``, and
in the future ``st_ctim... | .. versionchanged:: 3.6 Added support for the :class:`~os.PathLike` interface. Added support for :class:`bytes` paths on Windows.
.. versionchanged:: 3.12
The ``st_ctime`` attribute of a stat result is deprecated on Windows. The file creation time is properly available as ``st_birthtime``, and
in the future ``st_ctim... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5cc09542-63bb-4584-8a3a-7bedadb9cdb6 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,616 | supabase-export-v2 | 5dd25fd2e2e70f0b | By default the timer will fire when *initial* seconds have elapsed. (If *initial* is zero, timer will fire immediately.)
However, if the :const:`TFD_TIMER_ABSTIME` flag is set,
the timer will fire when the timer's clock
(set by *clockid* in :func:`timerfd_create`) reaches *initial* seconds. | trusted_official_docs | CPython Docs | By default the timer will fire when *initial* seconds have elapsed. (If *initial* is zero, timer will fire immediately.)
However, if the :const:`TFD_TIMER_ABSTIME` flag is set,
the timer will fire when the timer's clock
(set by *clockid* in :func:`timerfd_create`) reaches *initial* seconds. | By default the timer will fire when *initial* seconds have elapsed. (If *initial* is zero, timer will fire immediately.)
However, if the :const:`TFD_TIMER_ABSTIME` flag is set,
the timer will fire when the timer's clock
(set by *clockid* in :func:`timerfd_create`) reaches *initial* seconds. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5db66b91-d3c4-419b-981b-915e6b531b8e | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,650 | supabase-export-v2 | 40cc1a83254e6d6f | If this flag is set, *initial* is interpreted as an absolute value on the timer's clock (in UTC seconds or nanoseconds since the Unix Epoch).
.. availability:: Linux >= 2.6.27 with glibc >= 2.8 | trusted_official_docs | CPython Docs | If this flag is set, *initial* is interpreted as an absolute value on the timer's clock (in UTC seconds or nanoseconds since the Unix Epoch).
.. availability:: Linux >= 2.6.27 with glibc >= 2.8 | If this flag is set, *initial* is interpreted as an absolute value on the timer's clock (in UTC seconds or nanoseconds since the Unix Epoch).
.. availability:: Linux >= 2.6.27 with glibc >= 2.8 | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5e45ae6c-0783-4b90-ab8a-c3bce044671f | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,817 | supabase-export-v2 | 06df83c8ae3d5166 | descriptor has not yet terminated, then an attempt to wait on the file descriptor using :manpage:`waitid(2)` will immediately return the error :const:`~errno.EAGAIN` rather than blocking.
.. availability:: Linux >= 5.10
.. versionadded:: 3.12 | trusted_official_docs | CPython Docs | descriptor has not yet terminated, then an attempt to wait on the file descriptor using :manpage:`waitid(2)` will immediately return the error :const:`~errno.EAGAIN` rather than blocking.
.. availability:: Linux >= 5.10
.. versionadded:: 3.12 | descriptor has not yet terminated, then an attempt to wait on the file descriptor using :manpage:`waitid(2)` will immediately return the error :const:`~errno.EAGAIN` rather than blocking.
.. availability:: Linux >= 5.10
.. versionadded:: 3.12 | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5f9754c8-fe59-40d2-8c6b-728ad0093feb | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,143 | supabase-export-v2 | b7ef6dbe21c06793 | :exc:`FileExistsError` is always raised. The operation may fail if *src* and *dst* are on different filesystems. Use :func:`shutil.move` to support moves to a different filesystem.
On Unix, if *src* is a file and *dst* is a directory or vice-versa, an
:exc:`IsADirectoryError` or a :exc:`NotADirectoryError` will be rai... | trusted_official_docs | CPython Docs | :exc:`FileExistsError` is always raised. The operation may fail if *src* and *dst* are on different filesystems. Use :func:`shutil.move` to support moves to a different filesystem.
On Unix, if *src* is a file and *dst* is a directory or vice-versa, an
:exc:`IsADirectoryError` or a :exc:`NotADirectoryError` will be rai... | :exc:`FileExistsError` is always raised. The operation may fail if *src* and *dst* are on different filesystems. Use :func:`shutil.move` to support moves to a different filesystem.
On Unix, if *src* is a file and *dst* is a directory or vice-versa, an
:exc:`IsADirectoryError` or a :exc:`NotADirectoryError` will be rai... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
60965d4a-7802-4e49-a4f7-f62672ea8085 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,176 | supabase-export-v2 | 3109a3a67181a9ae | Close the iterator and free acquired resources.
This is called automatically when the iterator is exhausted or garbage
collected, or when an error happens during iterating. However it
is advisable to call it explicitly or use the :keyword:`with`
statement. | trusted_official_docs | CPython Docs | Close the iterator and free acquired resources.
This is called automatically when the iterator is exhausted or garbage
collected, or when an error happens during iterating. However it
is advisable to call it explicitly or use the :keyword:`with`
statement. | Close the iterator and free acquired resources.
This is called automatically when the iterator is exhausted or garbage
collected, or when an error happens during iterating. However it
is advisable to call it explicitly or use the :keyword:`with`
statement. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
60f56c18-b2c5-46a5-b660-d0477d815930 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,157 | supabase-export-v2 | 64636e99daf38c9d | operation may fail if *src* and *dst* are on different filesystems. If successful, the renaming will be an atomic operation (this is a POSIX requirement).
This function can support specifying *src_dir_fd* and/or *dst_dir_fd* to
supply :ref:`paths relative to directory descriptors <dir_fd>`. | trusted_official_docs | CPython Docs | operation may fail if *src* and *dst* are on different filesystems. If successful, the renaming will be an atomic operation (this is a POSIX requirement).
This function can support specifying *src_dir_fd* and/or *dst_dir_fd* to
supply :ref:`paths relative to directory descriptors <dir_fd>`. | operation may fail if *src* and *dst* are on different filesystems. If successful, the renaming will be an atomic operation (this is a POSIX requirement).
This function can support specifying *src_dir_fd* and/or *dst_dir_fd* to
supply :ref:`paths relative to directory descriptors <dir_fd>`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
611920fb-a283-4190-b5cb-8d4bdb6c3613 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,619 | supabase-export-v2 | 735bb38a623b74f8 | timer is :const:`time.CLOCK_REALTIME`, the timer is marked as cancelable if the real-time clock is changed discontinuously. Reading the descriptor is aborted with the error ECANCELED.
Linux manages system clock as UTC. A daylight-savings time transition is
done by changing time offset only and doesn't cause discontinu... | trusted_official_docs | CPython Docs | timer is :const:`time.CLOCK_REALTIME`, the timer is marked as cancelable if the real-time clock is changed discontinuously. Reading the descriptor is aborted with the error ECANCELED.
Linux manages system clock as UTC. A daylight-savings time transition is
done by changing time offset only and doesn't cause discontinu... | timer is :const:`time.CLOCK_REALTIME`, the timer is marked as cancelable if the real-time clock is changed discontinuously. Reading the descriptor is aborted with the error ECANCELED.
Linux manages system clock as UTC. A daylight-savings time transition is
done by changing time offset only and doesn't cause discontinu... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
614cb8f0-c033-412f-bb8e-cff9f85fbedb | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,085 | supabase-export-v2 | 6940b3faad4b0a75 | did not match the mode of the existing directory. Since this behavior was impossible to implement safely, it was removed in Python 3.4.1. See :issue:`21082`.
.. versionchanged:: 3.6
Accepts a :term:`path-like object`. | trusted_official_docs | CPython Docs | did not match the mode of the existing directory. Since this behavior was impossible to implement safely, it was removed in Python 3.4.1. See :issue:`21082`.
.. versionchanged:: 3.6
Accepts a :term:`path-like object`. | did not match the mode of the existing directory. Since this behavior was impossible to implement safely, it was removed in Python 3.4.1. See :issue:`21082`.
.. versionchanged:: 3.6
Accepts a :term:`path-like object`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
61a440a1-a2ff-4d3f-8ebf-15e9393841ca | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,704 | supabase-export-v2 | 8062a381f7275d26 | .. note::
This function is intended for low-level I/O. For normal usage, use the
built-in function :func:`open`, which returns a :term:`file object` with
:meth:`~io.BufferedIOBase.read` and :meth:`~io.BufferedIOBase.write` methods. To wrap a file descriptor in a file object, use :func:`fdopen`. | trusted_official_docs | CPython Docs | .. note::
This function is intended for low-level I/O. For normal usage, use the
built-in function :func:`open`, which returns a :term:`file object` with
:meth:`~io.BufferedIOBase.read` and :meth:`~io.BufferedIOBase.write` methods. To wrap a file descriptor in a file object, use :func:`fdopen`. | .. note::
This function is intended for low-level I/O. For normal usage, use the
built-in function :func:`open`, which returns a :term:`file object` with
:meth:`~io.BufferedIOBase.read` and :meth:`~io.BufferedIOBase.write` methods. To wrap a file descriptor in a file object, use :func:`fdopen`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6209c31a-4b87-4540-ae7a-8fc491a13a02 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,317 | supabase-export-v2 | 8144a5d40e0c70a6 | of the module-level :const:`AT_STATX_* <AT_STATX_FORCE_SYNC>` constants and/or :const:`AT_NO_AUTOMOUNT`. Returns a :class:`statx_result` object whose :attr:`~os.statx_result.stx_mask` attribute specifies the information actually retrieved (which may differ from *mask*).
This function supports :ref:`specifying a file de... | trusted_official_docs | CPython Docs | of the module-level :const:`AT_STATX_* <AT_STATX_FORCE_SYNC>` constants and/or :const:`AT_NO_AUTOMOUNT`. Returns a :class:`statx_result` object whose :attr:`~os.statx_result.stx_mask` attribute specifies the information actually retrieved (which may differ from *mask*).
This function supports :ref:`specifying a file de... | of the module-level :const:`AT_STATX_* <AT_STATX_FORCE_SYNC>` constants and/or :const:`AT_NO_AUTOMOUNT`. Returns a :class:`statx_result` object whose :attr:`~os.statx_result.stx_mask` attribute specifies the information actually retrieved (which may differ from *mask*).
This function supports :ref:`specifying a file de... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
622fd492-07d5-4c75-948a-e5aa1fe2479a | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,636 | supabase-export-v2 | 2736830bec461234 | .. function:: fpathconf(fd, name, /)
Return system configuration information relevant to an open file. *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.1, Unix 95, Unix 98, and others). Some... | trusted_official_docs | CPython Docs | .. function:: fpathconf(fd, name, /)
Return system configuration information relevant to an open file. *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.1, Unix 95, Unix 98, and others). Some... | .. function:: fpathconf(fd, name, /)
Return system configuration information relevant to an open file. *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.1, Unix 95, Unix 98, and others). Some... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
62c0ee12-cd43-42bc-b8b9-4e23486c85b9 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,429 | supabase-export-v2 | 3f5ff811fc735913 | return up-to-date information even when doing so is expensive (for example, requiring a round trip to the server for a file on a network filesystem).
.. availability:: Linux >= 4.11 with glibc >= 2.28. | trusted_official_docs | CPython Docs | return up-to-date information even when doing so is expensive (for example, requiring a round trip to the server for a file on a network filesystem).
.. availability:: Linux >= 4.11 with glibc >= 2.28. | return up-to-date information even when doing so is expensive (for example, requiring a round trip to the server for a file on a network filesystem).
.. availability:: Linux >= 4.11 with glibc >= 2.28. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
632aadf5-b218-4b9e-acf7-c0d253091554 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,479 | supabase-export-v2 | 52cce0c72d89c020 | if Developer Mode is enabled. When Developer Mode is not available/enabled, the *SeCreateSymbolicLinkPrivilege* privilege is required, or the process must be run as an administrator.
:exc:`OSError` is raised when the function is called by an unprivileged
user. | trusted_official_docs | CPython Docs | if Developer Mode is enabled. When Developer Mode is not available/enabled, the *SeCreateSymbolicLinkPrivilege* privilege is required, or the process must be run as an administrator.
:exc:`OSError` is raised when the function is called by an unprivileged
user. | if Developer Mode is enabled. When Developer Mode is not available/enabled, the *SeCreateSymbolicLinkPrivilege* privilege is required, or the process must be run as an administrator.
:exc:`OSError` is raised when the function is called by an unprivileged
user. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
63808f28-21bd-4743-814b-ccc2ff06f335 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,813 | supabase-export-v2 | 1864273b67fc0ae4 | Return a file descriptor referring to the process *pid* with *flags* set. This descriptor can be used to perform process management without races and signals.
See the :manpage:`pidfd_open(2)` man page for more details. | trusted_official_docs | CPython Docs | Return a file descriptor referring to the process *pid* with *flags* set. This descriptor can be used to perform process management without races and signals.
See the :manpage:`pidfd_open(2)` man page for more details. | Return a file descriptor referring to the process *pid* with *flags* set. This descriptor can be used to perform process management without races and signals.
See the :manpage:`pidfd_open(2)` man page for more details. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
63843097-4079-4f0b-b407-e86ef4f92bbf | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,156 | supabase-export-v2 | 5977413f0b4a7a1c | .. function:: replace(src, dst, *, src_dir_fd=None, dst_dir_fd=None)
Rename the file or directory *src* to *dst*. If *dst* is a non-empty directory,
:exc:`OSError` will be raised. If *dst* exists and is a file, it will
be replaced silently if the user has permission. The operation may fail
if *src* and *dst* are on ... | trusted_official_docs | CPython Docs | .. function:: replace(src, dst, *, src_dir_fd=None, dst_dir_fd=None)
Rename the file or directory *src* to *dst*. If *dst* is a non-empty directory,
:exc:`OSError` will be raised. If *dst* exists and is a file, it will
be replaced silently if the user has permission. The operation may fail
if *src* and *dst* are on ... | .. function:: replace(src, dst, *, src_dir_fd=None, dst_dir_fd=None)
Rename the file or directory *src* to *dst*. If *dst* is a non-empty directory,
:exc:`OSError` will be raised. If *dst* exists and is a file, it will
be replaced silently if the user has permission. The operation may fail
if *src* and *dst* are on ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
63d963c1-5315-4cf7-a9a4-79b9cf13d697 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,066 | supabase-export-v2 | d0f5d38258eab15f | representation of the *mode*) are set, their meaning is platform-dependent. On some platforms, they are ignored and you should call :func:`chmod` explicitly to set them.
On Windows, a *mode* of ``0o700`` is specifically handled to apply access
control to the new directory such that only the current user and
administr... | trusted_official_docs | CPython Docs | representation of the *mode*) are set, their meaning is platform-dependent. On some platforms, they are ignored and you should call :func:`chmod` explicitly to set them.
On Windows, a *mode* of ``0o700`` is specifically handled to apply access
control to the new directory such that only the current user and
administr... | representation of the *mode*) are set, their meaning is platform-dependent. On some platforms, they are ignored and you should call :func:`chmod` explicitly to set them.
On Windows, a *mode* of ``0o700`` is specifically handled to apply access
control to the new directory such that only the current user and
administr... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6468a4eb-4b3c-4026-90a6-bfd3f8a56d59 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,958 | supabase-export-v2 | 5b567ee26e8a4130 | * :const:`stat.UF_NODUMP` * :const:`stat.UF_IMMUTABLE` * :const:`stat.UF_APPEND` * :const:`stat.UF_OPAQUE` * :const:`stat.UF_NOUNLINK` * :const:`stat.UF_COMPRESSED` * :const:`stat.UF_HIDDEN` * :const:`stat.SF_ARCHIVED` * :const:`stat.SF_IMMUTABLE` * :const:`stat.SF_APPEND` * :const:`stat.SF_NOUNLINK` * :const:`stat.SF_... | trusted_official_docs | CPython Docs | * :const:`stat.UF_NODUMP` * :const:`stat.UF_IMMUTABLE` * :const:`stat.UF_APPEND` * :const:`stat.UF_OPAQUE` * :const:`stat.UF_NOUNLINK` * :const:`stat.UF_COMPRESSED` * :const:`stat.UF_HIDDEN` * :const:`stat.SF_ARCHIVED` * :const:`stat.SF_IMMUTABLE` * :const:`stat.SF_APPEND` * :const:`stat.SF_NOUNLINK` * :const:`stat.SF_... | * :const:`stat.UF_NODUMP` * :const:`stat.UF_IMMUTABLE` * :const:`stat.UF_APPEND` * :const:`stat.UF_OPAQUE` * :const:`stat.UF_NOUNLINK` * :const:`stat.UF_COMPRESSED` * :const:`stat.UF_HIDDEN` * :const:`stat.SF_ARCHIVED` * :const:`stat.SF_IMMUTABLE` * :const:`stat.SF_APPEND` * :const:`stat.SF_NOUNLINK` * :const:`stat.SF_... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6532db11-8e99-46f4-a55b-163c3fd76559 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,751 | supabase-export-v2 | 179f6a6c0615694e | The *oflag* argument is used to set file status flags and file access modes as specified in the manual page of :c:func:`posix_openpt` of your system.
The returned file descriptor is :ref:`non-inheritable <fd_inheritance>`. If the value :data:`O_CLOEXEC` is available on the system, it is added to
*oflag*. | trusted_official_docs | CPython Docs | The *oflag* argument is used to set file status flags and file access modes as specified in the manual page of :c:func:`posix_openpt` of your system.
The returned file descriptor is :ref:`non-inheritable <fd_inheritance>`. If the value :data:`O_CLOEXEC` is available on the system, it is added to
*oflag*. | The *oflag* argument is used to set file status flags and file access modes as specified in the manual page of :c:func:`posix_openpt` of your system.
The returned file descriptor is :ref:`non-inheritable <fd_inheritance>`. If the value :data:`O_CLOEXEC` is available on the system, it is added to
*oflag*. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6689f2ef-efd7-4198-8215-0d249642fd8c | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,709 | supabase-export-v2 | 894dd0795c89f39e | not available on all platforms. For descriptions of their availability and use, consult the :manpage:`open(2)` manual page on Unix or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windows.
.. data:: O_RDONLY
O_WRONLY
O_RDWR
O_APPEND
O_CREAT
O_EXCL
O_TRUNC | trusted_official_docs | CPython Docs | not available on all platforms. For descriptions of their availability and use, consult the :manpage:`open(2)` manual page on Unix or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windows.
.. data:: O_RDONLY
O_WRONLY
O_RDWR
O_APPEND
O_CREAT
O_EXCL
O_TRUNC | not available on all platforms. For descriptions of their availability and use, consult the :manpage:`open(2)` manual page on Unix or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windows.
.. data:: O_RDONLY
O_WRONLY
O_RDWR
O_APPEND
O_CREAT
O_EXCL
O_TRUNC | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
66aaf6bd-a8c0-48b4-b52e-78643b2d2bc9 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,560 | supabase-export-v2 | 965afdb2f2ed5a1f | Returns information identifying the current operating system. The return value is an object with five attributes:
* :attr:`sysname` - operating system name
* :attr:`nodename` - name of machine on network (implementation-defined)
* :attr:`release` - operating system release
* :attr:`version` - operating system versio... | trusted_official_docs | CPython Docs | Returns information identifying the current operating system. The return value is an object with five attributes:
* :attr:`sysname` - operating system name
* :attr:`nodename` - name of machine on network (implementation-defined)
* :attr:`release` - operating system release
* :attr:`version` - operating system versio... | Returns information identifying the current operating system. The return value is an object with five attributes:
* :attr:`sysname` - operating system name
* :attr:`nodename` - name of machine on network (implementation-defined)
* :attr:`release` - operating system release
* :attr:`version` - operating system versio... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
66ae1e65-c6b8-40f2-80d3-2bb4d4288ede | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,507 | supabase-export-v2 | 406bbb560e9d648d | to nanoseconds. - If *times* is ``None`` and *ns* is unspecified, this is equivalent to specifying ``ns=(atime_ns, mtime_ns)`` where both times are the current time.
It is an error to specify tuples for both *times* and *ns*. | trusted_official_docs | CPython Docs | to nanoseconds. - If *times* is ``None`` and *ns* is unspecified, this is equivalent to specifying ``ns=(atime_ns, mtime_ns)`` where both times are the current time.
It is an error to specify tuples for both *times* and *ns*. | to nanoseconds. - If *times* is ``None`` and *ns* is unspecified, this is equivalent to specifying ``ns=(atime_ns, mtime_ns)`` where both times are the current time.
It is an error to specify tuples for both *times* and *ns*. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
66ba958d-a520-4607-aae6-b24a59b59284 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,537 | supabase-export-v2 | 5ebfe890d39c3d3e | *dirpath*, *dirnames* and *filenames* are identical to :func:`walk` output, and *dirfd* is a file descriptor referring to the directory *dirpath*.
This function always supports :ref:`paths relative to directory descriptors
<dir_fd>` and :ref:`not following symlinks <follow_symlinks>`. Note however
that, unlike other ... | trusted_official_docs | CPython Docs | *dirpath*, *dirnames* and *filenames* are identical to :func:`walk` output, and *dirfd* is a file descriptor referring to the directory *dirpath*.
This function always supports :ref:`paths relative to directory descriptors
<dir_fd>` and :ref:`not following symlinks <follow_symlinks>`. Note however
that, unlike other ... | *dirpath*, *dirnames* and *filenames* are identical to :func:`walk` output, and *dirfd* is a file descriptor referring to the directory *dirpath*.
This function always supports :ref:`paths relative to directory descriptors
<dir_fd>` and :ref:`not following symlinks <follow_symlinks>`. Note however
that, unlike other ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6707c235-e1d1-47ce-8e59-0dc97273d947 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,981 | supabase-export-v2 | e08442dfb6707210 | The function is limited on WASI, see :ref:`wasm-availability` for more information.
.. versionchanged:: 3.3
Added support for specifying *path* as an open file descriptor,
and the *dir_fd* and *follow_symlinks* arguments. | trusted_official_docs | CPython Docs | The function is limited on WASI, see :ref:`wasm-availability` for more information.
.. versionchanged:: 3.3
Added support for specifying *path* as an open file descriptor,
and the *dir_fd* and *follow_symlinks* arguments. | The function is limited on WASI, see :ref:`wasm-availability` for more information.
.. versionchanged:: 3.3
Added support for specifying *path* as an open file descriptor,
and the *dir_fd* and *follow_symlinks* arguments. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
68014d6b-fdb2-4f3d-9f51-dca01e0773f7 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,875 | supabase-export-v2 | c553cfabc55d5753 | .. versionadded:: 3.7
.. function:: spawnl(mode, path, ...)
spawnle(mode, path, ..., env)
spawnlp(mode, file, ...)
spawnlpe(mode, file, ..., env)
spawnv(mode, path, args)
spawnve(mode, path, args, env)
spawnvp(mode, file, args)
spawnvpe(mode, file, args, env) | trusted_official_docs | CPython Docs | .. versionadded:: 3.7
.. function:: spawnl(mode, path, ...)
spawnle(mode, path, ..., env)
spawnlp(mode, file, ...)
spawnlpe(mode, file, ..., env)
spawnv(mode, path, args)
spawnve(mode, path, args, env)
spawnvp(mode, file, args)
spawnvpe(mode, file, args, env) | .. versionadded:: 3.7
.. function:: spawnl(mode, path, ...)
spawnle(mode, path, ..., env)
spawnlp(mode, file, ...)
spawnlpe(mode, file, ..., env)
spawnv(mode, path, args)
spawnve(mode, path, args, env)
spawnvp(mode, file, args)
spawnvpe(mode, file, args, env) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
681f6299-1354-4437-862c-895763084957 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,867 | supabase-export-v2 | d7c736189257a788 | .. function:: register_at_fork(*, before=None, after_in_parent=None, \ after_in_child=None)
Register callables to be executed when a new child process is forked
using :func:`os.fork` or similar process cloning APIs. The parameters are optional and keyword-only. Each specifies a different call point. | trusted_official_docs | CPython Docs | .. function:: register_at_fork(*, before=None, after_in_parent=None, \ after_in_child=None)
Register callables to be executed when a new child process is forked
using :func:`os.fork` or similar process cloning APIs. The parameters are optional and keyword-only. Each specifies a different call point. | .. function:: register_at_fork(*, before=None, after_in_parent=None, \ after_in_child=None)
Register callables to be executed when a new child process is forked
using :func:`os.fork` or similar process cloning APIs. The parameters are optional and keyword-only. Each specifies a different call point. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
68ece3d7-b60d-4217-92dd-37ee8d7bd18a | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,327 | supabase-export-v2 | a7e70055003a6bb7 | * Extensions peculiar to a particular operating system are also available through the :mod:`!os` module, but using them is of course a threat to portability.
* All functions accepting path or file names accept both bytes and string
objects, and result in an object of the same type, if a path or file name is
returned. | trusted_official_docs | CPython Docs | * Extensions peculiar to a particular operating system are also available through the :mod:`!os` module, but using them is of course a threat to portability.
* All functions accepting path or file names accept both bytes and string
objects, and result in an object of the same type, if a path or file name is
returned. | * Extensions peculiar to a particular operating system are also available through the :mod:`!os` module, but using them is of course a threat to portability.
* All functions accepting path or file names accept both bytes and string
objects, and result in an object of the same type, if a path or file name is
returned. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6cf05336-06b7-4d2a-954e-47809977f876 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,956 | supabase-export-v2 | 2381e22878e27552 | .. function:: chflags(path, flags, *, follow_symlinks=True)
Set the flags of *path* to the numeric *flags*. *flags* may take a combination
(bitwise OR) of the following values (as defined in the :mod:`stat` module): | trusted_official_docs | CPython Docs | .. function:: chflags(path, flags, *, follow_symlinks=True)
Set the flags of *path* to the numeric *flags*. *flags* may take a combination
(bitwise OR) of the following values (as defined in the :mod:`stat` module): | .. function:: chflags(path, flags, *, follow_symlinks=True)
Set the flags of *path* to the numeric *flags*. *flags* may take a combination
(bitwise OR) of the following values (as defined in the :mod:`stat` module): | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6d198845-5303-45e4-999a-5046854de38b | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,807 | supabase-export-v2 | 2c4d927b032f0066 | Read at most *n* bytes from file descriptor *fd*.
Return a bytestring containing the bytes read. If the end of the file
referred to by *fd* has been reached, an empty bytes object is returned. | trusted_official_docs | CPython Docs | Read at most *n* bytes from file descriptor *fd*.
Return a bytestring containing the bytes read. If the end of the file
referred to by *fd* has been reached, an empty bytes object is returned. | Read at most *n* bytes from file descriptor *fd*.
Return a bytestring containing the bytes read. If the end of the file
referred to by *fd* has been reached, an empty bytes object is returned. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6d2dc4df-07f7-4a06-b90d-f682d14f1183 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,664 | supabase-export-v2 | af6d59a0ec3d13a8 | slave pseudo-terminal device associated with the master pseudo-terminal device to which the file descriptor *fd* refers. The file descriptor *fd* is not closed upon failure.
Calls the C standard library function :c:func:`grantpt`. | trusted_official_docs | CPython Docs | slave pseudo-terminal device associated with the master pseudo-terminal device to which the file descriptor *fd* refers. The file descriptor *fd* is not closed upon failure.
Calls the C standard library function :c:func:`grantpt`. | slave pseudo-terminal device associated with the master pseudo-terminal device to which the file descriptor *fd* refers. The file descriptor *fd* is not closed upon failure.
Calls the C standard library function :c:func:`grantpt`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6e75a221-2545-4909-9cce-fe4cc30918e1 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,595 | supabase-export-v2 | 9f07a2d1a16e07ef | expired one or more times, :func:`read` returns the number of expirations with the host's endianness, which may be converted to an :class:`int` by ``int.from_bytes(x, byteorder=sys.byteorder)``.
:func:`~select.select` and :func:`~select.poll` can be used to wait until
timer expires and the file descriptor is readable. | trusted_official_docs | CPython Docs | expired one or more times, :func:`read` returns the number of expirations with the host's endianness, which may be converted to an :class:`int` by ``int.from_bytes(x, byteorder=sys.byteorder)``.
:func:`~select.select` and :func:`~select.poll` can be used to wait until
timer expires and the file descriptor is readable. | expired one or more times, :func:`read` returns the number of expirations with the host's endianness, which may be converted to an :class:`int` by ``int.from_bytes(x, byteorder=sys.byteorder)``.
:func:`~select.select` and :func:`~select.poll` can be used to wait until
timer expires and the file descriptor is readable. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6eb68d3e-8145-4a3c-8d22-61749c72adad | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,380 | supabase-export-v2 | 010f6145678be5d2 | object where both keys and values are :class:`bytes` objects representing the process environment. :data:`environ` and :data:`environb` are synchronized (modifying :data:`environb` updates :data:`environ`, and vice versa).
:data:`environb` is only available if :const:`supports_bytes_environ` is
``True``. | trusted_official_docs | CPython Docs | object where both keys and values are :class:`bytes` objects representing the process environment. :data:`environ` and :data:`environb` are synchronized (modifying :data:`environb` updates :data:`environ`, and vice versa).
:data:`environb` is only available if :const:`supports_bytes_environ` is
``True``. | object where both keys and values are :class:`bytes` objects representing the process environment. :data:`environ` and :data:`environb` are synchronized (modifying :data:`environb` updates :data:`environ`, and vice versa).
:data:`environb` is only available if :const:`supports_bytes_environ` is
``True``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6f73e1d5-d30d-429c-9846-6cebeaf1dc1e | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,341 | supabase-export-v2 | 7bc55f42a6420926 | from bytes is necessary before passing them to the operating system. Python uses the :term:`filesystem encoding and error handler` to perform this conversion (see :func:`sys.getfilesystemencoding`).
The :term:`filesystem encoding and error handler` are configured at Python
startup by the :c:func:`PyConfig_Read` functio... | trusted_official_docs | CPython Docs | from bytes is necessary before passing them to the operating system. Python uses the :term:`filesystem encoding and error handler` to perform this conversion (see :func:`sys.getfilesystemencoding`).
The :term:`filesystem encoding and error handler` are configured at Python
startup by the :c:func:`PyConfig_Read` functio... | from bytes is necessary before passing them to the operating system. Python uses the :term:`filesystem encoding and error handler` to perform this conversion (see :func:`sys.getfilesystemencoding`).
The :term:`filesystem encoding and error handler` are configured at Python
startup by the :c:func:`PyConfig_Read` functio... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6fb13e77-3564-4dca-84e5-6d06640ba669 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,367 | supabase-export-v2 | b4dc5a6de1a3e505 | part of processing :file:`site.py`. Changes to the environment made after this time are not reflected in :data:`os.environ`, except for changes made by modifying :data:`os.environ` directly.
This mapping may be used to modify the environment as well as query the
environment. :func:`putenv` will be called automatically... | trusted_official_docs | CPython Docs | part of processing :file:`site.py`. Changes to the environment made after this time are not reflected in :data:`os.environ`, except for changes made by modifying :data:`os.environ` directly.
This mapping may be used to modify the environment as well as query the
environment. :func:`putenv` will be called automatically... | part of processing :file:`site.py`. Changes to the environment made after this time are not reflected in :data:`os.environ`, except for changes made by modifying :data:`os.environ` directly.
This mapping may be used to modify the environment as well as query the
environment. :func:`putenv` will be called automatically... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
70156001-081c-4ccd-8ae6-1ad25e35f6ab | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,935 | supabase-export-v2 | a1e113215352a2dc | This function can support specifying :ref:`paths relative to directory descriptors <dir_fd>` and :ref:`not following symlinks <follow_symlinks>`.
If *effective_ids* is ``True``, :func:`access` will perform its access
checks using the effective uid/gid instead of the real uid/gid. *effective_ids* may not be supported o... | trusted_official_docs | CPython Docs | This function can support specifying :ref:`paths relative to directory descriptors <dir_fd>` and :ref:`not following symlinks <follow_symlinks>`.
If *effective_ids* is ``True``, :func:`access` will perform its access
checks using the effective uid/gid instead of the real uid/gid. *effective_ids* may not be supported o... | This function can support specifying :ref:`paths relative to directory descriptors <dir_fd>` and :ref:`not following symlinks <follow_symlinks>`.
If *effective_ids* is ``True``, :func:`access` will perform its access
checks using the effective uid/gid instead of the real uid/gid. *effective_ids* may not be supported o... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7094cdbe-6eb6-4ba6-b99e-f0e1dd9fc161 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,870 | supabase-export-v2 | 60b9e18f5f60402e | expected to return to the Python interpreter. A typical :mod:`subprocess` launch will not trigger them as the child is not going to re-enter the interpreter.
Functions registered for execution before forking are called in
reverse registration order. Functions registered for execution
after forking (either in the pare... | trusted_official_docs | CPython Docs | expected to return to the Python interpreter. A typical :mod:`subprocess` launch will not trigger them as the child is not going to re-enter the interpreter.
Functions registered for execution before forking are called in
reverse registration order. Functions registered for execution
after forking (either in the pare... | expected to return to the Python interpreter. A typical :mod:`subprocess` launch will not trigger them as the child is not going to re-enter the interpreter.
Functions registered for execution before forking are called in
reverse registration order. Functions registered for execution
after forking (either in the pare... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
70a535f5-5120-4b6a-9961-3c6b0d2e8c31 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,594 | supabase-export-v2 | d524f239c1253678 | - :func:`read` - :func:`~select.select` - :func:`~select.poll`
The file descriptor's :func:`read` method can be called with a buffer size
of 8. If the timer has already expired one or more times, :func:`read`
returns the number of expirations with the host's endianness, which may be
converted to an :class:`int` by `... | trusted_official_docs | CPython Docs | - :func:`read` - :func:`~select.select` - :func:`~select.poll`
The file descriptor's :func:`read` method can be called with a buffer size
of 8. If the timer has already expired one or more times, :func:`read`
returns the number of expirations with the host's endianness, which may be
converted to an :class:`int` by `... | - :func:`read` - :func:`~select.select` - :func:`~select.poll`
The file descriptor's :func:`read` method can be called with a buffer size
of 8. If the timer has already expired one or more times, :func:`read`
returns the number of expirations with the host's endianness, which may be
converted to an :class:`int` by `... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
711f8bbd-af40-40c8-b58c-32f567a18af8 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,331 | supabase-export-v2 | 54f5cf805dfa13d9 | .. note::
All functions in this module raise :exc:`OSError` (or subclasses thereof) in
the case of invalid or inaccessible file names and paths, or other arguments
that have the correct type, but are not accepted by the operating system. | trusted_official_docs | CPython Docs | .. note::
All functions in this module raise :exc:`OSError` (or subclasses thereof) in
the case of invalid or inaccessible file names and paths, or other arguments
that have the correct type, but are not accepted by the operating system. | .. note::
All functions in this module raise :exc:`OSError` (or subclasses thereof) in
the case of invalid or inaccessible file names and paths, or other arguments
that have the correct type, but are not accepted by the operating system. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
71da803f-7140-49b3-b627-df360434d1a9 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,409 | supabase-export-v2 | 4933fbbd15438d45 | .. function:: getenv(key, default=None)
Return the value of the environment variable *key* as a string if it exists, or
*default* if it doesn't. *key* is a string. Note that
since :func:`getenv` uses :data:`os.environ`, the mapping of :func:`getenv` is
similarly also captured on import, and the function may not refl... | trusted_official_docs | CPython Docs | .. function:: getenv(key, default=None)
Return the value of the environment variable *key* as a string if it exists, or
*default* if it doesn't. *key* is a string. Note that
since :func:`getenv` uses :data:`os.environ`, the mapping of :func:`getenv` is
similarly also captured on import, and the function may not refl... | .. function:: getenv(key, default=None)
Return the value of the environment variable *key* as a string if it exists, or
*default* if it doesn't. *key* is a string. Note that
since :func:`getenv` uses :data:`os.environ`, the mapping of :func:`getenv` is
similarly also captured on import, and the function may not refl... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
71edc6ed-78e4-4d1e-a652-46cf9b6a837d | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,519 | supabase-export-v2 | f63dd1a777d846da | generated bottom-up). No matter the value of *topdown*, the list of subdirectories is retrieved before the tuples for the directory and its subdirectories are generated.
When *topdown* is ``True``, the caller can modify the *dirnames* list in-place
(perhaps using :keyword:`del` or slice assignment), and :func:`walk` w... | trusted_official_docs | CPython Docs | generated bottom-up). No matter the value of *topdown*, the list of subdirectories is retrieved before the tuples for the directory and its subdirectories are generated.
When *topdown* is ``True``, the caller can modify the *dirnames* list in-place
(perhaps using :keyword:`del` or slice assignment), and :func:`walk` w... | generated bottom-up). No matter the value of *topdown*, the list of subdirectories is retrieved before the tuples for the directory and its subdirectories are generated.
When *topdown* is ``True``, the caller can modify the *dirnames* list in-place
(perhaps using :keyword:`del` or slice assignment), and :func:`walk` w... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7255dfef-e58c-4ec0-89c8-865421f7dbd8 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,691 | supabase-export-v2 | d0daa24391484b6c | Parameters to the :func:`lseek` function and the :meth:`~io.IOBase.seek` method on :term:`file-like objects <file object>`, for seeking file data and holes on sparsely allocated files.
:data:`!SEEK_DATA`
Adjust the file offset to the next location containing data,
relative to the seek position. | trusted_official_docs | CPython Docs | Parameters to the :func:`lseek` function and the :meth:`~io.IOBase.seek` method on :term:`file-like objects <file object>`, for seeking file data and holes on sparsely allocated files.
:data:`!SEEK_DATA`
Adjust the file offset to the next location containing data,
relative to the seek position. | Parameters to the :func:`lseek` function and the :meth:`~io.IOBase.seek` method on :term:`file-like objects <file object>`, for seeking file data and holes on sparsely allocated files.
:data:`!SEEK_DATA`
Adjust the file offset to the next location containing data,
relative to the seek position. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
73428520-1d4e-4bc5-89cd-41a9f07bab98 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,951 | supabase-export-v2 | 63d5f969aea02228 | This function can support :ref:`specifying a file descriptor <path_fd>`. The descriptor must refer to an opened directory, not an open file.
This function can raise :exc:`OSError` and subclasses such as
:exc:`FileNotFoundError`, :exc:`PermissionError`, and :exc:`NotADirectoryError`. | trusted_official_docs | CPython Docs | This function can support :ref:`specifying a file descriptor <path_fd>`. The descriptor must refer to an opened directory, not an open file.
This function can raise :exc:`OSError` and subclasses such as
:exc:`FileNotFoundError`, :exc:`PermissionError`, and :exc:`NotADirectoryError`. | This function can support :ref:`specifying a file descriptor <path_fd>`. The descriptor must refer to an opened directory, not an open file.
This function can raise :exc:`OSError` and subclasses such as
:exc:`FileNotFoundError`, :exc:`PermissionError`, and :exc:`NotADirectoryError`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
749d2521-d08d-47c3-879c-82bea70111f8 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,324 | supabase-export-v2 | d8e4ffabd637a556 | see the :mod:`fileinput` module. For creating temporary files and directories see the :mod:`tempfile` module, and for high-level file and directory handling see the :mod:`shutil` module.
Notes on the availability of these functions: | trusted_official_docs | CPython Docs | see the :mod:`fileinput` module. For creating temporary files and directories see the :mod:`tempfile` module, and for high-level file and directory handling see the :mod:`shutil` module.
Notes on the availability of these functions: | see the :mod:`fileinput` module. For creating temporary files and directories see the :mod:`tempfile` module, and for high-level file and directory handling see the :mod:`shutil` module.
Notes on the availability of these functions: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
74d61f0d-1254-4fec-a012-765a94f5b6a7 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,540 | supabase-export-v2 | 8a64d18b0af66ae6 | descriptors, those are only valid until the next iteration step, so you should duplicate them (e.g. with :func:`dup`) if you want to keep them longer.
This example displays the number of bytes taken by non-directory files in each
directory under the starting directory, except that it doesn't look under any
``__pycach... | trusted_official_docs | CPython Docs | descriptors, those are only valid until the next iteration step, so you should duplicate them (e.g. with :func:`dup`) if you want to keep them longer.
This example displays the number of bytes taken by non-directory files in each
directory under the starting directory, except that it doesn't look under any
``__pycach... | descriptors, those are only valid until the next iteration step, so you should duplicate them (e.g. with :func:`dup`) if you want to keep them longer.
This example displays the number of bytes taken by non-directory files in each
directory under the starting directory, except that it doesn't look under any
``__pycach... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
74d7b217-25c2-44ff-b506-3e04632c615a | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,504 | supabase-export-v2 | dc822ce7bb328f55 | .. availability:: Unix, not WASI.
.. note:: On macOS, the length of *groups* may not exceed the
system-defined maximum number of effective group ids, typically 16. See the documentation for :func:`getgroups` for cases where it may not
return the same group list set by calling setgroups(). | trusted_official_docs | CPython Docs | .. availability:: Unix, not WASI.
.. note:: On macOS, the length of *groups* may not exceed the
system-defined maximum number of effective group ids, typically 16. See the documentation for :func:`getgroups` for cases where it may not
return the same group list set by calling setgroups(). | .. availability:: Unix, not WASI.
.. note:: On macOS, the length of *groups* may not exceed the
system-defined maximum number of effective group ids, typically 16. See the documentation for :func:`getgroups` for cases where it may not
return the same group list set by calling setgroups(). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
756365ff-44df-44a7-925e-314ab98cee05 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,608 | supabase-export-v2 | fd08448c43a2daff | Return a string describing the encoding of the device associated with *fd* if it is connected to a terminal; else return :const:`None`.
On Unix, if the :ref:`Python UTF-8 Mode <utf8-mode>` is enabled, return
``'UTF-8'`` rather than the device encoding. | trusted_official_docs | CPython Docs | Return a string describing the encoding of the device associated with *fd* if it is connected to a terminal; else return :const:`None`.
On Unix, if the :ref:`Python UTF-8 Mode <utf8-mode>` is enabled, return
``'UTF-8'`` rather than the device encoding. | Return a string describing the encoding of the device associated with *fd* if it is connected to a terminal; else return :const:`None`.
On Unix, if the :ref:`Python UTF-8 Mode <utf8-mode>` is enabled, return
``'UTF-8'`` rather than the device encoding. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
76348686-1306-4861-9844-5c58f5ac86fe | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,170 | supabase-export-v2 | 995b0b7f30eb8706 | only require a system call for symbolic links; :func:`os.DirEntry.stat` always requires a system call on Unix but only requires one for symbolic links on Windows.
*path* may be a :term:`path-like object`. If *path* is of type ``bytes``
(directly or indirectly through the :class:`PathLike` interface),
the type of the ... | trusted_official_docs | CPython Docs | only require a system call for symbolic links; :func:`os.DirEntry.stat` always requires a system call on Unix but only requires one for symbolic links on Windows.
*path* may be a :term:`path-like object`. If *path* is of type ``bytes``
(directly or indirectly through the :class:`PathLike` interface),
the type of the ... | only require a system call for symbolic links; :func:`os.DirEntry.stat` always requires a system call on Unix but only requires one for symbolic links on Windows.
*path* may be a :term:`path-like object`. If *path* is of type ``bytes``
(directly or indirectly through the :class:`PathLike` interface),
the type of the ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
771b320d-be8d-4983-a1e9-f00794574c0a | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,647 | supabase-export-v2 | 63ecc91d3528d878 | Force write of file with filedescriptor *fd* to disk. On Unix, this calls the native :c:func:`!fsync` function; on Windows, the MS :c:func:`!_commit` function.
If you're starting with a buffered Python :term:`file object` *f*, first do
``f.flush()``, and then do ``os.fsync(f.fileno())``, to ensure that all internal
b... | trusted_official_docs | CPython Docs | Force write of file with filedescriptor *fd* to disk. On Unix, this calls the native :c:func:`!fsync` function; on Windows, the MS :c:func:`!_commit` function.
If you're starting with a buffered Python :term:`file object` *f*, first do
``f.flush()``, and then do ``os.fsync(f.fileno())``, to ensure that all internal
b... | Force write of file with filedescriptor *fd* to disk. On Unix, this calls the native :c:func:`!fsync` function; on Windows, the MS :c:func:`!_commit` function.
If you're starting with a buffered Python :term:`file object` *f*, first do
``f.flush()``, and then do ``os.fsync(f.fileno())``, to ensure that all internal
b... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
77305344-d2ea-4539-a19d-b00fa8bb0db9 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,692 | supabase-export-v2 | 0b9920483f9b7476 | :data:`!SEEK_DATA` Adjust the file offset to the next location containing data, relative to the seek position.
:data:`!SEEK_HOLE`
Adjust the file offset to the next location containing a hole,
relative to the seek position. A hole is defined as a sequence of zeros. | trusted_official_docs | CPython Docs | :data:`!SEEK_DATA` Adjust the file offset to the next location containing data, relative to the seek position.
:data:`!SEEK_HOLE`
Adjust the file offset to the next location containing a hole,
relative to the seek position. A hole is defined as a sequence of zeros. | :data:`!SEEK_DATA` Adjust the file offset to the next location containing data, relative to the seek position.
:data:`!SEEK_HOLE`
Adjust the file offset to the next location containing a hole,
relative to the seek position. A hole is defined as a sequence of zeros. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7739a8e8-3134-44bb-996d-c39ef7469c05 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,564 | supabase-export-v2 | 7e0bf9d88b1fa846 | If :const:`EFD_SEMAPHORE` is not specified and the event counter is non-zero, :func:`eventfd_read` returns the current event counter value and resets the counter to zero.
If the event counter is zero and :const:`EFD_NONBLOCK` is not
specified, :func:`eventfd_read` blocks. | trusted_official_docs | CPython Docs | If :const:`EFD_SEMAPHORE` is not specified and the event counter is non-zero, :func:`eventfd_read` returns the current event counter value and resets the counter to zero.
If the event counter is zero and :const:`EFD_NONBLOCK` is not
specified, :func:`eventfd_read` blocks. | If :const:`EFD_SEMAPHORE` is not specified and the event counter is non-zero, :func:`eventfd_read` returns the current event counter value and resets the counter to zero.
If the event counter is zero and :const:`EFD_NONBLOCK` is not
specified, :func:`eventfd_read` blocks. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7783ad70-d1cc-4b1d-b5ad-af1d0620bbd3 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,724 | supabase-export-v2 | 4eb53459c308e784 | .. index:: pair: module; pty
Open a new pseudo-terminal pair. Return a pair of file descriptors
``(master, slave)`` for the pty and the tty, respectively. The new file
descriptors are :ref:`non-inheritable <fd_inheritance>`. For a (slightly) more
portable approach, use the :mod:`pty` module. | trusted_official_docs | CPython Docs | .. index:: pair: module; pty
Open a new pseudo-terminal pair. Return a pair of file descriptors
``(master, slave)`` for the pty and the tty, respectively. The new file
descriptors are :ref:`non-inheritable <fd_inheritance>`. For a (slightly) more
portable approach, use the :mod:`pty` module. | .. index:: pair: module; pty
Open a new pseudo-terminal pair. Return a pair of file descriptors
``(master, slave)`` for the pty and the tty, respectively. The new file
descriptors are :ref:`non-inheritable <fd_inheritance>`. For a (slightly) more
portable approach, use the :mod:`pty` module. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
77856007-3eb3-4081-8157-3d0f87f8ecf2 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,589 | supabase-export-v2 | 6a66afbec4319e4c | 3, 4, 5, and so forth. The name "file descriptor" is slightly deceptive; on Unix platforms, sockets and pipes are also referenced by file descriptors.
The :meth:`~io.IOBase.fileno` method can be used to obtain the file descriptor
associated with a :term:`file object` when required. Note that using the file
descriptor d... | trusted_official_docs | CPython Docs | 3, 4, 5, and so forth. The name "file descriptor" is slightly deceptive; on Unix platforms, sockets and pipes are also referenced by file descriptors.
The :meth:`~io.IOBase.fileno` method can be used to obtain the file descriptor
associated with a :term:`file object` when required. Note that using the file
descriptor d... | 3, 4, 5, and so forth. The name "file descriptor" is slightly deceptive; on Unix platforms, sockets and pipes are also referenced by file descriptors.
The :meth:`~io.IOBase.fileno` method can be used to obtain the file descriptor
associated with a :term:`file object` when required. Note that using the file
descriptor d... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
77965e2d-896d-4551-b1d2-e43592c9322f | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,964 | supabase-export-v2 | 56ce248d4872ccc2 | .. function:: chmod(path, mode, *, dir_fd=None, follow_symlinks=True)
Change the mode of *path* to the numeric *mode*. *mode* may take one of the
following values (as defined in the :mod:`stat` module) or bitwise ORed
combinations of them: | trusted_official_docs | CPython Docs | .. function:: chmod(path, mode, *, dir_fd=None, follow_symlinks=True)
Change the mode of *path* to the numeric *mode*. *mode* may take one of the
following values (as defined in the :mod:`stat` module) or bitwise ORed
combinations of them: | .. function:: chmod(path, mode, *, dir_fd=None, follow_symlinks=True)
Change the mode of *path* to the numeric *mode*. *mode* may take one of the
following values (as defined in the :mod:`stat` module) or bitwise ORed
combinations of them: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
787ecdef-bd93-4895-99aa-200ae9d5280d | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,183 | supabase-export-v2 | 1b01b1a2b3c72e1a | .. versionadded:: 3.5
.. versionchanged:: 3.6
Added support for the :term:`context manager` protocol and the
:func:`~scandir.close` method. If a :func:`scandir` iterator is neither
exhausted nor explicitly closed a :exc:`ResourceWarning` will be emitted
in its destructor. | trusted_official_docs | CPython Docs | .. versionadded:: 3.5
.. versionchanged:: 3.6
Added support for the :term:`context manager` protocol and the
:func:`~scandir.close` method. If a :func:`scandir` iterator is neither
exhausted nor explicitly closed a :exc:`ResourceWarning` will be emitted
in its destructor. | .. versionadded:: 3.5
.. versionchanged:: 3.6
Added support for the :term:`context manager` protocol and the
:func:`~scandir.close` method. If a :func:`scandir` iterator is neither
exhausted nor explicitly closed a :exc:`ResourceWarning` will be emitted
in its destructor. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7926e21e-0a09-451f-845f-8d8e09556cde | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,518 | supabase-export-v2 | a99990aaec02024b | a file is removed from or added to the *dirpath* directory during generating the lists, whether a name for that file be included is unspecified.
If optional argument *topdown* is ``True`` or not specified, the triple for a
directory is generated before the triples for any of its subdirectories
(directories are genera... | trusted_official_docs | CPython Docs | a file is removed from or added to the *dirpath* directory during generating the lists, whether a name for that file be included is unspecified.
If optional argument *topdown* is ``True`` or not specified, the triple for a
directory is generated before the triples for any of its subdirectories
(directories are genera... | a file is removed from or added to the *dirpath* directory during generating the lists, whether a name for that file be included is unspecified.
If optional argument *topdown* is ``True`` or not specified, the triple for a
directory is generated before the triples for any of its subdirectories
(directories are genera... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
798f84d6-0f0f-4d73-8865-13aa30bf5369 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,326 | supabase-export-v2 | 9e0ccd837872c0bc | same interface; for example, the function ``os.stat(path)`` returns stat information about *path* in the same format (which happens to have originated with the POSIX interface).
* Extensions peculiar to a particular operating system are also available
through the :mod:`!os` module, but using them is of course a threat... | trusted_official_docs | CPython Docs | same interface; for example, the function ``os.stat(path)`` returns stat information about *path* in the same format (which happens to have originated with the POSIX interface).
* Extensions peculiar to a particular operating system are also available
through the :mod:`!os` module, but using them is of course a threat... | same interface; for example, the function ``os.stat(path)`` returns stat information about *path* in the same format (which happens to have originated with the POSIX interface).
* Extensions peculiar to a particular operating system are also available
through the :mod:`!os` module, but using them is of course a threat... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7a943d88-365e-4f2a-b93e-67a22b202b91 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,809 | supabase-export-v2 | bd35de1ebf4a8492 | .. note::
This function is intended for low-level I/O and must be applied to a file
descriptor as returned by :func:`os.open` or :func:`pipe`. To read a
"file object" returned by the built-in function :func:`open` or by
:func:`popen` or :func:`fdopen`, or :data:`sys.stdin`, use its
:meth:`~io.TextIOBase.read` or :m... | trusted_official_docs | CPython Docs | .. note::
This function is intended for low-level I/O and must be applied to a file
descriptor as returned by :func:`os.open` or :func:`pipe`. To read a
"file object" returned by the built-in function :func:`open` or by
:func:`popen` or :func:`fdopen`, or :data:`sys.stdin`, use its
:meth:`~io.TextIOBase.read` or :m... | .. note::
This function is intended for low-level I/O and must be applied to a file
descriptor as returned by :func:`os.open` or :func:`pipe`. To read a
"file object" returned by the built-in function :func:`open` or by
:func:`popen` or :func:`fdopen`, or :data:`sys.stdin`, use its
:meth:`~io.TextIOBase.read` or :m... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7aa9f93e-dcc8-41b0-9fe2-4a441605912a | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,417 | supabase-export-v2 | 154e80f85d8913c7 | .. function:: get_exec_path(env=None)
Returns the list of directories that will be searched for a named
executable, similar to a shell, when launching a process. *env*, when specified, should be an environment variable dictionary
to lookup the PATH in. By default, when *env* is ``None``, :data:`environ` is used. | trusted_official_docs | CPython Docs | .. function:: get_exec_path(env=None)
Returns the list of directories that will be searched for a named
executable, similar to a shell, when launching a process. *env*, when specified, should be an environment variable dictionary
to lookup the PATH in. By default, when *env* is ``None``, :data:`environ` is used. | .. function:: get_exec_path(env=None)
Returns the list of directories that will be searched for a named
executable, similar to a shell, when launching a process. *env*, when specified, should be an environment variable dictionary
to lookup the PATH in. By default, when *env* is ``None``, :data:`environ` is used. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7af7e22f-bdc8-49b9-9f7b-91508325d93f | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,449 | supabase-export-v2 | 8e4bf69b2d58d134 | .. versionchanged:: 3.3 Added support for specifying *path* as an open file descriptor.
.. versionchanged:: 3.4
The :const:`ST_NODEV`, :const:`ST_NOEXEC`, :const:`ST_SYNCHRONOUS`,
:const:`ST_MANDLOCK`, :const:`ST_WRITE`, :const:`ST_APPEND`,
:const:`ST_IMMUTABLE`, :const:`ST_NOATIME`, :const:`ST_NODIRATIME`,
and :co... | trusted_official_docs | CPython Docs | .. versionchanged:: 3.3 Added support for specifying *path* as an open file descriptor.
.. versionchanged:: 3.4
The :const:`ST_NODEV`, :const:`ST_NOEXEC`, :const:`ST_SYNCHRONOUS`,
:const:`ST_MANDLOCK`, :const:`ST_WRITE`, :const:`ST_APPEND`,
:const:`ST_IMMUTABLE`, :const:`ST_NOATIME`, :const:`ST_NODIRATIME`,
and :co... | .. versionchanged:: 3.3 Added support for specifying *path* as an open file descriptor.
.. versionchanged:: 3.4
The :const:`ST_NODEV`, :const:`ST_NOEXEC`, :const:`ST_SYNCHRONOUS`,
:const:`ST_MANDLOCK`, :const:`ST_WRITE`, :const:`ST_APPEND`,
:const:`ST_IMMUTABLE`, :const:`ST_NOATIME`, :const:`ST_NODIRATIME`,
and :co... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7afa1cb3-fab0-425b-8199-af162fb3a331 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,787 | supabase-export-v2 | 5f14a7995e500243 | file descriptor of the master end of the pseudo-terminal. For a more portable approach, use the :mod:`pty` module. If an error occurs :exc:`OSError` is raised.
The returned file descriptor *fd* is :ref:`non-inheritable <fd_inheritance>`. | trusted_official_docs | CPython Docs | file descriptor of the master end of the pseudo-terminal. For a more portable approach, use the :mod:`pty` module. If an error occurs :exc:`OSError` is raised.
The returned file descriptor *fd* is :ref:`non-inheritable <fd_inheritance>`. | file descriptor of the master end of the pseudo-terminal. For a more portable approach, use the :mod:`pty` module. If an error occurs :exc:`OSError` is raised.
The returned file descriptor *fd* is :ref:`non-inheritable <fd_inheritance>`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7b36b81e-89d6-4c51-b4b3-71790beb0724 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,437 | supabase-export-v2 | f9b574829a3c2048 | list may change over the lifetime of the process, it is not affected by calls to :func:`setgroups`, and its length is not limited to 16.
The
deployment target value can be obtained with
:func:`sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET') <sysconfig.get_config_var>`. | trusted_official_docs | CPython Docs | list may change over the lifetime of the process, it is not affected by calls to :func:`setgroups`, and its length is not limited to 16.
The
deployment target value can be obtained with
:func:`sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET') <sysconfig.get_config_var>`. | list may change over the lifetime of the process, it is not affected by calls to :func:`setgroups`, and its length is not limited to 16.
The
deployment target value can be obtained with
:func:`sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET') <sysconfig.get_config_var>`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7cb2d135-d0c5-445b-b374-1ad19df52a5e | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,343 | supabase-export-v2 | 5222c10d08abe4d8 | means that undecodable bytes are replaced by a Unicode character U+DC\ *xx* on decoding, and these are again translated to the original byte on encoding.
The :term:`file system encoding <filesystem encoding and error handler>` must
guarantee to successfully decode all bytes below 128. If the file system
encoding fails ... | trusted_official_docs | CPython Docs | means that undecodable bytes are replaced by a Unicode character U+DC\ *xx* on decoding, and these are again translated to the original byte on encoding.
The :term:`file system encoding <filesystem encoding and error handler>` must
guarantee to successfully decode all bytes below 128. If the file system
encoding fails ... | means that undecodable bytes are replaced by a Unicode character U+DC\ *xx* on decoding, and these are again translated to the original byte on encoding.
The :term:`file system encoding <filesystem encoding and error handler>` must
guarantee to successfully decode all bytes below 128. If the file system
encoding fails ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7cceadfd-97a1-49bb-9416-5e4b6604295a | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,821 | supabase-export-v2 | 232d1de91dc756a8 | The first function notation is supported by all platforms that define :func:`sendfile`.
On Linux, if *offset* is given as ``None``, the bytes are read from the
current position of *in_fd* and the position of *in_fd* is updated. | trusted_official_docs | CPython Docs | The first function notation is supported by all platforms that define :func:`sendfile`.
On Linux, if *offset* is given as ``None``, the bytes are read from the
current position of *in_fd* and the position of *in_fd* is updated. | The first function notation is supported by all platforms that define :func:`sendfile`.
On Linux, if *offset* is given as ``None``, the bytes are read from the
current position of *in_fd* and the position of *in_fd* is updated. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7d2726b9-6931-4079-a243-71f9931fe0c7 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,718 | supabase-export-v2 | e05b91845d1223ce | The standard way to exit is :func:`sys.exit(n) <sys.exit>`. :func:`!_exit` should normally only be used in the child process after a :func:`fork`.
The following exit codes are defined and can be used with :func:`_exit`,
although they are not required. These are typically used for system programs
written in Python, such... | trusted_official_docs | CPython Docs | The standard way to exit is :func:`sys.exit(n) <sys.exit>`. :func:`!_exit` should normally only be used in the child process after a :func:`fork`.
The following exit codes are defined and can be used with :func:`_exit`,
although they are not required. These are typically used for system programs
written in Python, such... | The standard way to exit is :func:`sys.exit(n) <sys.exit>`. :func:`!_exit` should normally only be used in the child process after a :func:`fork`.
The following exit codes are defined and can be used with :func:`_exit`,
although they are not required. These are typically used for system programs
written in Python, such... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7db9082d-e2eb-4953-a073-cb5a26fc41d5 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,442 | supabase-export-v2 | ff39ca7e64a925a8 | .. function:: statvfs(path)
Perform a :c:func:`!statvfs` system call on the given path. The return value is
an object whose attributes describe the filesystem on the given path, and
correspond to the members of the :c:struct:`statvfs` structure, namely:
:attr:`f_bsize`, :attr:`f_frsize`, :attr:`f_blocks`, :attr:`f_b... | trusted_official_docs | CPython Docs | .. function:: statvfs(path)
Perform a :c:func:`!statvfs` system call on the given path. The return value is
an object whose attributes describe the filesystem on the given path, and
correspond to the members of the :c:struct:`statvfs` structure, namely:
:attr:`f_bsize`, :attr:`f_frsize`, :attr:`f_blocks`, :attr:`f_b... | .. function:: statvfs(path)
Perform a :c:func:`!statvfs` system call on the given path. The return value is
an object whose attributes describe the filesystem on the given path, and
correspond to the members of the :c:struct:`statvfs` structure, namely:
:attr:`f_bsize`, :attr:`f_frsize`, :attr:`f_blocks`, :attr:`f_b... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7e8a2f07-cdbb-402b-9b77-0fd214eda860 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,883 | supabase-export-v2 | f8394976bb85569f | and values in the *env* dictionary must be strings; invalid keys or values will cause the function to fail, with a return value of ``127``.
As an example, the following calls to :func:`spawnlp` and :func:`spawnvpe` are
equivalent:: | trusted_official_docs | CPython Docs | and values in the *env* dictionary must be strings; invalid keys or values will cause the function to fail, with a return value of ``127``.
As an example, the following calls to :func:`spawnlp` and :func:`spawnvpe` are
equivalent:: | and values in the *env* dictionary must be strings; invalid keys or values will cause the function to fail, with a return value of ``127``.
As an example, the following calls to :func:`spawnlp` and :func:`spawnvpe` are
equivalent:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7ee972ba-015f-483a-9552-9287d93ab341 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,698 | supabase-export-v2 | 514c10eb22e5b2a8 | Remove the directory by calling **close()** on the returned object or using it in a :keyword:`with` statement.
See the `Microsoft documentation
<https://msdn.microsoft.com/44228cf2-6306-466c-8f16-f513cd3ba8b5>`_
for more information about how DLLs are loaded. | trusted_official_docs | CPython Docs | Remove the directory by calling **close()** on the returned object or using it in a :keyword:`with` statement.
See the `Microsoft documentation
<https://msdn.microsoft.com/44228cf2-6306-466c-8f16-f513cd3ba8b5>`_
for more information about how DLLs are loaded. | Remove the directory by calling **close()** on the returned object or using it in a :keyword:`with` statement.
See the `Microsoft documentation
<https://msdn.microsoft.com/44228cf2-6306-466c-8f16-f513cd3ba8b5>`_
for more information about how DLLs are loaded. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
80218ed7-be44-49a5-8473-7e7964db3ae7 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,542 | supabase-export-v2 | 3cece57cb81248b7 | end=" ") print(sum([os.stat(name, dir_fd=rootfd).st_size for name in files]), end=" ") print("bytes in", len(files), "non-directory files") if '__pycache__' in dirs: dirs.remove('__pycache__') # don't visit __pycache__ directories
In the next example, walking the tree bottom-up is essential:
:func:`rmdir` doesn't allo... | trusted_official_docs | CPython Docs | end=" ") print(sum([os.stat(name, dir_fd=rootfd).st_size for name in files]), end=" ") print("bytes in", len(files), "non-directory files") if '__pycache__' in dirs: dirs.remove('__pycache__') # don't visit __pycache__ directories
In the next example, walking the tree bottom-up is essential:
:func:`rmdir` doesn't allo... | end=" ") print(sum([os.stat(name, dir_fd=rootfd).st_size for name in files]), end=" ") print("bytes in", len(files), "non-directory files") if '__pycache__' in dirs: dirs.remove('__pycache__') # don't visit __pycache__ directories
In the next example, walking the tree bottom-up is essential:
:func:`rmdir` doesn't allo... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
80f29dd2-1540-4222-843b-278ae2714e35 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,199 | supabase-export-v2 | d68f084b78e8ec02 | :func:`scandir` *path* argument was absolute. If the :func:`scandir` *path* argument was a :ref:`file descriptor <path_fd>`, the :attr:`path` attribute is the same as the :attr:`name` attribute.
The :attr:`path` attribute will be ``bytes`` if the :func:`scandir`
*path* argument is of type ``bytes`` and ``str`` otherwi... | trusted_official_docs | CPython Docs | :func:`scandir` *path* argument was absolute. If the :func:`scandir` *path* argument was a :ref:`file descriptor <path_fd>`, the :attr:`path` attribute is the same as the :attr:`name` attribute.
The :attr:`path` attribute will be ``bytes`` if the :func:`scandir`
*path* argument is of type ``bytes`` and ``str`` otherwi... | :func:`scandir` *path* argument was absolute. If the :func:`scandir` *path* argument was a :ref:`file descriptor <path_fd>`, the :attr:`path` attribute is the same as the :attr:`name` attribute.
The :attr:`path` attribute will be ``bytes`` if the :func:`scandir`
*path* argument is of type ``bytes`` and ``str`` otherwi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
81759c80-b097-4d1c-82a1-f3441b73ba0e | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,938 | supabase-export-v2 | fc2c46193a5c0886 | the user might exploit the short time interval between checking and opening the file to manipulate it. It's preferable to use :term:`EAFP` techniques. For example::
if os.access("myfile", os.R_OK):
with open("myfile") as fp:
return fp.read()
return "some default data" | trusted_official_docs | CPython Docs | the user might exploit the short time interval between checking and opening the file to manipulate it. It's preferable to use :term:`EAFP` techniques. For example::
if os.access("myfile", os.R_OK):
with open("myfile") as fp:
return fp.read()
return "some default data" | the user might exploit the short time interval between checking and opening the file to manipulate it. It's preferable to use :term:`EAFP` techniques. For example::
if os.access("myfile", os.R_OK):
with open("myfile") as fp:
return fp.read()
return "some default data" | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
820d9188-b405-4bff-a090-4d6cb2f04133 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,788 | supabase-export-v2 | 0843f82dc859e60e | objects <bytes-like object>`. Buffers are processed in array order. Entire contents of the first buffer is written before proceeding to the second, and so on.
The flags argument contains a bitwise OR of zero or more of the following
flags: | trusted_official_docs | CPython Docs | objects <bytes-like object>`. Buffers are processed in array order. Entire contents of the first buffer is written before proceeding to the second, and so on.
The flags argument contains a bitwise OR of zero or more of the following
flags: | objects <bytes-like object>`. Buffers are processed in array order. Entire contents of the first buffer is written before proceeding to the second, and so on.
The flags argument contains a bitwise OR of zero or more of the following
flags: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
823bbd29-6671-41c2-abfa-e23fa7bc8664 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,316 | supabase-export-v2 | 4b6453e22a181f5f | Get the status of a file or file descriptor by performing a :c:func:`!statx` system call on the given path.
*path* is a :term:`path-like object` or an open file descriptor. *mask* is a
combination of the module-level :const:`STATX_* <STATX_TYPE>` constants
specifying the information to retrieve. *flags* is a combinat... | trusted_official_docs | CPython Docs | Get the status of a file or file descriptor by performing a :c:func:`!statx` system call on the given path.
*path* is a :term:`path-like object` or an open file descriptor. *mask* is a
combination of the module-level :const:`STATX_* <STATX_TYPE>` constants
specifying the information to retrieve. *flags* is a combinat... | Get the status of a file or file descriptor by performing a :c:func:`!statx` system call on the given path.
*path* is a :term:`path-like object` or an open file descriptor. *mask* is a
combination of the module-level :const:`STATX_* <STATX_TYPE>` constants
specifying the information to retrieve. *flags* is a combinat... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8259e546-9c07-4e23-ac7b-c0190cc01a41 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,127 | supabase-export-v2 | 309e7d96b58c7b40 | directory junctions, and changed to return the substitution path (which typically includes ``\\?\`` prefix) rather than the optional "print name" field that was previously returned.
.. function:: remove(path, *, dir_fd=None) | trusted_official_docs | CPython Docs | directory junctions, and changed to return the substitution path (which typically includes ``\\?\`` prefix) rather than the optional "print name" field that was previously returned.
.. function:: remove(path, *, dir_fd=None) | directory junctions, and changed to return the substitution path (which typically includes ``\\?\`` prefix) rather than the optional "print name" field that was previously returned.
.. function:: remove(path, *, dir_fd=None) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
83ee4851-ddfc-47b9-bd54-83cfbe2ab54e | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,833 | supabase-export-v2 | 3993367375f2d355 | Most users should use :func:`subprocess.run` instead of :func:`posix_spawn`.
The positional-only arguments *path*, *args*, and *env* are similar to
:func:`execve`. *env* is allowed to be ``None``, in which case current
process' environment is used. | trusted_official_docs | CPython Docs | Most users should use :func:`subprocess.run` instead of :func:`posix_spawn`.
The positional-only arguments *path*, *args*, and *env* are similar to
:func:`execve`. *env* is allowed to be ``None``, in which case current
process' environment is used. | Most users should use :func:`subprocess.run` instead of :func:`posix_spawn`.
The positional-only arguments *path*, *args*, and *env* are similar to
:func:`execve`. *env* is allowed to be ``None``, in which case current
process' environment is used. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
84368db7-7bbd-4189-adb2-bc9ae17fd09b | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,803 | supabase-export-v2 | d88ba7f15d3fb4cb | operation; the data is always appended to the end of the file. However, if the *offset* argument is ``-1``, the current file *offset* is updated.
.. availability:: Linux >= 4.16. | trusted_official_docs | CPython Docs | operation; the data is always appended to the end of the file. However, if the *offset* argument is ``-1``, the current file *offset* is updated.
.. availability:: Linux >= 4.16. | operation; the data is always appended to the end of the file. However, if the *offset* argument is ``-1``, the current file *offset* is updated.
.. availability:: Linux >= 4.16. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
859a36f6-ce0b-48a3-91e0-7108ed1ff464 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 43,065 | supabase-export-v2 | eed512add020af3a | .. _mkdir_modebits:
On some systems, *mode* is ignored. Where it is used, the current umask
value is first masked out. If bits other than the last 9 (i.e. the last 3
digits of the octal representation of the *mode*) are set, their meaning is
platform-dependent. On some platforms, they are ignored and you should call... | trusted_official_docs | CPython Docs | .. _mkdir_modebits:
On some systems, *mode* is ignored. Where it is used, the current umask
value is first masked out. If bits other than the last 9 (i.e. the last 3
digits of the octal representation of the *mode*) are set, their meaning is
platform-dependent. On some platforms, they are ignored and you should call... | .. _mkdir_modebits:
On some systems, *mode* is ignored. Where it is used, the current umask
value is first masked out. If bits other than the last 9 (i.e. the last 3
digits of the octal representation of the *mode*) are set, their meaning is
platform-dependent. On some platforms, they are ignored and you should call... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
85a0bda0-a8a7-4447-b1a7-5a45d351dfcf | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,460 | supabase-export-v2 | 75758e01653a7aa1 | zero value for *who* denotes (respectively) the calling process, the process group of the calling process, or the real user ID of the calling process.
.. availability:: Unix, not WASI. | trusted_official_docs | CPython Docs | zero value for *who* denotes (respectively) the calling process, the process group of the calling process, or the real user ID of the calling process.
.. availability:: Unix, not WASI. | zero value for *who* denotes (respectively) the calling process, the process group of the calling process, or the real user ID of the calling process.
.. availability:: Unix, not WASI. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
85e0ddea-ef52-4c1c-b3b9-aabba68c09b6 | CPython Docs | file://datasets/cpython/Doc/library/os.rst | unknown | 45983a6c-a22f-4481-a12a-a922736c8c3f | 42,928 | supabase-export-v2 | e6aae59c8e3ddbbf | POSIX systems, Python will call the variant of the function with an ``at`` suffix and possibly prefixed with ``f`` (e.g. call ``faccessat`` instead of ``access``).
You can check whether or not *dir_fd* is supported for a particular function
on your platform using :data:`os.supports_dir_fd`. If it's unavailable,
using... | trusted_official_docs | CPython Docs | POSIX systems, Python will call the variant of the function with an ``at`` suffix and possibly prefixed with ``f`` (e.g. call ``faccessat`` instead of ``access``).
You can check whether or not *dir_fd* is supported for a particular function
on your platform using :data:`os.supports_dir_fd`. If it's unavailable,
using... | POSIX systems, Python will call the variant of the function with an ``at`` suffix and possibly prefixed with ``f`` (e.g. call ``faccessat`` instead of ``access``).
You can check whether or not *dir_fd* is supported for a particular function
on your platform using :data:`os.supports_dir_fd`. If it's unavailable,
using... | python, official-docs, cpython, P0 | Local_Trusted_Corpus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.