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
381b9d11-c513-4633-a284-8a21d5aa9755
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,261
supabase-export-v2
e90281b73e0d2b30
object containing a list payload of length 1. Their :meth:`~email.message.EmailMessage.is_multipart` method will return ``True``. The single element yielded by :meth:`~email.message.EmailMessage.iter_parts` will be a sub-message object. * Some non-standards-compliant messages may not be internally consistent about the...
trusted_official_docs
CPython Docs
object containing a list payload of length 1. Their :meth:`~email.message.EmailMessage.is_multipart` method will return ``True``. The single element yielded by :meth:`~email.message.EmailMessage.iter_parts` will be a sub-message object. * Some non-standards-compliant messages may not be internally consistent about the...
object containing a list payload of length 1. Their :meth:`~email.message.EmailMessage.is_multipart` method will return ``True``. The single element yielded by :meth:`~email.message.EmailMessage.iter_parts` will be a sub-message object. * Some non-standards-compliant messages may not be internally consistent about the...
python, official-docs, cpython, P0
Local_Trusted_Corpus
40dce015-d0fd-4dbe-8cfb-7681fb79cd95
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,206
supabase-export-v2
de527b08a9f43f9a
.. method:: feed(data) Feed the parser some more data. *data* should be a :term:`bytes-like object` containing one or more lines. The lines can be partial and the parser will stitch such partial lines together properly. The lines can have any of the three common line endings: carriage return, newline, or carriage r...
trusted_official_docs
CPython Docs
.. method:: feed(data) Feed the parser some more data. *data* should be a :term:`bytes-like object` containing one or more lines. The lines can be partial and the parser will stitch such partial lines together properly. The lines can have any of the three common line endings: carriage return, newline, or carriage r...
.. method:: feed(data) Feed the parser some more data. *data* should be a :term:`bytes-like object` containing one or more lines. The lines can be partial and the parser will stitch such partial lines together properly. The lines can have any of the three common line endings: carriage return, newline, or carriage r...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4255e080-c4ee-4cf8-92c4-54bd195209b1
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,210
supabase-export-v2
7266bea7d8ea3a6c
.. class:: FeedParser(_factory=None, *, policy=policy.compat32) Works like :class:`BytesFeedParser` except that the input to the :meth:`~BytesFeedParser.feed` method must be a string. This is of limited utility, since the only way for such a message to be valid is for it to contain only ASCII text or, if :attr:`~ema...
trusted_official_docs
CPython Docs
.. class:: FeedParser(_factory=None, *, policy=policy.compat32) Works like :class:`BytesFeedParser` except that the input to the :meth:`~BytesFeedParser.feed` method must be a string. This is of limited utility, since the only way for such a message to be valid is for it to contain only ASCII text or, if :attr:`~ema...
.. class:: FeedParser(_factory=None, *, policy=policy.compat32) Works like :class:`BytesFeedParser` except that the input to the :meth:`~BytesFeedParser.feed` method must be a string. This is of limited utility, since the only way for such a message to be valid is for it to contain only ASCII text or, if :attr:`~ema...
python, official-docs, cpython, P0
Local_Trusted_Corpus
49f76aa9-3a92-4fed-ac08-a531fa8aa77d
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,224
supabase-export-v2
54d39b0769022e77
instead of a file-like object. Calling this method on a :term:`bytes-like object` is equivalent to wrapping *bytes* in a :class:`~io.BytesIO` instance first and calling :meth:`parse`. Optional *headersonly* is as with the :meth:`parse` method.
trusted_official_docs
CPython Docs
instead of a file-like object. Calling this method on a :term:`bytes-like object` is equivalent to wrapping *bytes* in a :class:`~io.BytesIO` instance first and calling :meth:`parse`. Optional *headersonly* is as with the :meth:`parse` method.
instead of a file-like object. Calling this method on a :term:`bytes-like object` is equivalent to wrapping *bytes* in a :class:`~io.BytesIO` instance first and calling :meth:`parse`. Optional *headersonly* is as with the :meth:`parse` method.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4a36ae8d-50c1-45a1-a06d-0dfe2348639d
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,237
supabase-export-v2
4b4ae7b1595bf1c8
object instead of a file-like object. Calling this method on a string is equivalent to wrapping *text* in a :class:`~io.StringIO` instance first and calling :meth:`parse`. Optional *headersonly* is as with the :meth:`parse` method.
trusted_official_docs
CPython Docs
object instead of a file-like object. Calling this method on a string is equivalent to wrapping *text* in a :class:`~io.StringIO` instance first and calling :meth:`parse`. Optional *headersonly* is as with the :meth:`parse` method.
object instead of a file-like object. Calling this method on a string is equivalent to wrapping *text* in a :class:`~io.StringIO` instance first and calling :meth:`parse`. Optional *headersonly* is as with the :meth:`parse` method.
python, official-docs, cpython, P0
Local_Trusted_Corpus
58390127-1744-4fa7-b855-39169ef10bc1
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,234
supabase-export-v2
d0ca8ebe19b1011c
object *fp*, parse the resulting text, and return the root message object. *fp* must support both the :meth:`~io.TextIOBase.readline` and the :meth:`~io.TextIOBase.read` methods on file-like objects. Other than the text mode requirement, this method operates like :meth:`BytesParser.parse`.
trusted_official_docs
CPython Docs
object *fp*, parse the resulting text, and return the root message object. *fp* must support both the :meth:`~io.TextIOBase.readline` and the :meth:`~io.TextIOBase.read` methods on file-like objects. Other than the text mode requirement, this method operates like :meth:`BytesParser.parse`.
object *fp*, parse the resulting text, and return the root message object. *fp* must support both the :meth:`~io.TextIOBase.readline` and the :meth:`~io.TextIOBase.read` methods on file-like objects. Other than the text mode requirement, this method operates like :meth:`BytesParser.parse`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
67991c92-1b50-466a-a2cb-a23bddc4b933
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,249
supabase-export-v2
59ddcbe363f1fe75
.. function:: message_from_string(s, _class=None, *, policy=policy.compat32) Return a message object structure from a string. This is equivalent to ``Parser().parsestr(s)``. *_class* and *policy* are interpreted as with the :class:`~email.parser.Parser` class constructor.
trusted_official_docs
CPython Docs
.. function:: message_from_string(s, _class=None, *, policy=policy.compat32) Return a message object structure from a string. This is equivalent to ``Parser().parsestr(s)``. *_class* and *policy* are interpreted as with the :class:`~email.parser.Parser` class constructor.
.. function:: message_from_string(s, _class=None, *, policy=policy.compat32) Return a message object structure from a string. This is equivalent to ``Parser().parsestr(s)``. *_class* and *policy* are interpreted as with the :class:`~email.parser.Parser` class constructor.
python, official-docs, cpython, P0
Local_Trusted_Corpus
68629e24-77aa-4642-9c95-5f9154bb81b4
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,217
supabase-export-v2
eb411e281e5a4eb0
Note: **The policy keyword should always be specified**; The default will change to :data:`email.policy.default` in a future version of Python. .. versionchanged:: 3.3 Removed the *strict* argument that was deprecated in 2.4. Added the *policy* keyword. .. versionchanged:: 3.6 *_class* defaults to the policy ``messag...
trusted_official_docs
CPython Docs
Note: **The policy keyword should always be specified**; The default will change to :data:`email.policy.default` in a future version of Python. .. versionchanged:: 3.3 Removed the *strict* argument that was deprecated in 2.4. Added the *policy* keyword. .. versionchanged:: 3.6 *_class* defaults to the policy ``messag...
Note: **The policy keyword should always be specified**; The default will change to :data:`email.policy.default` in a future version of Python. .. versionchanged:: 3.3 Removed the *strict* argument that was deprecated in 2.4. Added the *policy* keyword. .. versionchanged:: 3.6 *_class* defaults to the policy ``messag...
python, official-docs, cpython, P0
Local_Trusted_Corpus
767c8d6d-10c1-4437-b6ac-9dcba2239236
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,209
supabase-export-v2
11e1454b90628e4e
all previously fed data and return the root message object. It is undefined what happens if :meth:`~feed` is called after this method has been called. .. class:: FeedParser(_factory=None, *, policy=policy.compat32)
trusted_official_docs
CPython Docs
all previously fed data and return the root message object. It is undefined what happens if :meth:`~feed` is called after this method has been called. .. class:: FeedParser(_factory=None, *, policy=policy.compat32)
all previously fed data and return the root message object. It is undefined what happens if :meth:`~feed` is called after this method has been called. .. class:: FeedParser(_factory=None, *, policy=policy.compat32)
python, official-docs, cpython, P0
Local_Trusted_Corpus
7f307ca6-b692-432e-9b1a-4f1c646a8be1
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,214
supabase-export-v2
427d6f3c6937c382
can be much faster in these situations, since they do not attempt to parse the message body, instead setting the payload to the raw body. .. class:: BytesParser(_class=None, *, policy=policy.compat32)
trusted_official_docs
CPython Docs
can be much faster in these situations, since they do not attempt to parse the message body, instead setting the payload to the raw body. .. class:: BytesParser(_class=None, *, policy=policy.compat32)
can be much faster in these situations, since they do not attempt to parse the message body, instead setting the payload to the raw body. .. class:: BytesParser(_class=None, *, policy=policy.compat32)
python, official-docs, cpython, P0
Local_Trusted_Corpus
7f4b0a64-15e0-44e7-a2f3-8a764fcf70c8
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,223
supabase-export-v2
e13da2e93a36de8a
.. method:: parsebytes(bytes, headersonly=False) Similar to the :meth:`parse` method, except it takes a :term:`bytes-like object` instead of a file-like object. Calling this method on a :term:`bytes-like object` is equivalent to wrapping *bytes* in a :class:`~io.BytesIO` instance first and calling :meth:`parse`.
trusted_official_docs
CPython Docs
.. method:: parsebytes(bytes, headersonly=False) Similar to the :meth:`parse` method, except it takes a :term:`bytes-like object` instead of a file-like object. Calling this method on a :term:`bytes-like object` is equivalent to wrapping *bytes* in a :class:`~io.BytesIO` instance first and calling :meth:`parse`.
.. method:: parsebytes(bytes, headersonly=False) Similar to the :meth:`parse` method, except it takes a :term:`bytes-like object` instead of a file-like object. Calling this method on a :term:`bytes-like object` is equivalent to wrapping *bytes* in a :class:`~io.BytesIO` instance first and calling :meth:`parse`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
862f4c5e-5926-413f-b7ca-96fe67ac88fb
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,233
supabase-export-v2
f960eba2df77603d
.. method:: parse(fp, headersonly=False) Read all the data from the text-mode file-like object *fp*, parse the resulting text, and return the root message object. *fp* must support both the :meth:`~io.TextIOBase.readline` and the :meth:`~io.TextIOBase.read` methods on file-like objects.
trusted_official_docs
CPython Docs
.. method:: parse(fp, headersonly=False) Read all the data from the text-mode file-like object *fp*, parse the resulting text, and return the root message object. *fp* must support both the :meth:`~io.TextIOBase.readline` and the :meth:`~io.TextIOBase.read` methods on file-like objects.
.. method:: parse(fp, headersonly=False) Read all the data from the text-mode file-like object *fp*, parse the resulting text, and return the root message object. *fp* must support both the :meth:`~io.TextIOBase.readline` and the :meth:`~io.TextIOBase.read` methods on file-like objects.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8649a8ba-6a9c-4bd0-a2b5-21a211b22a59
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,213
supabase-export-v2
1dc418df2d24304c
Parser API ^^^^^^^^^^ The :class:`BytesParser` class, imported from the :mod:`!email.parser` module, provides an API that can be used to parse a message when the complete contents of the message are available in a :term:`bytes-like object` or file. The :mod:`!email.parser` module also provides :class:`Parser` for parsi...
trusted_official_docs
CPython Docs
Parser API ^^^^^^^^^^ The :class:`BytesParser` class, imported from the :mod:`!email.parser` module, provides an API that can be used to parse a message when the complete contents of the message are available in a :term:`bytes-like object` or file. The :mod:`!email.parser` module also provides :class:`Parser` for parsi...
Parser API ^^^^^^^^^^ The :class:`BytesParser` class, imported from the :mod:`!email.parser` module, provides an API that can be used to parse a message when the complete contents of the message are available in a :term:`bytes-like object` or file. The :mod:`!email.parser` module also provides :class:`Parser` for parsi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
909ff43a-2c7b-484a-a019-ef3b1547aa5c
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,243
supabase-export-v2
954fc3b4457f82f6
.. function:: message_from_bytes(s, _class=None, *, policy=policy.compat32) Return a message object structure from a :term:`bytes-like object`. This is equivalent to ``BytesParser().parsebytes(s)``. Optional *_class* and *policy* are interpreted as with the :class:`~email.parser.BytesParser` class constructor.
trusted_official_docs
CPython Docs
.. function:: message_from_bytes(s, _class=None, *, policy=policy.compat32) Return a message object structure from a :term:`bytes-like object`. This is equivalent to ``BytesParser().parsebytes(s)``. Optional *_class* and *policy* are interpreted as with the :class:`~email.parser.BytesParser` class constructor.
.. function:: message_from_bytes(s, _class=None, *, policy=policy.compat32) Return a message object structure from a :term:`bytes-like object`. This is equivalent to ``BytesParser().parsebytes(s)``. Optional *_class* and *policy* are interpreted as with the :class:`~email.parser.BytesParser` class constructor.
python, official-docs, cpython, P0
Local_Trusted_Corpus
95f59a34-5246-460c-9915-d71f02baf0e1
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,252
supabase-export-v2
9ce9e3a6f88e5601
.. function:: message_from_file(fp, _class=None, *, policy=policy.compat32) Return a message object structure tree from an open :term:`file object`. This is equivalent to ``Parser().parse(fp)``. *_class* and *policy* are interpreted as with the :class:`~email.parser.Parser` class constructor.
trusted_official_docs
CPython Docs
.. function:: message_from_file(fp, _class=None, *, policy=policy.compat32) Return a message object structure tree from an open :term:`file object`. This is equivalent to ``Parser().parse(fp)``. *_class* and *policy* are interpreted as with the :class:`~email.parser.Parser` class constructor.
.. function:: message_from_file(fp, _class=None, *, policy=policy.compat32) Return a message object structure tree from an open :term:`file object`. This is equivalent to ``Parser().parse(fp)``. *_class* and *policy* are interpreted as with the :class:`~email.parser.Parser` class constructor.
python, official-docs, cpython, P0
Local_Trusted_Corpus
99eabfa8-cff1-485d-87bc-b652dadc337c
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,219
supabase-export-v2
e160ef57e7f670db
.. method:: parse(fp, headersonly=False) Read all the data from the binary file-like object *fp*, parse the resulting bytes, and return the message object. *fp* must support both the :meth:`~io.IOBase.readline` and the :meth:`~io.BufferedIOBase.read` methods.
trusted_official_docs
CPython Docs
.. method:: parse(fp, headersonly=False) Read all the data from the binary file-like object *fp*, parse the resulting bytes, and return the message object. *fp* must support both the :meth:`~io.IOBase.readline` and the :meth:`~io.BufferedIOBase.read` methods.
.. method:: parse(fp, headersonly=False) Read all the data from the binary file-like object *fp*, parse the resulting bytes, and return the message object. *fp* must support both the :meth:`~io.IOBase.readline` and the :meth:`~io.BufferedIOBase.read` methods.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9ac9ca65-5acb-4d71-952d-8d07318ed31f
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,196
supabase-export-v2
5ebd882f9d120b53
FeedParser API ^^^^^^^^^^^^^^ The :class:`BytesFeedParser`, imported from the :mod:`email.feedparser` module, provides an API that is conducive to incremental parsing of email messages, such as would be necessary when reading the text of an email message from a source that can block (such as a socket). The :class:`Byte...
trusted_official_docs
CPython Docs
FeedParser API ^^^^^^^^^^^^^^ The :class:`BytesFeedParser`, imported from the :mod:`email.feedparser` module, provides an API that is conducive to incremental parsing of email messages, such as would be necessary when reading the text of an email message from a source that can block (such as a socket). The :class:`Byte...
FeedParser API ^^^^^^^^^^^^^^ The :class:`BytesFeedParser`, imported from the :mod:`email.feedparser` module, provides an API that is conducive to incremental parsing of email messages, such as would be necessary when reading the text of an email message from a source that can block (such as a socket). The :class:`Byte...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a072eb05-b02e-4f7f-82da-6c43cd22321d
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,191
supabase-export-v2
2dcf9c758e6f261c
-------------- Message object structures can be created in one of two ways: they can be created from whole cloth by creating an :class:`~email.message.EmailMessage` object, adding headers using the dictionary interface, and adding payload(s) using :meth:`~email.message.EmailMessage.set_content` and related methods, or ...
trusted_official_docs
CPython Docs
-------------- Message object structures can be created in one of two ways: they can be created from whole cloth by creating an :class:`~email.message.EmailMessage` object, adding headers using the dictionary interface, and adding payload(s) using :meth:`~email.message.EmailMessage.set_content` and related methods, or ...
-------------- Message object structures can be created in one of two ways: they can be created from whole cloth by creating an :class:`~email.message.EmailMessage` object, adding headers using the dictionary interface, and adding payload(s) using :meth:`~email.message.EmailMessage.set_content` and related methods, or ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a1d27507-c217-4f86-8ea2-a5fbe6e30782
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,236
supabase-export-v2
82fe1a781cd6687b
.. method:: parsestr(text, headersonly=False) Similar to the :meth:`parse` method, except it takes a string object instead of a file-like object. Calling this method on a string is equivalent to wrapping *text* in a :class:`~io.StringIO` instance first and calling :meth:`parse`.
trusted_official_docs
CPython Docs
.. method:: parsestr(text, headersonly=False) Similar to the :meth:`parse` method, except it takes a string object instead of a file-like object. Calling this method on a string is equivalent to wrapping *text* in a :class:`~io.StringIO` instance first and calling :meth:`parse`.
.. method:: parsestr(text, headersonly=False) Similar to the :meth:`parse` method, except it takes a string object instead of a file-like object. Calling this method on a string is equivalent to wrapping *text* in a :class:`~io.StringIO` instance first and calling :meth:`parse`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
aa925f87-f649-4e1f-8ca4-455a9e4685de
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,247
supabase-export-v2
1a8a07087c1532a2
object structure tree from an open binary :term:`file object`. This is equivalent to ``BytesParser().parse(fp)``. *_class* and *policy* are interpreted as with the :class:`~email.parser.BytesParser` class constructor. .. versionadded:: 3.2 .. versionchanged:: 3.3 Removed the *strict* argument. Added the *policy* keyw...
trusted_official_docs
CPython Docs
object structure tree from an open binary :term:`file object`. This is equivalent to ``BytesParser().parse(fp)``. *_class* and *policy* are interpreted as with the :class:`~email.parser.BytesParser` class constructor. .. versionadded:: 3.2 .. versionchanged:: 3.3 Removed the *strict* argument. Added the *policy* keyw...
object structure tree from an open binary :term:`file object`. This is equivalent to ``BytesParser().parse(fp)``. *_class* and *policy* are interpreted as with the :class:`~email.parser.BytesParser` class constructor. .. versionadded:: 3.2 .. versionchanged:: 3.3 Removed the *strict* argument. Added the *policy* keyw...
python, official-docs, cpython, P0
Local_Trusted_Corpus
af0f21c2-0aac-4966-baa5-9f168e951a56
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,259
supabase-export-v2
83685e850e98c209
are parsed as a single message object with a string payload. These objects will return ``False`` for :meth:`~email.message.EmailMessage.is_multipart`, and :meth:`~email.message.EmailMessage.iter_parts` will yield an empty list. * All :mimetype:`multipart` type messages will be parsed as a container message object with...
trusted_official_docs
CPython Docs
are parsed as a single message object with a string payload. These objects will return ``False`` for :meth:`~email.message.EmailMessage.is_multipart`, and :meth:`~email.message.EmailMessage.iter_parts` will yield an empty list. * All :mimetype:`multipart` type messages will be parsed as a container message object with...
are parsed as a single message object with a string payload. These objects will return ``False`` for :meth:`~email.message.EmailMessage.is_multipart`, and :meth:`~email.message.EmailMessage.iter_parts` will yield an empty list. * All :mimetype:`multipart` type messages will be parsed as a container message object with...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bc607925-81df-45ee-8cbe-ce15c8ae89f8
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,211
supabase-export-v2
509b52a7d89b0361
only way for such a message to be valid is for it to contain only ASCII text or, if :attr:`~email.policy.EmailPolicy.utf8` is ``True``, no binary attachments. .. versionchanged:: 3.3 Added the *policy* keyword.
trusted_official_docs
CPython Docs
only way for such a message to be valid is for it to contain only ASCII text or, if :attr:`~email.policy.EmailPolicy.utf8` is ``True``, no binary attachments. .. versionchanged:: 3.3 Added the *policy* keyword.
only way for such a message to be valid is for it to contain only ASCII text or, if :attr:`~email.policy.EmailPolicy.utf8` is ``True``, no binary attachments. .. versionchanged:: 3.3 Added the *policy* keyword.
python, official-docs, cpython, P0
Local_Trusted_Corpus
be47dfa0-f71a-4d5c-801f-ee4797510254
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,258
supabase-export-v2
4ed52ad3e748b516
Here are some notes on the parsing semantics: * Most non-\ :mimetype:`multipart` type messages are parsed as a single message object with a string payload. These objects will return ``False`` for :meth:`~email.message.EmailMessage.is_multipart`, and :meth:`~email.message.EmailMessage.iter_parts` will yield an empty ...
trusted_official_docs
CPython Docs
Here are some notes on the parsing semantics: * Most non-\ :mimetype:`multipart` type messages are parsed as a single message object with a string payload. These objects will return ``False`` for :meth:`~email.message.EmailMessage.is_multipart`, and :meth:`~email.message.EmailMessage.iter_parts` will yield an empty ...
Here are some notes on the parsing semantics: * Most non-\ :mimetype:`multipart` type messages are parsed as a single message object with a string payload. These objects will return ``False`` for :meth:`~email.message.EmailMessage.is_multipart`, and :meth:`~email.message.EmailMessage.iter_parts` will yield an empty ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c25f74a2-f06a-4641-9f31-46755d367fee
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,197
supabase-export-v2
e720434a085a1009
or file, but the :class:`BytesParser` API may be more convenient for such use cases. The semantics and results of the two parser APIs are identical. The :class:`BytesFeedParser`'s API is simple; you create an instance, feed it a bunch of bytes until there's no more to feed it, then close the parser to retrieve the root...
trusted_official_docs
CPython Docs
or file, but the :class:`BytesParser` API may be more convenient for such use cases. The semantics and results of the two parser APIs are identical. The :class:`BytesFeedParser`'s API is simple; you create an instance, feed it a bunch of bytes until there's no more to feed it, then close the parser to retrieve the root...
or file, but the :class:`BytesParser` API may be more convenient for such use cases. The semantics and results of the two parser APIs are identical. The :class:`BytesFeedParser`'s API is simple; you create an instance, feed it a bunch of bytes until there's no more to feed it, then close the parser to retrieve the root...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c4366145-2a2f-429b-b336-a259d6a76223
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,244
supabase-export-v2
c98bae93b566db26
a message object structure from a :term:`bytes-like object`. This is equivalent to ``BytesParser().parsebytes(s)``. Optional *_class* and *policy* are interpreted as with the :class:`~email.parser.BytesParser` class constructor. .. versionadded:: 3.2 .. versionchanged:: 3.3 Removed the *strict* argument. Added the *p...
trusted_official_docs
CPython Docs
a message object structure from a :term:`bytes-like object`. This is equivalent to ``BytesParser().parsebytes(s)``. Optional *_class* and *policy* are interpreted as with the :class:`~email.parser.BytesParser` class constructor. .. versionadded:: 3.2 .. versionchanged:: 3.3 Removed the *strict* argument. Added the *p...
a message object structure from a :term:`bytes-like object`. This is equivalent to ``BytesParser().parsebytes(s)``. Optional *_class* and *policy* are interpreted as with the :class:`~email.parser.BytesParser` class constructor. .. versionadded:: 3.2 .. versionchanged:: 3.3 Removed the *strict* argument. Added the *p...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c7f04c3b-21e9-417e-8dec-4fb11ece88ce
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,193
supabase-export-v2
dc6f273be602c669
object will return ``True`` from its :meth:`~email.message.EmailMessage.is_multipart` method, and the subparts can be accessed via the payload manipulation methods, such as :meth:`~email.message.EmailMessage.get_body`, :meth:`~email.message.EmailMessage.iter_parts`, and :meth:`~email.message.EmailMessage.walk`. There a...
trusted_official_docs
CPython Docs
object will return ``True`` from its :meth:`~email.message.EmailMessage.is_multipart` method, and the subparts can be accessed via the payload manipulation methods, such as :meth:`~email.message.EmailMessage.get_body`, :meth:`~email.message.EmailMessage.iter_parts`, and :meth:`~email.message.EmailMessage.walk`. There a...
object will return ``True`` from its :meth:`~email.message.EmailMessage.is_multipart` method, and the subparts can be accessed via the payload manipulation methods, such as :meth:`~email.message.EmailMessage.get_body`, :meth:`~email.message.EmailMessage.iter_parts`, and :meth:`~email.message.EmailMessage.walk`. There a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cccd023a-1e3e-4f5c-9187-70202288805c
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,240
supabase-export-v2
12ad524caafa0fb2
Exactly like :class:`Parser`, except that *headersonly* defaults to ``True``. Since creating a message object structure from a string or a file object is such a common task, four functions are provided as a convenience. They are available in the top-level :mod:`email` package namespace.
trusted_official_docs
CPython Docs
Exactly like :class:`Parser`, except that *headersonly* defaults to ``True``. Since creating a message object structure from a string or a file object is such a common task, four functions are provided as a convenience. They are available in the top-level :mod:`email` package namespace.
Exactly like :class:`Parser`, except that *headersonly* defaults to ``True``. Since creating a message object structure from a string or a file object is such a common task, four functions are provided as a convenience. They are available in the top-level :mod:`email` package namespace.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d2657c16-4a9b-475c-a32a-c8310d39975e
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,220
supabase-export-v2
95f72843fb7e285b
from the binary file-like object *fp*, parse the resulting bytes, and return the message object. *fp* must support both the :meth:`~io.IOBase.readline` and the :meth:`~io.BufferedIOBase.read` methods. The bytes contained in *fp* must be formatted as a block of :rfc:`5322` (or, if :attr:`~email.policy.EmailPolicy.utf8`...
trusted_official_docs
CPython Docs
from the binary file-like object *fp*, parse the resulting bytes, and return the message object. *fp* must support both the :meth:`~io.IOBase.readline` and the :meth:`~io.BufferedIOBase.read` methods. The bytes contained in *fp* must be formatted as a block of :rfc:`5322` (or, if :attr:`~email.policy.EmailPolicy.utf8`...
from the binary file-like object *fp*, parse the resulting bytes, and return the message object. *fp* must support both the :meth:`~io.IOBase.readline` and the :meth:`~io.BufferedIOBase.read` methods. The bytes contained in *fp* must be formatted as a block of :rfc:`5322` (or, if :attr:`~email.policy.EmailPolicy.utf8`...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d6e225eb-d390-41e3-93e8-0a5e5f1462a2
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,246
supabase-export-v2
cbed2649e825e129
.. function:: message_from_binary_file(fp, _class=None, *, \ policy=policy.compat32) Return a message object structure tree from an open binary :term:`file object`. This is equivalent to ``BytesParser().parse(fp)``. *_class* and *policy* are interpreted as with the :class:`~email.parser.BytesParser` class constructo...
trusted_official_docs
CPython Docs
.. function:: message_from_binary_file(fp, _class=None, *, \ policy=policy.compat32) Return a message object structure tree from an open binary :term:`file object`. This is equivalent to ``BytesParser().parse(fp)``. *_class* and *policy* are interpreted as with the :class:`~email.parser.BytesParser` class constructo...
.. function:: message_from_binary_file(fp, _class=None, *, \ policy=policy.compat32) Return a message object structure tree from an open binary :term:`file object`. This is equivalent to ``BytesParser().parse(fp)``. *_class* and *policy* are interpreted as with the :class:`~email.parser.BytesParser` class constructo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
daa09cbc-55ae-4fbb-bf77-da540d07e5cf
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,254
supabase-export-v2
04c435a9b345d853
.. versionchanged:: 3.3 Removed the *strict* argument. Added the *policy* keyword. .. versionchanged:: 3.6 *_class* defaults to the policy ``message_factory``. Here's an example of how you might use :func:`message_from_bytes` at an interactive Python prompt::
trusted_official_docs
CPython Docs
.. versionchanged:: 3.3 Removed the *strict* argument. Added the *policy* keyword. .. versionchanged:: 3.6 *_class* defaults to the policy ``message_factory``. Here's an example of how you might use :func:`message_from_bytes` at an interactive Python prompt::
.. versionchanged:: 3.3 Removed the *strict* argument. Added the *policy* keyword. .. versionchanged:: 3.6 *_class* defaults to the policy ``message_factory``. Here's an example of how you might use :func:`message_from_bytes` at an interactive Python prompt::
python, official-docs, cpython, P0
Local_Trusted_Corpus
f1cd33c1-c62b-4902-b6ef-1f38a9e592bf
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,194
supabase-export-v2
a8895f758ef12a17
email message from a socket). The :class:`FeedParser` can consume and parse the message incrementally, and only returns the root object when you close the parser. Note that the parser can be extended in limited ways, and of course you can implement your own parser completely from scratch. All of the logic that connects...
trusted_official_docs
CPython Docs
email message from a socket). The :class:`FeedParser` can consume and parse the message incrementally, and only returns the root object when you close the parser. Note that the parser can be extended in limited ways, and of course you can implement your own parser completely from scratch. All of the logic that connects...
email message from a socket). The :class:`FeedParser` can consume and parse the message incrementally, and only returns the root object when you close the parser. Note that the parser can be extended in limited ways, and of course you can implement your own parser completely from scratch. All of the logic that connects...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fe498cd7-fa50-4dae-aca1-a24e6507ab5d
CPython Docs
file://datasets/cpython/Doc/library/email.parser.rst
unknown
db56978b-bb94-4b30-ab5f-f2d135620659
42,198
supabase-export-v2
67bd84f2e1ba8f29
attribute with a list of any problems it found in a message. See the :mod:`email.errors` module for the list of defects that it can find. Here is the API for the :class:`BytesFeedParser`:
trusted_official_docs
CPython Docs
attribute with a list of any problems it found in a message. See the :mod:`email.errors` module for the list of defects that it can find. Here is the API for the :class:`BytesFeedParser`:
attribute with a list of any problems it found in a message. See the :mod:`email.errors` module for the list of defects that it can find. Here is the API for the :class:`BytesFeedParser`:
python, official-docs, cpython, P0
Local_Trusted_Corpus
0530be13-233c-41fd-80fc-8cf46e6e25c0
CPython Docs
file://datasets/cpython/Doc/library/tomllib.rst
unknown
5da9a761-3403-43a2-a96d-29cd490ba399
42,270
supabase-export-v2
324bb0b8c3526fd2
.. warning:: Be cautious when parsing data from untrusted sources. A malicious TOML string may cause the decoder to consume considerable CPU and memory resources. Limiting the size of data to be parsed is recommended.
trusted_official_docs
CPython Docs
.. warning:: Be cautious when parsing data from untrusted sources. A malicious TOML string may cause the decoder to consume considerable CPU and memory resources. Limiting the size of data to be parsed is recommended.
.. warning:: Be cautious when parsing data from untrusted sources. A malicious TOML string may cause the decoder to consume considerable CPU and memory resources. Limiting the size of data to be parsed is recommended.
python, official-docs, cpython, P0
Local_Trusted_Corpus
364b04a2-4eca-44f4-9109-e79f842bb7e3
CPython Docs
file://datasets/cpython/Doc/library/tomllib.rst
unknown
5da9a761-3403-43a2-a96d-29cd490ba399
42,282
supabase-export-v2
43c3f7ae29cbd366
:class:`str` object. Return a :class:`dict`. Convert TOML types to Python using this :ref:`conversion table <toml-to-py-table>`. The *parse_float* argument has the same meaning as in :func:`load`. A :exc:`TOMLDecodeError` will be raised on an invalid TOML document.
trusted_official_docs
CPython Docs
:class:`str` object. Return a :class:`dict`. Convert TOML types to Python using this :ref:`conversion table <toml-to-py-table>`. The *parse_float* argument has the same meaning as in :func:`load`. A :exc:`TOMLDecodeError` will be raised on an invalid TOML document.
:class:`str` object. Return a :class:`dict`. Convert TOML types to Python using this :ref:`conversion table <toml-to-py-table>`. The *parse_float* argument has the same meaning as in :func:`load`. A :exc:`TOMLDecodeError` will be raised on an invalid TOML document.
python, official-docs, cpython, P0
Local_Trusted_Corpus
399251cf-28a6-47f2-9748-f788eac4556e
CPython Docs
file://datasets/cpython/Doc/library/tomllib.rst
unknown
5da9a761-3403-43a2-a96d-29cd490ba399
42,267
supabase-export-v2
299fe8e839da4b84
This module provides an interface for parsing TOML 1.1.0 (Tom's Obvious Minimal Language, `https://toml.io <https://toml.io/en/>`_). This module does not support writing TOML. .. versionadded:: 3.11 The module was added with support for TOML 1.0.0.
trusted_official_docs
CPython Docs
This module provides an interface for parsing TOML 1.1.0 (Tom's Obvious Minimal Language, `https://toml.io <https://toml.io/en/>`_). This module does not support writing TOML. .. versionadded:: 3.11 The module was added with support for TOML 1.0.0.
This module provides an interface for parsing TOML 1.1.0 (Tom's Obvious Minimal Language, `https://toml.io <https://toml.io/en/>`_). This module does not support writing TOML. .. versionadded:: 3.11 The module was added with support for TOML 1.0.0.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7b763bec-07aa-467a-aca2-7450426ee987
CPython Docs
file://datasets/cpython/Doc/library/tomllib.rst
unknown
5da9a761-3403-43a2-a96d-29cd490ba399
42,281
supabase-export-v2
e6ed2242fef3893d
.. function:: loads(s, /, *, parse_float=float) Load TOML from a :class:`str` object. Return a :class:`dict`. Convert TOML types to Python using this :ref:`conversion table <toml-to-py-table>`. The *parse_float* argument has the same meaning as in :func:`load`.
trusted_official_docs
CPython Docs
.. function:: loads(s, /, *, parse_float=float) Load TOML from a :class:`str` object. Return a :class:`dict`. Convert TOML types to Python using this :ref:`conversion table <toml-to-py-table>`. The *parse_float* argument has the same meaning as in :func:`load`.
.. function:: loads(s, /, *, parse_float=float) Load TOML from a :class:`str` object. Return a :class:`dict`. Convert TOML types to Python using this :ref:`conversion table <toml-to-py-table>`. The *parse_float* argument has the same meaning as in :func:`load`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8b599b38-147b-4052-9b23-1fb44484fd66
CPython Docs
file://datasets/cpython/Doc/library/tomllib.rst
unknown
5da9a761-3403-43a2-a96d-29cd490ba399
42,274
supabase-export-v2
2597ce639e4ced31
.. seealso:: The :pypi:`TOML Kit package <tomlkit>` is a style-preserving TOML library with both read and write capability. It is a recommended replacement for this module for editing already existing TOML files.
trusted_official_docs
CPython Docs
.. seealso:: The :pypi:`TOML Kit package <tomlkit>` is a style-preserving TOML library with both read and write capability. It is a recommended replacement for this module for editing already existing TOML files.
.. seealso:: The :pypi:`TOML Kit package <tomlkit>` is a style-preserving TOML library with both read and write capability. It is a recommended replacement for this module for editing already existing TOML files.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8efc3dac-3a09-47ba-8029-81a58b285919
CPython Docs
file://datasets/cpython/Doc/library/tomllib.rst
unknown
5da9a761-3403-43a2-a96d-29cd490ba399
42,279
supabase-export-v2
081528517521f9bc
use another datatype or parser for TOML floats (e.g. :class:`decimal.Decimal`). The callable must not return a :class:`dict` or a :class:`list`, else a :exc:`ValueError` is raised. A :exc:`TOMLDecodeError` will be raised on an invalid TOML document.
trusted_official_docs
CPython Docs
use another datatype or parser for TOML floats (e.g. :class:`decimal.Decimal`). The callable must not return a :class:`dict` or a :class:`list`, else a :exc:`ValueError` is raised. A :exc:`TOMLDecodeError` will be raised on an invalid TOML document.
use another datatype or parser for TOML floats (e.g. :class:`decimal.Decimal`). The callable must not return a :class:`dict` or a :class:`list`, else a :exc:`ValueError` is raised. A :exc:`TOMLDecodeError` will be raised on an invalid TOML document.
python, official-docs, cpython, P0
Local_Trusted_Corpus
90242ef8-b383-4341-a247-36eda9bb4afd
CPython Docs
file://datasets/cpython/Doc/library/tomllib.rst
unknown
5da9a761-3403-43a2-a96d-29cd490ba399
42,278
supabase-export-v2
3af04c45ad12ab08
file. The first argument should be a readable and binary file object. Return a :class:`dict`. Convert TOML types to Python using this :ref:`conversion table <toml-to-py-table>`. *parse_float* will be called with the string of every TOML float to be decoded. By default, this is equivalent to ``float(num_str)``. This ca...
trusted_official_docs
CPython Docs
file. The first argument should be a readable and binary file object. Return a :class:`dict`. Convert TOML types to Python using this :ref:`conversion table <toml-to-py-table>`. *parse_float* will be called with the string of every TOML float to be decoded. By default, this is equivalent to ``float(num_str)``. This ca...
file. The first argument should be a readable and binary file object. Return a :class:`dict`. Convert TOML types to Python using this :ref:`conversion table <toml-to-py-table>`. *parse_float* will be called with the string of every TOML float to be decoded. By default, this is equivalent to ``float(num_str)``. This ca...
python, official-docs, cpython, P0
Local_Trusted_Corpus
92bd13c9-2075-494d-958d-aab0da31bcf3
CPython Docs
file://datasets/cpython/Doc/library/tomllib.rst
unknown
5da9a761-3403-43a2-a96d-29cd490ba399
42,272
supabase-export-v2
9e5628348ae126f1
.. seealso:: The :pypi:`Tomli-W package <tomli-w>` is a TOML writer that can be used in conjunction with this module, providing a write API familiar to users of the standard library :mod:`marshal` and :mod:`pickle` modules.
trusted_official_docs
CPython Docs
.. seealso:: The :pypi:`Tomli-W package <tomli-w>` is a TOML writer that can be used in conjunction with this module, providing a write API familiar to users of the standard library :mod:`marshal` and :mod:`pickle` modules.
.. seealso:: The :pypi:`Tomli-W package <tomli-w>` is a TOML writer that can be used in conjunction with this module, providing a write API familiar to users of the standard library :mod:`marshal` and :mod:`pickle` modules.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9cf9ab71-0901-4980-95ff-946b6a5885e6
CPython Docs
file://datasets/cpython/Doc/library/tomllib.rst
unknown
5da9a761-3403-43a2-a96d-29cd490ba399
42,277
supabase-export-v2
986dde5e037d9970
.. function:: load(fp, /, *, parse_float=float) Read a TOML file. The first argument should be a readable and binary file object. Return a :class:`dict`. Convert TOML types to Python using this :ref:`conversion table <toml-to-py-table>`.
trusted_official_docs
CPython Docs
.. function:: load(fp, /, *, parse_float=float) Read a TOML file. The first argument should be a readable and binary file object. Return a :class:`dict`. Convert TOML types to Python using this :ref:`conversion table <toml-to-py-table>`.
.. function:: load(fp, /, *, parse_float=float) Read a TOML file. The first argument should be a readable and binary file object. Return a :class:`dict`. Convert TOML types to Python using this :ref:`conversion table <toml-to-py-table>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b6d36ef7-2d62-4756-afed-28e14801e27e
CPython Docs
file://datasets/cpython/Doc/library/tomllib.rst
unknown
5da9a761-3403-43a2-a96d-29cd490ba399
42,275
supabase-export-v2
66455e917423fdcf
is a style-preserving TOML library with both read and write capability. It is a recommended replacement for this module for editing already existing TOML files. This module defines the following functions:
trusted_official_docs
CPython Docs
is a style-preserving TOML library with both read and write capability. It is a recommended replacement for this module for editing already existing TOML files. This module defines the following functions:
is a style-preserving TOML library with both read and write capability. It is a recommended replacement for this module for editing already existing TOML files. This module defines the following functions:
python, official-docs, cpython, P0
Local_Trusted_Corpus
fecff1d1-1f1c-43e9-bbb8-c7232b6438bc
CPython Docs
file://datasets/cpython/Doc/library/tomllib.rst
unknown
5da9a761-3403-43a2-a96d-29cd490ba399
42,303
supabase-export-v2
2f01f3120e81dc95
.. _toml-to-py-table: +------------------+--------------------------------------------------------------------------------------+ | TOML | Python | +==================+======================================================================================+ | TOML document | dict | +------------------+-------------------...
trusted_official_docs
CPython Docs
.. _toml-to-py-table: +------------------+--------------------------------------------------------------------------------------+ | TOML | Python | +==================+======================================================================================+ | TOML document | dict | +------------------+-------------------...
.. _toml-to-py-table: +------------------+--------------------------------------------------------------------------------------+ | TOML | Python | +==================+======================================================================================+ | TOML document | dict | +------------------+-------------------...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8d9acf18-4584-4a04-8ac2-55b24adc7942
CPython Docs
file://datasets/cpython/Doc/library/html.entities.rst
unknown
7ac196e0-ee77-4d4a-96e6-7e79b697ccc1
42,310
supabase-export-v2
29a205b4bcfb2cd1
.. data:: html5 A dictionary that maps HTML5 named character references [#]_ to the equivalent Unicode character(s), e.g. ``html5['gt;'] == '>'``. Note that the trailing semicolon is included in the name (e.g. ``'gt;'``), however some of the names are accepted by the standard even without the semicolon: in this case...
trusted_official_docs
CPython Docs
.. data:: html5 A dictionary that maps HTML5 named character references [#]_ to the equivalent Unicode character(s), e.g. ``html5['gt;'] == '>'``. Note that the trailing semicolon is included in the name (e.g. ``'gt;'``), however some of the names are accepted by the standard even without the semicolon: in this case...
.. data:: html5 A dictionary that maps HTML5 named character references [#]_ to the equivalent Unicode character(s), e.g. ``html5['gt;'] == '>'``. Note that the trailing semicolon is included in the name (e.g. ``'gt;'``), however some of the names are accepted by the standard even without the semicolon: in this case...
python, official-docs, cpython, P0
Local_Trusted_Corpus
013b1921-d9b8-4372-abad-6b02e401ce46
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,144
supabase-export-v2
1ce3bacd2c5a57c5
some Unix flavors if *src* and *dst* are on different filesystems. If successful, the renaming will be an atomic operation (this is a POSIX requirement). This function can support specifying *src_dir_fd* and/or *dst_dir_fd* to supply :ref:`paths relative to directory descriptors <dir_fd>`.
trusted_official_docs
CPython Docs
some Unix flavors if *src* and *dst* are on different filesystems. If successful, the renaming will be an atomic operation (this is a POSIX requirement). This function can support specifying *src_dir_fd* and/or *dst_dir_fd* to supply :ref:`paths relative to directory descriptors <dir_fd>`.
some Unix flavors if *src* and *dst* are on different filesystems. If successful, the renaming will be an atomic operation (this is a POSIX requirement). This function can support specifying *src_dir_fd* and/or *dst_dir_fd* to supply :ref:`paths relative to directory descriptors <dir_fd>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0147ed38-54e7-422c-b4c0-dd137bd56826
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,976
supabase-export-v2
5340cc9add880b17
Change the owner and group id of *path* to the numeric *uid* and *gid*. To leave one of the ids unchanged, set it to -1. This function can support :ref:`specifying a file descriptor <path_fd>`, :ref:`paths relative to directory descriptors <dir_fd>` and :ref:`not following symlinks <follow_symlinks>`.
trusted_official_docs
CPython Docs
Change the owner and group id of *path* to the numeric *uid* and *gid*. To leave one of the ids unchanged, set it to -1. This function can support :ref:`specifying a file descriptor <path_fd>`, :ref:`paths relative to directory descriptors <dir_fd>` and :ref:`not following symlinks <follow_symlinks>`.
Change the owner and group id of *path* to the numeric *uid* and *gid*. To leave one of the ids unchanged, set it to -1. This function can support :ref:`specifying a file descriptor <path_fd>`, :ref:`paths relative to directory descriptors <dir_fd>` and :ref:`not following symlinks <follow_symlinks>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0337f74e-30f4-4822-b9c4-6741b7d94207
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,698
supabase-export-v2
1f88ac685c520abb
.. function:: open(path, flags, mode=0o777, *, dir_fd=None) Open the file *path* and set various flags according to *flags* and possibly its mode according to *mode*. When computing *mode*, the current umask value is first masked out. Return the file descriptor for the newly opened file. The new file descriptor is :r...
trusted_official_docs
CPython Docs
.. function:: open(path, flags, mode=0o777, *, dir_fd=None) Open the file *path* and set various flags according to *flags* and possibly its mode according to *mode*. When computing *mode*, the current umask value is first masked out. Return the file descriptor for the newly opened file. The new file descriptor is :r...
.. function:: open(path, flags, mode=0o777, *, dir_fd=None) Open the file *path* and set various flags according to *flags* and possibly its mode according to *mode*. When computing *mode*, the current umask value is first masked out. Return the file descriptor for the newly opened file. The new file descriptor is :r...
python, official-docs, cpython, P0
Local_Trusted_Corpus
037b3fcb-21dc-4537-9d96-a959c16d6cc9
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,206
supabase-export-v2
02b8c3fd59253e5c
link pointing to a directory; return ``False`` if the entry is or points to any other kind of file, or if it doesn't exist anymore. If *follow_symlinks* is ``False``, return ``True`` only if this entry is a directory (without following symlinks); return ``False`` if the entry is any other kind of file or if it doesn'...
trusted_official_docs
CPython Docs
link pointing to a directory; return ``False`` if the entry is or points to any other kind of file, or if it doesn't exist anymore. If *follow_symlinks* is ``False``, return ``True`` only if this entry is a directory (without following symlinks); return ``False`` if the entry is any other kind of file or if it doesn'...
link pointing to a directory; return ``False`` if the entry is or points to any other kind of file, or if it doesn't exist anymore. If *follow_symlinks* is ``False``, return ``True`` only if this entry is a directory (without following symlinks); return ``False`` if the entry is any other kind of file or if it doesn'...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0419bd18-7fce-4cd8-aa73-ce497ff0cc0b
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,291
supabase-export-v2
8272d05395bb0b58
User defined flags for file. On other Unix systems (such as FreeBSD), the following attributes may be available (but may be only filled out if root tries to use them):
trusted_official_docs
CPython Docs
User defined flags for file. On other Unix systems (such as FreeBSD), the following attributes may be available (but may be only filled out if root tries to use them):
User defined flags for file. On other Unix systems (such as FreeBSD), the following attributes may be available (but may be only filled out if root tries to use them):
python, official-docs, cpython, P0
Local_Trusted_Corpus
04cac0c7-c27e-442b-baf4-5e8c514e5422
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,672
supabase-export-v2
a6f6950534a41cab
bytes or str (directly or indirectly through the :class:`PathLike` interface). If it is a string, it is encoded with the :term:`filesystem encoding and error handler`. This function can support :ref:`specifying a file descriptor <path_fd>` and :ref:`not following symlinks <follow_symlinks>`.
trusted_official_docs
CPython Docs
bytes or str (directly or indirectly through the :class:`PathLike` interface). If it is a string, it is encoded with the :term:`filesystem encoding and error handler`. This function can support :ref:`specifying a file descriptor <path_fd>` and :ref:`not following symlinks <follow_symlinks>`.
bytes or str (directly or indirectly through the :class:`PathLike` interface). If it is a string, it is encoded with the :term:`filesystem encoding and error handler`. This function can support :ref:`specifying a file descriptor <path_fd>` and :ref:`not following symlinks <follow_symlinks>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
05335af7-658e-4b70-8c14-651a065bb040
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,600
supabase-export-v2
b9b98fca081ecb0e
If *clockid* is :const:`time.CLOCK_MONOTONIC`, a non-settable monotonically increasing clock is used. Even if the system clock is changed, the timer setting will not be affected. If *clockid* is :const:`time.CLOCK_BOOTTIME`, same as :const:`time.CLOCK_MONOTONIC` except it includes any time that the system is suspended...
trusted_official_docs
CPython Docs
If *clockid* is :const:`time.CLOCK_MONOTONIC`, a non-settable monotonically increasing clock is used. Even if the system clock is changed, the timer setting will not be affected. If *clockid* is :const:`time.CLOCK_BOOTTIME`, same as :const:`time.CLOCK_MONOTONIC` except it includes any time that the system is suspended...
If *clockid* is :const:`time.CLOCK_MONOTONIC`, a non-settable monotonically increasing clock is used. Even if the system clock is changed, the timer setting will not be affected. If *clockid* is :const:`time.CLOCK_BOOTTIME`, same as :const:`time.CLOCK_MONOTONIC` except it includes any time that the system is suspended...
python, official-docs, cpython, P0
Local_Trusted_Corpus
05bfa25b-5bdc-4d5a-b66e-7ff215f65bb8
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,565
supabase-export-v2
276c061e49a37cb8
If the event counter is zero and :const:`EFD_NONBLOCK` is not specified, :func:`eventfd_read` blocks. :func:`eventfd_write` increments the event counter. Write blocks if the write operation would increment the counter to a value larger than 2\ :sup:`64`\ -\ 2.
trusted_official_docs
CPython Docs
If the event counter is zero and :const:`EFD_NONBLOCK` is not specified, :func:`eventfd_read` blocks. :func:`eventfd_write` increments the event counter. Write blocks if the write operation would increment the counter to a value larger than 2\ :sup:`64`\ -\ 2.
If the event counter is zero and :const:`EFD_NONBLOCK` is not specified, :func:`eventfd_read` blocks. :func:`eventfd_write` increments the event counter. Write blocks if the write operation would increment the counter to a value larger than 2\ :sup:`64`\ -\ 2.
python, official-docs, cpython, P0
Local_Trusted_Corpus
05e307ad-a379-4dc5-80c3-fd522b18d525
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,758
supabase-export-v2
88b7ce6b29363b39
.. data:: EX_TEMPFAIL Exit code that means a temporary 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.
trusted_official_docs
CPython Docs
.. data:: EX_TEMPFAIL Exit code that means a temporary 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.
.. data:: EX_TEMPFAIL Exit code that means a temporary 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.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0746aaf6-efc2-4b37-8291-43174a98a815
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,707
supabase-export-v2
4c967c125a591774
signal handler does not raise an exception, the function now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale). .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
trusted_official_docs
CPython Docs
signal handler does not raise an exception, the function now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale). .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
signal handler does not raise an exception, the function now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale). .. versionchanged:: 3.6 Accepts a :term:`path-like object`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0758565e-6529-43f0-bcdc-bfcee4e20676
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,937
supabase-export-v2
24f065bfd12711ae
.. note:: Using :func:`access` to check if a user is authorized to e.g. open a file before actually doing so using :func:`open` creates a security hole, because the user might exploit the short time interval between checking and opening the file to manipulate it. It's preferable to use :term:`EAFP` techniques. For ...
trusted_official_docs
CPython Docs
.. note:: Using :func:`access` to check if a user is authorized to e.g. open a file before actually doing so using :func:`open` creates a security hole, because the user might exploit the short time interval between checking and opening the file to manipulate it. It's preferable to use :term:`EAFP` techniques. For ...
.. note:: Using :func:`access` to check if a user is authorized to e.g. open a file before actually doing so using :func:`open` creates a security hole, because the user might exploit the short time interval between checking and opening the file to manipulate it. It's preferable to use :term:`EAFP` techniques. For ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
07b0659a-5ee0-4a11-abea-41d2a3f52d57
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,420
supabase-export-v2
a0155fc59c9227e9
Return the effective group id of the current process. This corresponds to the "set id" bit on the file being executed in the current process. .. availability:: Unix, not WASI.
trusted_official_docs
CPython Docs
Return the effective group id of the current process. This corresponds to the "set id" bit on the file being executed in the current process. .. availability:: Unix, not WASI.
Return the effective group id of the current process. This corresponds to the "set id" bit on the file being executed in the current process. .. availability:: Unix, not WASI.
python, official-docs, cpython, P0
Local_Trusted_Corpus
08bae234-585b-4d77-a51a-09fa9140e7bc
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,886
supabase-export-v2
9d1f92a8b28d8245
objects <bytes-like object>`. Buffers are processed in array order. Entire contents of the first buffer is written before proceeding to the second, and so on. Returns the total number of bytes actually written.
trusted_official_docs
CPython Docs
objects <bytes-like object>`. Buffers are processed in array order. Entire contents of the first buffer is written before proceeding to the second, and so on. Returns the total number of bytes actually written.
objects <bytes-like object>`. Buffers are processed in array order. Entire contents of the first buffer is written before proceeding to the second, and so on. Returns the total number of bytes actually written.
python, official-docs, cpython, P0
Local_Trusted_Corpus
08d664f9-ce94-4271-8659-0930a523b08e
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,721
supabase-export-v2
92ab0128acf6fd38
The above constants are extensions and not present if they are not defined by the C library. .. versionchanged:: 3.4 Add :data:`O_PATH` on systems that support it. Add :data:`O_TMPFILE`, only available on Linux Kernel 3.11 or newer.
trusted_official_docs
CPython Docs
The above constants are extensions and not present if they are not defined by the C library. .. versionchanged:: 3.4 Add :data:`O_PATH` on systems that support it. Add :data:`O_TMPFILE`, only available on Linux Kernel 3.11 or newer.
The above constants are extensions and not present if they are not defined by the C library. .. versionchanged:: 3.4 Add :data:`O_PATH` on systems that support it. Add :data:`O_TMPFILE`, only available on Linux Kernel 3.11 or newer.
python, official-docs, cpython, P0
Local_Trusted_Corpus
09ab1af2-93b8-4046-96c3-53ed018aa64b
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,888
supabase-export-v2
3a2257f9a0a5564d
.. availability:: Unix, Windows, not WASI, not Android, not iOS. :func:`spawnlp`, :func:`spawnlpe`, :func:`spawnvp` and :func:`spawnvpe` are not available on Windows. :func:`spawnle` and :func:`spawnve` are not thread-safe on Windows; we advise you to use the :mod:`subprocess` module instead.
trusted_official_docs
CPython Docs
.. availability:: Unix, Windows, not WASI, not Android, not iOS. :func:`spawnlp`, :func:`spawnlpe`, :func:`spawnvp` and :func:`spawnvpe` are not available on Windows. :func:`spawnle` and :func:`spawnve` are not thread-safe on Windows; we advise you to use the :mod:`subprocess` module instead.
.. availability:: Unix, Windows, not WASI, not Android, not iOS. :func:`spawnlp`, :func:`spawnlpe`, :func:`spawnvp` and :func:`spawnvpe` are not available on Windows. :func:`spawnle` and :func:`spawnve` are not thread-safe on Windows; we advise you to use the :mod:`subprocess` module instead.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0a2d59cd-f460-43c4-bc11-22766ab55bac
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,579
supabase-export-v2
488540c6dfedae40
Flags to the :func:`unshare` function, if the implementation supports them. See :manpage:`unshare(2)` in the Linux manual for their exact effect and availability. .. data:: CLONE_FILES CLONE_FS CLONE_NEWCGROUP CLONE_NEWIPC CLONE_NEWNET CLONE_NEWNS CLONE_NEWPID CLONE_NEWTIME CLONE_NEWUSER CLONE_NEWUTS CLONE_SI...
trusted_official_docs
CPython Docs
Flags to the :func:`unshare` function, if the implementation supports them. See :manpage:`unshare(2)` in the Linux manual for their exact effect and availability. .. data:: CLONE_FILES CLONE_FS CLONE_NEWCGROUP CLONE_NEWIPC CLONE_NEWNET CLONE_NEWNS CLONE_NEWPID CLONE_NEWTIME CLONE_NEWUSER CLONE_NEWUTS CLONE_SI...
Flags to the :func:`unshare` function, if the implementation supports them. See :manpage:`unshare(2)` in the Linux manual for their exact effect and availability. .. data:: CLONE_FILES CLONE_FS CLONE_NEWCGROUP CLONE_NEWIPC CLONE_NEWNET CLONE_NEWNS CLONE_NEWPID CLONE_NEWTIME CLONE_NEWUSER CLONE_NEWUTS CLONE_SI...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0a5185b6-4d21-460b-b2c4-42ba2a56b077
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,060
supabase-export-v2
26b30ca928747435
.. versionchanged:: 3.6 Accepts a :term:`path-like object`. .. versionchanged:: 3.8 On Windows, now opens reparse points that 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`.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.6 Accepts a :term:`path-like object`. .. versionchanged:: 3.8 On Windows, now opens reparse points that 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`.
.. versionchanged:: 3.6 Accepts a :term:`path-like object`. .. versionchanged:: 3.8 On Windows, now opens reparse points that 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`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0a894d81-60c7-4818-ab18-37be4b1befbd
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,525
supabase-export-v2
f8e033dcdf8acd0f
.. note:: If you pass a relative pathname, don't change the current working directory between resumptions of :func:`walk`. :func:`walk` never changes the current directory, and assumes that its caller doesn't either.
trusted_official_docs
CPython Docs
.. note:: If you pass a relative pathname, don't change the current working directory between resumptions of :func:`walk`. :func:`walk` never changes the current directory, and assumes that its caller doesn't either.
.. note:: If you pass a relative pathname, don't change the current working directory between resumptions of :func:`walk`. :func:`walk` never changes the current directory, and assumes that its caller doesn't either.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0b6cd493-53ba-4d58-aa6a-936dcde11a5b
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,305
supabase-export-v2
7c769b2d61bfa9f1
module :mod:`stat` defines functions and constants that are useful for extracting information from a :c:struct:`stat` structure. (On Windows, some items are filled with dummy values.) For backward compatibility, a :class:`stat_result` instance is also accessible as a tuple of at least 10 integers giving the most impor...
trusted_official_docs
CPython Docs
module :mod:`stat` defines functions and constants that are useful for extracting information from a :c:struct:`stat` structure. (On Windows, some items are filled with dummy values.) For backward compatibility, a :class:`stat_result` instance is also accessible as a tuple of at least 10 integers giving the most impor...
module :mod:`stat` defines functions and constants that are useful for extracting information from a :c:struct:`stat` structure. (On Windows, some items are filled with dummy values.) For backward compatibility, a :class:`stat_result` instance is also accessible as a tuple of at least 10 integers giving the most impor...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0ba7a22a-47c1-4fb6-bf5d-c6f9fe60c521
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,365
supabase-export-v2
6c31f6c255671147
.. data:: environ A :term:`mapping` object where keys and values are strings that represent the process environment. For example, ``environ['HOME']`` is the pathname of your home directory (on some platforms), and is equivalent to ``getenv("HOME")`` in C.
trusted_official_docs
CPython Docs
.. data:: environ A :term:`mapping` object where keys and values are strings that represent the process environment. For example, ``environ['HOME']`` is the pathname of your home directory (on some platforms), and is equivalent to ``getenv("HOME")`` in C.
.. data:: environ A :term:`mapping` object where keys and values are strings that represent the process environment. For example, ``environ['HOME']`` is the pathname of your home directory (on some platforms), and is equivalent to ``getenv("HOME")`` in C.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0bb1a51a-6052-4e84-a269-5c441c21e3c2
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,356
supabase-export-v2
ca15c0ab1447096a
or the :envvar:`PYTHONUTF8=0 <PYTHONUTF8>` environment variable. The Python UTF-8 Mode can only be disabled at Python startup. Its value can be read from :data:`sys.flags.utf8_mode <sys.flags>`. If the UTF-8 mode is disabled, the interpreter defaults to using the current locale settings, *unless* the current locale is ...
trusted_official_docs
CPython Docs
or the :envvar:`PYTHONUTF8=0 <PYTHONUTF8>` environment variable. The Python UTF-8 Mode can only be disabled at Python startup. Its value can be read from :data:`sys.flags.utf8_mode <sys.flags>`. If the UTF-8 mode is disabled, the interpreter defaults to using the current locale settings, *unless* the current locale is ...
or the :envvar:`PYTHONUTF8=0 <PYTHONUTF8>` environment variable. The Python UTF-8 Mode can only be disabled at Python startup. Its value can be read from :data:`sys.flags.utf8_mode <sys.flags>`. If the UTF-8 mode is disabled, the interpreter defaults to using the current locale settings, *unless* the current locale is ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0bbc59ab-43ff-4a4e-b265-ceffc8e65da6
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,996
supabase-export-v2
e977218300738ee4
.. function:: lchflags(path, flags) Set the flags of *path* to the numeric *flags*, like :func:`chflags`, but do not follow symbolic links. As of Python 3.3, this is equivalent to ``os.chflags(path, flags, follow_symlinks=False)``.
trusted_official_docs
CPython Docs
.. function:: lchflags(path, flags) Set the flags of *path* to the numeric *flags*, like :func:`chflags`, but do not follow symbolic links. As of Python 3.3, this is equivalent to ``os.chflags(path, flags, follow_symlinks=False)``.
.. function:: lchflags(path, flags) Set the flags of *path* to the numeric *flags*, like :func:`chflags`, but do not follow symbolic links. As of Python 3.3, this is equivalent to ``os.chflags(path, flags, follow_symlinks=False)``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0c055321-3dfb-4164-895a-d8424701c304
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,931
supabase-export-v2
81a5c9784271b767
the symbolic link itself rather than the file pointed to by the link. For POSIX systems, Python will call the ``l...`` variant of the function. You can check whether or not *follow_symlinks* is supported for a particular function on your platform using :data:`os.supports_follow_symlinks`. If it's unavailable, using it...
trusted_official_docs
CPython Docs
the symbolic link itself rather than the file pointed to by the link. For POSIX systems, Python will call the ``l...`` variant of the function. You can check whether or not *follow_symlinks* is supported for a particular function on your platform using :data:`os.supports_follow_symlinks`. If it's unavailable, using it...
the symbolic link itself rather than the file pointed to by the link. For POSIX systems, Python will call the ``l...`` variant of the function. You can check whether or not *follow_symlinks* is supported for a particular function on your platform using :data:`os.supports_follow_symlinks`. If it's unavailable, using it...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0c266db7-1893-4744-9948-34a08bfb8f2c
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,592
supabase-export-v2
8186f8e0de5c00f5
.. note:: This function is intended for low-level I/O and must be applied to a file descriptor as returned by :func:`os.open` or :func:`pipe`. To close a "file object" returned by the built-in function :func:`open` or by :func:`popen` or :func:`fdopen`, use its :meth:`~io.IOBase.close` method.
trusted_official_docs
CPython Docs
.. note:: This function is intended for low-level I/O and must be applied to a file descriptor as returned by :func:`os.open` or :func:`pipe`. To close a "file object" returned by the built-in function :func:`open` or by :func:`popen` or :func:`fdopen`, use its :meth:`~io.IOBase.close` method.
.. note:: This function is intended for low-level I/O and must be applied to a file descriptor as returned by :func:`os.open` or :func:`pipe`. To close a "file object" returned by the built-in function :func:`open` or by :func:`popen` or :func:`fdopen`, use its :meth:`~io.IOBase.close` method.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0cc41d10-c0aa-4980-ade9-77b4815ad965
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,517
supabase-export-v2
64e0cd55f07fbb39
tree either top-down or bottom-up. For each directory in the tree rooted at directory *top* (including *top* itself), it yields a 3-tuple ``(dirpath, dirnames, filenames)``. *dirpath* is a string, the path to the directory. *dirnames* is a list of the names of the subdirectories in *dirpath* (including symlinks to dir...
trusted_official_docs
CPython Docs
tree either top-down or bottom-up. For each directory in the tree rooted at directory *top* (including *top* itself), it yields a 3-tuple ``(dirpath, dirnames, filenames)``. *dirpath* is a string, the path to the directory. *dirnames* is a list of the names of the subdirectories in *dirpath* (including symlinks to dir...
tree either top-down or bottom-up. For each directory in the tree rooted at directory *top* (including *top* itself), it yields a 3-tuple ``(dirpath, dirnames, filenames)``. *dirpath* is a string, the path to the directory. *dirnames* is a list of the names of the subdirectories in *dirpath* (including symlinks to dir...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0ccd0b9a-583c-4aeb-b477-ca33615c719a
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,642
supabase-export-v2
83ba5d2617f2a1a3
.. data:: TFD_NONBLOCK A flag for the :func:`timerfd_create` function, which sets the :const:`O_NONBLOCK` status flag for the new timer file descriptor. If :const:`TFD_NONBLOCK` is not set as a flag, :func:`read` blocks.
trusted_official_docs
CPython Docs
.. data:: TFD_NONBLOCK A flag for the :func:`timerfd_create` function, which sets the :const:`O_NONBLOCK` status flag for the new timer file descriptor. If :const:`TFD_NONBLOCK` is not set as a flag, :func:`read` blocks.
.. data:: TFD_NONBLOCK A flag for the :func:`timerfd_create` function, which sets the :const:`O_NONBLOCK` status flag for the new timer file descriptor. If :const:`TFD_NONBLOCK` is not set as a flag, :func:`read` blocks.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0cd431f5-d1a8-49f9-9781-9c35ce5159e0
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,622
supabase-export-v2
7c28fc7de8a42a2c
*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)``. .. audit-event:: os.chmod path,mode,dir_fd os.fchmod
trusted_official_docs
CPython Docs
*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)``. .. audit-event:: os.chmod path,mode,dir_fd os.fchmod
*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)``. .. audit-event:: os.chmod path,mode,dir_fd os.fchmod
python, official-docs, cpython, P0
Local_Trusted_Corpus
0d19b426-865f-44ad-8476-e6a4eeddcd45
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,676
supabase-export-v2
d99483e581d9a3b1
.. function:: setxattr(path, attribute, value, flags=0, *, follow_symlinks=True) Set the extended filesystem attribute *attribute* on *path* to *value*. *attribute* must be a bytes or str with no embedded NULs (directly or indirectly through the :class:`PathLike` interface). If it is a str, it is encoded with the :te...
trusted_official_docs
CPython Docs
.. function:: setxattr(path, attribute, value, flags=0, *, follow_symlinks=True) Set the extended filesystem attribute *attribute* on *path* to *value*. *attribute* must be a bytes or str with no embedded NULs (directly or indirectly through the :class:`PathLike` interface). If it is a str, it is encoded with the :te...
.. function:: setxattr(path, attribute, value, flags=0, *, follow_symlinks=True) Set the extended filesystem attribute *attribute* on *path* to *value*. *attribute* must be a bytes or str with no embedded NULs (directly or indirectly through the :class:`PathLike` interface). If it is a str, it is encoded with the :te...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0de03d71-9ab7-4314-a00a-71d38aceaa8b
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,001
supabase-export-v2
0ff07bd9ee2f54f8
.. function:: lchmod(path, mode) Change the mode of *path* to the numeric *mode*. If path is a symlink, this affects the symlink 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)``.
trusted_official_docs
CPython Docs
.. function:: lchmod(path, mode) Change the mode of *path* to the numeric *mode*. If path is a symlink, this affects the symlink 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)``.
.. function:: lchmod(path, mode) Change the mode of *path* to the numeric *mode*. If path is a symlink, this affects the symlink 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)``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0e032c5a-d636-4134-9a69-dfcf533fc9d6
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,208
supabase-export-v2
a6e0414f4ee03753
result is cached on the ``os.DirEntry`` object, with a separate cache for *follow_symlinks* ``True`` and ``False``. Call :func:`os.stat` along with :func:`stat.S_ISDIR` to fetch up-to-date information. On the first, uncached call, no system call is required in most cases. Specifically, for non-symlinks, neither Windows...
trusted_official_docs
CPython Docs
result is cached on the ``os.DirEntry`` object, with a separate cache for *follow_symlinks* ``True`` and ``False``. Call :func:`os.stat` along with :func:`stat.S_ISDIR` to fetch up-to-date information. On the first, uncached call, no system call is required in most cases. Specifically, for non-symlinks, neither Windows...
result is cached on the ``os.DirEntry`` object, with a separate cache for *follow_symlinks* ``True`` and ``False``. Call :func:`os.stat` along with :func:`stat.S_ISDIR` to fetch up-to-date information. On the first, uncached call, no system call is required in most cases. Specifically, for non-symlinks, neither Windows...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0e261831-aebf-4729-9023-3ffc89987974
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,243
supabase-export-v2
7a3ce1f2cbb379d2
.. versionchanged:: 3.6 Accepts a :term:`path-like object`. .. versionchanged:: 3.8 On Windows, all reparse points that can be resolved by the operating system are now followed, and passing ``follow_symlinks=False`` disables following all name surrogate reparse points. If the operating system reaches a reparse poin...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.6 Accepts a :term:`path-like object`. .. versionchanged:: 3.8 On Windows, all reparse points that can be resolved by the operating system are now followed, and passing ``follow_symlinks=False`` disables following all name surrogate reparse points. If the operating system reaches a reparse poin...
.. versionchanged:: 3.6 Accepts a :term:`path-like object`. .. versionchanged:: 3.8 On Windows, all reparse points that can be resolved by the operating system are now followed, and passing ``follow_symlinks=False`` disables following all name surrogate reparse points. If the operating system reaches a reparse poin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0f3fed3f-182e-4b79-a51e-f42262d05de1
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,677
supabase-export-v2
70c6f055ec3cc7a1
exist, ``ENODATA`` will be raised. If :data:`XATTR_CREATE` is given and the attribute already exists, the attribute will not be created and ``EEXISTS`` will be raised. This function can support :ref:`specifying a file descriptor <path_fd>` and :ref:`not following symlinks <follow_symlinks>`.
trusted_official_docs
CPython Docs
exist, ``ENODATA`` will be raised. If :data:`XATTR_CREATE` is given and the attribute already exists, the attribute will not be created and ``EEXISTS`` will be raised. This function can support :ref:`specifying a file descriptor <path_fd>` and :ref:`not following symlinks <follow_symlinks>`.
exist, ``ENODATA`` will be raised. If :data:`XATTR_CREATE` is given and the attribute already exists, the attribute will not be created and ``EEXISTS`` will be raised. This function can support :ref:`specifying a file descriptor <path_fd>` and :ref:`not following symlinks <follow_symlinks>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
10d32056-7a44-4df0-bd71-8a39a20432c8
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,855
supabase-export-v2
7cd17d0689d14f58
the place of the scheduler policy indicates that is not being provided. This argument is a combination of the C library :c:macro:`!POSIX_SPAWN_SETSCHEDPARAM` and :c:macro:`!POSIX_SPAWN_SETSCHEDULER` flags. .. audit-event:: os.posix_spawn path,argv,env os.posix_spawn
trusted_official_docs
CPython Docs
the place of the scheduler policy indicates that is not being provided. This argument is a combination of the C library :c:macro:`!POSIX_SPAWN_SETSCHEDPARAM` and :c:macro:`!POSIX_SPAWN_SETSCHEDULER` flags. .. audit-event:: os.posix_spawn path,argv,env os.posix_spawn
the place of the scheduler policy indicates that is not being provided. This argument is a combination of the C library :c:macro:`!POSIX_SPAWN_SETSCHEDPARAM` and :c:macro:`!POSIX_SPAWN_SETSCHEDULER` flags. .. audit-event:: os.posix_spawn path,argv,env os.posix_spawn
python, official-docs, cpython, P0
Local_Trusted_Corpus
11cb76ae-a753-4fe2-97cc-754f0b0c2e80
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,811
supabase-export-v2
a1513106b00f0d81
signal handler does not raise an exception, the function now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale). .. function:: readinto(fd, buffer, /)
trusted_official_docs
CPython Docs
signal handler does not raise an exception, the function now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale). .. function:: readinto(fd, buffer, /)
signal handler does not raise an exception, the function now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale). .. function:: readinto(fd, buffer, /)
python, official-docs, cpython, P0
Local_Trusted_Corpus
11d176e8-22b9-46a8-a56c-5f49134a9601
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,703
supabase-export-v2
724aac3bf93247e2
two primary ways DLLs are loaded now explicitly override the process-wide behavior to ensure consistency. See the :ref:`porting notes <bpo-36085-whatsnew>` for information on updating libraries. .. function:: execl(path, arg0, arg1, ...) execle(path, arg0, arg1, ..., env) execlp(file, arg0, arg1, ...) execlpe(file, ...
trusted_official_docs
CPython Docs
two primary ways DLLs are loaded now explicitly override the process-wide behavior to ensure consistency. See the :ref:`porting notes <bpo-36085-whatsnew>` for information on updating libraries. .. function:: execl(path, arg0, arg1, ...) execle(path, arg0, arg1, ..., env) execlp(file, arg0, arg1, ...) execlpe(file, ...
two primary ways DLLs are loaded now explicitly override the process-wide behavior to ensure consistency. See the :ref:`porting notes <bpo-36085-whatsnew>` for information on updating libraries. .. function:: execl(path, arg0, arg1, ...) execle(path, arg0, arg1, ..., env) execlp(file, arg0, arg1, ...) execlpe(file, ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
128fd6a1-2edf-44d3-97e0-f8bf41fbebd8
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,235
supabase-export-v2
61517d12c83c2e3a
This function normally follows symlinks; to stat a symlink add the argument ``follow_symlinks=False``, or use :func:`lstat`. This function can support :ref:`specifying a file descriptor <path_fd>` and :ref:`not following symlinks <follow_symlinks>`.
trusted_official_docs
CPython Docs
This function normally follows symlinks; to stat a symlink add the argument ``follow_symlinks=False``, or use :func:`lstat`. This function can support :ref:`specifying a file descriptor <path_fd>` and :ref:`not following symlinks <follow_symlinks>`.
This function normally follows symlinks; to stat a symlink add the argument ``follow_symlinks=False``, or use :func:`lstat`. This function can support :ref:`specifying a file descriptor <path_fd>` and :ref:`not following symlinks <follow_symlinks>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
12ac009b-aae0-43ab-8dc4-6e83bb541fbf
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,852
supabase-export-v2
13ad3a0ef60ac408
``None``. The files pointed to by *src* and *dst* must reside in the same filesystem, otherwise an :exc:`OSError` is raised with :attr:`~OSError.errno` set to :const:`errno.EXDEV`. This copy is done without the additional cost of transferring data from the kernel to user space and then back into the kernel. Additional...
trusted_official_docs
CPython Docs
``None``. The files pointed to by *src* and *dst* must reside in the same filesystem, otherwise an :exc:`OSError` is raised with :attr:`~OSError.errno` set to :const:`errno.EXDEV`. This copy is done without the additional cost of transferring data from the kernel to user space and then back into the kernel. Additional...
``None``. The files pointed to by *src* and *dst* must reside in the same filesystem, otherwise an :exc:`OSError` is raised with :attr:`~OSError.errno` set to :const:`errno.EXDEV`. This copy is done without the additional cost of transferring data from the kernel to user space and then back into the kernel. Additional...
python, official-docs, cpython, P0
Local_Trusted_Corpus
12d2a43e-7584-4ece-be52-a31bdd2db4d8
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,478
supabase-export-v2
89a3758843e6fada
.. note:: On newer versions of Windows 10, unprivileged accounts can create symlinks if Developer Mode is enabled. When Developer Mode is not available/enabled, the *SeCreateSymbolicLinkPrivilege* privilege is required, or the process must be run as an administrator.
trusted_official_docs
CPython Docs
.. note:: On newer versions of Windows 10, unprivileged accounts can create symlinks if Developer Mode is enabled. When Developer Mode is not available/enabled, the *SeCreateSymbolicLinkPrivilege* privilege is required, or the process must be run as an administrator.
.. note:: On newer versions of Windows 10, unprivileged accounts can create symlinks if Developer Mode is enabled. When Developer Mode is not available/enabled, the *SeCreateSymbolicLinkPrivilege* privilege is required, or the process must be run as an administrator.
python, official-docs, cpython, P0
Local_Trusted_Corpus
15da81c0-457d-45c6-a880-52767be550a0
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,439
supabase-export-v2
08601df6eb92a730
.. function:: getlogin() Return the name of the user logged in on the controlling terminal of the process. For most purposes, it is more useful to use :func:`getpass.getuser` since the latter checks the environment variables :envvar:`LOGNAME` or :envvar:`USERNAME` to find out who the user is, and falls back to ``pw...
trusted_official_docs
CPython Docs
.. function:: getlogin() Return the name of the user logged in on the controlling terminal of the process. For most purposes, it is more useful to use :func:`getpass.getuser` since the latter checks the environment variables :envvar:`LOGNAME` or :envvar:`USERNAME` to find out who the user is, and falls back to ``pw...
.. function:: getlogin() Return the name of the user logged in on the controlling terminal of the process. For most purposes, it is more useful to use :func:`getpass.getuser` since the latter checks the environment variables :envvar:`LOGNAME` or :envvar:`USERNAME` to find out who the user is, and falls back to ``pw...
python, official-docs, cpython, P0
Local_Trusted_Corpus
167cf21f-f95f-47eb-bd96-645f71e41e71
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,649
supabase-export-v2
5a2531ea2a207911
.. data:: TFD_TIMER_ABSTIME A flag for the :func:`timerfd_settime` and :func:`timerfd_settime_ns` functions. If this flag is set, *initial* is interpreted as an absolute value on the timer's clock (in UTC seconds or nanoseconds since the Unix Epoch).
trusted_official_docs
CPython Docs
.. data:: TFD_TIMER_ABSTIME A flag for the :func:`timerfd_settime` and :func:`timerfd_settime_ns` functions. If this flag is set, *initial* is interpreted as an absolute value on the timer's clock (in UTC seconds or nanoseconds since the Unix Epoch).
.. data:: TFD_TIMER_ABSTIME A flag for the :func:`timerfd_settime` and :func:`timerfd_settime_ns` functions. If this flag is set, *initial* is interpreted as an absolute value on the timer's clock (in UTC seconds or nanoseconds since the Unix Epoch).
python, official-docs, cpython, P0
Local_Trusted_Corpus
16e25b9c-1cde-49a7-a635-de918c332129
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,575
supabase-export-v2
20d3e02982d08907
their existing associations and moved to a new namespace. If the *flags* argument is ``0``, no changes are made to the calling process's execution context. .. availability:: Linux >= 2.6.16.
trusted_official_docs
CPython Docs
their existing associations and moved to a new namespace. If the *flags* argument is ``0``, no changes are made to the calling process's execution context. .. availability:: Linux >= 2.6.16.
their existing associations and moved to a new namespace. If the *flags* argument is ``0``, no changes are made to the calling process's execution context. .. availability:: Linux >= 2.6.16.
python, official-docs, cpython, P0
Local_Trusted_Corpus
171a30fd-00c4-4d8e-a68c-374276c9a8c3
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,216
supabase-export-v2
e535be4e18bf84f6
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. The result is cached on the ``os.DirEntry`` object. Call :func:`os.path.islink` to fetch up-to-date information.
trusted_official_docs
CPython Docs
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. The result is cached on the ``os.DirEntry`` object. Call :func:`os.path.islink` to fetch up-to-date information.
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. The result is cached on the ``os.DirEntry`` object. Call :func:`os.path.islink` to fetch up-to-date information.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1775a071-c827-4ea5-aa69-deb01488d511
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,783
supabase-export-v2
8a264f3c13b1064e
libc or malloc implementations other than those typically found in glibc to date are among those already more likely to experience deadlocks running such code. See `this discussion on fork being incompatible with threads <https://discuss.python.org/t/33555>`_ for technical details of why we're surfacing this longstan...
trusted_official_docs
CPython Docs
libc or malloc implementations other than those typically found in glibc to date are among those already more likely to experience deadlocks running such code. See `this discussion on fork being incompatible with threads <https://discuss.python.org/t/33555>`_ for technical details of why we're surfacing this longstan...
libc or malloc implementations other than those typically found in glibc to date are among those already more likely to experience deadlocks running such code. See `this discussion on fork being incompatible with threads <https://discuss.python.org/t/33555>`_ for technical details of why we're surfacing this longstan...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1777690f-a150-4897-9cf5-b883d1758d9c
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,706
supabase-export-v2
3311d36283e17d9d
so if there may be data buffered on these open files, you should flush them using :func:`~io.IOBase.flush` or :func:`os.fsync` before calling an :func:`exec\* <execl>` function. The "l" and "v" variants of the :func:`exec\* <execl>` functions differ in how command-line arguments are passed. The "l" variants are perhap...
trusted_official_docs
CPython Docs
so if there may be data buffered on these open files, you should flush them using :func:`~io.IOBase.flush` or :func:`os.fsync` before calling an :func:`exec\* <execl>` function. The "l" and "v" variants of the :func:`exec\* <execl>` functions differ in how command-line arguments are passed. The "l" variants are perhap...
so if there may be data buffered on these open files, you should flush them using :func:`~io.IOBase.flush` or :func:`os.fsync` before calling an :func:`exec\* <execl>` function. The "l" and "v" variants of the :func:`exec\* <execl>` functions differ in how command-line arguments are passed. The "l" variants are perhap...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1864f09d-b6bc-4cfc-b0c3-844c4f4b263c
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,784
supabase-export-v2
1ffc05300dd47c58
See `this discussion on fork being incompatible with threads <https://discuss.python.org/t/33555>`_ for technical details of why we're surfacing this longstanding platform compatibility problem to developers. .. availability:: POSIX, not WASI, not Android, not iOS.
trusted_official_docs
CPython Docs
See `this discussion on fork being incompatible with threads <https://discuss.python.org/t/33555>`_ for technical details of why we're surfacing this longstanding platform compatibility problem to developers. .. availability:: POSIX, not WASI, not Android, not iOS.
See `this discussion on fork being incompatible with threads <https://discuss.python.org/t/33555>`_ for technical details of why we're surfacing this longstanding platform compatibility problem to developers. .. availability:: POSIX, not WASI, not Android, not iOS.
python, official-docs, cpython, P0
Local_Trusted_Corpus
18ed2fb9-e803-4d4d-84e2-d81f6ea53cb6
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,574
supabase-export-v2
e5e3dfe8f0e60e1e
.. function:: unshare(flags) Disassociate parts of the process execution context, and move them into a newly created namespace. See the :manpage:`unshare(2)` man page for more details. The *flags* argument is a bit mask, combining zero or more of the :ref:`CLONE_* constants <os-unshare-clone-flags>`, that specifies...
trusted_official_docs
CPython Docs
.. function:: unshare(flags) Disassociate parts of the process execution context, and move them into a newly created namespace. See the :manpage:`unshare(2)` man page for more details. The *flags* argument is a bit mask, combining zero or more of the :ref:`CLONE_* constants <os-unshare-clone-flags>`, that specifies...
.. function:: unshare(flags) Disassociate parts of the process execution context, and move them into a newly created namespace. See the :manpage:`unshare(2)` man page for more details. The *flags* argument is a bit mask, combining zero or more of the :ref:`CLONE_* constants <os-unshare-clone-flags>`, that specifies...
python, official-docs, cpython, P0
Local_Trusted_Corpus
19b1cffd-3b35-4ddc-86e0-0fb05a26b4c0
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,355
supabase-export-v2
68cb41165b9e88e9
handler by default so that attempting to open a binary file in text mode is likely to raise an exception rather than producing nonsense data. The :ref:`Python UTF-8 Mode <utf8-mode>` is enabled by default. It can be disabled using the :option:`-X utf8=0 <-X>` command line option or the :envvar:`PYTHONUTF8=0 <PYTHONUTF8...
trusted_official_docs
CPython Docs
handler by default so that attempting to open a binary file in text mode is likely to raise an exception rather than producing nonsense data. The :ref:`Python UTF-8 Mode <utf8-mode>` is enabled by default. It can be disabled using the :option:`-X utf8=0 <-X>` command line option or the :envvar:`PYTHONUTF8=0 <PYTHONUTF8...
handler by default so that attempting to open a binary file in text mode is likely to raise an exception rather than producing nonsense data. The :ref:`Python UTF-8 Mode <utf8-mode>` is enabled by default. It can be disabled using the :option:`-X utf8=0 <-X>` command line option or the :envvar:`PYTHONUTF8=0 <PYTHONUTF8...
python, official-docs, cpython, P0
Local_Trusted_Corpus
19d373ce-6691-4fba-848c-df9319527e23
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,536
supabase-export-v2
ee9d6c4fffced6ce
This behaves exactly like :func:`walk`, except that it yields a 4-tuple ``(dirpath, dirnames, filenames, dirfd)``, and it supports ``dir_fd``. *dirpath*, *dirnames* and *filenames* are identical to :func:`walk` output, and *dirfd* is a file descriptor referring to the directory *dirpath*.
trusted_official_docs
CPython Docs
This behaves exactly like :func:`walk`, except that it yields a 4-tuple ``(dirpath, dirnames, filenames, dirfd)``, and it supports ``dir_fd``. *dirpath*, *dirnames* and *filenames* are identical to :func:`walk` output, and *dirfd* is a file descriptor referring to the directory *dirpath*.
This behaves exactly like :func:`walk`, except that it yields a 4-tuple ``(dirpath, dirnames, filenames, dirfd)``, and it supports ``dir_fd``. *dirpath*, *dirnames* and *filenames* are identical to :func:`walk` output, and *dirfd* is a file descriptor referring to the directory *dirpath*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1a224423-23ca-4c95-a589-81b04135ef8a
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,725
supabase-export-v2
b9b30ea21b314fbf
slave)`` for the pty and the tty, respectively. The new file descriptors are :ref:`non-inheritable <fd_inheritance>`. For a (slightly) more portable approach, use the :mod:`pty` module. .. availability:: Unix, not WASI.
trusted_official_docs
CPython Docs
slave)`` for the pty and the tty, respectively. The new file descriptors are :ref:`non-inheritable <fd_inheritance>`. For a (slightly) more portable approach, use the :mod:`pty` module. .. availability:: Unix, not WASI.
slave)`` for the pty and the tty, respectively. The new file descriptors are :ref:`non-inheritable <fd_inheritance>`. For a (slightly) more portable approach, use the :mod:`pty` module. .. availability:: Unix, not WASI.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1a7ae2ab-4abd-40b1-8910-52ad79c79542
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,469
supabase-export-v2
f78f8308f8072f2c
but will throw an exception if the functionality is used when it's not locally available. (Specifying ``True`` for *follow_symlinks* is always supported on all platforms.) To check whether a particular function accepts ``False`` for its *follow_symlinks* parameter, use the ``in`` operator on ``supports_follow_symlink...
trusted_official_docs
CPython Docs
but will throw an exception if the functionality is used when it's not locally available. (Specifying ``True`` for *follow_symlinks* is always supported on all platforms.) To check whether a particular function accepts ``False`` for its *follow_symlinks* parameter, use the ``in`` operator on ``supports_follow_symlink...
but will throw an exception if the functionality is used when it's not locally available. (Specifying ``True`` for *follow_symlinks* is always supported on all platforms.) To check whether a particular function accepts ``False`` for its *follow_symlinks* parameter, use the ``in`` operator on ``supports_follow_symlink...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1b7249ce-facb-4155-b6c2-9d42e80e4268
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,179
supabase-export-v2
cf01e616c4d1042d
all the files (excluding directories) in the given *path* that don't start with ``'.'``. The ``entry.is_file()`` call will generally not make an additional system call:: with os.scandir(path) as it: for entry in it: if not entry.name.startswith('.') and entry.is_file(): print(entry.name)
trusted_official_docs
CPython Docs
all the files (excluding directories) in the given *path* that don't start with ``'.'``. The ``entry.is_file()`` call will generally not make an additional system call:: with os.scandir(path) as it: for entry in it: if not entry.name.startswith('.') and entry.is_file(): print(entry.name)
all the files (excluding directories) in the given *path* that don't start with ``'.'``. The ``entry.is_file()`` call will generally not make an additional system call:: with os.scandir(path) as it: for entry in it: if not entry.name.startswith('.') and entry.is_file(): print(entry.name)
python, official-docs, cpython, P0
Local_Trusted_Corpus
1b74821d-7f84-4031-b28c-97c9dca2979e
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,934
supabase-export-v2
2d4e7a0161f728c2
:const:`R_OK`, :const:`W_OK`, and :const:`X_OK` to test permissions. Return :const:`True` if access is allowed, :const:`False` if not. See the Unix man page :manpage:`access(2)` for more information. This function can support specifying :ref:`paths relative to directory descriptors <dir_fd>` and :ref:`not following sy...
trusted_official_docs
CPython Docs
:const:`R_OK`, :const:`W_OK`, and :const:`X_OK` to test permissions. Return :const:`True` if access is allowed, :const:`False` if not. See the Unix man page :manpage:`access(2)` for more information. This function can support specifying :ref:`paths relative to directory descriptors <dir_fd>` and :ref:`not following sy...
:const:`R_OK`, :const:`W_OK`, and :const:`X_OK` to test permissions. Return :const:`True` if access is allowed, :const:`False` if not. See the Unix man page :manpage:`access(2)` for more information. This function can support specifying :ref:`paths relative to directory descriptors <dir_fd>` and :ref:`not following sy...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1c0c74e1-a2d3-4d4c-a152-38324f307e5f
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,465
supabase-export-v2
ffed425e0d6db4d4
provide different features, and the underlying functionality Python uses to accept open file descriptors as *path* arguments is not available on all platforms Python supports. To determine whether a particular function permits specifying an open file descriptor for its *path* parameter, use the ``in`` operator on ``s...
trusted_official_docs
CPython Docs
provide different features, and the underlying functionality Python uses to accept open file descriptors as *path* arguments is not available on all platforms Python supports. To determine whether a particular function permits specifying an open file descriptor for its *path* parameter, use the ``in`` operator on ``s...
provide different features, and the underlying functionality Python uses to accept open file descriptors as *path* arguments is not available on all platforms Python supports. To determine whether a particular function permits specifying an open file descriptor for its *path* parameter, use the ``in`` operator on ``s...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1ca07114-ab14-4429-9a27-7cd8b0b8f386
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,048
supabase-export-v2
f65c79ea99bed65a
permissions allowing. However, users are generally not familiar with them, and so the recommended use of this function is to retrieve mount points using :func:`os.listmounts`. May raise :exc:`OSError` if an error occurs collecting the volumes.
trusted_official_docs
CPython Docs
permissions allowing. However, users are generally not familiar with them, and so the recommended use of this function is to retrieve mount points using :func:`os.listmounts`. May raise :exc:`OSError` if an error occurs collecting the volumes.
permissions allowing. However, users are generally not familiar with them, and so the recommended use of this function is to retrieve mount points using :func:`os.listmounts`. May raise :exc:`OSError` if an error occurs collecting the volumes.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1cb82ba9-81fc-40ba-af4b-98d188286f73
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
43,872
supabase-export-v2
7873b148c3fc8c73
Note that :c:func:`fork` calls made by third-party C code may not call those functions, unless it explicitly calls :c:func:`PyOS_BeforeFork`, :c:func:`PyOS_AfterFork_Parent` and :c:func:`PyOS_AfterFork_Child`. There is no way to unregister a function.
trusted_official_docs
CPython Docs
Note that :c:func:`fork` calls made by third-party C code may not call those functions, unless it explicitly calls :c:func:`PyOS_BeforeFork`, :c:func:`PyOS_AfterFork_Parent` and :c:func:`PyOS_AfterFork_Child`. There is no way to unregister a function.
Note that :c:func:`fork` calls made by third-party C code may not call those functions, unless it explicitly calls :c:func:`PyOS_BeforeFork`, :c:func:`PyOS_AfterFork_Parent` and :c:func:`PyOS_AfterFork_Child`. There is no way to unregister a function.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1cce709a-453e-472e-8214-115b0e1fa6f2
CPython Docs
file://datasets/cpython/Doc/library/os.rst
unknown
45983a6c-a22f-4481-a12a-a922736c8c3f
42,769
supabase-export-v2
a47cd9dbb2490f99
High priority read/write. Allows block-based filesystems to use polling of the device, which provides lower latency, but may use additional resources. Currently, on Linux, this feature is usable only on a file descriptor opened using the :data:`O_DIRECT` flag.
trusted_official_docs
CPython Docs
High priority read/write. Allows block-based filesystems to use polling of the device, which provides lower latency, but may use additional resources. Currently, on Linux, this feature is usable only on a file descriptor opened using the :data:`O_DIRECT` flag.
High priority read/write. Allows block-based filesystems to use polling of the device, which provides lower latency, but may use additional resources. Currently, on Linux, this feature is usable only on a file descriptor opened using the :data:`O_DIRECT` flag.
python, official-docs, cpython, P0
Local_Trusted_Corpus