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
1d680c2c-7b95-4b60-909d-db4bc73fe1cc
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,437
supabase-export-v2
421022d7b07f3122
nor :data:`AT_STATX_DONT_SYNC` is being passed. In the absence of the other two flags, the kernel will generally return information as fresh as :func:`os.stat` would return. .. availability:: Linux >= 4.11 with glibc >= 2.28.
trusted_official_docs
CPython Docs
nor :data:`AT_STATX_DONT_SYNC` is being passed. In the absence of the other two flags, the kernel will generally return information as fresh as :func:`os.stat` would return. .. availability:: Linux >= 4.11 with glibc >= 2.28.
nor :data:`AT_STATX_DONT_SYNC` is being passed. In the absence of the other two flags, the kernel will generally return information as fresh as :func:`os.stat` would return. .. availability:: Linux >= 4.11 with glibc >= 2.28.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1d8dadba-8ff0-4435-be4c-e720f5ff938c
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,598
supabase-export-v2
694b3233f86a5ff7
- :const:`time.CLOCK_REALTIME` - :const:`time.CLOCK_MONOTONIC` - :const:`time.CLOCK_BOOTTIME` (Since Linux 3.15 for timerfd_create) If *clockid* is :const:`time.CLOCK_REALTIME`, a settable system-wide real-time clock is used. If system clock is changed, timer setting need to be updated. To cancel timer when system cl...
trusted_official_docs
CPython Docs
- :const:`time.CLOCK_REALTIME` - :const:`time.CLOCK_MONOTONIC` - :const:`time.CLOCK_BOOTTIME` (Since Linux 3.15 for timerfd_create) If *clockid* is :const:`time.CLOCK_REALTIME`, a settable system-wide real-time clock is used. If system clock is changed, timer setting need to be updated. To cancel timer when system cl...
- :const:`time.CLOCK_REALTIME` - :const:`time.CLOCK_MONOTONIC` - :const:`time.CLOCK_BOOTTIME` (Since Linux 3.15 for timerfd_create) If *clockid* is :const:`time.CLOCK_REALTIME`, a settable system-wide real-time clock is used. If system clock is changed, timer setting need to be updated. To cancel timer when system cl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1df4e56a-9c02-480f-a28a-ca157d776360
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,882
supabase-export-v2
e28b9572bf10acfb
.. 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 write a "file object" returned by the built-in function :func:`open` or by :func:`popen` or :func:`fdopen`, or :data:`sys.stdout` or :data:`sys.stderr`, use its :meth:`~i...
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 write a "file object" returned by the built-in function :func:`open` or by :func:`popen` or :func:`fdopen`, or :data:`sys.stdout` or :data:`sys.stderr`, use its :meth:`~i...
.. 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 write a "file object" returned by the built-in function :func:`open` or by :func:`popen` or :func:`fdopen`, or :data:`sys.stdout` or :data:`sys.stderr`, use its :meth:`~i...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1e477132-17b7-4cf9-8fdc-dc397cbcbee9
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,529
supabase-export-v2
a1a12f68f886b85a
In the next example (simple implementation of :func:`shutil.rmtree`), walking the tree bottom-up is essential, :func:`rmdir` doesn't allow deleting a directory before the directory is empty:: # Delete everything reachable from the directory named in "top", # assuming there are no symbolic links. # CAUTION: This is dan...
trusted_official_docs
CPython Docs
In the next example (simple implementation of :func:`shutil.rmtree`), walking the tree bottom-up is essential, :func:`rmdir` doesn't allow deleting a directory before the directory is empty:: # Delete everything reachable from the directory named in "top", # assuming there are no symbolic links. # CAUTION: This is dan...
In the next example (simple implementation of :func:`shutil.rmtree`), walking the tree bottom-up is essential, :func:`rmdir` doesn't allow deleting a directory before the directory is empty:: # Delete everything reachable from the directory named in "top", # assuming there are no symbolic links. # CAUTION: This is dan...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1e5ae179-23d5-4593-bc53-a4dfa7ebacfd
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,444
supabase-export-v2
eca34ed2124159f7
bit-flags: if :const:`ST_RDONLY` is set, the filesystem is mounted read-only, and if :const:`ST_NOSUID` is set, the semantics of setuid/setgid bits are disabled or not supported. Additional module-level constants are defined for GNU/glibc based systems. These are :const:`ST_NODEV` (disallow access to device special fil...
trusted_official_docs
CPython Docs
bit-flags: if :const:`ST_RDONLY` is set, the filesystem is mounted read-only, and if :const:`ST_NOSUID` is set, the semantics of setuid/setgid bits are disabled or not supported. Additional module-level constants are defined for GNU/glibc based systems. These are :const:`ST_NODEV` (disallow access to device special fil...
bit-flags: if :const:`ST_RDONLY` is set, the filesystem is mounted read-only, and if :const:`ST_NOSUID` is set, the semantics of setuid/setgid bits are disabled or not supported. Additional module-level constants are defined for GNU/glibc based systems. These are :const:`ST_NODEV` (disallow access to device special fil...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1ee7f1e3-6b8b-44ea-aba1-ab00a0ed51a1
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,509
supabase-export-v2
9ce787bca3587f6d
best way to preserve exact times is to use the *st_atime_ns* and *st_mtime_ns* fields from the :func:`os.stat` result object with the *ns* parameter to :func:`utime`. This function can support :ref:`specifying a file descriptor <path_fd>`, :ref:`paths relative to directory descriptors <dir_fd>` and :ref:`not followin...
trusted_official_docs
CPython Docs
best way to preserve exact times is to use the *st_atime_ns* and *st_mtime_ns* fields from the :func:`os.stat` result object with the *ns* parameter to :func:`utime`. This function can support :ref:`specifying a file descriptor <path_fd>`, :ref:`paths relative to directory descriptors <dir_fd>` and :ref:`not followin...
best way to preserve exact times is to use the *st_atime_ns* and *st_mtime_ns* fields from the :func:`os.stat` result object with the *ns* parameter to :func:`utime`. This function can support :ref:`specifying a file descriptor <path_fd>`, :ref:`paths relative to directory descriptors <dir_fd>` and :ref:`not followin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1f178e12-265c-4c81-9bea-a02f46d7b84a
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,280
supabase-export-v2
027f5a42815af629
.. note:: The exact meaning and resolution of the :attr:`st_atime`, :attr:`st_mtime`, :attr:`st_ctime` and :attr:`st_birthtime` attributes depend on the operating system and the file system. For example, on Windows systems using the FAT32 file systems, :attr:`st_mtime` has 2-second resolution, and :attr:`st_atime` ...
trusted_official_docs
CPython Docs
.. note:: The exact meaning and resolution of the :attr:`st_atime`, :attr:`st_mtime`, :attr:`st_ctime` and :attr:`st_birthtime` attributes depend on the operating system and the file system. For example, on Windows systems using the FAT32 file systems, :attr:`st_mtime` has 2-second resolution, and :attr:`st_atime` ...
.. note:: The exact meaning and resolution of the :attr:`st_atime`, :attr:`st_mtime`, :attr:`st_ctime` and :attr:`st_birthtime` attributes depend on the operating system and the file system. For example, on Windows systems using the FAT32 file systems, :attr:`st_mtime` has 2-second resolution, and :attr:`st_atime` ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1f7cdad2-c2b2-40f6-9be8-7820c6e7d1cd
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,014
supabase-export-v2
5b60147323e4f7b6
Create a hard link pointing to *src* named *dst*. This function can support specifying *src_dir_fd* and/or *dst_dir_fd* to supply :ref:`paths relative to directory descriptors <dir_fd>`, and :ref:`not following symlinks <follow_symlinks>`. The default value of *follow_symlinks* is ``False`` on Windows.
trusted_official_docs
CPython Docs
Create a hard link pointing to *src* named *dst*. This function can support specifying *src_dir_fd* and/or *dst_dir_fd* to supply :ref:`paths relative to directory descriptors <dir_fd>`, and :ref:`not following symlinks <follow_symlinks>`. The default value of *follow_symlinks* is ``False`` on Windows.
Create a hard link pointing to *src* named *dst*. This function can support specifying *src_dir_fd* and/or *dst_dir_fd* to supply :ref:`paths relative to directory descriptors <dir_fd>`, and :ref:`not following symlinks <follow_symlinks>`. The default value of *follow_symlinks* is ``False`` on Windows.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1f81180c-8eb5-4c11-9009-3d437fce8ca5
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,681
supabase-export-v2
38102a13a33a81f6
.. function:: lseek(fd, pos, whence, /) Set the current position of file descriptor *fd* 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:
trusted_official_docs
CPython Docs
.. function:: lseek(fd, pos, whence, /) Set the current position of file descriptor *fd* 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:
.. function:: lseek(fd, pos, whence, /) Set the current position of file descriptor *fd* 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:
python, official-docs, cpython, P0
Local_Trusted_Corpus
1fb18eb5-d476-41ca-b787-da3d9bde1d7a
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,878
supabase-export-v2
80e550095f0a0adb
more powerful facilities for spawning new processes and retrieving their results; using that module is preferable to using these functions. Check especially the :ref:`subprocess-replacements` section.) If *mode* is :const:`P_NOWAIT`, this function returns the process id of the new process; if *mode* is :const:`P_WAIT`...
trusted_official_docs
CPython Docs
more powerful facilities for spawning new processes and retrieving their results; using that module is preferable to using these functions. Check especially the :ref:`subprocess-replacements` section.) If *mode* is :const:`P_NOWAIT`, this function returns the process id of the new process; if *mode* is :const:`P_WAIT`...
more powerful facilities for spawning new processes and retrieving their results; using that module is preferable to using these functions. Check especially the :ref:`subprocess-replacements` section.) If *mode* is :const:`P_NOWAIT`, this function returns the process id of the new process; if *mode* is :const:`P_WAIT`...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1ff4cc80-a35e-49f2-b442-d3504245e1f1
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,930
supabase-export-v2
6ea7c68f3d2b67bd
.. _follow_symlinks: * **not following symlinks:** If *follow_symlinks* is ``False``, and the last element of the path to operate on is a symbolic link, the function will operate on the symbolic link itself rather than the file pointed to by the link. For POSIX systems, Python will call the ``l...`` variant of the ...
trusted_official_docs
CPython Docs
.. _follow_symlinks: * **not following symlinks:** If *follow_symlinks* is ``False``, and the last element of the path to operate on is a symbolic link, the function will operate on the symbolic link itself rather than the file pointed to by the link. For POSIX systems, Python will call the ``l...`` variant of the ...
.. _follow_symlinks: * **not following symlinks:** If *follow_symlinks* is ``False``, and the last element of the path to operate on is a symbolic link, the function will operate on the symbolic link itself rather than the file pointed to by the link. For POSIX systems, Python will call the ``l...`` variant of the ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1ffdae2b-6f36-4b19-a644-b5ccf011dbb8
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,661
supabase-export-v2
4cdaf95681379f23
*path*. *attribute* can be bytes or str (directly or indirectly through the :class:`PathLike` interface). If it is str, it is encoded with the filesystem encoding. This function can support :ref:`specifying a file descriptor <path_fd>` and :ref:`not following symlinks <follow_symlinks>`.
trusted_official_docs
CPython Docs
*path*. *attribute* can be bytes or str (directly or indirectly through the :class:`PathLike` interface). If it is str, it is encoded with the filesystem encoding. This function can support :ref:`specifying a file descriptor <path_fd>` and :ref:`not following symlinks <follow_symlinks>`.
*path*. *attribute* can be bytes or str (directly or indirectly through the :class:`PathLike` interface). If it is str, it is encoded with the filesystem encoding. This function can support :ref:`specifying a file descriptor <path_fd>` and :ref:`not following symlinks <follow_symlinks>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
20464d0c-8568-4df9-ac4e-1f95c1be54f0
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,063
supabase-export-v2
9d7b77be062f62fe
Create a directory named *path* with numeric mode *mode*. If the directory already exists, :exc:`FileExistsError` is raised. If a parent directory in the path does not exist, :exc:`FileNotFoundError` is raised.
trusted_official_docs
CPython Docs
Create a directory named *path* with numeric mode *mode*. If the directory already exists, :exc:`FileExistsError` is raised. If a parent directory in the path does not exist, :exc:`FileNotFoundError` is raised.
Create a directory named *path* with numeric mode *mode*. If the directory already exists, :exc:`FileExistsError` is raised. If a parent directory in the path does not exist, :exc:`FileNotFoundError` is raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
20b10c5f-3d06-44a3-8c36-d8b49945dd4c
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,822
supabase-export-v2
3df7debd0a79ad83
.. function:: popen(cmd, mode='r', buffering=-1) Open a pipe to or from command *cmd*. The return value is an open file object connected to the pipe, which can be read or written depending on whether *mode* is ``'r'`` (default) or ``'w'``. The *buffering* argument have the same meaning as the corresponding argument ...
trusted_official_docs
CPython Docs
.. function:: popen(cmd, mode='r', buffering=-1) Open a pipe to or from command *cmd*. The return value is an open file object connected to the pipe, which can be read or written depending on whether *mode* is ``'r'`` (default) or ``'w'``. The *buffering* argument have the same meaning as the corresponding argument ...
.. function:: popen(cmd, mode='r', buffering=-1) Open a pipe to or from command *cmd*. The return value is an open file object connected to the pipe, which can be read or written depending on whether *mode* is ``'r'`` (default) or ``'w'``. The *buffering* argument have the same meaning as the corresponding argument ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
20ce2e72-fa04-4494-a084-5603a1617681
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,643
supabase-export-v2
8b88262b08d4f632
the :func:`timerfd_create` function, which sets the :const:`O_NONBLOCK` status flag for the new timer file descriptor. If :const:`TFD_NONBLOCK` is not set as a flag, :func:`read` blocks. .. availability:: Linux >= 2.6.27 with glibc >= 2.8
trusted_official_docs
CPython Docs
the :func:`timerfd_create` function, which sets the :const:`O_NONBLOCK` status flag for the new timer file descriptor. If :const:`TFD_NONBLOCK` is not set as a flag, :func:`read` blocks. .. availability:: Linux >= 2.6.27 with glibc >= 2.8
the :func:`timerfd_create` function, which sets the :const:`O_NONBLOCK` status flag for the new timer file descriptor. If :const:`TFD_NONBLOCK` is not set as a flag, :func:`read` blocks. .. availability:: Linux >= 2.6.27 with glibc >= 2.8
python, official-docs, cpython, P0
Local_Trusted_Corpus
20d73a62-6b25-43d9-acb2-4b79174ac322
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,603
supabase-export-v2
ce9ce462b4c4013b
.. note:: On Linux, :func:`os.copy_file_range` should not be used for copying a range of a pseudo file from a special filesystem like procfs and sysfs. It will always copy no bytes and return 0 as if the file was empty because of a known Linux kernel issue.
trusted_official_docs
CPython Docs
.. note:: On Linux, :func:`os.copy_file_range` should not be used for copying a range of a pseudo file from a special filesystem like procfs and sysfs. It will always copy no bytes and return 0 as if the file was empty because of a known Linux kernel issue.
.. note:: On Linux, :func:`os.copy_file_range` should not be used for copying a range of a pseudo file from a special filesystem like procfs and sysfs. It will always copy no bytes and return 0 as if the file was empty because of a known Linux kernel issue.
python, official-docs, cpython, P0
Local_Trusted_Corpus
20f22b9e-6523-4a1b-987c-e5995da1d27d
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,702
supabase-export-v2
1452b42b6b78e1fb
process. This led to inconsistencies, such as only sometimes searching :envvar:`PATH` or the current working directory, and OS functions such as ``AddDllDirectory`` having no effect. In 3.8, the two primary ways DLLs are loaded now explicitly override the process-wide behavior to ensure consistency. See the :ref:`por...
trusted_official_docs
CPython Docs
process. This led to inconsistencies, such as only sometimes searching :envvar:`PATH` or the current working directory, and OS functions such as ``AddDllDirectory`` having no effect. In 3.8, the two primary ways DLLs are loaded now explicitly override the process-wide behavior to ensure consistency. See the :ref:`por...
process. This led to inconsistencies, such as only sometimes searching :envvar:`PATH` or the current working directory, and OS functions such as ``AddDllDirectory`` having no effect. In 3.8, the two primary ways DLLs are loaded now explicitly override the process-wide behavior to ensure consistency. See the :ref:`por...
python, official-docs, cpython, P0
Local_Trusted_Corpus
21c80826-2a2c-4d5a-b00b-bdcc5a74bbd7
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,778
supabase-export-v2
2bc4f623bbf829d5
.. function:: ptsname(fd, /) Return the name of the 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.
trusted_official_docs
CPython Docs
.. function:: ptsname(fd, /) Return the name of the 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.
.. function:: ptsname(fd, /) Return the name of the 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.
python, official-docs, cpython, P0
Local_Trusted_Corpus
22447664-4cc4-4eb6-9eeb-7377f1d1e3d5
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,401
supabase-export-v2
c7772c85c0848f3b
Return the file system representation of the path. If :class:`str` or :class:`bytes` is passed in, it is returned unchanged. Otherwise :meth:`~os.PathLike.__fspath__` is called and its value is returned as long as it is a :class:`str` or :class:`bytes` object. In all other cases, :exc:`TypeError` is raised.
trusted_official_docs
CPython Docs
Return the file system representation of the path. If :class:`str` or :class:`bytes` is passed in, it is returned unchanged. Otherwise :meth:`~os.PathLike.__fspath__` is called and its value is returned as long as it is a :class:`str` or :class:`bytes` object. In all other cases, :exc:`TypeError` is raised.
Return the file system representation of the path. If :class:`str` or :class:`bytes` is passed in, it is returned unchanged. Otherwise :meth:`~os.PathLike.__fspath__` is called and its value is returned as long as it is a :class:`str` or :class:`bytes` object. In all other cases, :exc:`TypeError` is raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
231eecb3-8991-4f26-9c88-99f2585a5048
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,076
supabase-export-v2
7cbf27c64fb7dd50
Recursive directory creation function. Like :func:`mkdir`, but makes all intermediate-level directories needed to contain the leaf directory. The *mode* parameter is passed to :func:`mkdir` for creating the leaf directory; see :ref:`the mkdir() description <mkdir_modebits>` for how it is interpreted. To set the file ...
trusted_official_docs
CPython Docs
Recursive directory creation function. Like :func:`mkdir`, but makes all intermediate-level directories needed to contain the leaf directory. The *mode* parameter is passed to :func:`mkdir` for creating the leaf directory; see :ref:`the mkdir() description <mkdir_modebits>` for how it is interpreted. To set the file ...
Recursive directory creation function. Like :func:`mkdir`, but makes all intermediate-level directories needed to contain the leaf directory. The *mode* parameter is passed to :func:`mkdir` for creating the leaf directory; see :ref:`the mkdir() description <mkdir_modebits>` for how it is interpreted. To set the file ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
23c684d8-38f4-4815-939a-a3214deace25
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,379
supabase-export-v2
8830fef08ef0857f
.. data:: environb Bytes version of :data:`environ`: a :term:`mapping` 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).
trusted_official_docs
CPython Docs
.. data:: environb Bytes version of :data:`environ`: a :term:`mapping` 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 Bytes version of :data:`environ`: a :term:`mapping` 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).
python, official-docs, cpython, P0
Local_Trusted_Corpus
24f7e118-83ab-498d-a2b6-0b54c18fce1c
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,040
supabase-export-v2
392dd91655953b34
Return a list containing the mount points for a volume on a Windows system. *volume* must be represented as a GUID path, like those returned by :func:`os.listvolumes`. Volumes may be mounted in multiple locations or not at all. In the latter case, the list will be empty. Mount points that are not associated with a v...
trusted_official_docs
CPython Docs
Return a list containing the mount points for a volume on a Windows system. *volume* must be represented as a GUID path, like those returned by :func:`os.listvolumes`. Volumes may be mounted in multiple locations or not at all. In the latter case, the list will be empty. Mount points that are not associated with a v...
Return a list containing the mount points for a volume on a Windows system. *volume* must be represented as a GUID path, like those returned by :func:`os.listvolumes`. Volumes may be mounted in multiple locations or not at all. In the latter case, the list will be empty. Mount points that are not associated with a v...
python, official-docs, cpython, P0
Local_Trusted_Corpus
255bdb58-f2fa-44c2-abbc-6261a30526b9
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,569
supabase-export-v2
8704bf6822cc1646
Unset (delete) the environment variable named *key*. Such changes to the environment affect subprocesses started with :func:`os.system`, :func:`popen` or :func:`fork` and :func:`execv`. Deletion of items in :data:`os.environ` is automatically translated into a corresponding call to :func:`unsetenv`; however, calls to ...
trusted_official_docs
CPython Docs
Unset (delete) the environment variable named *key*. Such changes to the environment affect subprocesses started with :func:`os.system`, :func:`popen` or :func:`fork` and :func:`execv`. Deletion of items in :data:`os.environ` is automatically translated into a corresponding call to :func:`unsetenv`; however, calls to ...
Unset (delete) the environment variable named *key*. Such changes to the environment affect subprocesses started with :func:`os.system`, :func:`popen` or :func:`fork` and :func:`execv`. Deletion of items in :data:`os.environ` is automatically translated into a corresponding call to :func:`unsetenv`; however, calls to ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
255eab52-6e22-4e0e-9de5-a3c907a5a5a8
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,142
supabase-export-v2
4ae6b0f0da155a4b
Rename the file or directory *src* to *dst*. If *dst* exists, the operation will fail with an :exc:`OSError` subclass in a number of cases: On Windows, if *dst* exists a :exc:`FileExistsError` is always raised. The operation may fail if *src* and *dst* are on different filesystems. Use :func:`shutil.move` to support m...
trusted_official_docs
CPython Docs
Rename the file or directory *src* to *dst*. If *dst* exists, the operation will fail with an :exc:`OSError` subclass in a number of cases: On Windows, if *dst* exists a :exc:`FileExistsError` is always raised. The operation may fail if *src* and *dst* are on different filesystems. Use :func:`shutil.move` to support m...
Rename the file or directory *src* to *dst*. If *dst* exists, the operation will fail with an :exc:`OSError` subclass in a number of cases: On Windows, if *dst* exists a :exc:`FileExistsError` is always raised. The operation may fail if *src* and *dst* are on different filesystems. Use :func:`shutil.move` to support m...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2705406a-8b5c-4e41-a84b-df17d7fd29f5
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,688
supabase-export-v2
33b467409d489759
the file. :const:`SEEK_CUR` Adjust the file position relative to the current file position. :const:`SEEK_END` Adjust the file position relative to the end of the file. Their values are 0, 1, and 2, respectively.
trusted_official_docs
CPython Docs
the file. :const:`SEEK_CUR` Adjust the file position relative to the current file position. :const:`SEEK_END` Adjust the file position relative to the end of the file. Their values are 0, 1, and 2, respectively.
the file. :const:`SEEK_CUR` Adjust the file position relative to the current file position. :const:`SEEK_END` Adjust the file position relative to the end of the file. Their values are 0, 1, and 2, respectively.
python, official-docs, cpython, P0
Local_Trusted_Corpus
280657f2-5715-4784-a402-94b38bf2827e
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,189
supabase-export-v2
8ad0ce41f41d16c9
Object yielded by :func:`scandir` to expose the file path and other file attributes of a directory entry. :func:`scandir` will provide as much of 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.
trusted_official_docs
CPython Docs
Object yielded by :func:`scandir` to expose the file path and other file attributes of a directory entry. :func:`scandir` will provide as much of 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.
Object yielded by :func:`scandir` to expose the file path and other file attributes of a directory entry. :func:`scandir` will provide as much of 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.
python, official-docs, cpython, P0
Local_Trusted_Corpus
28a99695-e8ee-4085-a638-8ab33c88af6a
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,576
supabase-export-v2
3870403e462c890f
Add value to an :func:`eventfd` file descriptor. *value* must be a 64 bit unsigned int. The function does not verify that *fd* is an :func:`eventfd`. .. availability:: Linux >= 2.6.27
trusted_official_docs
CPython Docs
Add value to an :func:`eventfd` file descriptor. *value* must be a 64 bit unsigned int. The function does not verify that *fd* is an :func:`eventfd`. .. availability:: Linux >= 2.6.27
Add value to an :func:`eventfd` file descriptor. *value* must be a 64 bit unsigned int. The function does not verify that *fd* is an :func:`eventfd`. .. availability:: Linux >= 2.6.27
python, official-docs, cpython, P0
Local_Trusted_Corpus
28fbc4b0-aac0-4b92-98e2-bf55b13d4658
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,966
supabase-export-v2
72e6fdcaa27c771a
:const:`stat.S_IEXEC` * :const:`stat.S_IRWXU` * :const:`stat.S_IRUSR` * :const:`stat.S_IWUSR` * :const:`stat.S_IXUSR` * :const:`stat.S_IRWXG` * :const:`stat.S_IRGRP` * :const:`stat.S_IWGRP` * :const:`stat.S_IXGRP` * :const:`stat.S_IRWXO` * :const:`stat.S_IROTH` * :const:`stat.S_IWOTH` * :const:`stat.S_IXOTH` This funct...
trusted_official_docs
CPython Docs
:const:`stat.S_IEXEC` * :const:`stat.S_IRWXU` * :const:`stat.S_IRUSR` * :const:`stat.S_IWUSR` * :const:`stat.S_IXUSR` * :const:`stat.S_IRWXG` * :const:`stat.S_IRGRP` * :const:`stat.S_IWGRP` * :const:`stat.S_IXGRP` * :const:`stat.S_IRWXO` * :const:`stat.S_IROTH` * :const:`stat.S_IWOTH` * :const:`stat.S_IXOTH` This funct...
:const:`stat.S_IEXEC` * :const:`stat.S_IRWXU` * :const:`stat.S_IRUSR` * :const:`stat.S_IWUSR` * :const:`stat.S_IXUSR` * :const:`stat.S_IRWXG` * :const:`stat.S_IRGRP` * :const:`stat.S_IWGRP` * :const:`stat.S_IXGRP` * :const:`stat.S_IRWXO` * :const:`stat.S_IROTH` * :const:`stat.S_IWOTH` * :const:`stat.S_IXOTH` This funct...
python, official-docs, cpython, P0
Local_Trusted_Corpus
29542acb-3121-4f43-9bc8-80eda8dea4a9
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,543
supabase-export-v2
14cde77cdedb650d
In the next example, walking the tree bottom-up is essential: :func:`rmdir` doesn't allow deleting a directory before the directory is empty:: # Delete everything reachable from the directory named in "top", # assuming there are no symbolic links. # CAUTION: This is dangerous! For example, if top == '/', it # could d...
trusted_official_docs
CPython Docs
In the next example, walking the tree bottom-up is essential: :func:`rmdir` doesn't allow deleting a directory before the directory is empty:: # Delete everything reachable from the directory named in "top", # assuming there are no symbolic links. # CAUTION: This is dangerous! For example, if top == '/', it # could d...
In the next example, walking the tree bottom-up is essential: :func:`rmdir` doesn't allow deleting a directory before the directory is empty:: # Delete everything reachable from the directory named in "top", # assuming there are no symbolic links. # CAUTION: This is dangerous! For example, if top == '/', it # could d...
python, official-docs, cpython, P0
Local_Trusted_Corpus
29638d12-9b84-4469-8111-ce29582bd370
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,325
supabase-export-v2
f82f390cd8143fd6
Notes on the availability of these functions: * The design of all built-in operating system dependent modules of Python is such that as long as the same functionality is available, it uses the same interface; for example, the function ``os.stat(path)`` returns stat information about *path* in the same format (which ...
trusted_official_docs
CPython Docs
Notes on the availability of these functions: * The design of all built-in operating system dependent modules of Python is such that as long as the same functionality is available, it uses the same interface; for example, the function ``os.stat(path)`` returns stat information about *path* in the same format (which ...
Notes on the availability of these functions: * The design of all built-in operating system dependent modules of Python is such that as long as the same functionality is available, it uses the same interface; for example, the function ``os.stat(path)`` returns stat information about *path* in the same format (which ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
29ede082-ad5c-4e9b-8d29-11b826870735
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,354
supabase-export-v2
132820563a855994
As a consequence of the changes in those lower level APIs, other higher level APIs also exhibit different default behaviours: * Command line arguments, environment variables and filenames are decoded to text using the UTF-8 encoding. * :func:`os.fsdecode` and :func:`os.fsencode` use the UTF-8 encoding. * :func:`open`,...
trusted_official_docs
CPython Docs
As a consequence of the changes in those lower level APIs, other higher level APIs also exhibit different default behaviours: * Command line arguments, environment variables and filenames are decoded to text using the UTF-8 encoding. * :func:`os.fsdecode` and :func:`os.fsencode` use the UTF-8 encoding. * :func:`open`,...
As a consequence of the changes in those lower level APIs, other higher level APIs also exhibit different default behaviours: * Command line arguments, environment variables and filenames are decoded to text using the UTF-8 encoding. * :func:`os.fsdecode` and :func:`os.fsencode` use the UTF-8 encoding. * :func:`open`,...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2a37e6b5-8c4c-41ec-b193-65fd0307aeda
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,550
supabase-export-v2
067d1e0084363643
one of the ``os.MFD_*`` constants available on the system (or a bitwise ORed combination of them). By default, the new file descriptor is :ref:`non-inheritable <fd_inheritance>`. The name supplied in *name* is used as a filename and will be displayed as the target of the corresponding symbolic link in the directory `...
trusted_official_docs
CPython Docs
one of the ``os.MFD_*`` constants available on the system (or a bitwise ORed combination of them). By default, the new file descriptor is :ref:`non-inheritable <fd_inheritance>`. The name supplied in *name* is used as a filename and will be displayed as the target of the corresponding symbolic link in the directory `...
one of the ``os.MFD_*`` constants available on the system (or a bitwise ORed combination of them). By default, the new file descriptor is :ref:`non-inheritable <fd_inheritance>`. The name supplied in *name* is used as a filename and will be displayed as the target of the corresponding symbolic link in the directory `...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2a4ca0d1-0db0-4d04-8381-2a6e26c14174
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,559
supabase-export-v2
05c4175f06ccc1b9
.. function:: eventfd(initval[, flags=os.EFD_CLOEXEC]) Create and return an event file descriptor. The file descriptors supports raw :func:`read` and :func:`write` with a buffer size of 8, :func:`~select.select`, :func:`~select.poll` and similar. See man page :manpage:`eventfd(2)` for more information. By default, t...
trusted_official_docs
CPython Docs
.. function:: eventfd(initval[, flags=os.EFD_CLOEXEC]) Create and return an event file descriptor. The file descriptors supports raw :func:`read` and :func:`write` with a buffer size of 8, :func:`~select.select`, :func:`~select.poll` and similar. See man page :manpage:`eventfd(2)` for more information. By default, t...
.. function:: eventfd(initval[, flags=os.EFD_CLOEXEC]) Create and return an event file descriptor. The file descriptors supports raw :func:`read` and :func:`write` with a buffer size of 8, :func:`~select.select`, :func:`~select.poll` and similar. See man page :manpage:`eventfd(2)` for more information. By default, t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2a680cc0-fad2-4ba5-92c4-6a71cca2db0f
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,601
supabase-export-v2
0acb7831776e90f0
If *clockid* is :const:`time.CLOCK_BOOTTIME`, same as :const:`time.CLOCK_MONOTONIC` except it includes any time that the system is suspended. The file descriptor's behaviour can be modified by specifying a *flags* value. Any of the following variables may be used, combined using bitwise OR (the ``|`` operator):
trusted_official_docs
CPython Docs
If *clockid* is :const:`time.CLOCK_BOOTTIME`, same as :const:`time.CLOCK_MONOTONIC` except it includes any time that the system is suspended. The file descriptor's behaviour can be modified by specifying a *flags* value. Any of the following variables may be used, combined using bitwise OR (the ``|`` operator):
If *clockid* is :const:`time.CLOCK_BOOTTIME`, same as :const:`time.CLOCK_MONOTONIC` except it includes any time that the system is suspended. The file descriptor's behaviour can be modified by specifying a *flags* value. Any of the following variables may be used, combined using bitwise OR (the ``|`` operator):
python, official-docs, cpython, P0
Local_Trusted_Corpus
2a847e73-4add-4ae0-86db-9b62ee6d2d07
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,282
supabase-export-v2
72bf6ea310b82215
all of it, and as such will be slightly inexact. If you need the exact timestamps you should always use :attr:`st_atime_ns`, :attr:`st_mtime_ns`, :attr:`st_ctime_ns` and :attr:`st_birthtime_ns`. On some Unix systems (such as Linux), the following attributes may also be available:
trusted_official_docs
CPython Docs
all of it, and as such will be slightly inexact. If you need the exact timestamps you should always use :attr:`st_atime_ns`, :attr:`st_mtime_ns`, :attr:`st_ctime_ns` and :attr:`st_birthtime_ns`. On some Unix systems (such as Linux), the following attributes may also be available:
all of it, and as such will be slightly inexact. If you need the exact timestamps you should always use :attr:`st_atime_ns`, :attr:`st_mtime_ns`, :attr:`st_ctime_ns` and :attr:`st_birthtime_ns`. On some Unix systems (such as Linux), the following attributes may also be available:
python, official-docs, cpython, P0
Local_Trusted_Corpus
2bce515e-98bf-4127-b5b4-59d70f91bd1d
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,117
supabase-export-v2
ff24d9d30e8d5c07
.. function:: readlink(path, *, dir_fd=None) Return a string representing the path to which the symbolic link points. The result may be either an absolute or relative pathname; if it is relative, it may be converted to an absolute pathname using ``os.path.join(os.path.dirname(path), result)``.
trusted_official_docs
CPython Docs
.. function:: readlink(path, *, dir_fd=None) Return a string representing the path to which the symbolic link points. The result may be either an absolute or relative pathname; if it is relative, it may be converted to an absolute pathname using ``os.path.join(os.path.dirname(path), result)``.
.. function:: readlink(path, *, dir_fd=None) Return a string representing the path to which the symbolic link points. The result may be either an absolute or relative pathname; if it is relative, it may be converted to an absolute pathname using ``os.path.join(os.path.dirname(path), result)``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2be64f72-d841-4a23-ad65-aaba85af4b1c
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,500
supabase-export-v2
04930bba2d63cf16
*path*. This function is semantically identical to :func:`remove`; the ``unlink`` name is its traditional Unix name. Please see the documentation for :func:`remove` for further information. .. audit-event:: os.remove path,dir_fd os.unlink
trusted_official_docs
CPython Docs
*path*. This function is semantically identical to :func:`remove`; the ``unlink`` name is its traditional Unix name. Please see the documentation for :func:`remove` for further information. .. audit-event:: os.remove path,dir_fd os.unlink
*path*. This function is semantically identical to :func:`remove`; the ``unlink`` name is its traditional Unix name. Please see the documentation for :func:`remove` for further information. .. audit-event:: os.remove path,dir_fd os.unlink
python, official-docs, cpython, P0
Local_Trusted_Corpus
2d4e7697-a2b3-469a-a7d5-6e4487cd329f
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,336
supabase-export-v2
c6d4ea8dd3ce90f6
The name of the operating system dependent module imported. The following names have currently been registered: ``'posix'``, ``'nt'``, ``'java'``. .. seealso:: :data:`sys.platform` has a finer granularity. :func:`os.uname` gives system-dependent version information.
trusted_official_docs
CPython Docs
The name of the operating system dependent module imported. The following names have currently been registered: ``'posix'``, ``'nt'``, ``'java'``. .. seealso:: :data:`sys.platform` has a finer granularity. :func:`os.uname` gives system-dependent version information.
The name of the operating system dependent module imported. The following names have currently been registered: ``'posix'``, ``'nt'``, ``'java'``. .. seealso:: :data:`sys.platform` has a finer granularity. :func:`os.uname` gives system-dependent version information.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2e474ce4-d041-4c15-8705-af598c50f579
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,706
supabase-export-v2
f1d2d7529d80482f
.. versionchanged:: 3.3 Added the *dir_fd* parameter. .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exception, the function now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
trusted_official_docs
CPython Docs
.. versionchanged:: 3.3 Added the *dir_fd* parameter. .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exception, the function now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
.. versionchanged:: 3.3 Added the *dir_fd* parameter. .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exception, the function now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
python, official-docs, cpython, P0
Local_Trusted_Corpus
2ea8b9dd-ce63-40f1-bcb2-b91eb149d7a5
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,701
supabase-export-v2
f6815827b71aa879
.. availability:: Windows. .. versionadded:: 3.8 Previous versions of CPython would resolve DLLs using the default behavior for the current process. This led to inconsistencies, such as only sometimes searching :envvar:`PATH` or the current working directory, and OS functions such as ``AddDllDirectory`` having no ...
trusted_official_docs
CPython Docs
.. availability:: Windows. .. versionadded:: 3.8 Previous versions of CPython would resolve DLLs using the default behavior for the current process. This led to inconsistencies, such as only sometimes searching :envvar:`PATH` or the current working directory, and OS functions such as ``AddDllDirectory`` having no ...
.. availability:: Windows. .. versionadded:: 3.8 Previous versions of CPython would resolve DLLs using the default behavior for the current process. This led to inconsistencies, such as only sometimes searching :envvar:`PATH` or the current working directory, and OS functions such as ``AddDllDirectory`` having no ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2f4b515b-151f-41d6-bae3-7f954a731e05
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,163
supabase-export-v2
6c59386ac50671df
not exist or is not empty, a :exc:`FileNotFoundError` or an :exc:`OSError` is raised respectively. In order to remove whole directory trees, :func:`shutil.rmtree` can be used. This function can support :ref:`paths relative to directory descriptors <dir_fd>`.
trusted_official_docs
CPython Docs
not exist or is not empty, a :exc:`FileNotFoundError` or an :exc:`OSError` is raised respectively. In order to remove whole directory trees, :func:`shutil.rmtree` can be used. This function can support :ref:`paths relative to directory descriptors <dir_fd>`.
not exist or is not empty, a :exc:`FileNotFoundError` or an :exc:`OSError` is raised respectively. In order to remove whole directory trees, :func:`shutil.rmtree` can be used. This function can support :ref:`paths relative to directory descriptors <dir_fd>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2f63e8e7-486c-441a-aefd-ebc2bebfcbe4
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,518
supabase-export-v2
49520afcc578b933
.. function:: setpgid(pid, pgrp, /) Call the system call :c:func:`!setpgid` to set the process group id of the process with id *pid* to the process group with id *pgrp*. See the Unix manual for the semantics.
trusted_official_docs
CPython Docs
.. function:: setpgid(pid, pgrp, /) Call the system call :c:func:`!setpgid` to set the process group id of the process with id *pid* to the process group with id *pgrp*. See the Unix manual for the semantics.
.. function:: setpgid(pid, pgrp, /) Call the system call :c:func:`!setpgid` to set the process group id of the process with id *pid* to the process group with id *pgrp*. See the Unix manual for the semantics.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2f9f1fb1-7b30-4e0c-b6b5-2d521fd7861e
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,474
supabase-export-v2
c3cce28670791621
Create a symbolic link pointing to *src* named *dst*. The *src* parameter refers to the target of the link (the file or directory being linked to), and *dst* is the name of the link being created.
trusted_official_docs
CPython Docs
Create a symbolic link pointing to *src* named *dst*. The *src* parameter refers to the target of the link (the file or directory being linked to), and *dst* is the name of the link being created.
Create a symbolic link pointing to *src* named *dst*. The *src* parameter refers to the target of the link (the file or directory being linked to), and *dst* is the name of the link being created.
python, official-docs, cpython, P0
Local_Trusted_Corpus
30562bc7-6c68-4e6e-97d1-8fa93a5f6955
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,009
supabase-export-v2
8dc60e7e12c4fe11
to the numeric *uid* and *gid*. This function will not follow symbolic links. As of Python 3.3, this is equivalent to ``os.chown(path, uid, gid, follow_symlinks=False)``. .. audit-event:: os.chown path,uid,gid,dir_fd os.lchown
trusted_official_docs
CPython Docs
to the numeric *uid* and *gid*. This function will not follow symbolic links. As of Python 3.3, this is equivalent to ``os.chown(path, uid, gid, follow_symlinks=False)``. .. audit-event:: os.chown path,uid,gid,dir_fd os.lchown
to the numeric *uid* and *gid*. This function will not follow symbolic links. As of Python 3.3, this is equivalent to ``os.chown(path, uid, gid, follow_symlinks=False)``. .. audit-event:: os.chown path,uid,gid,dir_fd os.lchown
python, official-docs, cpython, P0
Local_Trusted_Corpus
3059369f-3c79-4b1f-bca3-1f5eb6c77c34
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,932
supabase-export-v2
34656e8c6bdd1f89
check whether or not *follow_symlinks* is supported for a particular function on your platform using :data:`os.supports_follow_symlinks`. If it's unavailable, using it will raise a :exc:`NotImplementedError`. .. function:: access(path, mode, *, dir_fd=None, effective_ids=False, follow_symlinks=True)
trusted_official_docs
CPython Docs
check whether or not *follow_symlinks* is supported for a particular function on your platform using :data:`os.supports_follow_symlinks`. If it's unavailable, using it will raise a :exc:`NotImplementedError`. .. function:: access(path, mode, *, dir_fd=None, effective_ids=False, follow_symlinks=True)
check whether or not *follow_symlinks* is supported for a particular function on your platform using :data:`os.supports_follow_symlinks`. If it's unavailable, using it will raise a :exc:`NotImplementedError`. .. function:: access(path, mode, *, dir_fd=None, effective_ids=False, follow_symlinks=True)
python, official-docs, cpython, P0
Local_Trusted_Corpus
30a98f2b-7d34-432c-b200-b22ae591ce2c
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,468
supabase-export-v2
66e0d26e7c4c42d4
.. data:: supports_follow_symlinks A :class:`set` object indicating which functions in the :mod:`!os` module accept ``False`` for their *follow_symlinks* parameter on the local platform. Different platforms provide different features, and the underlying functionality Python uses to implement *follow_symlinks* is not ...
trusted_official_docs
CPython Docs
.. data:: supports_follow_symlinks A :class:`set` object indicating which functions in the :mod:`!os` module accept ``False`` for their *follow_symlinks* parameter on the local platform. Different platforms provide different features, and the underlying functionality Python uses to implement *follow_symlinks* is not ...
.. data:: supports_follow_symlinks A :class:`set` object indicating which functions in the :mod:`!os` module accept ``False`` for their *follow_symlinks* parameter on the local platform. Different platforms provide different features, and the underlying functionality Python uses to implement *follow_symlinks* is not ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
31051ad1-c22e-45d4-9049-883e59170e60
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,486
supabase-export-v2
2a7c1ef001d4980a
Set the environment variable named *key* to the string *value*. Such changes to the environment affect subprocesses started with :func:`os.system`, :func:`popen` or :func:`fork` and :func:`execv`. Assignments to items in :data:`os.environ` are automatically translated into corresponding calls to :func:`putenv`; howeve...
trusted_official_docs
CPython Docs
Set the environment variable named *key* to the string *value*. Such changes to the environment affect subprocesses started with :func:`os.system`, :func:`popen` or :func:`fork` and :func:`execv`. Assignments to items in :data:`os.environ` are automatically translated into corresponding calls to :func:`putenv`; howeve...
Set the environment variable named *key* to the string *value*. Such changes to the environment affect subprocesses started with :func:`os.system`, :func:`popen` or :func:`fork` and :func:`execv`. Assignments to items in :data:`os.environ` are automatically translated into corresponding calls to :func:`putenv`; howeve...
python, official-docs, cpython, P0
Local_Trusted_Corpus
315bab7d-b861-4c53-b2e6-1e9b08e9e079
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,779
supabase-export-v2
294b5cf97377a685
On macOS the use of this function is unsafe when mixed with using higher-level system APIs, and that includes using :mod:`urllib.request`. .. versionchanged:: 3.8 Calling ``fork()`` in a subinterpreter is no longer supported (:exc:`RuntimeError` is raised).
trusted_official_docs
CPython Docs
On macOS the use of this function is unsafe when mixed with using higher-level system APIs, and that includes using :mod:`urllib.request`. .. versionchanged:: 3.8 Calling ``fork()`` in a subinterpreter is no longer supported (:exc:`RuntimeError` is raised).
On macOS the use of this function is unsafe when mixed with using higher-level system APIs, and that includes using :mod:`urllib.request`. .. versionchanged:: 3.8 Calling ``fork()`` in a subinterpreter is no longer supported (:exc:`RuntimeError` is raised).
python, official-docs, cpython, P0
Local_Trusted_Corpus
324b7be8-2df9-4b51-ba1b-61cdcc3f815e
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,851
supabase-export-v2
464d63c05a3f7957
* If :const:`SPLICE_F_MORE` is specified, it hints to the kernel that more data will be coming in a subsequent splice. At least one of the file descriptors must refer to a pipe. If *offset_src* is ``None``, then *src* is read from the current position; respectively for *offset_dst*. The offset associated to the file ...
trusted_official_docs
CPython Docs
* If :const:`SPLICE_F_MORE` is specified, it hints to the kernel that more data will be coming in a subsequent splice. At least one of the file descriptors must refer to a pipe. If *offset_src* is ``None``, then *src* is read from the current position; respectively for *offset_dst*. The offset associated to the file ...
* If :const:`SPLICE_F_MORE` is specified, it hints to the kernel that more data will be coming in a subsequent splice. At least one of the file descriptors must refer to a pipe. If *offset_src* is ``None``, then *src* is read from the current position; respectively for *offset_dst*. The offset associated to the file ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
32958d65-dc27-412a-9993-3b0bf92fc629
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,207
supabase-export-v2
90f0bb693a5856c9
this entry is a directory (without following symlinks); return ``False`` if the entry is any other kind of file or if it doesn't exist anymore. The result is cached on the ``os.DirEntry`` object, with a separate cache for *follow_symlinks* ``True`` and ``False``. Call :func:`os.stat` along with :func:`stat.S_ISDIR` t...
trusted_official_docs
CPython Docs
this entry is a directory (without following symlinks); return ``False`` if the entry is any other kind of file or if it doesn't exist anymore. The result is cached on the ``os.DirEntry`` object, with a separate cache for *follow_symlinks* ``True`` and ``False``. Call :func:`os.stat` along with :func:`stat.S_ISDIR` t...
this entry is a directory (without following symlinks); return ``False`` if the entry is any other kind of file or if it doesn't exist anymore. The result is cached on the ``os.DirEntry`` object, with a separate cache for *follow_symlinks* ``True`` and ``False``. Call :func:`os.stat` along with :func:`stat.S_ISDIR` t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
33b102b9-ba28-40ed-b59f-3a8b910578bc
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,220
supabase-export-v2
9db465101ebe8bfd
.. method:: is_junction() Return ``True`` if this entry is a junction (even if broken); return ``False`` if the entry points to a regular directory, any kind of file, a symlink, or if it doesn't exist anymore.
trusted_official_docs
CPython Docs
.. method:: is_junction() Return ``True`` if this entry is a junction (even if broken); return ``False`` if the entry points to a regular directory, any kind of file, a symlink, or if it doesn't exist anymore.
.. method:: is_junction() Return ``True`` if this entry is a junction (even if broken); return ``False`` if the entry points to a regular directory, any kind of file, a symlink, or if it doesn't exist anymore.
python, official-docs, cpython, P0
Local_Trusted_Corpus
33ed5307-1496-419f-a645-9656a4f1143d
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,851
supabase-export-v2
ff66b089ec373149
on the executable file, their effect will override the setting of the effective UID and GID. This argument corresponds to the C library :c:macro:`!POSIX_SPAWN_RESETIDS` flag. If the *setsid* argument is ``True``, it will create a new session ID for ``posix_spawn``. *setsid* requires :c:macro:`!POSIX_SPAWN_SETSID` or ...
trusted_official_docs
CPython Docs
on the executable file, their effect will override the setting of the effective UID and GID. This argument corresponds to the C library :c:macro:`!POSIX_SPAWN_RESETIDS` flag. If the *setsid* argument is ``True``, it will create a new session ID for ``posix_spawn``. *setsid* requires :c:macro:`!POSIX_SPAWN_SETSID` or ...
on the executable file, their effect will override the setting of the effective UID and GID. This argument corresponds to the C library :c:macro:`!POSIX_SPAWN_RESETIDS` flag. If the *setsid* argument is ``True``, it will create a new session ID for ``posix_spawn``. *setsid* requires :c:macro:`!POSIX_SPAWN_SETSID` or ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
356bd297-f832-4b29-ba04-cc48cedbe98f
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,425
supabase-export-v2
43865df235607cec
for use in the *mask* parameter to :func:`os.statx`. Some of these flags may be available even when their corresponding members in :class:`statx_result` are not available. .. availability:: Linux >= 4.11 with glibc >= 2.28.
trusted_official_docs
CPython Docs
for use in the *mask* parameter to :func:`os.statx`. Some of these flags may be available even when their corresponding members in :class:`statx_result` are not available. .. availability:: Linux >= 4.11 with glibc >= 2.28.
for use in the *mask* parameter to :func:`os.statx`. Some of these flags may be available even when their corresponding members in :class:`statx_result` are not available. .. availability:: Linux >= 4.11 with glibc >= 2.28.
python, official-docs, cpython, P0
Local_Trusted_Corpus
36379b77-b3e1-490e-8020-d847766f208f
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,522
supabase-export-v2
9e0c65e6815e75be
.. index:: single: process; scheduling priority Set program scheduling priority. The value *which* is one of :const:`PRIO_PROCESS`, :const:`PRIO_PGRP`, or :const:`PRIO_USER`, and *who* is interpreted relative to *which* (a process identifier for :const:`PRIO_PROCESS`, process group identifier for :const:`PRIO_PGRP`,...
trusted_official_docs
CPython Docs
.. index:: single: process; scheduling priority Set program scheduling priority. The value *which* is one of :const:`PRIO_PROCESS`, :const:`PRIO_PGRP`, or :const:`PRIO_USER`, and *who* is interpreted relative to *which* (a process identifier for :const:`PRIO_PROCESS`, process group identifier for :const:`PRIO_PGRP`,...
.. index:: single: process; scheduling priority Set program scheduling priority. The value *which* is one of :const:`PRIO_PROCESS`, :const:`PRIO_PGRP`, or :const:`PRIO_USER`, and *who* is interpreted relative to *which* (a process identifier for :const:`PRIO_PROCESS`, process group identifier for :const:`PRIO_PGRP`,...
python, official-docs, cpython, P0
Local_Trusted_Corpus
36824184-117f-4302-acb6-474983bda4e5
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,597
supabase-export-v2
47858e52138998ff
.. function:: copy_file_range(src, dst, count, offset_src=None, offset_dst=None) Copy *count* bytes from file descriptor *src*, starting from offset *offset_src*, to file descriptor *dst*, starting from offset *offset_dst*. If *offset_src* is ``None``, then *src* is read from the current position; respectively for *o...
trusted_official_docs
CPython Docs
.. function:: copy_file_range(src, dst, count, offset_src=None, offset_dst=None) Copy *count* bytes from file descriptor *src*, starting from offset *offset_src*, to file descriptor *dst*, starting from offset *offset_dst*. If *offset_src* is ``None``, then *src* is read from the current position; respectively for *o...
.. function:: copy_file_range(src, dst, count, offset_src=None, offset_dst=None) Copy *count* bytes from file descriptor *src*, starting from offset *offset_src*, to file descriptor *dst*, starting from offset *offset_dst*. If *offset_src* is ``None``, then *src* is read from the current position; respectively for *o...
python, official-docs, cpython, P0
Local_Trusted_Corpus
36af8990-86cb-47bd-8cbb-2ff15e961654
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,090
supabase-export-v2
fe72625b7f104131
This function can also support :ref:`paths relative to directory descriptors <dir_fd>`. FIFOs are pipes that can be accessed like regular files. FIFOs exist until they are deleted (for example with :func:`os.unlink`). Generally, FIFOs are used as rendezvous between "client" and "server" type processes: the server ope...
trusted_official_docs
CPython Docs
This function can also support :ref:`paths relative to directory descriptors <dir_fd>`. FIFOs are pipes that can be accessed like regular files. FIFOs exist until they are deleted (for example with :func:`os.unlink`). Generally, FIFOs are used as rendezvous between "client" and "server" type processes: the server ope...
This function can also support :ref:`paths relative to directory descriptors <dir_fd>`. FIFOs are pipes that can be accessed like regular files. FIFOs exist until they are deleted (for example with :func:`os.unlink`). Generally, FIFOs are used as rendezvous between "client" and "server" type processes: the server ope...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3749003e-16a2-4a47-9786-5fa9f339080b
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,909
supabase-export-v2
67b670b13a0a2bde
inherited. Using the :mod:`subprocess` module, all file descriptors except standard streams are closed, and inheritable handles are only inherited if the *close_fds* parameter is ``False``. On WebAssembly platforms, the file descriptor cannot be modified.
trusted_official_docs
CPython Docs
inherited. Using the :mod:`subprocess` module, all file descriptors except standard streams are closed, and inheritable handles are only inherited if the *close_fds* parameter is ``False``. On WebAssembly platforms, the file descriptor cannot be modified.
inherited. Using the :mod:`subprocess` module, all file descriptors except standard streams are closed, and inheritable handles are only inherited if the *close_fds* parameter is ``False``. On WebAssembly platforms, the file descriptor cannot be modified.
python, official-docs, cpython, P0
Local_Trusted_Corpus
37e5d79c-4579-4795-a5b0-b593e65d7498
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,234
supabase-export-v2
6fe6792736c2c4f7
as either a string or bytes -- directly or indirectly through the :class:`PathLike` interface -- or as an open file descriptor. Return a :class:`stat_result` object. This function normally follows symlinks; to stat a symlink add the argument ``follow_symlinks=False``, or use :func:`lstat`.
trusted_official_docs
CPython Docs
as either a string or bytes -- directly or indirectly through the :class:`PathLike` interface -- or as an open file descriptor. Return a :class:`stat_result` object. This function normally follows symlinks; to stat a symlink add the argument ``follow_symlinks=False``, or use :func:`lstat`.
as either a string or bytes -- directly or indirectly through the :class:`PathLike` interface -- or as an open file descriptor. Return a :class:`stat_result` object. This function normally follows symlinks; to stat a symlink add the argument ``follow_symlinks=False``, or use :func:`lstat`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
38a26c73-2a77-4ffd-b1aa-e637753e1412
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,453
supabase-export-v2
6531596a8d1b0c28
.. data:: supports_dir_fd A :class:`set` object indicating which functions in the :mod:`!os` module accept an open file descriptor for their *dir_fd* parameter. Different platforms provide different features, and the underlying functionality Python uses to implement the *dir_fd* parameter is not available on all pla...
trusted_official_docs
CPython Docs
.. data:: supports_dir_fd A :class:`set` object indicating which functions in the :mod:`!os` module accept an open file descriptor for their *dir_fd* parameter. Different platforms provide different features, and the underlying functionality Python uses to implement the *dir_fd* parameter is not available on all pla...
.. data:: supports_dir_fd A :class:`set` object indicating which functions in the :mod:`!os` module accept an open file descriptor for their *dir_fd* parameter. Different platforms provide different features, and the underlying functionality Python uses to implement the *dir_fd* parameter is not available on all pla...
python, official-docs, cpython, P0
Local_Trusted_Corpus
39960d48-362e-4e89-a581-875fa888ce15
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,015
supabase-export-v2
15c7748f91e61d32
*src_dir_fd* and/or *dst_dir_fd* to supply :ref:`paths relative to directory descriptors <dir_fd>`, and :ref:`not following symlinks <follow_symlinks>`. The default value of *follow_symlinks* is ``False`` on Windows. .. audit-event:: os.link src,dst,src_dir_fd,dst_dir_fd os.link
trusted_official_docs
CPython Docs
*src_dir_fd* and/or *dst_dir_fd* to supply :ref:`paths relative to directory descriptors <dir_fd>`, and :ref:`not following symlinks <follow_symlinks>`. The default value of *follow_symlinks* is ``False`` on Windows. .. audit-event:: os.link src,dst,src_dir_fd,dst_dir_fd os.link
*src_dir_fd* and/or *dst_dir_fd* to supply :ref:`paths relative to directory descriptors <dir_fd>`, and :ref:`not following symlinks <follow_symlinks>`. The default value of *follow_symlinks* is ``False`` on Windows. .. audit-event:: os.link src,dst,src_dir_fd,dst_dir_fd os.link
python, official-docs, cpython, P0
Local_Trusted_Corpus
3c306b68-29de-47c8-bb0a-0b0c26f6fb56
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,755
supabase-export-v2
07a9c6488352074d
.. function:: preadv(fd, buffers, offset, flags=0, /) Read from a file descriptor *fd* at a position of *offset* into mutable :term:`bytes-like objects <bytes-like object>` *buffers*, leaving the file offset unchanged. Transfer data into each buffer until it is full and then move on to the next buffer in the sequenc...
trusted_official_docs
CPython Docs
.. function:: preadv(fd, buffers, offset, flags=0, /) Read from a file descriptor *fd* at a position of *offset* into mutable :term:`bytes-like objects <bytes-like object>` *buffers*, leaving the file offset unchanged. Transfer data into each buffer until it is full and then move on to the next buffer in the sequenc...
.. function:: preadv(fd, buffers, offset, flags=0, /) Read from a file descriptor *fd* at a position of *offset* into mutable :term:`bytes-like objects <bytes-like object>` *buffers*, leaving the file offset unchanged. Transfer data into each buffer until it is full and then move on to the next buffer in the sequenc...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3c82a6c9-bc2d-4223-af74-8e49e72ae52d
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,445
supabase-export-v2
46eedd0eed56c04b
:const:`ST_APPEND` (append-only file), :const:`ST_IMMUTABLE` (immutable file), :const:`ST_NOATIME` (do not update access times), :const:`ST_NODIRATIME` (do not update directory access times), :const:`ST_RELATIME` (update atime relative to mtime/ctime). This function can support :ref:`specifying a file descriptor <path_...
trusted_official_docs
CPython Docs
:const:`ST_APPEND` (append-only file), :const:`ST_IMMUTABLE` (immutable file), :const:`ST_NOATIME` (do not update access times), :const:`ST_NODIRATIME` (do not update directory access times), :const:`ST_RELATIME` (update atime relative to mtime/ctime). This function can support :ref:`specifying a file descriptor <path_...
:const:`ST_APPEND` (append-only file), :const:`ST_IMMUTABLE` (immutable file), :const:`ST_NOATIME` (do not update access times), :const:`ST_NODIRATIME` (do not update directory access times), :const:`ST_RELATIME` (update atime relative to mtime/ctime). This function can support :ref:`specifying a file descriptor <path_...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3ce7070c-4503-42a3-bd72-4b2eb22d84c7
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,977
supabase-export-v2
7c2ae2403b8a55d9
This function can support :ref:`specifying a file descriptor <path_fd>`, :ref:`paths relative to directory descriptors <dir_fd>` and :ref:`not following symlinks <follow_symlinks>`. See :func:`shutil.chown` for a higher-level function that accepts names in addition to numeric ids.
trusted_official_docs
CPython Docs
This function can support :ref:`specifying a file descriptor <path_fd>`, :ref:`paths relative to directory descriptors <dir_fd>` and :ref:`not following symlinks <follow_symlinks>`. See :func:`shutil.chown` for a higher-level function that accepts names in addition to numeric ids.
This function can support :ref:`specifying a file descriptor <path_fd>`, :ref:`paths relative to directory descriptors <dir_fd>` and :ref:`not following symlinks <follow_symlinks>`. See :func:`shutil.chown` for a higher-level function that accepts names in addition to numeric ids.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3cf3e1d6-fc6d-4714-9228-6b729eb63ab0
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,824
supabase-export-v2
c4638a916c2ea0c9
might be ``- signal.SIGKILL`` if the subprocess was killed.) On Windows systems, the return value contains the signed integer return code from the child process. On Unix, :func:`waitstatus_to_exitcode` can be used to convert the ``close`` method result (exit status) into an exit code if it is not ``None``. On Windows...
trusted_official_docs
CPython Docs
might be ``- signal.SIGKILL`` if the subprocess was killed.) On Windows systems, the return value contains the signed integer return code from the child process. On Unix, :func:`waitstatus_to_exitcode` can be used to convert the ``close`` method result (exit status) into an exit code if it is not ``None``. On Windows...
might be ``- signal.SIGKILL`` if the subprocess was killed.) On Windows systems, the return value contains the signed integer return code from the child process. On Unix, :func:`waitstatus_to_exitcode` can be used to convert the ``close`` method result (exit status) into an exit code if it is not ``None``. On Windows...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3d78e762-6087-4f08-99ee-dd2b9e14612a
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,506
supabase-export-v2
2610ce34422b5ab9
:func:`utime` takes two optional parameters, *times* and *ns*. These specify the times set on *path* and are used as follows: - If *ns* is specified, it must be a 2-tuple of the form ``(atime_ns, mtime_ns)`` where each member is an int expressing nanoseconds. - If *times* is not ``None``, it must be a 2-tuple of the...
trusted_official_docs
CPython Docs
:func:`utime` takes two optional parameters, *times* and *ns*. These specify the times set on *path* and are used as follows: - If *ns* is specified, it must be a 2-tuple of the form ``(atime_ns, mtime_ns)`` where each member is an int expressing nanoseconds. - If *times* is not ``None``, it must be a 2-tuple of the...
:func:`utime` takes two optional parameters, *times* and *ns*. These specify the times set on *path* and are used as follows: - If *ns* is specified, it must be a 2-tuple of the form ``(atime_ns, mtime_ns)`` where each member is an int expressing nanoseconds. - If *times* is not ``None``, it must be a 2-tuple of the...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3d7c8eb2-f05d-4ef0-be93-48e879523ed0
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,225
supabase-export-v2
1a45f8f0b032507c
Return a :class:`stat_result` object for this entry. This method follows symbolic links by default; to stat a symbolic link add the ``follow_symlinks=False`` argument. On Unix, this method always requires a system call. On Windows, it only requires a system call if *follow_symlinks* is ``True`` and the entry is a rep...
trusted_official_docs
CPython Docs
Return a :class:`stat_result` object for this entry. This method follows symbolic links by default; to stat a symbolic link add the ``follow_symlinks=False`` argument. On Unix, this method always requires a system call. On Windows, it only requires a system call if *follow_symlinks* is ``True`` and the entry is a rep...
Return a :class:`stat_result` object for this entry. This method follows symbolic links by default; to stat a symbolic link add the ``follow_symlinks=False`` argument. On Unix, this method always requires a system call. On Windows, it only requires a system call if *follow_symlinks* is ``True`` and the entry is a rep...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3eccf9f5-6b50-46ce-9dd4-33f034a1511c
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,823
supabase-export-v2
65f09bd8a20214f1
have the same meaning as the corresponding argument to the built-in :func:`open` function. The returned file object reads or writes text strings rather than bytes. The ``close`` method returns :const:`None` if the subprocess exited successfully, or the subprocess's return code if there was an error. On POSIX systems,...
trusted_official_docs
CPython Docs
have the same meaning as the corresponding argument to the built-in :func:`open` function. The returned file object reads or writes text strings rather than bytes. The ``close`` method returns :const:`None` if the subprocess exited successfully, or the subprocess's return code if there was an error. On POSIX systems,...
have the same meaning as the corresponding argument to the built-in :func:`open` function. The returned file object reads or writes text strings rather than bytes. The ``close`` method returns :const:`None` if the subprocess exited successfully, or the subprocess's return code if there was an error. On POSIX systems,...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3fb82c52-4f9a-4edb-a08d-392a01b922ec
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,312
supabase-export-v2
d70495a0fb306a98
up to 128 bits, depending on the file system. Previously it would not be above 64 bits, and larger file identifiers would be arbitrarily packed. On Windows, :attr:`st_rdev` no longer returns a value. Previously it would contain the same as :attr:`st_dev`, which was incorrect.
trusted_official_docs
CPython Docs
up to 128 bits, depending on the file system. Previously it would not be above 64 bits, and larger file identifiers would be arbitrarily packed. On Windows, :attr:`st_rdev` no longer returns a value. Previously it would contain the same as :attr:`st_dev`, which was incorrect.
up to 128 bits, depending on the file system. Previously it would not be above 64 bits, and larger file identifiers would be arbitrarily packed. On Windows, :attr:`st_rdev` no longer returns a value. Previously it would contain the same as :attr:`st_dev`, which was incorrect.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3fcd6a59-b36c-4063-a3be-af75dd8fa6a6
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,507
supabase-export-v2
a453e9db95082557
Reassociate the current thread with a Linux namespace. See the :manpage:`setns(2)` and :manpage:`namespaces(7)` man pages for more details. If *fd* refers to a :file:`/proc/{pid}/ns/` link, ``setns()`` reassociates the calling thread with the namespace associated with that link, and *nstype* may be set to one of the ...
trusted_official_docs
CPython Docs
Reassociate the current thread with a Linux namespace. See the :manpage:`setns(2)` and :manpage:`namespaces(7)` man pages for more details. If *fd* refers to a :file:`/proc/{pid}/ns/` link, ``setns()`` reassociates the calling thread with the namespace associated with that link, and *nstype* may be set to one of the ...
Reassociate the current thread with a Linux namespace. See the :manpage:`setns(2)` and :manpage:`namespaces(7)` man pages for more details. If *fd* refers to a :file:`/proc/{pid}/ns/` link, ``setns()`` reassociates the calling thread with the namespace associated with that link, and *nstype* may be set to one of the ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
401c28ee-5ecb-40a0-9e5e-3a64aa8faa52
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,454
supabase-export-v2
8a8bb280b4fa0742
.. index:: single: process; id of parent Return the parent's process id. When the parent process has exited, on Unix the id returned is the one of the init process (1), on Windows it is still the same id, which may be already reused by another process.
trusted_official_docs
CPython Docs
.. index:: single: process; id of parent Return the parent's process id. When the parent process has exited, on Unix the id returned is the one of the init process (1), on Windows it is still the same id, which may be already reused by another process.
.. index:: single: process; id of parent Return the parent's process id. When the parent process has exited, on Unix the id returned is the one of the init process (1), on Windows it is still the same id, which may be already reused by another process.
python, official-docs, cpython, P0
Local_Trusted_Corpus
404023bc-e69b-4452-b018-f13ff97d9fce
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,130
supabase-export-v2
b00bb864770dafad
This function can support :ref:`paths relative to directory descriptors <dir_fd>`. On Windows, attempting to remove a file that is in use causes an exception to be raised; on Unix, the directory entry is removed but the storage allocated to the file is not made available until the original file is no longer in use.
trusted_official_docs
CPython Docs
This function can support :ref:`paths relative to directory descriptors <dir_fd>`. On Windows, attempting to remove a file that is in use causes an exception to be raised; on Unix, the directory entry is removed but the storage allocated to the file is not made available until the original file is no longer in use.
This function can support :ref:`paths relative to directory descriptors <dir_fd>`. On Windows, attempting to remove a file that is in use causes an exception to be raised; on Unix, the directory entry is removed but the storage allocated to the file is not made available until the original file is no longer in use.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4243e540-75a4-4c2e-a401-e32a06984290
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,877
supabase-export-v2
b53142de54ad8ec6
Execute the program *path* in a new process. (Note that the :mod:`subprocess` module provides more powerful facilities for spawning new processes and retrieving their results; using that module is preferable to using these functions. Check especially the :ref:`subprocess-replacements` section.)
trusted_official_docs
CPython Docs
Execute the program *path* in a new process. (Note that the :mod:`subprocess` module provides more powerful facilities for spawning new processes and retrieving their results; using that module is preferable to using these functions. Check especially the :ref:`subprocess-replacements` section.)
Execute the program *path* in a new process. (Note that the :mod:`subprocess` module provides more powerful facilities for spawning new processes and retrieving their results; using that module is preferable to using these functions. Check especially the :ref:`subprocess-replacements` section.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
42e3f6d9-8a19-4a71-aca1-3f4d47b2693a
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,440
supabase-export-v2
b3117a6c92607c6d
or :envvar:`USERNAME` to find out who the user is, and falls back to ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the current real user id. .. availability:: Unix, Windows, not WASI.
trusted_official_docs
CPython Docs
or :envvar:`USERNAME` to find out who the user is, and falls back to ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the current real user id. .. availability:: Unix, Windows, not WASI.
or :envvar:`USERNAME` to find out who the user is, and falls back to ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the current real user id. .. availability:: Unix, Windows, not WASI.
python, official-docs, cpython, P0
Local_Trusted_Corpus
43108717-eca7-4403-b62d-634e1b5d1a97
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,460
supabase-export-v2
57fe14ef0226bb87
``False`` for *effective_ids* is always supported on all platforms.) If the local platform supports it, the collection will contain :func:`os.access`; otherwise it will be empty. This expression evaluates to ``True`` if :func:`os.access` supports ``effective_ids=True`` on the local platform::
trusted_official_docs
CPython Docs
``False`` for *effective_ids* is always supported on all platforms.) If the local platform supports it, the collection will contain :func:`os.access`; otherwise it will be empty. This expression evaluates to ``True`` if :func:`os.access` supports ``effective_ids=True`` on the local platform::
``False`` for *effective_ids* is always supported on all platforms.) If the local platform supports it, the collection will contain :func:`os.access`; otherwise it will be empty. This expression evaluates to ``True`` if :func:`os.access` supports ``effective_ids=True`` on the local platform::
python, official-docs, cpython, P0
Local_Trusted_Corpus
4377d47a-b401-4836-b6fc-5064f8c06081
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,975
supabase-export-v2
03b70e8a600ce087
.. function:: chown(path, uid, gid, *, dir_fd=None, follow_symlinks=True) Change the owner and group id of *path* to the numeric *uid* and *gid*. To leave one of the ids unchanged, set it to -1.
trusted_official_docs
CPython Docs
.. function:: chown(path, uid, gid, *, dir_fd=None, follow_symlinks=True) Change the owner and group id of *path* to the numeric *uid* and *gid*. To leave one of the ids unchanged, set it to -1.
.. function:: chown(path, uid, gid, *, dir_fd=None, follow_symlinks=True) Change the owner and group id of *path* to the numeric *uid* and *gid*. To leave one of the ids unchanged, set it to -1.
python, official-docs, cpython, P0
Local_Trusted_Corpus
439c6b9d-b5b2-474f-a0c3-ab83206a0a93
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,798
supabase-export-v2
3bdda3b188880fbf
Send signal *sig* to the process *pid*. Constants for the specific signals available on the host platform are defined in the :mod:`signal` module. Windows: The :const:`signal.CTRL_C_EVENT` and :const:`signal.CTRL_BREAK_EVENT` signals are special signals which can only be sent to console processes which share a common...
trusted_official_docs
CPython Docs
Send signal *sig* to the process *pid*. Constants for the specific signals available on the host platform are defined in the :mod:`signal` module. Windows: The :const:`signal.CTRL_C_EVENT` and :const:`signal.CTRL_BREAK_EVENT` signals are special signals which can only be sent to console processes which share a common...
Send signal *sig* to the process *pid*. Constants for the specific signals available on the host platform are defined in the :mod:`signal` module. Windows: The :const:`signal.CTRL_C_EVENT` and :const:`signal.CTRL_BREAK_EVENT` signals are special signals which can only be sent to console processes which share a common...
python, official-docs, cpython, P0
Local_Trusted_Corpus
43d3665c-f0b4-497c-ae1e-6311c38c208e
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,218
supabase-export-v2
b251d85be2452134
Specifically, neither Windows or Unix require a system call, except on certain Unix file systems, such as network file systems, that return ``dirent.d_type == DT_UNKNOWN``. This method can raise :exc:`OSError`, such as :exc:`PermissionError`, but :exc:`FileNotFoundError` is caught and not raised.
trusted_official_docs
CPython Docs
Specifically, neither Windows or Unix require a system call, except on certain Unix file systems, such as network file systems, that return ``dirent.d_type == DT_UNKNOWN``. This method can raise :exc:`OSError`, such as :exc:`PermissionError`, but :exc:`FileNotFoundError` is caught and not raised.
Specifically, neither Windows or Unix require a system call, except on certain Unix file systems, such as network file systems, that return ``dirent.d_type == DT_UNKNOWN``. This method can raise :exc:`OSError`, such as :exc:`PermissionError`, but :exc:`FileNotFoundError` is caught and not raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
445a6ac4-21cb-429e-9bc7-7432fa7887de
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,871
supabase-export-v2
c87b36f595fd12dd
are called in reverse registration order. Functions registered for execution after forking (either in the parent or in the child) are called in registration order. Note that :c:func:`fork` calls made by third-party C code may not call those functions, unless it explicitly calls :c:func:`PyOS_BeforeFork`, :c:func:`PyO...
trusted_official_docs
CPython Docs
are called in reverse registration order. Functions registered for execution after forking (either in the parent or in the child) are called in registration order. Note that :c:func:`fork` calls made by third-party C code may not call those functions, unless it explicitly calls :c:func:`PyOS_BeforeFork`, :c:func:`PyO...
are called in reverse registration order. Functions registered for execution after forking (either in the parent or in the child) are called in registration order. Note that :c:func:`fork` calls made by third-party C code may not call those functions, unless it explicitly calls :c:func:`PyOS_BeforeFork`, :c:func:`PyO...
python, official-docs, cpython, P0
Local_Trusted_Corpus
452834ee-adac-48b8-9f41-a93f82efe905
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,875
supabase-export-v2
25075ad5778f3fd0
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:`unlockpt`.
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:`unlockpt`.
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:`unlockpt`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4536102c-4325-418b-987e-de97d5c0a9cc
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,850
supabase-export-v2
6f3aa3d41070ffda
asked to not block on I/O. This makes the splice pipe operations nonblocking, but splice may nevertheless block because the spliced file descriptors may block. * If :const:`SPLICE_F_MORE` is specified, it hints to the kernel that more data will be coming in a subsequent splice.
trusted_official_docs
CPython Docs
asked to not block on I/O. This makes the splice pipe operations nonblocking, but splice may nevertheless block because the spliced file descriptors may block. * If :const:`SPLICE_F_MORE` is specified, it hints to the kernel that more data will be coming in a subsequent splice.
asked to not block on I/O. This makes the splice pipe operations nonblocking, but splice may nevertheless block because the spliced file descriptors may block. * If :const:`SPLICE_F_MORE` is specified, it hints to the kernel that more data will be coming in a subsequent splice.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4580dbbc-6e02-41fc-b390-1b8b0fd735dd
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,304
supabase-export-v2
ae02a52d014383fb
:attr:`st_file_attributes` has the :const:`~stat.FILE_ATTRIBUTE_REPARSE_POINT` set, this field contains the tag identifying the type of reparse point. See the :const:`IO_REPARSE_TAG_* <stat.IO_REPARSE_TAG_SYMLINK>` constants in the :mod:`stat` module. The standard module :mod:`stat` defines functions and constants that...
trusted_official_docs
CPython Docs
:attr:`st_file_attributes` has the :const:`~stat.FILE_ATTRIBUTE_REPARSE_POINT` set, this field contains the tag identifying the type of reparse point. See the :const:`IO_REPARSE_TAG_* <stat.IO_REPARSE_TAG_SYMLINK>` constants in the :mod:`stat` module. The standard module :mod:`stat` defines functions and constants that...
:attr:`st_file_attributes` has the :const:`~stat.FILE_ATTRIBUTE_REPARSE_POINT` set, this field contains the tag identifying the type of reparse point. See the :const:`IO_REPARSE_TAG_* <stat.IO_REPARSE_TAG_SYMLINK>` constants in the :mod:`stat` module. The standard module :mod:`stat` defines functions and constants that...
python, official-docs, cpython, P0
Local_Trusted_Corpus
45881354-68c8-476e-ad22-b379e5cdfbb4
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,822
supabase-export-v2
cfba77394d201519
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 second case may be used on macOS and FreeBSD where *headers* and *trailers* are arbitrary sequences of buffers that are written before and after the data from *in_fd* is writ...
trusted_official_docs
CPython Docs
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 second case may be used on macOS and FreeBSD where *headers* and *trailers* are arbitrary sequences of buffers that are written before and after the data from *in_fd* is writ...
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 second case may be used on macOS and FreeBSD where *headers* and *trailers* are arbitrary sequences of buffers that are written before and after the data from *in_fd* is writ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
46077abc-448c-4c41-aa35-bc14de032182
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,700
supabase-export-v2
505487422efe84f3
constants (like :const:`O_RDONLY` and :const:`O_WRONLY`) are defined in the :mod:`!os` module. In particular, on Windows adding :const:`O_BINARY` is needed to open files in binary mode. This function can support :ref:`paths relative to directory descriptors <dir_fd>` with the *dir_fd* parameter.
trusted_official_docs
CPython Docs
constants (like :const:`O_RDONLY` and :const:`O_WRONLY`) are defined in the :mod:`!os` module. In particular, on Windows adding :const:`O_BINARY` is needed to open files in binary mode. This function can support :ref:`paths relative to directory descriptors <dir_fd>` with the *dir_fd* parameter.
constants (like :const:`O_RDONLY` and :const:`O_WRONLY`) are defined in the :mod:`!os` module. In particular, on Windows adding :const:`O_BINARY` is needed to open files in binary mode. This function can support :ref:`paths relative to directory descriptors <dir_fd>` with the *dir_fd* parameter.
python, official-docs, cpython, P0
Local_Trusted_Corpus
46132aef-b3aa-4e41-80c7-76dc0b6a07f2
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,617
supabase-export-v2
44fbddf0272110e1
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. The timer's interval is set by the *interval* real number. If *interval* is zero, the timer only fires once, on the initial expiration. If *interval*...
trusted_official_docs
CPython Docs
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. The timer's interval is set by the *interval* real number. If *interval* is zero, the timer only fires once, on the initial expiration. If *interval*...
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. The timer's interval is set by the *interval* real number. If *interval* is zero, the timer only fires once, on the initial expiration. If *interval*...
python, official-docs, cpython, P0
Local_Trusted_Corpus
46d8d362-629e-4081-90ae-58c98bbc5788
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,699
supabase-export-v2
a6c65e8b788a49ab
*mode*, the current umask value is first masked out. Return the file descriptor for the newly opened file. The new file descriptor is :ref:`non-inheritable <fd_inheritance>`. For a description of the flag and mode values, see the C run-time documentation; flag constants (like :const:`O_RDONLY` and :const:`O_WRONLY`) a...
trusted_official_docs
CPython Docs
*mode*, the current umask value is first masked out. Return the file descriptor for the newly opened file. The new file descriptor is :ref:`non-inheritable <fd_inheritance>`. For a description of the flag and mode values, see the C run-time documentation; flag constants (like :const:`O_RDONLY` and :const:`O_WRONLY`) a...
*mode*, the current umask value is first masked out. Return the file descriptor for the newly opened file. The new file descriptor is :ref:`non-inheritable <fd_inheritance>`. For a description of the flag and mode values, see the C run-time documentation; flag constants (like :const:`O_RDONLY` and :const:`O_WRONLY`) a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
47ce76b4-fd2d-4157-9b22-11e1fb151cae
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,310
supabase-export-v2
c7f2ae24696a47b3
.. versionchanged:: 3.8 On Windows, the :attr:`st_mode` member now identifies special files as :const:`~stat.S_IFCHR`, :const:`~stat.S_IFIFO` or :const:`~stat.S_IFBLK` as appropriate. .. versionchanged:: 3.12 On Windows, :attr:`st_ctime` is deprecated. Eventually, it will contain the last metadata change time, for co...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.8 On Windows, the :attr:`st_mode` member now identifies special files as :const:`~stat.S_IFCHR`, :const:`~stat.S_IFIFO` or :const:`~stat.S_IFBLK` as appropriate. .. versionchanged:: 3.12 On Windows, :attr:`st_ctime` is deprecated. Eventually, it will contain the last metadata change time, for co...
.. versionchanged:: 3.8 On Windows, the :attr:`st_mode` member now identifies special files as :const:`~stat.S_IFCHR`, :const:`~stat.S_IFIFO` or :const:`~stat.S_IFBLK` as appropriate. .. versionchanged:: 3.12 On Windows, :attr:`st_ctime` is deprecated. Eventually, it will contain the last metadata change time, for co...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4855e42e-16c6-4073-b6a9-6c7bb5109732
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,797
supabase-export-v2
7d1a5329797ec042
.. index:: single: process; killing single: process; signalling Send signal *sig* to the process *pid*. Constants for the specific signals available on the host platform are defined in the :mod:`signal` module.
trusted_official_docs
CPython Docs
.. index:: single: process; killing single: process; signalling Send signal *sig* to the process *pid*. Constants for the specific signals available on the host platform are defined in the :mod:`signal` module.
.. index:: single: process; killing single: process; signalling Send signal *sig* to the process *pid*. Constants for the specific signals available on the host platform are defined in the :mod:`signal` module.
python, official-docs, cpython, P0
Local_Trusted_Corpus
485dc684-f1f1-47f4-bf46-7084761ebf79
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,530
supabase-export-v2
97141e4adeb61431
your disk files. import os for root, dirs, files in os.walk(top, topdown=False): for name in files: os.remove(os.path.join(root, name)) for name in dirs: os.rmdir(os.path.join(root, name)) os.rmdir(top) .. audit-event:: os.walk top,topdown,onerror,followlinks os.walk
trusted_official_docs
CPython Docs
your disk files. import os for root, dirs, files in os.walk(top, topdown=False): for name in files: os.remove(os.path.join(root, name)) for name in dirs: os.rmdir(os.path.join(root, name)) os.rmdir(top) .. audit-event:: os.walk top,topdown,onerror,followlinks os.walk
your disk files. import os for root, dirs, files in os.walk(top, topdown=False): for name in files: os.remove(os.path.join(root, name)) for name in dirs: os.rmdir(os.path.join(root, name)) os.rmdir(top) .. audit-event:: os.walk top,topdown,onerror,followlinks os.walk
python, official-docs, cpython, P0
Local_Trusted_Corpus
486484c5-79aa-4c54-882e-2b3817435d28
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,281
supabase-export-v2
b83507a98ea81475
on Windows systems using the FAT32 file systems, :attr:`st_mtime` has 2-second resolution, and :attr:`st_atime` has only 1-day resolution. See your operating system documentation for details. Similarly, although :attr:`st_atime_ns`, :attr:`st_mtime_ns`, :attr:`st_ctime_ns` and :attr:`st_birthtime_ns` are always expres...
trusted_official_docs
CPython Docs
on Windows systems using the FAT32 file systems, :attr:`st_mtime` has 2-second resolution, and :attr:`st_atime` has only 1-day resolution. See your operating system documentation for details. Similarly, although :attr:`st_atime_ns`, :attr:`st_mtime_ns`, :attr:`st_ctime_ns` and :attr:`st_birthtime_ns` are always expres...
on Windows systems using the FAT32 file systems, :attr:`st_mtime` has 2-second resolution, and :attr:`st_atime` has only 1-day resolution. See your operating system documentation for details. Similarly, although :attr:`st_atime_ns`, :attr:`st_mtime_ns`, :attr:`st_ctime_ns` and :attr:`st_birthtime_ns` are always expres...
python, official-docs, cpython, P0
Local_Trusted_Corpus
48880da9-b201-41b8-ae40-d3bad2adced9
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,168
supabase-export-v2
f8bf33f3806392ed
.. function:: scandir(path='.') Return an iterator of :class:`os.DirEntry` objects corresponding to the entries in the directory given by *path*. The entries are yielded in arbitrary order, and the special entries ``'.'`` and ``'..'`` are not included. If a file is removed from or added to the directory after creat...
trusted_official_docs
CPython Docs
.. function:: scandir(path='.') Return an iterator of :class:`os.DirEntry` objects corresponding to the entries in the directory given by *path*. The entries are yielded in arbitrary order, and the special entries ``'.'`` and ``'..'`` are not included. If a file is removed from or added to the directory after creat...
.. function:: scandir(path='.') Return an iterator of :class:`os.DirEntry` objects corresponding to the entries in the directory given by *path*. The entries are yielded in arbitrary order, and the special entries ``'.'`` and ``'..'`` are not included. If a file is removed from or added to the directory after creat...
python, official-docs, cpython, P0
Local_Trusted_Corpus
493ac6a0-b3f4-4e59-9948-8f6decf670a2
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,226
supabase-export-v2
a62a4e62589aac63
it only requires a system call if *follow_symlinks* is ``True`` and the entry is a reparse point (for example, a symbolic link or directory junction). On Windows, the ``st_ino``, ``st_dev`` and ``st_nlink`` attributes of the :class:`stat_result` are always set to zero. Call :func:`os.stat` to get these attributes.
trusted_official_docs
CPython Docs
it only requires a system call if *follow_symlinks* is ``True`` and the entry is a reparse point (for example, a symbolic link or directory junction). On Windows, the ``st_ino``, ``st_dev`` and ``st_nlink`` attributes of the :class:`stat_result` are always set to zero. Call :func:`os.stat` to get these attributes.
it only requires a system call if *follow_symlinks* is ``True`` and the entry is a reparse point (for example, a symbolic link or directory junction). On Windows, the ``st_ino``, ``st_dev`` and ``st_nlink`` attributes of the :class:`stat_result` are always set to zero. Call :func:`os.stat` to get these attributes.
python, official-docs, cpython, P0
Local_Trusted_Corpus
49db24ee-ae1c-4cc6-9cb4-dbb544c3ae70
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,871
supabase-export-v2
0c6f3010338d6fb0
.. function:: ttyname(fd, /) Return a string which specifies the terminal device associated with file descriptor *fd*. If *fd* is not associated with a terminal device, an exception is raised.
trusted_official_docs
CPython Docs
.. function:: ttyname(fd, /) Return a string which specifies the terminal device associated with file descriptor *fd*. If *fd* is not associated with a terminal device, an exception is raised.
.. function:: ttyname(fd, /) Return a string which specifies the terminal device associated with file descriptor *fd*. If *fd* is not associated with a terminal device, an exception is raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4a7e00a1-1693-4ec6-ab0f-3cef1be8c80e
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,323
supabase-export-v2
44daf40992de0655
-------------- This module provides a portable way of using operating system dependent functionality. If you just want to read or write a file see :func:`open`, if you want to manipulate paths, see the :mod:`os.path` module, and if you want to read all the lines in all the files on the command line see the :mod:`filein...
trusted_official_docs
CPython Docs
-------------- This module provides a portable way of using operating system dependent functionality. If you just want to read or write a file see :func:`open`, if you want to manipulate paths, see the :mod:`os.path` module, and if you want to read all the lines in all the files on the command line see the :mod:`filein...
-------------- This module provides a portable way of using operating system dependent functionality. If you just want to read or write a file see :func:`open`, if you want to manipulate paths, see the :mod:`os.path` module, and if you want to read all the lines in all the files on the command line see the :mod:`filein...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4b1b5314-27a6-42d9-8d7f-2ac89e4b1b20
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,349
supabase-export-v2
391bc9fb528694da
.. versionchanged:: 3.15 Python UTF-8 mode is now enabled by default (:pep:`686`). It may be disabled by setting :envvar:`PYTHONUTF8=0 <PYTHONUTF8>` as an environment variable or by using the :option:`-X utf8=0 <-X>` command line option.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.15 Python UTF-8 mode is now enabled by default (:pep:`686`). It may be disabled by setting :envvar:`PYTHONUTF8=0 <PYTHONUTF8>` as an environment variable or by using the :option:`-X utf8=0 <-X>` command line option.
.. versionchanged:: 3.15 Python UTF-8 mode is now enabled by default (:pep:`686`). It may be disabled by setting :envvar:`PYTHONUTF8=0 <PYTHONUTF8>` as an environment variable or by using the :option:`-X utf8=0 <-X>` command line option.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4b47671b-faa4-4caa-a1a9-80e786912425
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,968
supabase-export-v2
643b22b409f794fd
.. note:: Although Windows supports :func:`chmod`, you can only set the file's read-only flag with it (via the ``stat.S_IWRITE`` and ``stat.S_IREAD`` constants or a corresponding integer value). All other bits are ignored. The default value of *follow_symlinks* is ``False`` on Windows.
trusted_official_docs
CPython Docs
.. note:: Although Windows supports :func:`chmod`, you can only set the file's read-only flag with it (via the ``stat.S_IWRITE`` and ``stat.S_IREAD`` constants or a corresponding integer value). All other bits are ignored. The default value of *follow_symlinks* is ``False`` on Windows.
.. note:: Although Windows supports :func:`chmod`, you can only set the file's read-only flag with it (via the ``stat.S_IWRITE`` and ``stat.S_IREAD`` constants or a corresponding integer value). All other bits are ignored. The default value of *follow_symlinks* is ``False`` on Windows.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4b6e9f44-095c-42a4-be36-20587d6be568
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,509
supabase-export-v2
a1d14f01aa0f2c82
bit mask combining one or more of the :ref:`CLONE_NEW* constants <os-unshare-clone-flags>`, e.g. ``setns(fd, os.CLONE_NEWUTS | os.CLONE_NEWPID)``. The caller's memberships in unspecified namespaces are left unchanged. *fd* can be any object with a :meth:`~io.IOBase.fileno` method, or a raw file descriptor.
trusted_official_docs
CPython Docs
bit mask combining one or more of the :ref:`CLONE_NEW* constants <os-unshare-clone-flags>`, e.g. ``setns(fd, os.CLONE_NEWUTS | os.CLONE_NEWPID)``. The caller's memberships in unspecified namespaces are left unchanged. *fd* can be any object with a :meth:`~io.IOBase.fileno` method, or a raw file descriptor.
bit mask combining one or more of the :ref:`CLONE_NEW* constants <os-unshare-clone-flags>`, e.g. ``setns(fd, os.CLONE_NEWUTS | os.CLONE_NEWPID)``. The caller's memberships in unspecified namespaces are left unchanged. *fd* can be any object with a :meth:`~io.IOBase.fileno` method, or a raw file descriptor.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4d403444-66ca-49fb-b920-275879c7512f
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,357
supabase-export-v2
8b1696ab1f9d0d00
coercion is either disabled or fails. In such legacy locales, the interpreter will default to enabling UTF-8 mode unless explicitly instructed not to do so. See also the :ref:`UTF-8 mode on Windows <win-utf8-mode>` and the :term:`filesystem encoding and error handler`.
trusted_official_docs
CPython Docs
coercion is either disabled or fails. In such legacy locales, the interpreter will default to enabling UTF-8 mode unless explicitly instructed not to do so. See also the :ref:`UTF-8 mode on Windows <win-utf8-mode>` and the :term:`filesystem encoding and error handler`.
coercion is either disabled or fails. In such legacy locales, the interpreter will default to enabling UTF-8 mode unless explicitly instructed not to do so. See also the :ref:`UTF-8 mode on Windows <win-utf8-mode>` and the :term:`filesystem encoding and error handler`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4e55e1fb-8640-4aba-8a2b-591ef2fa118a
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,781
supabase-export-v2
319d4029f83f786d
.. versionchanged:: 3.12 If Python is able to detect that your process has multiple threads, :func:`os.fork` now raises a :exc:`DeprecationWarning`. We chose to surface this as a warning, when detectable, to better inform developers of a design problem that the POSIX platform specifically notes as not supported. Even...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.12 If Python is able to detect that your process has multiple threads, :func:`os.fork` now raises a :exc:`DeprecationWarning`. We chose to surface this as a warning, when detectable, to better inform developers of a design problem that the POSIX platform specifically notes as not supported. Even...
.. versionchanged:: 3.12 If Python is able to detect that your process has multiple threads, :func:`os.fork` now raises a :exc:`DeprecationWarning`. We chose to surface this as a warning, when detectable, to better inform developers of a design problem that the POSIX platform specifically notes as not supported. Even...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4e6761ab-fe15-473d-93f6-5468898d57fe
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,709
supabase-export-v2
c282e43e8f5027d1
of the current process' environment); the functions :func:`execl`, :func:`execlp`, :func:`execv`, and :func:`execvp` all cause the new process to inherit the environment of the current process. For :func:`execve` on some platforms, *path* may also be specified as an open file descriptor. This functionality may not be ...
trusted_official_docs
CPython Docs
of the current process' environment); the functions :func:`execl`, :func:`execlp`, :func:`execv`, and :func:`execvp` all cause the new process to inherit the environment of the current process. For :func:`execve` on some platforms, *path* may also be specified as an open file descriptor. This functionality may not be ...
of the current process' environment); the functions :func:`execl`, :func:`execlp`, :func:`execv`, and :func:`execvp` all cause the new process to inherit the environment of the current process. For :func:`execve` on some platforms, *path* may also be specified as an open file descriptor. This functionality may not be ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4ee1f474-d877-4823-93b2-f247fac17f32
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,989
supabase-export-v2
3730e6fd5b206580
the file descriptor *fd*. The descriptor must refer to an opened directory, not an open file. As of Python 3.3, this is equivalent to ``os.chdir(fd)``. .. audit-event:: os.chdir path os.fchdir
trusted_official_docs
CPython Docs
the file descriptor *fd*. The descriptor must refer to an opened directory, not an open file. As of Python 3.3, this is equivalent to ``os.chdir(fd)``. .. audit-event:: os.chdir path os.fchdir
the file descriptor *fd*. The descriptor must refer to an opened directory, not an open file. As of Python 3.3, this is equivalent to ``os.chdir(fd)``. .. audit-event:: os.chdir path os.fchdir
python, official-docs, cpython, P0
Local_Trusted_Corpus