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
8628b020-840c-43d0-889a-00ad3cfdf088
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,455
supabase-export-v2
1b7f2a020cf0c638
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. .. availability:: Unix, Windows, not WASI.
trusted_official_docs
CPython Docs
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. .. availability:: Unix, Windows, not WASI.
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. .. availability:: Unix, Windows, not WASI.
python, official-docs, cpython, P0
Local_Trusted_Corpus
86eb2246-7278-4d1c-b3e7-cde710a0e3b8
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,860
supabase-export-v2
6c441ed0c299ceff
.. function:: readv(fd, buffers, /) Read from a file descriptor *fd* into a number of mutable :term:`bytes-like objects <bytes-like object>` *buffers*. Transfer data into each buffer until it is full and then move on to the next buffer in the sequence to hold the rest of the data.
trusted_official_docs
CPython Docs
.. function:: readv(fd, buffers, /) Read from a file descriptor *fd* into a number of mutable :term:`bytes-like objects <bytes-like object>` *buffers*. Transfer data into each buffer until it is full and then move on to the next buffer in the sequence to hold the rest of the data.
.. function:: readv(fd, buffers, /) Read from a file descriptor *fd* into a number of mutable :term:`bytes-like objects <bytes-like object>` *buffers*. Transfer data into each buffer until it is full and then move on to the next buffer in the sequence to hold the rest of the data.
python, official-docs, cpython, P0
Local_Trusted_Corpus
87bea1a8-80a6-4302-8c0a-9f926731ebfd
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,620
supabase-export-v2
87c2ddf856c9d4fe
Linux manages system clock as UTC. A daylight-savings time transition is done by changing time offset only and doesn't cause discontinuous system clock change. Discontinuous system clock change will be caused by the following events:
trusted_official_docs
CPython Docs
Linux manages system clock as UTC. A daylight-savings time transition is done by changing time offset only and doesn't cause discontinuous system clock change. Discontinuous system clock change will be caused by the following events:
Linux manages system clock as UTC. A daylight-savings time transition is done by changing time offset only and doesn't cause discontinuous system clock change. Discontinuous system clock change will be caused by the following events:
python, official-docs, cpython, P0
Local_Trusted_Corpus
87c86ea5-4d01-402e-a918-91d08b1be9e3
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,002
supabase-export-v2
9422a1fb049201d8
rather than the target. See the docs for :func:`chmod` for possible values of *mode*. As of Python 3.3, this is equivalent to ``os.chmod(path, mode, follow_symlinks=False)``. ``lchmod()`` is not part of POSIX, but Unix implementations may have it if changing the mode of symbolic links is supported.
trusted_official_docs
CPython Docs
rather than the target. See the docs for :func:`chmod` for possible values of *mode*. As of Python 3.3, this is equivalent to ``os.chmod(path, mode, follow_symlinks=False)``. ``lchmod()`` is not part of POSIX, but Unix implementations may have it if changing the mode of symbolic links is supported.
rather than the target. See the docs for :func:`chmod` for possible values of *mode*. As of Python 3.3, this is equivalent to ``os.chmod(path, mode, follow_symlinks=False)``. ``lchmod()`` is not part of POSIX, but Unix implementations may have it if changing the mode of symbolic links is supported.
python, official-docs, cpython, P0
Local_Trusted_Corpus
883b2874-a926-4098-a9fb-403866dc042b
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,563
supabase-export-v2
01c1ff904fdc7c45
Some systems truncate :attr:`nodename` to 8 characters or to the leading component; a better way to get the hostname is :func:`socket.gethostname` or even ``socket.gethostbyaddr(socket.gethostname())``. On macOS, iOS and Android, this returns the *kernel* name and version (i.e., ``'Darwin'`` on macOS and iOS; ``'Linux...
trusted_official_docs
CPython Docs
Some systems truncate :attr:`nodename` to 8 characters or to the leading component; a better way to get the hostname is :func:`socket.gethostname` or even ``socket.gethostbyaddr(socket.gethostname())``. On macOS, iOS and Android, this returns the *kernel* name and version (i.e., ``'Darwin'`` on macOS and iOS; ``'Linux...
Some systems truncate :attr:`nodename` to 8 characters or to the leading component; a better way to get the hostname is :func:`socket.gethostname` or even ``socket.gethostbyaddr(socket.gethostname())``. On macOS, iOS and Android, this returns the *kernel* name and version (i.e., ``'Darwin'`` on macOS and iOS; ``'Linux...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8840e397-a4e1-400e-aa50-be571ec52894
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,273
supabase-export-v2
622df7e4466836d7
.. versionadded:: 3.3 .. versionchanged:: 3.12 ``st_ctime_ns`` is deprecated on Windows. Use ``st_birthtime_ns`` for the file creation time. In the future, ``st_ctime`` will contain the time of the most recent metadata change, as for other platforms.
trusted_official_docs
CPython Docs
.. versionadded:: 3.3 .. versionchanged:: 3.12 ``st_ctime_ns`` is deprecated on Windows. Use ``st_birthtime_ns`` for the file creation time. In the future, ``st_ctime`` will contain the time of the most recent metadata change, as for other platforms.
.. versionadded:: 3.3 .. versionchanged:: 3.12 ``st_ctime_ns`` is deprecated on Windows. Use ``st_birthtime_ns`` for the file creation time. In the future, ``st_ctime`` will contain the time of the most recent metadata change, as for other platforms.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8889ae53-325c-4961-971a-1133a30c7eae
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,191
supabase-export-v2
15ae1393069f42fb
structures; if you know the file metadata has changed or if a long time has elapsed since calling :func:`scandir`, call ``os.stat(entry.path)`` to fetch up-to-date information. Because the ``os.DirEntry`` methods can make operating system calls, they may also raise :exc:`OSError`. If you need very fine-grained contro...
trusted_official_docs
CPython Docs
structures; if you know the file metadata has changed or if a long time has elapsed since calling :func:`scandir`, call ``os.stat(entry.path)`` to fetch up-to-date information. Because the ``os.DirEntry`` methods can make operating system calls, they may also raise :exc:`OSError`. If you need very fine-grained contro...
structures; if you know the file metadata has changed or if a long time has elapsed since calling :func:`scandir`, call ``os.stat(entry.path)`` to fetch up-to-date information. Because the ``os.DirEntry`` methods can make operating system calls, they may also raise :exc:`OSError`. If you need very fine-grained contro...
python, official-docs, cpython, P0
Local_Trusted_Corpus
89a033db-e469-41c8-84f3-bfc702ff0d66
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,306
supabase-export-v2
f5c7e1886db60e44
More items may be added at the end by some implementations. For compatibility with older Python versions, accessing :class:`stat_result` as a tuple always returns integers. .. versionchanged:: 3.5 Windows now returns the file index as :attr:`st_ino` when available.
trusted_official_docs
CPython Docs
More items may be added at the end by some implementations. For compatibility with older Python versions, accessing :class:`stat_result` as a tuple always returns integers. .. versionchanged:: 3.5 Windows now returns the file index as :attr:`st_ino` when available.
More items may be added at the end by some implementations. For compatibility with older Python versions, accessing :class:`stat_result` as a tuple always returns integers. .. versionchanged:: 3.5 Windows now returns the file index as :attr:`st_ino` when available.
python, official-docs, cpython, P0
Local_Trusted_Corpus
89ee9193-b542-407f-b3a4-38f61c67cf8d
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,621
supabase-export-v2
0a2377dcda5092dd
.. function:: fchmod(fd, mode) Change the mode of the file given by *fd* to the numeric *mode*. See the docs for :func:`chmod` for possible values of *mode*. As of Python 3.3, this is equivalent to ``os.chmod(fd, mode)``.
trusted_official_docs
CPython Docs
.. function:: fchmod(fd, mode) Change the mode of the file given by *fd* to the numeric *mode*. See the docs for :func:`chmod` for possible values of *mode*. As of Python 3.3, this is equivalent to ``os.chmod(fd, mode)``.
.. function:: fchmod(fd, mode) Change the mode of the file given by *fd* to the numeric *mode*. See the docs for :func:`chmod` for possible values of *mode*. As of Python 3.3, this is equivalent to ``os.chmod(fd, mode)``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
89fb2d3d-e91e-4e96-8e78-1fd12a6c60b9
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,562
supabase-export-v2
379b203023b47d72
For backwards compatibility, this object is also iterable, behaving like a five-tuple containing :attr:`sysname`, :attr:`nodename`, :attr:`release`, :attr:`version`, and :attr:`machine` in that order. Some systems truncate :attr:`nodename` to 8 characters or to the leading component; a better way to get the hostname i...
trusted_official_docs
CPython Docs
For backwards compatibility, this object is also iterable, behaving like a five-tuple containing :attr:`sysname`, :attr:`nodename`, :attr:`release`, :attr:`version`, and :attr:`machine` in that order. Some systems truncate :attr:`nodename` to 8 characters or to the leading component; a better way to get the hostname i...
For backwards compatibility, this object is also iterable, behaving like a five-tuple containing :attr:`sysname`, :attr:`nodename`, :attr:`release`, :attr:`version`, and :attr:`machine` in that order. Some systems truncate :attr:`nodename` to 8 characters or to the leading component; a better way to get the hostname i...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8b484e7f-f5a9-420d-bb2c-cb38244f68c0
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,637
supabase-export-v2
ec72b4a49d1c10e3
host operating system are given in the ``pathconf_names`` dictionary. For configuration variables not included in that mapping, passing an integer for *name* is also accepted. If *name* is a string and is not known, :exc:`ValueError` is raised. If a specific value for *name* is not supported by the host system, even i...
trusted_official_docs
CPython Docs
host operating system are given in the ``pathconf_names`` dictionary. For configuration variables not included in that mapping, passing an integer for *name* is also accepted. If *name* is a string and is not known, :exc:`ValueError` is raised. If a specific value for *name* is not supported by the host system, even i...
host operating system are given in the ``pathconf_names`` dictionary. For configuration variables not included in that mapping, passing an integer for *name* is also accepted. If *name* is a string and is not known, :exc:`ValueError` is raised. If a specific value for *name* is not supported by the host system, even i...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8ba60f9c-ceb9-441e-af43-0b86e72f3c6c
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,233
supabase-export-v2
96e56aa6f4295d23
.. function:: stat(path, *, dir_fd=None, follow_symlinks=True) Get the status of a file or a file descriptor. Perform the equivalent of a :c:func:`stat` system call on the given path. *path* may be specified as either a string or bytes -- directly or indirectly through the :class:`PathLike` interface -- or as an ope...
trusted_official_docs
CPython Docs
.. function:: stat(path, *, dir_fd=None, follow_symlinks=True) Get the status of a file or a file descriptor. Perform the equivalent of a :c:func:`stat` system call on the given path. *path* may be specified as either a string or bytes -- directly or indirectly through the :class:`PathLike` interface -- or as an ope...
.. function:: stat(path, *, dir_fd=None, follow_symlinks=True) Get the status of a file or a file descriptor. Perform the equivalent of a :c:func:`stat` system call on the given path. *path* may be specified as either a string or bytes -- directly or indirectly through the :class:`PathLike` interface -- or as an ope...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8c46fcf4-a22c-4c1e-ac4b-ef4eb00a726f
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,114
supabase-export-v2
87782efc75515d55
.. data:: pathconf_names Dictionary mapping names accepted by :func:`pathconf` and :func:`fpathconf` to the integer values defined for those names by the host operating system. This can be used to determine the set of names known to the system.
trusted_official_docs
CPython Docs
.. data:: pathconf_names Dictionary mapping names accepted by :func:`pathconf` and :func:`fpathconf` to the integer values defined for those names by the host operating system. This can be used to determine the set of names known to the system.
.. data:: pathconf_names Dictionary mapping names accepted by :func:`pathconf` and :func:`fpathconf` to the integer values defined for those names by the host operating system. This can be used to determine the set of names known to the system.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8c5ba14d-0697-4e83-82e8-54fdc417db2b
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,816
supabase-export-v2
63e955788a957257
.. 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:`os.pipe`. To read a "file object" returned by the built-in function :func:`open`, or :data:`sys.stdin`, use its member functions, for example :meth:`io.BufferedIOBase.readinto`, :m...
trusted_official_docs
CPython Docs
.. note:: This function is intended for low-level I/O and must be applied to a file descriptor as returned by :func:`os.open` or :func:`os.pipe`. To read a "file object" returned by the built-in function :func:`open`, or :data:`sys.stdin`, use its member functions, for example :meth:`io.BufferedIOBase.readinto`, :m...
.. note:: This function is intended for low-level I/O and must be applied to a file descriptor as returned by :func:`os.open` or :func:`os.pipe`. To read a "file object" returned by the built-in function :func:`open`, or :data:`sys.stdin`, use its member functions, for example :meth:`io.BufferedIOBase.readinto`, :m...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8c7f1822-f679-40ae-b094-0e46b2c9d643
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,813
supabase-export-v2
a325e41710d18583
Read from a file descriptor *fd* into a mutable :ref:`buffer object <bufferobjects>` *buffer*. The *buffer* should be mutable and :term:`bytes-like <bytes-like object>`. On success, returns the number of bytes read. Less bytes may be read than the size of the buffer. The underlying system call will be retried when i...
trusted_official_docs
CPython Docs
Read from a file descriptor *fd* into a mutable :ref:`buffer object <bufferobjects>` *buffer*. The *buffer* should be mutable and :term:`bytes-like <bytes-like object>`. On success, returns the number of bytes read. Less bytes may be read than the size of the buffer. The underlying system call will be retried when i...
Read from a file descriptor *fd* into a mutable :ref:`buffer object <bufferobjects>` *buffer*. The *buffer* should be mutable and :term:`bytes-like <bytes-like object>`. On success, returns the number of bytes read. Less bytes may be read than the size of the buffer. The underlying system call will be retried when i...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8c851ad2-f580-4ebd-99a2-8af69c8d402c
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,600
supabase-export-v2
13b4c1f1b119cd30
inodes that share pointers to the same copy-on-write disk blocks; supported file systems include btrfs and XFS) and server-side copy (in the case of NFS). The function copies bytes between two file descriptors. Text options, like the encoding and the line ending, are ignored.
trusted_official_docs
CPython Docs
inodes that share pointers to the same copy-on-write disk blocks; supported file systems include btrfs and XFS) and server-side copy (in the case of NFS). The function copies bytes between two file descriptors. Text options, like the encoding and the line ending, are ignored.
inodes that share pointers to the same copy-on-write disk blocks; supported file systems include btrfs and XFS) and server-side copy (in the case of NFS). The function copies bytes between two file descriptors. Text options, like the encoding and the line ending, are ignored.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8ca16acc-7e3e-4f58-984c-71fb97f2ebca
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,126
supabase-export-v2
18adf12b4595411d
.. versionchanged:: 3.8 Accepts a :term:`path-like object` and a bytes object on Windows. Added support for directory junctions, and changed to return the substitution path (which typically includes ``\\?\`` prefix) rather than the optional "print name" field that was previously returned.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.8 Accepts a :term:`path-like object` and a bytes object on Windows. Added support for directory junctions, and changed to return the substitution path (which typically includes ``\\?\`` prefix) rather than the optional "print name" field that was previously returned.
.. versionchanged:: 3.8 Accepts a :term:`path-like object` and a bytes object on Windows. Added support for directory junctions, and changed to return the substitution path (which typically includes ``\\?\`` prefix) rather than the optional "print name" field that was previously returned.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8cc9c8b0-a378-46ad-8647-83000c92fee5
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,340
supabase-export-v2
cd3ee33950079413
File Names, Command Line Arguments, and Environment Variables ------------------------------------------------------------- In Python, file names, command line arguments, and environment variables are represented using the string type. On some systems, decoding these strings to and from bytes is necessary before passin...
trusted_official_docs
CPython Docs
File Names, Command Line Arguments, and Environment Variables ------------------------------------------------------------- In Python, file names, command line arguments, and environment variables are represented using the string type. On some systems, decoding these strings to and from bytes is necessary before passin...
File Names, Command Line Arguments, and Environment Variables ------------------------------------------------------------- In Python, file names, command line arguments, and environment variables are represented using the string type. On some systems, decoding these strings to and from bytes is necessary before passin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8d532436-b0f9-4694-8823-52680f13fcd8
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,879
supabase-export-v2
cbffd0b0e144ba54
the signal that killed the process. On Windows, the process id will actually be the process handle, so can be used with the :func:`waitpid` function. Note on VxWorks, this function doesn't return ``-signal`` when the new process is killed. Instead it raises OSError exception.
trusted_official_docs
CPython Docs
the signal that killed the process. On Windows, the process id will actually be the process handle, so can be used with the :func:`waitpid` function. Note on VxWorks, this function doesn't return ``-signal`` when the new process is killed. Instead it raises OSError exception.
the signal that killed the process. On Windows, the process id will actually be the process handle, so can be used with the :func:`waitpid` function. Note on VxWorks, this function doesn't return ``-signal`` when the new process is killed. Instead it raises OSError exception.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8d5ce02a-2dfe-4693-99b2-ac144b532083
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,008
supabase-export-v2
5b2f30010d1f73c6
.. function:: lchown(path, uid, gid) Change the owner and group id of *path* 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)``.
trusted_official_docs
CPython Docs
.. function:: lchown(path, uid, gid) Change the owner and group id of *path* 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)``.
.. function:: lchown(path, uid, gid) Change the owner and group id of *path* 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)``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8df4bb4c-6421-4979-9af9-d3b1fc9d1c7f
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,853
supabase-export-v2
73d3fb427957ac14
and then back into the kernel. Additionally, some filesystems could implement extra optimizations. The copy is done as if both files are opened as binary. Upon successful completion, returns the number of bytes spliced to or from the pipe. A return value of 0 means end of input. If *src* refers to a pipe, then this m...
trusted_official_docs
CPython Docs
and then back into the kernel. Additionally, some filesystems could implement extra optimizations. The copy is done as if both files are opened as binary. Upon successful completion, returns the number of bytes spliced to or from the pipe. A return value of 0 means end of input. If *src* refers to a pipe, then this m...
and then back into the kernel. Additionally, some filesystems could implement extra optimizations. The copy is done as if both files are opened as binary. Upon successful completion, returns the number of bytes spliced to or from the pipe. A return value of 0 means end of input. If *src* refers to a pipe, then this m...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8fbb925b-5b67-409d-90fb-814e36834b63
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,481
supabase-export-v2
aa2516c4b5f2bdf3
``initgroups()`` to initialize the group access list with all of the groups of which the specified username is a member, plus the specified group id. .. availability:: Unix, not WASI, not Android.
trusted_official_docs
CPython Docs
``initgroups()`` to initialize the group access list with all of the groups of which the specified username is a member, plus the specified group id. .. availability:: Unix, not WASI, not Android.
``initgroups()`` to initialize the group access list with all of the groups of which the specified username is a member, plus the specified group id. .. availability:: Unix, not WASI, not Android.
python, official-docs, cpython, P0
Local_Trusted_Corpus
901f070c-59b6-4f61-b03a-61e9441546de
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,432
supabase-export-v2
bf7967fb87eebf1d
included; typically, *group* is specified as the group ID field from the password record for *user*, because that group ID will otherwise be potentially omitted. .. availability:: Unix, not WASI.
trusted_official_docs
CPython Docs
included; typically, *group* is specified as the group ID field from the password record for *user*, because that group ID will otherwise be potentially omitted. .. availability:: Unix, not WASI.
included; typically, *group* is specified as the group ID field from the password record for *user*, because that group ID will otherwise be potentially omitted. .. availability:: Unix, not WASI.
python, official-docs, cpython, P0
Local_Trusted_Corpus
908b5b1a-f8d1-48cc-875e-3462d65b683c
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,150
supabase-export-v2
bda0a8f6527624cd
.. function:: renames(old, new) Recursive directory or file renaming function. Works like :func:`rename`, except creation of any intermediate directories needed to make the new pathname good is attempted first. After the rename, directories corresponding to rightmost path segments of the old name will be pruned away...
trusted_official_docs
CPython Docs
.. function:: renames(old, new) Recursive directory or file renaming function. Works like :func:`rename`, except creation of any intermediate directories needed to make the new pathname good is attempted first. After the rename, directories corresponding to rightmost path segments of the old name will be pruned away...
.. function:: renames(old, new) Recursive directory or file renaming function. Works like :func:`rename`, except creation of any intermediate directories needed to make the new pathname good is attempted first. After the rename, directories corresponding to rightmost path segments of the old name will be pruned away...
python, official-docs, cpython, P0
Local_Trusted_Corpus
91bbb6a7-796f-452f-92ba-22dd4b6017e3
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,861
supabase-export-v2
45e1ad5fc9d3d56e
into each buffer until it is full and then move on to the next buffer in the sequence to hold the rest of the data. Return the total number of bytes actually read which can be less than the total capacity of all the objects.
trusted_official_docs
CPython Docs
into each buffer until it is full and then move on to the next buffer in the sequence to hold the rest of the data. Return the total number of bytes actually read which can be less than the total capacity of all the objects.
into each buffer until it is full and then move on to the next buffer in the sequence to hold the rest of the data. Return the total number of bytes actually read which can be less than the total capacity of all the objects.
python, official-docs, cpython, P0
Local_Trusted_Corpus
926daacc-602d-4875-a7dd-2f78d8ab16f7
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,499
supabase-export-v2
ac4ec8226b269149
.. function:: unlink(path, *, dir_fd=None) Remove (delete) the file *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.
trusted_official_docs
CPython Docs
.. function:: unlink(path, *, dir_fd=None) Remove (delete) the file *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.
.. function:: unlink(path, *, dir_fd=None) Remove (delete) the file *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.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9285e098-e11d-4f85-a4ae-ad548cd8afd9
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,084
supabase-export-v2
ccf04c3225c31aee
.. versionchanged:: 3.4.1 Before Python 3.4.1, if *exist_ok* was ``True`` and the directory existed, :func:`makedirs` would still raise an error if *mode* did not match the mode of the existing directory. Since this behavior was impossible to implement safely, it was removed in Python 3.4.1. See :issue:`21082`.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.4.1 Before Python 3.4.1, if *exist_ok* was ``True`` and the directory existed, :func:`makedirs` would still raise an error if *mode* did not match the mode of the existing directory. Since this behavior was impossible to implement safely, it was removed in Python 3.4.1. See :issue:`21082`.
.. versionchanged:: 3.4.1 Before Python 3.4.1, if *exist_ok* was ``True`` and the directory existed, :func:`makedirs` would still raise an error if *mode* did not match the mode of the existing directory. Since this behavior was impossible to implement safely, it was removed in Python 3.4.1. See :issue:`21082`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
92b5b3aa-5ab4-4873-bae5-88aab2f6fa53
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,549
supabase-export-v2
96d3eb33de93e9b4
.. function:: memfd_create(name[, flags=os.MFD_CLOEXEC]) Create an anonymous file and return a file descriptor that refers to it. *flags* must be 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_inherita...
trusted_official_docs
CPython Docs
.. function:: memfd_create(name[, flags=os.MFD_CLOEXEC]) Create an anonymous file and return a file descriptor that refers to it. *flags* must be 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_inherita...
.. function:: memfd_create(name[, flags=os.MFD_CLOEXEC]) Create an anonymous file and return a file descriptor that refers to it. *flags* must be 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_inherita...
python, official-docs, cpython, P0
Local_Trusted_Corpus
92f45a63-8372-4d10-98ba-6d0de75d1fbd
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,677
supabase-export-v2
b539a536b7438bd1
.. function:: login_tty(fd, /) Prepare the tty of which fd is a file descriptor for a new login session. Make the calling process a session leader; make the tty the controlling tty, the stdin, the stdout, and the stderr of the calling process; close fd.
trusted_official_docs
CPython Docs
.. function:: login_tty(fd, /) Prepare the tty of which fd is a file descriptor for a new login session. Make the calling process a session leader; make the tty the controlling tty, the stdin, the stdout, and the stderr of the calling process; close fd.
.. function:: login_tty(fd, /) Prepare the tty of which fd is a file descriptor for a new login session. Make the calling process a session leader; make the tty the controlling tty, the stdin, the stdout, and the stderr of the calling process; close fd.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9483f6d0-246d-4d69-9812-c0793c00de4d
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,141
supabase-export-v2
86e8c5d17c3bbae3
.. function:: rename(src, dst, *, src_dir_fd=None, dst_dir_fd=None) 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:
trusted_official_docs
CPython Docs
.. function:: rename(src, dst, *, src_dir_fd=None, dst_dir_fd=None) 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:
.. function:: rename(src, dst, *, src_dir_fd=None, dst_dir_fd=None) 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:
python, official-docs, cpython, P0
Local_Trusted_Corpus
94a31103-6ffe-446a-9068-92a7820df9fc
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,612
supabase-export-v2
722effc31579f421
Return a duplicate of file descriptor *fd*. The new file descriptor is :ref:`non-inheritable <fd_inheritance>`. On Windows, when duplicating a standard stream (0: stdin, 1: stdout, 2: stderr), the new file descriptor is :ref:`inheritable <fd_inheritance>`.
trusted_official_docs
CPython Docs
Return a duplicate of file descriptor *fd*. The new file descriptor is :ref:`non-inheritable <fd_inheritance>`. On Windows, when duplicating a standard stream (0: stdin, 1: stdout, 2: stderr), the new file descriptor is :ref:`inheritable <fd_inheritance>`.
Return a duplicate of file descriptor *fd*. The new file descriptor is :ref:`non-inheritable <fd_inheritance>`. On Windows, when duplicating a standard stream (0: stdin, 1: stdout, 2: stderr), the new file descriptor is :ref:`inheritable <fd_inheritance>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
94fb9148-e1e9-4655-92c0-d1e804b72481
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,108
supabase-export-v2
939b8ef5f9900f13
.. function:: pathconf(path, name) Return system configuration information relevant to a named file. *name* specifies the configuration value to retrieve; it may be a string which is the name of a defined system value; these names are specified in a number of standards (POSIX.1, Unix 95, Unix 98, and others). Some p...
trusted_official_docs
CPython Docs
.. function:: pathconf(path, name) Return system configuration information relevant to a named file. *name* specifies the configuration value to retrieve; it may be a string which is the name of a defined system value; these names are specified in a number of standards (POSIX.1, Unix 95, Unix 98, and others). Some p...
.. function:: pathconf(path, name) Return system configuration information relevant to a named file. *name* specifies the configuration value to retrieve; it may be a string which is the name of a defined system value; these names are specified in a number of standards (POSIX.1, Unix 95, Unix 98, and others). Some p...
python, official-docs, cpython, P0
Local_Trusted_Corpus
950449fa-72e4-434b-a7fe-0d50cb3ff7f0
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,835
supabase-export-v2
73a1fc0dd27a6f2e
The *path* parameter is the path to the executable file. The *path* should contain a directory. Use :func:`posix_spawnp` to pass an executable file without directory. The *file_actions* argument may be a sequence of tuples describing actions to take on specific file descriptors in the child process between the C libr...
trusted_official_docs
CPython Docs
The *path* parameter is the path to the executable file. The *path* should contain a directory. Use :func:`posix_spawnp` to pass an executable file without directory. The *file_actions* argument may be a sequence of tuples describing actions to take on specific file descriptors in the child process between the C libr...
The *path* parameter is the path to the executable file. The *path* should contain a directory. Use :func:`posix_spawnp` to pass an executable file without directory. The *file_actions* argument may be a sequence of tuples describing actions to take on specific file descriptors in the child process between the C libr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
955164be-51a6-4f79-9e7f-765aed547bf9
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,759
supabase-export-v2
9f4721bb029b47de
failure occurred. This indicates something that may not really be an error, such as a network connection that couldn't be made during a retryable operation. .. availability:: Unix, not WASI.
trusted_official_docs
CPython Docs
failure occurred. This indicates something that may not really be an error, such as a network connection that couldn't be made during a retryable operation. .. availability:: Unix, not WASI.
failure occurred. This indicates something that may not really be an error, such as a network connection that couldn't be made during a retryable operation. .. availability:: Unix, not WASI.
python, official-docs, cpython, P0
Local_Trusted_Corpus
955314eb-fd7e-497c-b0a0-3ac26d84c028
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,739
supabase-export-v2
1c4d79bd87fe840e
.. function:: posix_fadvise(fd, offset, len, advice, /) Announces an intention to access data in a specific pattern thus allowing the kernel to make optimizations. The advice applies to the region of the file specified by *fd* starting at *offset* and continuing for *len* bytes. *advice* is one of :data:`POSIX_FADV_N...
trusted_official_docs
CPython Docs
.. function:: posix_fadvise(fd, offset, len, advice, /) Announces an intention to access data in a specific pattern thus allowing the kernel to make optimizations. The advice applies to the region of the file specified by *fd* starting at *offset* and continuing for *len* bytes. *advice* is one of :data:`POSIX_FADV_N...
.. function:: posix_fadvise(fd, offset, len, advice, /) Announces an intention to access data in a specific pattern thus allowing the kernel to make optimizations. The advice applies to the region of the file specified by *fd* starting at *offset* and continuing for *len* bytes. *advice* is one of :data:`POSIX_FADV_N...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9594e18b-2ec6-4c3c-953e-e8023854ac18
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,759
supabase-export-v2
3340fb696eaefd86
Return the total number of bytes actually read which can be less than the total capacity of all the objects. The operating system may set a limit (:func:`sysconf` value ``'SC_IOV_MAX'``) on the number of buffers that can be used.
trusted_official_docs
CPython Docs
Return the total number of bytes actually read which can be less than the total capacity of all the objects. The operating system may set a limit (:func:`sysconf` value ``'SC_IOV_MAX'``) on the number of buffers that can be used.
Return the total number of bytes actually read which can be less than the total capacity of all the objects. The operating system may set a limit (:func:`sysconf` value ``'SC_IOV_MAX'``) on the number of buffers that can be used.
python, official-docs, cpython, P0
Local_Trusted_Corpus
95a3d878-3e11-41ee-b759-8f241ce2477e
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,854
supabase-export-v2
e42eac5f2bf400fb
The *sigdef* argument will reset the disposition of all signals in the set specified. This argument corresponds to the C library :c:macro:`!POSIX_SPAWN_SETSIGDEF` flag. The *scheduler* argument must be a tuple containing the (optional) scheduler policy and an instance of :class:`sched_param` with the scheduler paramet...
trusted_official_docs
CPython Docs
The *sigdef* argument will reset the disposition of all signals in the set specified. This argument corresponds to the C library :c:macro:`!POSIX_SPAWN_SETSIGDEF` flag. The *scheduler* argument must be a tuple containing the (optional) scheduler policy and an instance of :class:`sched_param` with the scheduler paramet...
The *sigdef* argument will reset the disposition of all signals in the set specified. This argument corresponds to the C library :c:macro:`!POSIX_SPAWN_SETSIGDEF` flag. The *scheduler* argument must be a tuple containing the (optional) scheduler policy and an instance of :class:`sched_param` with the scheduler paramet...
python, official-docs, cpython, P0
Local_Trusted_Corpus
95fa5573-b54e-4250-8d22-7ec8a43b4b14
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,820
supabase-export-v2
51e4a9a745ac45f5
*count* bytes from file descriptor *in_fd* to file descriptor *out_fd* starting at *offset*. Return the number of bytes sent. When EOF is reached return ``0``. The first function notation is supported by all platforms that define :func:`sendfile`.
trusted_official_docs
CPython Docs
*count* bytes from file descriptor *in_fd* to file descriptor *out_fd* starting at *offset*. Return the number of bytes sent. When EOF is reached return ``0``. The first function notation is supported by all platforms that define :func:`sendfile`.
*count* bytes from file descriptor *in_fd* to file descriptor *out_fd* starting at *offset*. Return the number of bytes sent. When EOF is reached return ``0``. The first function notation is supported by all platforms that define :func:`sendfile`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
96cc2355-7566-442a-a505-622ec1328b87
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,410
supabase-export-v2
49cc7be1c2291a1c
Note that since :func:`getenv` uses :data:`os.environ`, the mapping of :func:`getenv` is similarly also captured on import, and the function may not reflect future environment changes. On Unix, keys and values are decoded with :func:`sys.getfilesystemencoding` and ``'surrogateescape'`` error handler. Use :func:`os.get...
trusted_official_docs
CPython Docs
Note that since :func:`getenv` uses :data:`os.environ`, the mapping of :func:`getenv` is similarly also captured on import, and the function may not reflect future environment changes. On Unix, keys and values are decoded with :func:`sys.getfilesystemencoding` and ``'surrogateescape'`` error handler. Use :func:`os.get...
Note that since :func:`getenv` uses :data:`os.environ`, the mapping of :func:`getenv` is similarly also captured on import, and the function may not reflect future environment changes. On Unix, keys and values are decoded with :func:`sys.getfilesystemencoding` and ``'surrogateescape'`` error handler. Use :func:`os.get...
python, official-docs, cpython, P0
Local_Trusted_Corpus
97f61c59-a5d6-4d5b-aa83-0b676b949cfd
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,077
supabase-export-v2
c9ce20ffe74ada2e
of any newly created parent directories you can set the umask before invoking :func:`makedirs`. The file permission bits of existing parent directories are not changed. If *exist_ok* is ``False`` (the default), a :exc:`FileExistsError` is raised if the target directory already exists.
trusted_official_docs
CPython Docs
of any newly created parent directories you can set the umask before invoking :func:`makedirs`. The file permission bits of existing parent directories are not changed. If *exist_ok* is ``False`` (the default), a :exc:`FileExistsError` is raised if the target directory already exists.
of any newly created parent directories you can set the umask before invoking :func:`makedirs`. The file permission bits of existing parent directories are not changed. If *exist_ok* is ``False`` (the default), a :exc:`FileExistsError` is raised if the target directory already exists.
python, official-docs, cpython, P0
Local_Trusted_Corpus
97f76187-bb6a-407b-8318-282bb7410f23
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,627
supabase-export-v2
4d062a27e66442a8
.. function:: fchown(fd, uid, gid) Change the owner and group id of the file given by *fd* to the numeric *uid* and *gid*. To leave one of the ids unchanged, set it to -1. See :func:`chown`. As of Python 3.3, this is equivalent to ``os.chown(fd, uid, gid)``.
trusted_official_docs
CPython Docs
.. function:: fchown(fd, uid, gid) Change the owner and group id of the file given by *fd* to the numeric *uid* and *gid*. To leave one of the ids unchanged, set it to -1. See :func:`chown`. As of Python 3.3, this is equivalent to ``os.chown(fd, uid, gid)``.
.. function:: fchown(fd, uid, gid) Change the owner and group id of the file given by *fd* to the numeric *uid* and *gid*. To leave one of the ids unchanged, set it to -1. See :func:`chown`. As of Python 3.3, this is equivalent to ``os.chown(fd, uid, gid)``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
980d2366-a60b-48d7-a087-5f7da4672fae
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,485
supabase-export-v2
708f08950e0b4e9c
.. index:: single: environment variables; setting 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`.
trusted_official_docs
CPython Docs
.. index:: single: environment variables; setting 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`.
.. index:: single: environment variables; setting 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`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9840f898-f9ce-4a0a-9c27-c409dc939064
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,459
supabase-export-v2
b6daba1fa72de105
.. data:: supports_effective_ids A :class:`set` object indicating whether :func:`os.access` permits specifying ``True`` for its *effective_ids* parameter on the local platform. (Specifying ``False`` for *effective_ids* is always supported on all platforms.) If the local platform supports it, the collection will conta...
trusted_official_docs
CPython Docs
.. data:: supports_effective_ids A :class:`set` object indicating whether :func:`os.access` permits specifying ``True`` for its *effective_ids* parameter on the local platform. (Specifying ``False`` for *effective_ids* is always supported on all platforms.) If the local platform supports it, the collection will conta...
.. data:: supports_effective_ids A :class:`set` object indicating whether :func:`os.access` permits specifying ``True`` for its *effective_ids* parameter on the local platform. (Specifying ``False`` for *effective_ids* is always supported on all platforms.) If the local platform supports it, the collection will conta...
python, official-docs, cpython, P0
Local_Trusted_Corpus
99272179-96d4-4264-9b56-4d2b0af866ba
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,988
supabase-export-v2
39dd6645db14d2c0
.. function:: fchdir(fd) Change the current working directory to the directory represented by 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)``.
trusted_official_docs
CPython Docs
.. function:: fchdir(fd) Change the current working directory to the directory represented by 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)``.
.. function:: fchdir(fd) Change the current working directory to the directory represented by 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)``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
997dab55-3505-4b55-9046-91d8138f84ba
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,618
supabase-export-v2
86d82ec0c2dac8a0
fires every time *interval* seconds have elapsed since the previous expiration. If *interval* is less than zero, it raises :class:`OSError` with ``errno`` set to :const:`errno.EINVAL` If the :const:`TFD_TIMER_CANCEL_ON_SET` flag is set along with :const:`TFD_TIMER_ABSTIME` and the clock for this timer is :const:`time...
trusted_official_docs
CPython Docs
fires every time *interval* seconds have elapsed since the previous expiration. If *interval* is less than zero, it raises :class:`OSError` with ``errno`` set to :const:`errno.EINVAL` If the :const:`TFD_TIMER_CANCEL_ON_SET` flag is set along with :const:`TFD_TIMER_ABSTIME` and the clock for this timer is :const:`time...
fires every time *interval* seconds have elapsed since the previous expiration. If *interval* is less than zero, it raises :class:`OSError` with ``errno`` set to :const:`errno.EINVAL` If the :const:`TFD_TIMER_CANCEL_ON_SET` flag is set along with :const:`TFD_TIMER_ABSTIME` and the clock for this timer is :const:`time...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9a521583-2a38-4f4d-9956-13fab197734f
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,622
supabase-export-v2
56a11d42427fdd22
- ``settimeofday`` - ``clock_settime`` - set the system date and time by ``date`` command Return a two-item tuple of (``next_expiration``, ``interval``) from the previous timer state, before this function executed.
trusted_official_docs
CPython Docs
- ``settimeofday`` - ``clock_settime`` - set the system date and time by ``date`` command Return a two-item tuple of (``next_expiration``, ``interval``) from the previous timer state, before this function executed.
- ``settimeofday`` - ``clock_settime`` - set the system date and time by ``date`` command Return a two-item tuple of (``next_expiration``, ``interval``) from the previous timer state, before this function executed.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9b29d0ec-04d3-4555-ae46-e67f1cc55025
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,612
supabase-export-v2
0d73f865a33817a6
*fd* must be a valid timer file descriptor. The timer'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
*fd* must be a valid timer file descriptor. The timer's behaviour can be modified by specifying a *flags* value. Any of the following variables may be used, combined using bitwise OR (the ``|`` operator):
*fd* must be a valid timer file descriptor. The timer'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
9b2e0ff5-5623-476f-8fb6-5c17b1fdb5a8
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,670
supabase-export-v2
ac1e7bd9be052d21
.. function:: lockf(fd, cmd, len, /) Apply, test or remove a POSIX lock on an open file descriptor. *fd* is an open file descriptor. *cmd* specifies the command to use - one of :data:`F_LOCK`, :data:`F_TLOCK`, :data:`F_ULOCK` or :data:`F_TEST`. *len* specifies the section of the file to lock.
trusted_official_docs
CPython Docs
.. function:: lockf(fd, cmd, len, /) Apply, test or remove a POSIX lock on an open file descriptor. *fd* is an open file descriptor. *cmd* specifies the command to use - one of :data:`F_LOCK`, :data:`F_TLOCK`, :data:`F_ULOCK` or :data:`F_TEST`. *len* specifies the section of the file to lock.
.. function:: lockf(fd, cmd, len, /) Apply, test or remove a POSIX lock on an open file descriptor. *fd* is an open file descriptor. *cmd* specifies the command to use - one of :data:`F_LOCK`, :data:`F_TLOCK`, :data:`F_ULOCK` or :data:`F_TEST`. *len* specifies the section of the file to lock.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9db56e00-d764-4059-8a8d-f310a9c28a28
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,756
supabase-export-v2
3fc050bdedd57ae9
into each buffer until it is full and then move on to the next buffer in the sequence to hold the rest of the data. The flags argument contains a bitwise OR of zero or more of the following flags:
trusted_official_docs
CPython Docs
into each buffer until it is full and then move on to the next buffer in the sequence to hold the rest of the data. The flags argument contains a bitwise OR of zero or more of the following flags:
into each buffer until it is full and then move on to the next buffer in the sequence to hold the rest of the data. The flags argument contains a bitwise OR of zero or more of the following flags:
python, official-docs, cpython, P0
Local_Trusted_Corpus
9e5b30cd-ae3d-44b4-9494-4465e3496106
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,615
supabase-export-v2
d9fe2573ed357ea8
to or greater than zero, the timer is enabled. If *initial* is less than zero, it raises an :class:`OSError` exception with ``errno`` set to :const:`errno.EINVAL` By default the timer will fire when *initial* seconds have elapsed. (If *initial* is zero, timer will fire immediately.)
trusted_official_docs
CPython Docs
to or greater than zero, the timer is enabled. If *initial* is less than zero, it raises an :class:`OSError` exception with ``errno`` set to :const:`errno.EINVAL` By default the timer will fire when *initial* seconds have elapsed. (If *initial* is zero, timer will fire immediately.)
to or greater than zero, the timer is enabled. If *initial* is less than zero, it raises an :class:`OSError` exception with ``errno`` set to :const:`errno.EINVAL` By default the timer will fire when *initial* seconds have elapsed. (If *initial* is zero, timer will fire immediately.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
9f6be130-df24-4b23-b813-1d9e795027e3
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,616
supabase-export-v2
2bca47d883a7ef53
.. function:: dup2(fd, fd2, inheritable=True) Duplicate file descriptor *fd* to *fd2*, closing the latter first if necessary. Return *fd2*. The new file descriptor is :ref:`inheritable <fd_inheritance>` by default or non-inheritable if *inheritable* is ``False``.
trusted_official_docs
CPython Docs
.. function:: dup2(fd, fd2, inheritable=True) Duplicate file descriptor *fd* to *fd2*, closing the latter first if necessary. Return *fd2*. The new file descriptor is :ref:`inheritable <fd_inheritance>` by default or non-inheritable if *inheritable* is ``False``.
.. function:: dup2(fd, fd2, inheritable=True) Duplicate file descriptor *fd* to *fd2*, closing the latter first if necessary. Return *fd2*. The new file descriptor is :ref:`inheritable <fd_inheritance>` by default or non-inheritable if *inheritable* is ``False``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9f920b83-b3ef-41c4-972b-44d65d98b5d5
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,705
supabase-export-v2
31e3a97ff2ffe1f4
the built-in function :func:`open`, which returns a :term:`file object` with :meth:`~io.BufferedIOBase.read` and :meth:`~io.BufferedIOBase.write` methods. To wrap a file descriptor in a file object, use :func:`fdopen`. .. versionchanged:: 3.3 Added the *dir_fd* parameter.
trusted_official_docs
CPython Docs
the built-in function :func:`open`, which returns a :term:`file object` with :meth:`~io.BufferedIOBase.read` and :meth:`~io.BufferedIOBase.write` methods. To wrap a file descriptor in a file object, use :func:`fdopen`. .. versionchanged:: 3.3 Added the *dir_fd* parameter.
the built-in function :func:`open`, which returns a :term:`file object` with :meth:`~io.BufferedIOBase.read` and :meth:`~io.BufferedIOBase.write` methods. To wrap a file descriptor in a file object, use :func:`fdopen`. .. versionchanged:: 3.3 Added the *dir_fd* parameter.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9f9905ea-e36d-459a-853a-4e8b8c081273
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,459
supabase-export-v2
34caa25b680d048e
.. index:: single: process; scheduling priority Get 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 Get 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 Get 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
9fbc86b7-3854-4fb1-9211-472a9f2c4d0a
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,120
supabase-export-v2
e9e7c4f1cd398fbe
This function can also support :ref:`paths relative to directory descriptors <dir_fd>`. When trying to resolve a path that may contain links, use :func:`~os.path.realpath` to properly handle recursion and platform differences.
trusted_official_docs
CPython Docs
This function can also support :ref:`paths relative to directory descriptors <dir_fd>`. When trying to resolve a path that may contain links, use :func:`~os.path.realpath` to properly handle recursion and platform differences.
This function can also support :ref:`paths relative to directory descriptors <dir_fd>`. When trying to resolve a path that may contain links, use :func:`~os.path.realpath` to properly handle recursion and platform differences.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a054769b-27ce-4980-a7b6-fe4263078bd2
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,563
supabase-export-v2
8e528855f20c75ed
If :const:`EFD_SEMAPHORE` is specified and the event counter is non-zero, :func:`eventfd_read` returns 1 and decrements the counter by one. If :const:`EFD_SEMAPHORE` is not specified and the event counter is non-zero, :func:`eventfd_read` returns the current event counter value and resets the counter to zero.
trusted_official_docs
CPython Docs
If :const:`EFD_SEMAPHORE` is specified and the event counter is non-zero, :func:`eventfd_read` returns 1 and decrements the counter by one. If :const:`EFD_SEMAPHORE` is not specified and the event counter is non-zero, :func:`eventfd_read` returns the current event counter value and resets the counter to zero.
If :const:`EFD_SEMAPHORE` is specified and the event counter is non-zero, :func:`eventfd_read` returns 1 and decrements the counter by one. If :const:`EFD_SEMAPHORE` is not specified and the event counter is non-zero, :func:`eventfd_read` returns the current event counter value and resets the counter to zero.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a09693fe-1f09-4d2a-b585-e24f1252610f
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,236
supabase-export-v2
671cbf6251be1589
This function can support :ref:`specifying a file descriptor <path_fd>` and :ref:`not following symlinks <follow_symlinks>`. On Windows, passing ``follow_symlinks=False`` will disable following all name-surrogate reparse points, which includes symlinks and directory junctions. Other types of reparse points that do no...
trusted_official_docs
CPython Docs
This function can support :ref:`specifying a file descriptor <path_fd>` and :ref:`not following symlinks <follow_symlinks>`. On Windows, passing ``follow_symlinks=False`` will disable following all name-surrogate reparse points, which includes symlinks and directory junctions. Other types of reparse points that do no...
This function can support :ref:`specifying a file descriptor <path_fd>` and :ref:`not following symlinks <follow_symlinks>`. On Windows, passing ``follow_symlinks=False`` will disable following all name-surrogate reparse points, which includes symlinks and directory junctions. Other types of reparse points that do no...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a137c8c8-3965-4910-9ce5-10ec2f037f2e
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,599
supabase-export-v2
2beff67675569ae5
real-time clock is used. If system clock is changed, timer setting need to be updated. To cancel timer when system clock is changed, see :const:`TFD_TIMER_CANCEL_ON_SET`. If *clockid* is :const:`time.CLOCK_MONOTONIC`, a non-settable monotonically increasing clock is used. Even if the system clock is changed, the timer...
trusted_official_docs
CPython Docs
real-time clock is used. If system clock is changed, timer setting need to be updated. To cancel timer when system clock is changed, see :const:`TFD_TIMER_CANCEL_ON_SET`. If *clockid* is :const:`time.CLOCK_MONOTONIC`, a non-settable monotonically increasing clock is used. Even if the system clock is changed, the timer...
real-time clock is used. If system clock is changed, timer setting need to be updated. To cancel timer when system clock is changed, see :const:`TFD_TIMER_CANCEL_ON_SET`. If *clockid* is :const:`time.CLOCK_MONOTONIC`, a non-settable monotonically increasing clock is used. Even if the system clock is changed, the timer...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a347af81-711b-42e7-a86c-4d6582080932
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,720
supabase-export-v2
c0d67261403a3f65
.. note:: Some of these may not be available on all Unix platforms, since there is some variation. These constants are defined where they are defined by the underlying platform.
trusted_official_docs
CPython Docs
.. note:: Some of these may not be available on all Unix platforms, since there is some variation. These constants are defined where they are defined by the underlying platform.
.. note:: Some of these may not be available on all Unix platforms, since there is some variation. These constants are defined where they are defined by the underlying platform.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a58ef64e-a8ef-4c74-8b05-37dc57c2360f
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,561
supabase-export-v2
e6f1d1f956ef1a83
:attr:`nodename` - name of machine on network (implementation-defined) * :attr:`release` - operating system release * :attr:`version` - operating system version * :attr:`machine` - hardware identifier For backwards compatibility, this object is also iterable, behaving like a five-tuple containing :attr:`sysname`, :att...
trusted_official_docs
CPython Docs
:attr:`nodename` - name of machine on network (implementation-defined) * :attr:`release` - operating system release * :attr:`version` - operating system version * :attr:`machine` - hardware identifier For backwards compatibility, this object is also iterable, behaving like a five-tuple containing :attr:`sysname`, :att...
:attr:`nodename` - name of machine on network (implementation-defined) * :attr:`release` - operating system release * :attr:`version` - operating system version * :attr:`machine` - hardware identifier For backwards compatibility, this object is also iterable, behaving like a five-tuple containing :attr:`sysname`, :att...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a5f47439-87e5-4122-838c-d96db9c5fb83
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,609
supabase-export-v2
9a8b6c41bd2676cf
On Unix, if the :ref:`Python UTF-8 Mode <utf8-mode>` is enabled, return ``'UTF-8'`` rather than the device encoding. .. versionchanged:: 3.10 On Unix, the function now implements the Python UTF-8 Mode.
trusted_official_docs
CPython Docs
On Unix, if the :ref:`Python UTF-8 Mode <utf8-mode>` is enabled, return ``'UTF-8'`` rather than the device encoding. .. versionchanged:: 3.10 On Unix, the function now implements the Python UTF-8 Mode.
On Unix, if the :ref:`Python UTF-8 Mode <utf8-mode>` is enabled, return ``'UTF-8'`` rather than the device encoding. .. versionchanged:: 3.10 On Unix, the function now implements the Python UTF-8 Mode.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a6e569d4-e463-40ac-aeb0-f8767878f4db
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,227
supabase-export-v2
dc9fba68b1f1a1d2
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. The result is cached on the ``os.DirEntry`` object, with a separate cache for *follow_symlinks* ``True`` and ``False``. Call :func:`os.stat` to fetch up-...
trusted_official_docs
CPython Docs
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. The result is cached on the ``os.DirEntry`` object, with a separate cache for *follow_symlinks* ``True`` and ``False``. Call :func:`os.stat` to fetch up-...
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. The result is cached on the ``os.DirEntry`` object, with a separate cache for *follow_symlinks* ``True`` and ``False``. Call :func:`os.stat` to fetch up-...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a80360ba-edee-4be7-9fd1-00622c7cd3ab
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,883
supabase-export-v2
0b293304f2255b74
: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:`~io.TextIOBase.write` method. .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exce...
trusted_official_docs
CPython Docs
: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:`~io.TextIOBase.write` method. .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exce...
: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:`~io.TextIOBase.write` method. .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exce...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a82e0601-9cb0-4fc0-9687-9f83f3fcda8c
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,215
supabase-export-v2
3ba9cc7344ddf4a2
.. method:: is_symlink() Return ``True`` if this entry is a symbolic link (even if broken); return ``False`` if the entry points to a directory or any kind of file, or if it doesn't exist anymore.
trusted_official_docs
CPython Docs
.. method:: is_symlink() Return ``True`` if this entry is a symbolic link (even if broken); return ``False`` if the entry points to a directory or any kind of file, or if it doesn't exist anymore.
.. method:: is_symlink() Return ``True`` if this entry is a symbolic link (even if broken); return ``False`` if the entry points to a directory or any kind of file, or if it doesn't exist anymore.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a8377b99-7339-41a4-9084-fbfc5518fad7
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,228
supabase-export-v2
e6ea1cf9b15565ae
The result is cached on the ``os.DirEntry`` object, with a separate cache for *follow_symlinks* ``True`` and ``False``. Call :func:`os.stat` to fetch up-to-date information. Note that there is a nice correspondence between several attributes and methods of ``os.DirEntry`` and of :class:`pathlib.Path`. In particular, ...
trusted_official_docs
CPython Docs
The result is cached on the ``os.DirEntry`` object, with a separate cache for *follow_symlinks* ``True`` and ``False``. Call :func:`os.stat` to fetch up-to-date information. Note that there is a nice correspondence between several attributes and methods of ``os.DirEntry`` and of :class:`pathlib.Path`. In particular, ...
The result is cached on the ``os.DirEntry`` object, with a separate cache for *follow_symlinks* ``True`` and ``False``. Call :func:`os.stat` to fetch up-to-date information. Note that there is a nice correspondence between several attributes and methods of ``os.DirEntry`` and of :class:`pathlib.Path`. In particular, ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a9136632-f039-4137-ac38-c27b9d1361cc
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,061
supabase-export-v2
41c788e52af119cb
represent another path (name surrogates), including symbolic links and directory junctions. Other kinds of reparse points are resolved by the operating system as for :func:`~os.stat`. .. function:: mkdir(path, mode=0o777, *, dir_fd=None)
trusted_official_docs
CPython Docs
represent another path (name surrogates), including symbolic links and directory junctions. Other kinds of reparse points are resolved by the operating system as for :func:`~os.stat`. .. function:: mkdir(path, mode=0o777, *, dir_fd=None)
represent another path (name surrogates), including symbolic links and directory junctions. Other kinds of reparse points are resolved by the operating system as for :func:`~os.stat`. .. function:: mkdir(path, mode=0o777, *, dir_fd=None)
python, official-docs, cpython, P0
Local_Trusted_Corpus
a9325cfb-6cc4-45ea-846a-7c1023a9b54b
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,091
supabase-export-v2
8072de0d350bd094
the FIFO for reading, and the client opens it for writing. Note that :func:`mkfifo` doesn't open the FIFO --- it just creates the rendezvous point. .. availability:: Unix, not WASI.
trusted_official_docs
CPython Docs
the FIFO for reading, and the client opens it for writing. Note that :func:`mkfifo` doesn't open the FIFO --- it just creates the rendezvous point. .. availability:: Unix, not WASI.
the FIFO for reading, and the client opens it for writing. Note that :func:`mkfifo` doesn't open the FIFO --- it just creates the rendezvous point. .. availability:: Unix, not WASI.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a9d4f01b-4dce-4acd-a9bb-7dc269768147
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,096
supabase-export-v2
2cecb70a1af94ddb
of :const:`stat.S_IFREG`, :const:`stat.S_IFCHR`, :const:`stat.S_IFBLK`, and :const:`stat.S_IFIFO`. For :const:`stat.S_IFCHR` and :const:`stat.S_IFBLK`, *device* defines the newly created device special file (probably using :func:`os.makedev`), otherwise it is ignored. This function can also support :ref:`paths relative...
trusted_official_docs
CPython Docs
of :const:`stat.S_IFREG`, :const:`stat.S_IFCHR`, :const:`stat.S_IFBLK`, and :const:`stat.S_IFIFO`. For :const:`stat.S_IFCHR` and :const:`stat.S_IFBLK`, *device* defines the newly created device special file (probably using :func:`os.makedev`), otherwise it is ignored. This function can also support :ref:`paths relative...
of :const:`stat.S_IFREG`, :const:`stat.S_IFCHR`, :const:`stat.S_IFBLK`, and :const:`stat.S_IFIFO`. For :const:`stat.S_IFCHR` and :const:`stat.S_IFBLK`, *device* defines the newly created device special file (probably using :func:`os.makedev`), otherwise it is ignored. This function can also support :ref:`paths relative...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a9e85dc7-69c1-4faf-b293-e03efdd1054c
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,567
supabase-export-v2
3f9eaf9e0520bf71
import os # semaphore with start value '1' fd = os.eventfd(1, os.EFD_SEMAPHORE | os.EFD_CLOEXEC) try: # acquire semaphore v = os.eventfd_read(fd) try: do_work() finally: # release semaphore os.eventfd_write(fd, v) finally: os.close(fd)
trusted_official_docs
CPython Docs
import os # semaphore with start value '1' fd = os.eventfd(1, os.EFD_SEMAPHORE | os.EFD_CLOEXEC) try: # acquire semaphore v = os.eventfd_read(fd) try: do_work() finally: # release semaphore os.eventfd_write(fd, v) finally: os.close(fd)
import os # semaphore with start value '1' fd = os.eventfd(1, os.EFD_SEMAPHORE | os.EFD_CLOEXEC) try: # acquire semaphore v = os.eventfd_read(fd) try: do_work() finally: # release semaphore os.eventfd_write(fd, v) finally: os.close(fd)
python, official-docs, cpython, P0
Local_Trusted_Corpus
aa547833-01d2-4af4-8423-cf5a95f3a8c3
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,211
supabase-export-v2
081911921b9f073d
.. method:: is_file(*, follow_symlinks=True) Return ``True`` if this entry is a file or a symbolic link pointing to a file; return ``False`` if the entry is or points to a directory or other non-file entry, or if it doesn't exist anymore.
trusted_official_docs
CPython Docs
.. method:: is_file(*, follow_symlinks=True) Return ``True`` if this entry is a file or a symbolic link pointing to a file; return ``False`` if the entry is or points to a directory or other non-file entry, or if it doesn't exist anymore.
.. method:: is_file(*, follow_symlinks=True) Return ``True`` if this entry is a file or a symbolic link pointing to a file; return ``False`` if the entry is or points to a directory or other non-file entry, or if it doesn't exist anymore.
python, official-docs, cpython, P0
Local_Trusted_Corpus
aa55dfa3-68f4-4701-8eb1-540032d20e30
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,385
supabase-export-v2
edc796e7950f24e6
if made outside Python, or by :func:`os.putenv` or :func:`os.unsetenv`. Use :func:`!os.reload_environ` to update :data:`os.environ` and :data:`os.environb` with any such changes to the current process environment. .. warning:: This function is not thread-safe. Calling it while the environment is being modified in ano...
trusted_official_docs
CPython Docs
if made outside Python, or by :func:`os.putenv` or :func:`os.unsetenv`. Use :func:`!os.reload_environ` to update :data:`os.environ` and :data:`os.environb` with any such changes to the current process environment. .. warning:: This function is not thread-safe. Calling it while the environment is being modified in ano...
if made outside Python, or by :func:`os.putenv` or :func:`os.unsetenv`. Use :func:`!os.reload_environ` to update :data:`os.environ` and :data:`os.environb` with any such changes to the current process environment. .. warning:: This function is not thread-safe. Calling it while the environment is being modified in ano...
python, official-docs, cpython, P0
Local_Trusted_Corpus
aaf04f63-cedc-4cc0-986d-0ae43af16097
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,560
supabase-export-v2
c7b44d1ba552121e
a buffer size of 8, :func:`~select.select`, :func:`~select.poll` and similar. See man page :manpage:`eventfd(2)` for more information. By default, the new file descriptor is :ref:`non-inheritable <fd_inheritance>`. *initval* is the initial value of the event counter. The initial value must be a 32 bit unsigned integer...
trusted_official_docs
CPython Docs
a buffer size of 8, :func:`~select.select`, :func:`~select.poll` and similar. See man page :manpage:`eventfd(2)` for more information. By default, the new file descriptor is :ref:`non-inheritable <fd_inheritance>`. *initval* is the initial value of the event counter. The initial value must be a 32 bit unsigned integer...
a buffer size of 8, :func:`~select.select`, :func:`~select.poll` and similar. See man page :manpage:`eventfd(2)` for more information. By default, the new file descriptor is :ref:`non-inheritable <fd_inheritance>`. *initval* is the initial value of the event counter. The initial value must be a 32 bit unsigned integer...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ab1eb135-6449-479b-b958-9e2f167bb1d1
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,171
supabase-export-v2
d1262b2f655f0fab
interface), the type of the :attr:`~os.DirEntry.name` and :attr:`~os.DirEntry.path` attributes of each :class:`os.DirEntry` will be ``bytes``; in all other circumstances, they will be of type ``str``. This function can also support :ref:`specifying a file descriptor <path_fd>`; the file descriptor must refer to a dire...
trusted_official_docs
CPython Docs
interface), the type of the :attr:`~os.DirEntry.name` and :attr:`~os.DirEntry.path` attributes of each :class:`os.DirEntry` will be ``bytes``; in all other circumstances, they will be of type ``str``. This function can also support :ref:`specifying a file descriptor <path_fd>`; the file descriptor must refer to a dire...
interface), the type of the :attr:`~os.DirEntry.name` and :attr:`~os.DirEntry.path` attributes of each :class:`os.DirEntry` will be ``bytes``; in all other circumstances, they will be of type ``str``. This function can also support :ref:`specifying a file descriptor <path_fd>`; the file descriptor must refer to a dire...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ac09ccfa-d83e-4f3d-bc55-cdbe136ef893
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,544
supabase-export-v2
8fe19ab43e6b0b83
your disk files. import os for root, dirs, files, rootfd in os.fwalk(top, topdown=False): for name in files: os.unlink(name, dir_fd=rootfd) for name in dirs: os.rmdir(name, dir_fd=rootfd) .. audit-event:: os.fwalk top,topdown,onerror,follow_symlinks,dir_fd os.fwalk
trusted_official_docs
CPython Docs
your disk files. import os for root, dirs, files, rootfd in os.fwalk(top, topdown=False): for name in files: os.unlink(name, dir_fd=rootfd) for name in dirs: os.rmdir(name, dir_fd=rootfd) .. audit-event:: os.fwalk top,topdown,onerror,follow_symlinks,dir_fd os.fwalk
your disk files. import os for root, dirs, files, rootfd in os.fwalk(top, topdown=False): for name in files: os.unlink(name, dir_fd=rootfd) for name in dirs: os.rmdir(name, dir_fd=rootfd) .. audit-event:: os.fwalk top,topdown,onerror,follow_symlinks,dir_fd os.fwalk
python, official-docs, cpython, P0
Local_Trusted_Corpus
ad718c5c-7155-4a63-ab78-d87de2e72476
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,651
supabase-export-v2
a8c255c412affa72
corresponding to file descriptor *fd*, so that it is at most *length* bytes in size. As of Python 3.3, this is equivalent to ``os.truncate(fd, length)``. .. audit-event:: os.truncate fd,length os.ftruncate
trusted_official_docs
CPython Docs
corresponding to file descriptor *fd*, so that it is at most *length* bytes in size. As of Python 3.3, this is equivalent to ``os.truncate(fd, length)``. .. audit-event:: os.truncate fd,length os.ftruncate
corresponding to file descriptor *fd*, so that it is at most *length* bytes in size. As of Python 3.3, this is equivalent to ``os.truncate(fd, length)``. .. audit-event:: os.truncate fd,length os.ftruncate
python, official-docs, cpython, P0
Local_Trusted_Corpus
ae023348-070d-4558-b6ba-8df78ecc6d66
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,353
supabase-export-v2
8683a1cc336e0c0d
Note that the standard stream settings in UTF-8 mode can be overridden by :envvar:`PYTHONIOENCODING` (just as they can be in the default locale-aware mode). As a consequence of the changes in those lower level APIs, other higher level APIs also exhibit different default behaviours:
trusted_official_docs
CPython Docs
Note that the standard stream settings in UTF-8 mode can be overridden by :envvar:`PYTHONIOENCODING` (just as they can be in the default locale-aware mode). As a consequence of the changes in those lower level APIs, other higher level APIs also exhibit different default behaviours:
Note that the standard stream settings in UTF-8 mode can be overridden by :envvar:`PYTHONIOENCODING` (just as they can be in the default locale-aware mode). As a consequence of the changes in those lower level APIs, other higher level APIs also exhibit different default behaviours:
python, official-docs, cpython, P0
Local_Trusted_Corpus
ae06985a-7710-4d2b-8399-f49a02cf7604
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,660
supabase-export-v2
ecd3d4148b993567
.. function:: getxattr(path, attribute, *, follow_symlinks=True) Return the value of the extended filesystem attribute *attribute* for *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.
trusted_official_docs
CPython Docs
.. function:: getxattr(path, attribute, *, follow_symlinks=True) Return the value of the extended filesystem attribute *attribute* for *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.
.. function:: getxattr(path, attribute, *, follow_symlinks=True) Return the value of the extended filesystem attribute *attribute* for *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.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ae4468bc-b7d0-4097-a107-f92551be2cb4
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,671
supabase-export-v2
19c313c7763ffdc6
file descriptor. *cmd* specifies the command to use - one of :data:`F_LOCK`, :data:`F_TLOCK`, :data:`F_ULOCK` or :data:`F_TEST`. *len* specifies the section of the file to lock. .. audit-event:: os.lockf fd,cmd,len os.lockf
trusted_official_docs
CPython Docs
file descriptor. *cmd* specifies the command to use - one of :data:`F_LOCK`, :data:`F_TLOCK`, :data:`F_ULOCK` or :data:`F_TEST`. *len* specifies the section of the file to lock. .. audit-event:: os.lockf fd,cmd,len os.lockf
file descriptor. *cmd* specifies the command to use - one of :data:`F_LOCK`, :data:`F_TLOCK`, :data:`F_ULOCK` or :data:`F_TEST`. *len* specifies the section of the file to lock. .. audit-event:: os.lockf fd,cmd,len os.lockf
python, official-docs, cpython, P0
Local_Trusted_Corpus
ae60cdd6-f811-4cbe-b3a4-e401555bb480
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,894
supabase-export-v2
9fb6664cd806dfeb
The optional argument ``fd`` (default ``STDOUT_FILENO``, or standard output) specifies which file descriptor should be queried. If the file descriptor is not connected to a terminal, an :exc:`OSError` is raised.
trusted_official_docs
CPython Docs
The optional argument ``fd`` (default ``STDOUT_FILENO``, or standard output) specifies which file descriptor should be queried. If the file descriptor is not connected to a terminal, an :exc:`OSError` is raised.
The optional argument ``fd`` (default ``STDOUT_FILENO``, or standard output) specifies which file descriptor should be queried. If the file descriptor is not connected to a terminal, an :exc:`OSError` is raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
aea12398-e31b-4333-8db2-654cc6cbb068
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,476
supabase-export-v2
2722f2161797f7e0
the symlink will be created as a directory if *target_is_directory* is ``True`` or a file symlink (the default) otherwise. On non-Windows platforms, *target_is_directory* is ignored. This function can support :ref:`paths relative to directory descriptors <dir_fd>`.
trusted_official_docs
CPython Docs
the symlink will be created as a directory if *target_is_directory* is ``True`` or a file symlink (the default) otherwise. On non-Windows platforms, *target_is_directory* is ignored. This function can support :ref:`paths relative to directory descriptors <dir_fd>`.
the symlink will be created as a directory if *target_is_directory* is ``True`` or a file symlink (the default) otherwise. On non-Windows platforms, *target_is_directory* is ignored. This function can support :ref:`paths relative to directory descriptors <dir_fd>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
afc51acc-f9d2-4014-992e-01f0f09f22b3
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,603
supabase-export-v2
c6321915e0eb5430
- :const:`TFD_NONBLOCK` - :const:`TFD_CLOEXEC` If :const:`TFD_NONBLOCK` is not set as a flag, :func:`read` blocks until the timer expires. If it is set as a flag, :func:`read` doesn't block, but If there hasn't been an expiration since the last call to read, :func:`read` raises :class:`OSError` with ``errno`` is set...
trusted_official_docs
CPython Docs
- :const:`TFD_NONBLOCK` - :const:`TFD_CLOEXEC` If :const:`TFD_NONBLOCK` is not set as a flag, :func:`read` blocks until the timer expires. If it is set as a flag, :func:`read` doesn't block, but If there hasn't been an expiration since the last call to read, :func:`read` raises :class:`OSError` with ``errno`` is set...
- :const:`TFD_NONBLOCK` - :const:`TFD_CLOEXEC` If :const:`TFD_NONBLOCK` is not set as a flag, :func:`read` blocks until the timer expires. If it is set as a flag, :func:`read` doesn't block, but If there hasn't been an expiration since the last call to read, :func:`read` raises :class:`OSError` with ``errno`` is set...
python, official-docs, cpython, P0
Local_Trusted_Corpus
afe31382-c9af-43d7-bba7-b770b2e24ad9
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,129
supabase-export-v2
e729f5598d624ea0
*path*. If *path* is a directory, an :exc:`OSError` is raised. Use :func:`rmdir` to remove directories. If the file does not exist, a :exc:`FileNotFoundError` is raised. This function can support :ref:`paths relative to directory descriptors <dir_fd>`.
trusted_official_docs
CPython Docs
*path*. If *path* is a directory, an :exc:`OSError` is raised. Use :func:`rmdir` to remove directories. If the file does not exist, a :exc:`FileNotFoundError` is raised. This function can support :ref:`paths relative to directory descriptors <dir_fd>`.
*path*. If *path* is a directory, an :exc:`OSError` is raised. Use :func:`rmdir` to remove directories. If the file does not exist, a :exc:`FileNotFoundError` is raised. This function can support :ref:`paths relative to directory descriptors <dir_fd>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b07a1a27-e926-45e2-9999-28bfaca33e19
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,598
supabase-export-v2
1d0222beeaa641f9
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 *offset_dst*. In Linux kernel older than 5.3, the files pointed to by *src* and *dst* must reside in the same filesystem, otherwise an :exc:`OSEr...
trusted_official_docs
CPython Docs
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 *offset_dst*. In Linux kernel older than 5.3, the files pointed to by *src* and *dst* must reside in the same filesystem, otherwise an :exc:`OSEr...
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 *offset_dst*. In Linux kernel older than 5.3, the files pointed to by *src* and *dst* must reside in the same filesystem, otherwise an :exc:`OSEr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b07a3cc4-6905-480c-9801-931de86e2b86
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,523
supabase-export-v2
5fa5680c48f8bb22
.. note:: Be aware that setting *followlinks* to ``True`` can lead to infinite recursion if a link points to a parent directory of itself. :func:`walk` does not keep track of the directories it visited already.
trusted_official_docs
CPython Docs
.. note:: Be aware that setting *followlinks* to ``True`` can lead to infinite recursion if a link points to a parent directory of itself. :func:`walk` does not keep track of the directories it visited already.
.. note:: Be aware that setting *followlinks* to ``True`` can lead to infinite recursion if a link points to a parent directory of itself. :func:`walk` does not keep track of the directories it visited already.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b0deb810-e616-4ded-9306-43f4d12ddeff
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,816
supabase-export-v2
5f4c253a74e46149
.. data:: PIDFD_NONBLOCK This flag indicates that the file descriptor will be non-blocking. If the process referred to by the file descriptor has not yet terminated, then an attempt to wait on the file descriptor using :manpage:`waitid(2)` will immediately return the error :const:`~errno.EAGAIN` rather than blocking.
trusted_official_docs
CPython Docs
.. data:: PIDFD_NONBLOCK This flag indicates that the file descriptor will be non-blocking. If the process referred to by the file descriptor has not yet terminated, then an attempt to wait on the file descriptor using :manpage:`waitid(2)` will immediately return the error :const:`~errno.EAGAIN` rather than blocking.
.. data:: PIDFD_NONBLOCK This flag indicates that the file descriptor will be non-blocking. If the process referred to by the file descriptor has not yet terminated, then an attempt to wait on the file descriptor using :manpage:`waitid(2)` will immediately return the error :const:`~errno.EAGAIN` rather than blocking.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b19d4672-1c53-4064-84b8-edda9032cf14
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,854
supabase-export-v2
4d8bfc0c2d58ee1d
no data to transfer, and it would not make sense to block because there are no writers connected to the write end of the pipe. .. seealso:: The :manpage:`splice(2)` man page.
trusted_official_docs
CPython Docs
no data to transfer, and it would not make sense to block because there are no writers connected to the write end of the pipe. .. seealso:: The :manpage:`splice(2)` man page.
no data to transfer, and it would not make sense to block because there are no writers connected to the write end of the pipe. .. seealso:: The :manpage:`splice(2)` man page.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b1ea9a77-1848-4642-8079-715704004dcf
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,374
supabase-export-v2
829a6c6839fd18e6
On some platforms, including FreeBSD and macOS, setting ``environ`` may cause memory leaks. Refer to the system documentation for :c:func:`!putenv`. You can delete items in this mapping to unset environment variables. :func:`unsetenv` will be called automatically when an item is deleted from :data:`os.environ`, and wh...
trusted_official_docs
CPython Docs
On some platforms, including FreeBSD and macOS, setting ``environ`` may cause memory leaks. Refer to the system documentation for :c:func:`!putenv`. You can delete items in this mapping to unset environment variables. :func:`unsetenv` will be called automatically when an item is deleted from :data:`os.environ`, and wh...
On some platforms, including FreeBSD and macOS, setting ``environ`` may cause memory leaks. Refer to the system documentation for :c:func:`!putenv`. You can delete items in this mapping to unset environment variables. :func:`unsetenv` will be called automatically when an item is deleted from :data:`os.environ`, and wh...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b22f82f5-e657-4cac-b94b-093f48cc4ba5
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,943
supabase-export-v2
4f2e675ebd89aa1c
even when :func:`access` indicates that they would succeed, particularly for operations on network filesystems which may have permissions semantics beyond the usual POSIX permission-bit model. .. versionchanged:: 3.3 Added the *dir_fd*, *effective_ids*, and *follow_symlinks* parameters.
trusted_official_docs
CPython Docs
even when :func:`access` indicates that they would succeed, particularly for operations on network filesystems which may have permissions semantics beyond the usual POSIX permission-bit model. .. versionchanged:: 3.3 Added the *dir_fd*, *effective_ids*, and *follow_symlinks* parameters.
even when :func:`access` indicates that they would succeed, particularly for operations on network filesystems which may have permissions semantics beyond the usual POSIX permission-bit model. .. versionchanged:: 3.3 Added the *dir_fd*, *effective_ids*, and *follow_symlinks* parameters.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b303a6b5-4937-4704-aa7a-2e958b6d8af1
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,487
supabase-export-v2
fbc17cadafe14909
is actually preferable to assign to items of :data:`os.environ`. This also applies to :func:`getenv` and :func:`getenvb`, which respectively use :data:`os.environ` and :data:`os.environb` in their implementations. See also the :func:`os.reload_environ` function.
trusted_official_docs
CPython Docs
is actually preferable to assign to items of :data:`os.environ`. This also applies to :func:`getenv` and :func:`getenvb`, which respectively use :data:`os.environ` and :data:`os.environb` in their implementations. See also the :func:`os.reload_environ` function.
is actually preferable to assign to items of :data:`os.environ`. This also applies to :func:`getenv` and :func:`getenvb`, which respectively use :data:`os.environ` and :data:`os.environb` in their implementations. See also the :func:`os.reload_environ` function.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b3bada7c-560b-4e72-b28b-9cfdbf50b2c7
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,508
supabase-export-v2
6f7688cc1b573823
It is an error to specify tuples for both *times* and *ns*. Note that the exact times you set here may not be returned by a subsequent :func:`~os.stat` call, depending on the resolution with which your operating system records access and modification times; see :func:`~os.stat`. The best way to preserve exact times ...
trusted_official_docs
CPython Docs
It is an error to specify tuples for both *times* and *ns*. Note that the exact times you set here may not be returned by a subsequent :func:`~os.stat` call, depending on the resolution with which your operating system records access and modification times; see :func:`~os.stat`. The best way to preserve exact times ...
It is an error to specify tuples for both *times* and *ns*. Note that the exact times you set here may not be returned by a subsequent :func:`~os.stat` call, depending on the resolution with which your operating system records access and modification times; see :func:`~os.stat`. The best way to preserve exact times ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b3e5302c-2574-40ec-aa05-c767f5816643
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,414
supabase-export-v2
8bf9f2bebff5b25c
Note that since :func:`getenvb` uses :data:`os.environb`, the mapping of :func:`getenvb` is similarly also captured on import, and the function may not reflect future environment changes. :func:`getenvb` is only available if :const:`supports_bytes_environ` is ``True``.
trusted_official_docs
CPython Docs
Note that since :func:`getenvb` uses :data:`os.environb`, the mapping of :func:`getenvb` is similarly also captured on import, and the function may not reflect future environment changes. :func:`getenvb` is only available if :const:`supports_bytes_environ` is ``True``.
Note that since :func:`getenvb` uses :data:`os.environb`, the mapping of :func:`getenvb` is similarly also captured on import, and the function may not reflect future environment changes. :func:`getenvb` is only available if :const:`supports_bytes_environ` is ``True``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b3fe3f12-852e-461d-be88-a04e7dd7300b
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,927
supabase-export-v2
f4dbd85e62c7e17c
.. _dir_fd: * **paths relative to directory descriptors:** If *dir_fd* is not ``None``, it should be a file descriptor referring to a directory, and the path to operate on should be relative; path will then be relative to that directory. If the path is absolute, *dir_fd* is ignored. For POSIX systems, Python will ca...
trusted_official_docs
CPython Docs
.. _dir_fd: * **paths relative to directory descriptors:** If *dir_fd* is not ``None``, it should be a file descriptor referring to a directory, and the path to operate on should be relative; path will then be relative to that directory. If the path is absolute, *dir_fd* is ignored. For POSIX systems, Python will ca...
.. _dir_fd: * **paths relative to directory descriptors:** If *dir_fd* is not ``None``, it should be a file descriptor referring to a directory, and the path to operate on should be relative; path will then be relative to that directory. If the path is absolute, *dir_fd* is ignored. For POSIX systems, Python will ca...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b5414a9c-2538-410b-9d53-620a6e669507
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,053
supabase-export-v2
2066317de2e353e5
Perform the equivalent of an :c:func:`!lstat` system call on the given path. Similar to :func:`~os.stat`, but does not follow symbolic links. Return a :class:`stat_result` object. On platforms that do not support symbolic links, this is an alias for :func:`~os.stat`.
trusted_official_docs
CPython Docs
Perform the equivalent of an :c:func:`!lstat` system call on the given path. Similar to :func:`~os.stat`, but does not follow symbolic links. Return a :class:`stat_result` object. On platforms that do not support symbolic links, this is an alias for :func:`~os.stat`.
Perform the equivalent of an :c:func:`!lstat` system call on the given path. Similar to :func:`~os.stat`, but does not follow symbolic links. Return a :class:`stat_result` object. On platforms that do not support symbolic links, this is an alias for :func:`~os.stat`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b5b6ef78-d41a-4ecf-9c72-7e08fed1a180
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,328
supabase-export-v2
b06580f2921594f4
file names accept both bytes and string objects, and result in an object of the same type, if a path or file name is returned. * On VxWorks, os.popen, os.fork, os.execv and os.spawn*p* are not supported.
trusted_official_docs
CPython Docs
file names accept both bytes and string objects, and result in an object of the same type, if a path or file name is returned. * On VxWorks, os.popen, os.fork, os.execv and os.spawn*p* are not supported.
file names accept both bytes and string objects, and result in an object of the same type, if a path or file name is returned. * On VxWorks, os.popen, os.fork, os.execv and os.spawn*p* are not supported.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b6a77031-5a9e-41a2-bc4c-8ef1689b66e0
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,541
supabase-export-v2
52d8a52d0b907009
displays the number of bytes taken by non-directory files in each directory under the starting directory, except that it doesn't look under any ``__pycache__`` subdirectory:: import os for root, dirs, files, rootfd in os.fwalk('python/Lib/xml'): print(root, "consumes", end=" ") print(sum([os.stat(name, dir_fd=rootfd...
trusted_official_docs
CPython Docs
displays the number of bytes taken by non-directory files in each directory under the starting directory, except that it doesn't look under any ``__pycache__`` subdirectory:: import os for root, dirs, files, rootfd in os.fwalk('python/Lib/xml'): print(root, "consumes", end=" ") print(sum([os.stat(name, dir_fd=rootfd...
displays the number of bytes taken by non-directory files in each directory under the starting directory, except that it doesn't look under any ``__pycache__`` subdirectory:: import os for root, dirs, files, rootfd in os.fwalk('python/Lib/xml'): print(root, "consumes", end=" ") print(sum([os.stat(name, dir_fd=rootfd...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b808f1a8-5301-4903-8103-0db4cf19dde7
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,138
supabase-export-v2
2a5e2ed062da24d7
remove the directory ``'foo/bar/baz'``, and then remove ``'foo/bar'`` and ``'foo'`` if they are empty. Raises :exc:`OSError` if the leaf directory could not be successfully removed. .. audit-event:: os.remove path,dir_fd os.removedirs
trusted_official_docs
CPython Docs
remove the directory ``'foo/bar/baz'``, and then remove ``'foo/bar'`` and ``'foo'`` if they are empty. Raises :exc:`OSError` if the leaf directory could not be successfully removed. .. audit-event:: os.remove path,dir_fd os.removedirs
remove the directory ``'foo/bar/baz'``, and then remove ``'foo/bar'`` and ``'foo'`` if they are empty. Raises :exc:`OSError` if the leaf directory could not be successfully removed. .. audit-event:: os.remove path,dir_fd os.removedirs
python, official-docs, cpython, P0
Local_Trusted_Corpus
b925b154-75fe-420e-9a2e-e0befb3e18d3
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,601
supabase-export-v2
6356e7a8914b7ba8
The function copies bytes between two file descriptors. Text options, like the encoding and the line ending, are ignored. The return value is the amount of bytes copied. This could be less than the amount requested.
trusted_official_docs
CPython Docs
The function copies bytes between two file descriptors. Text options, like the encoding and the line ending, are ignored. The return value is the amount of bytes copied. This could be less than the amount requested.
The function copies bytes between two file descriptors. Text options, like the encoding and the line ending, are ignored. The return value is the amount of bytes copied. This could be less than the amount requested.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b9b49bc9-b07d-4b1e-9828-e68248e81646
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,853
supabase-export-v2
8bb69106fa0ae6c0
set specified. If the parameter is not used, then the child inherits the parent's signal mask. This argument corresponds to the C library :c:macro:`!POSIX_SPAWN_SETSIGMASK` flag. The *sigdef* argument will reset the disposition of all signals in the set specified. This argument corresponds to the C library :c:macro:`...
trusted_official_docs
CPython Docs
set specified. If the parameter is not used, then the child inherits the parent's signal mask. This argument corresponds to the C library :c:macro:`!POSIX_SPAWN_SETSIGMASK` flag. The *sigdef* argument will reset the disposition of all signals in the set specified. This argument corresponds to the C library :c:macro:`...
set specified. If the parameter is not used, then the child inherits the parent's signal mask. This argument corresponds to the C library :c:macro:`!POSIX_SPAWN_SETSIGMASK` flag. The *sigdef* argument will reset the disposition of all signals in the set specified. This argument corresponds to the C library :c:macro:`...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ba7313b2-e222-4e79-ab95-b4c336d91e16
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,663
supabase-export-v2
1cb24cdbae64eeed
.. function:: grantpt(fd, /) Grant access to 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:: grantpt(fd, /) Grant access to 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:: grantpt(fd, /) Grant access to 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
baec5180-f404-474d-aaee-d2d6cbce56e1
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,209
supabase-export-v2
884e47fcae572405
that return ``dirent.d_type == DT_UNKNOWN``. If the entry is a symlink, a system call will be required to follow the symlink unless *follow_symlinks* is ``False``. This method can raise :exc:`OSError`, such as :exc:`PermissionError`, but :exc:`FileNotFoundError` is caught and not raised.
trusted_official_docs
CPython Docs
that return ``dirent.d_type == DT_UNKNOWN``. If the entry is a symlink, a system call will be required to follow the symlink unless *follow_symlinks* is ``False``. This method can raise :exc:`OSError`, such as :exc:`PermissionError`, but :exc:`FileNotFoundError` is caught and not raised.
that return ``dirent.d_type == DT_UNKNOWN``. If the entry is a symlink, a system call will be required to follow the symlink unless *follow_symlinks* is ``False``. 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
bb16e442-9cd7-4fb3-a426-ef6452765e27
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,861
supabase-export-v2
6da7868c0b43264c
Wraps the :c:func:`!posix_spawnp` C library API for use from Python. Similar to :func:`posix_spawn` except that the system searches for the *executable* file in the list of directories specified by the :envvar:`PATH` environment variable (in the same way as for ``execvp(3)``).
trusted_official_docs
CPython Docs
Wraps the :c:func:`!posix_spawnp` C library API for use from Python. Similar to :func:`posix_spawn` except that the system searches for the *executable* file in the list of directories specified by the :envvar:`PATH` environment variable (in the same way as for ``execvp(3)``).
Wraps the :c:func:`!posix_spawnp` C library API for use from Python. Similar to :func:`posix_spawn` except that the system searches for the *executable* file in the list of directories specified by the :envvar:`PATH` environment variable (in the same way as for ``execvp(3)``).
python, official-docs, cpython, P0
Local_Trusted_Corpus