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
b1176f6f-fe6d-4b53-910a-02246eaeb1a3
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,040
supabase-export-v2
7fe4801ed34264f1
of headers and their own payload. The latter type of payload is indicated by the message having a MIME type such as :mimetype:`multipart/\*` or :mimetype:`message/rfc822`. The conceptual model provided by a :class:`Message` object is that of an ordered dictionary of headers with additional methods for accessing both sp...
trusted_official_docs
CPython Docs
of headers and their own payload. The latter type of payload is indicated by the message having a MIME type such as :mimetype:`multipart/\*` or :mimetype:`message/rfc822`. The conceptual model provided by a :class:`Message` object is that of an ordered dictionary of headers with additional methods for accessing both sp...
of headers and their own payload. The latter type of payload is indicated by the message having a MIME type such as :mimetype:`multipart/\*` or :mimetype:`message/rfc822`. The conceptual model provided by a :class:`Message` object is that of an ordered dictionary of headers with additional methods for accessing both sp...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b1ab116a-accb-442d-af6a-51fe2c2efc3c
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,160
supabase-export-v2
43460048fa0050f8
(the default) the header is moved to the end of the list of headers. If *replace* is ``True``, the header will be updated in place. .. versionchanged:: 3.4 ``replace`` keyword was added.
trusted_official_docs
CPython Docs
(the default) the header is moved to the end of the list of headers. If *replace* is ``True``, the header will be updated in place. .. versionchanged:: 3.4 ``replace`` keyword was added.
(the default) the header is moved to the end of the list of headers. If *replace* is ``True``, the header will be updated in place. .. versionchanged:: 3.4 ``replace`` keyword was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b233f6d5-ad77-4a4c-b6a8-95a439b89917
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,145
supabase-export-v2
0fcd314530702bf5
parameter the value is the empty string, otherwise the value is as described in :meth:`get_param` and is unquoted if optional *unquote* is ``True`` (the default). Optional *failobj* is the object to return if there is no :mailheader:`Content-Type` header. Optional *header* is the header to search instead of :mailhead...
trusted_official_docs
CPython Docs
parameter the value is the empty string, otherwise the value is as described in :meth:`get_param` and is unquoted if optional *unquote* is ``True`` (the default). Optional *failobj* is the object to return if there is no :mailheader:`Content-Type` header. Optional *header* is the header to search instead of :mailhead...
parameter the value is the empty string, otherwise the value is as described in :meth:`get_param` and is unquoted if optional *unquote* is ``True`` (the default). Optional *failobj* is the object to return if there is no :mailheader:`Content-Type` header. Optional *header* is the header to search instead of :mailhead...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bb824adc-f966-4fa2-8414-1c348f2b4024
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,082
supabase-export-v2
e186f14b66429381
.. method:: set_charset(charset) Set the character set of the payload to *charset*, which can either be a :class:`~email.charset.Charset` instance (see :mod:`email.charset`), a string naming a character set, or ``None``. If it is a string, it will be converted to a :class:`~email.charset.Charset` instance. If *chars...
trusted_official_docs
CPython Docs
.. method:: set_charset(charset) Set the character set of the payload to *charset*, which can either be a :class:`~email.charset.Charset` instance (see :mod:`email.charset`), a string naming a character set, or ``None``. If it is a string, it will be converted to a :class:`~email.charset.Charset` instance. If *chars...
.. method:: set_charset(charset) Set the character set of the payload to *charset*, which can either be a :class:`~email.charset.Charset` instance (see :mod:`email.charset`), a string naming a character set, or ``None``. If it is a string, it will be converted to a :class:`~email.charset.Charset` instance. If *chars...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bd6f50b5-6e2a-4360-b4a3-c237b365a456
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,083
supabase-export-v2
abbc4487fdb4a243
is ``None``, the ``charset`` parameter will be removed from the :mailheader:`Content-Type` header (the message will not be otherwise modified). Anything else will generate a :exc:`TypeError`. If there is no existing :mailheader:`MIME-Version` header one will be added. If there is no existing :mailheader:`Content-Type`...
trusted_official_docs
CPython Docs
is ``None``, the ``charset`` parameter will be removed from the :mailheader:`Content-Type` header (the message will not be otherwise modified). Anything else will generate a :exc:`TypeError`. If there is no existing :mailheader:`MIME-Version` header one will be added. If there is no existing :mailheader:`Content-Type`...
is ``None``, the ``charset`` parameter will be removed from the :mailheader:`Content-Type` header (the message will not be otherwise modified). Anything else will generate a :exc:`TypeError`. If there is no existing :mailheader:`MIME-Version` header one will be added. If there is no existing :mailheader:`Content-Type`...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c596cedc-b761-4fcc-af03-609e9d5dcb18
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,041
supabase-export-v2
36af349bfaf54e40
the message, and for recursively walking over the object tree. Note that duplicate headers are supported but special methods must be used to access them. The :class:`Message` pseudo-dictionary is indexed by the header names, which must be ASCII values. The values of the dictionary are strings that are supposed to conta...
trusted_official_docs
CPython Docs
the message, and for recursively walking over the object tree. Note that duplicate headers are supported but special methods must be used to access them. The :class:`Message` pseudo-dictionary is indexed by the header names, which must be ASCII values. The values of the dictionary are strings that are supposed to conta...
the message, and for recursively walking over the object tree. Note that duplicate headers are supported but special methods must be used to access them. The :class:`Message` pseudo-dictionary is indexed by the header names, which must be ASCII values. The values of the dictionary are strings that are supposed to conta...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c792d011-2291-4002-a521-63824111e701
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,156
supabase-export-v2
8c8553134500b824
.. method:: set_param(param, value, header='Content-Type', requote=True, \ charset=None, language='', replace=False) Set a parameter in the :mailheader:`Content-Type` header. If the parameter already exists in the header, its value will be replaced with *value*. If the :mailheader:`Content-Type` header as not yet bee...
trusted_official_docs
CPython Docs
.. method:: set_param(param, value, header='Content-Type', requote=True, \ charset=None, language='', replace=False) Set a parameter in the :mailheader:`Content-Type` header. If the parameter already exists in the header, its value will be replaced with *value*. If the :mailheader:`Content-Type` header as not yet bee...
.. method:: set_param(param, value, header='Content-Type', requote=True, \ charset=None, language='', replace=False) Set a parameter in the :mailheader:`Content-Type` header. If the parameter already exists in the header, its value will be replaced with *value*. If the :mailheader:`Content-Type` header as not yet bee...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c9f2024a-0a8e-4e0b-96fe-a4eaba15edc6
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,073
supabase-export-v2
1d18b9b8ce46ec2e
a string when :meth:`is_multipart` is ``False``. If the payload is a list and you mutate the list object, you modify the message's payload in place. With optional argument *i*, :meth:`get_payload` will return the *i*-th element of the payload, counting from zero, if :meth:`is_multipart` is ``True``. An :exc:`IndexErr...
trusted_official_docs
CPython Docs
a string when :meth:`is_multipart` is ``False``. If the payload is a list and you mutate the list object, you modify the message's payload in place. With optional argument *i*, :meth:`get_payload` will return the *i*-th element of the payload, counting from zero, if :meth:`is_multipart` is ``True``. An :exc:`IndexErr...
a string when :meth:`is_multipart` is ``False``. If the payload is a list and you mutate the list object, you modify the message's payload in place. With optional argument *i*, :meth:`get_payload` will return the *i*-th element of the payload, counting from zero, if :meth:`is_multipart` is ``True``. An :exc:`IndexErr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cd395624-76c5-492c-8a67-b166858a2249
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,166
supabase-export-v2
419a6f05eee74920
all the parameters in place. If *requote* is ``False``, this leaves the existing header's quoting as is, otherwise the parameters will be quoted (the default). An alternative header can be specified in the *header* argument. When the :mailheader:`Content-Type` header is set a :mailheader:`MIME-Version` header is also...
trusted_official_docs
CPython Docs
all the parameters in place. If *requote* is ``False``, this leaves the existing header's quoting as is, otherwise the parameters will be quoted (the default). An alternative header can be specified in the *header* argument. When the :mailheader:`Content-Type` header is set a :mailheader:`MIME-Version` header is also...
all the parameters in place. If *requote* is ``False``, this leaves the existing header's quoting as is, otherwise the parameters will be quoted (the default). An alternative header can be specified in the *header* argument. When the :mailheader:`Content-Type` header is set a :mailheader:`MIME-Version` header is also...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ce633784-0e4b-4333-8879-7e5b4bcd650c
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,159
supabase-export-v2
71a5605470c3d15a
will be encoded according to :rfc:`2231`. Optional *language* specifies the RFC 2231 language, defaulting to the empty string. Both *charset* and *language* should be strings. If *replace* is ``False`` (the default) the header is moved to the end of the list of headers. If *replace* is ``True``, the header will be up...
trusted_official_docs
CPython Docs
will be encoded according to :rfc:`2231`. Optional *language* specifies the RFC 2231 language, defaulting to the empty string. Both *charset* and *language* should be strings. If *replace* is ``False`` (the default) the header is moved to the end of the list of headers. If *replace* is ``True``, the header will be up...
will be encoded according to :rfc:`2231`. Optional *language* specifies the RFC 2231 language, defaulting to the empty string. Both *charset* and *language* should be strings. If *replace* is ``False`` (the default) the header is moved to the end of the list of headers. If *replace* is ``True``, the header will be up...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cfbfea57-cb4d-4212-9134-c6a2bce37248
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,115
supabase-export-v2
7bb989b76608ff87
of the named header field. This is identical to :meth:`~object.__getitem__` except that optional *failobj* is returned if the named header is missing (defaults to ``None``). Here are some additional useful methods:
trusted_official_docs
CPython Docs
of the named header field. This is identical to :meth:`~object.__getitem__` except that optional *failobj* is returned if the named header is missing (defaults to ``None``). Here are some additional useful methods:
of the named header field. This is identical to :meth:`~object.__getitem__` except that optional *failobj* is returned if the named header is missing (defaults to ``None``). Here are some additional useful methods:
python, official-docs, cpython, P0
Local_Trusted_Corpus
cfd8e46b-eab9-45d1-b729-02397106669e
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,044
supabase-export-v2
a6014daefb3b7677
.. class:: Message(policy=compat32) If *policy* is specified (it must be an instance of a :mod:`~email.policy` class) use the rules it specifies to update and serialize the representation of the message. If *policy* is not set, use the :class:`compat32 <email.policy.Compat32>` policy, which maintains backward compat...
trusted_official_docs
CPython Docs
.. class:: Message(policy=compat32) If *policy* is specified (it must be an instance of a :mod:`~email.policy` class) use the rules it specifies to update and serialize the representation of the message. If *policy* is not set, use the :class:`compat32 <email.policy.Compat32>` policy, which maintains backward compat...
.. class:: Message(policy=compat32) If *policy* is specified (it must be an instance of a :mod:`~email.policy` class) use the rules it specifies to update and serialize the representation of the message. If *policy* is not set, use the :class:`compat32 <email.policy.Compat32>` policy, which maintains backward compat...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d7996042-8e8d-4c5d-a892-d9e93fa02829
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,192
supabase-export-v2
fccd4c5740b7032c
.. doctest:: >>> for part in msg.walk(): ... print(part.get_content_maintype() == 'multipart', ... part.is_multipart()) True True False False False True False False False False False True False False >>> _structure(msg) multipart/report text/plain message/delivery-status text/plain text/plain message/rf...
trusted_official_docs
CPython Docs
.. doctest:: >>> for part in msg.walk(): ... print(part.get_content_maintype() == 'multipart', ... part.is_multipart()) True True False False False True False False False False False True False False >>> _structure(msg) multipart/report text/plain message/delivery-status text/plain text/plain message/rf...
.. doctest:: >>> for part in msg.walk(): ... print(part.get_content_maintype() == 'multipart', ... part.is_multipart()) True True False False False True False False False False False True False False >>> _structure(msg) multipart/report text/plain message/delivery-status text/plain text/plain message/rf...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d802fa3b-ef9e-47a6-aae4-62926ebfbb3c
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,091
supabase-export-v2
d780d85928a7fc99
These semantic differences are intentional and are biased toward maximal convenience. Note that in all cases, any envelope header present in the message is not included in the mapping interface.
trusted_official_docs
CPython Docs
These semantic differences are intentional and are biased toward maximal convenience. Note that in all cases, any envelope header present in the message is not included in the mapping interface.
These semantic differences are intentional and are biased toward maximal convenience. Note that in all cases, any envelope header present in the message is not included in the mapping interface.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d98df5a0-15bf-44b2-9708-f0d7f79ddc9d
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,155
supabase-export-v2
c731d32e2f410f61
legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the *params* property of the individual header objects returned by the header access methods. .. method:: set_param(param, value, header='Content-Type', requote=True, \ charset=None, language='', replace=False)
trusted_official_docs
CPython Docs
legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the *params* property of the individual header objects returned by the header access methods. .. method:: set_param(param, value, header='Content-Type', requote=True, \ charset=None, language='', replace=False)
legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the *params* property of the individual header objects returned by the header access methods. .. method:: set_param(param, value, header='Content-Type', requote=True, \ charset=None, language='', replace=False)
python, official-docs, cpython, P0
Local_Trusted_Corpus
d99dae9c-cdd7-4f2b-9497-6cbf38315fa3
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,147
supabase-export-v2
99fbe70b6aeea2b8
legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the *params* property of the individual header objects returned by the header access methods. .. method:: get_param(param, failobj=None, header='content-type', unquote=True)
trusted_official_docs
CPython Docs
legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the *params* property of the individual header objects returned by the header access methods. .. method:: get_param(param, failobj=None, header='content-type', unquote=True)
legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the *params* property of the individual header objects returned by the header access methods. .. method:: get_param(param, failobj=None, header='content-type', unquote=True)
python, official-docs, cpython, P0
Local_Trusted_Corpus
dc8cc0a5-bec1-4edb-ae60-82acf76294ca
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,035
supabase-export-v2
319a91936b431a1b
:mod:`email.message.Message`: Representing an email message using the :data:`~email.policy.compat32` API -------------------------------------------------------------------------------------------------------- .. module:: email.message :synopsis: The base class representing email messages in a fashion backward compat...
trusted_official_docs
CPython Docs
:mod:`email.message.Message`: Representing an email message using the :data:`~email.policy.compat32` API -------------------------------------------------------------------------------------------------------- .. module:: email.message :synopsis: The base class representing email messages in a fashion backward compat...
:mod:`email.message.Message`: Representing an email message using the :data:`~email.policy.compat32` API -------------------------------------------------------------------------------------------------------- .. module:: email.message :synopsis: The base class representing email messages in a fashion backward compat...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e0d103bc-6b4f-48c5-a02d-ff2a3768db5a
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,150
supabase-export-v2
63a89a94270f5144
Optional *header* if given, specifies the message header to use instead of :mailheader:`Content-Type`. Parameter keys are always compared case insensitively. The return value can either be a string, or a 3-tuple if the parameter was :rfc:`2231` encoded. When it's a 3-tuple, the elements of the value are of the form ...
trusted_official_docs
CPython Docs
Optional *header* if given, specifies the message header to use instead of :mailheader:`Content-Type`. Parameter keys are always compared case insensitively. The return value can either be a string, or a 3-tuple if the parameter was :rfc:`2231` encoded. When it's a 3-tuple, the elements of the value are of the form ...
Optional *header* if given, specifies the message header to use instead of :mailheader:`Content-Type`. Parameter keys are always compared case insensitively. The return value can either be a string, or a 3-tuple if the parameter was :rfc:`2231` encoded. When it's a 3-tuple, the elements of the value are of the form ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e0d6abff-0b55-425a-b355-994c97000f8e
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,049
supabase-export-v2
5e09cad4cab46fcb
the :class:`Message` if defaults need to be filled in to complete the transformation to a string (for example, MIME boundaries may be generated or modified). Note that this method is provided as a convenience and may not always format the message the way you want. For example, by default it does not do the mangling o...
trusted_official_docs
CPython Docs
the :class:`Message` if defaults need to be filled in to complete the transformation to a string (for example, MIME boundaries may be generated or modified). Note that this method is provided as a convenience and may not always format the message the way you want. For example, by default it does not do the mangling o...
the :class:`Message` if defaults need to be filled in to complete the transformation to a string (for example, MIME boundaries may be generated or modified). Note that this method is provided as a convenience and may not always format the message the way you want. For example, by default it does not do the mangling o...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e162dc5f-f5d0-4a09-949b-46723278aa97
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,134
supabase-export-v2
6438a53f5570e286
default type as given by :meth:`get_default_type` will be returned. Since according to :rfc:`2045`, messages always have a default type, :meth:`get_content_type` will always return a value. :rfc:`2045` defines a message's default type to be :mimetype:`text/plain` unless it appears inside a :mimetype:`multipart/digest`...
trusted_official_docs
CPython Docs
default type as given by :meth:`get_default_type` will be returned. Since according to :rfc:`2045`, messages always have a default type, :meth:`get_content_type` will always return a value. :rfc:`2045` defines a message's default type to be :mimetype:`text/plain` unless it appears inside a :mimetype:`multipart/digest`...
default type as given by :meth:`get_default_type` will be returned. Since according to :rfc:`2045`, messages always have a default type, :meth:`get_content_type` will always return a value. :rfc:`2045` defines a message's default type to be :mimetype:`text/plain` unless it appears inside a :mimetype:`multipart/digest`...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e280aebf-317c-4d5c-b366-6f400c76836e
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,120
supabase-export-v2
1c39bc4964b38289
additional header parameters can be provided as keyword arguments. *_name* is the header field to add and *_value* is the *primary* value for the header. For each item in the keyword argument dictionary *_params*, the key is taken as the parameter name, with underscores converted to dashes (since dashes are illegal i...
trusted_official_docs
CPython Docs
additional header parameters can be provided as keyword arguments. *_name* is the header field to add and *_value* is the *primary* value for the header. For each item in the keyword argument dictionary *_params*, the key is taken as the parameter name, with underscores converted to dashes (since dashes are illegal i...
additional header parameters can be provided as keyword arguments. *_name* is the header field to add and *_value* is the *primary* value for the header. For each item in the keyword argument dictionary *_params*, the key is taken as the parameter name, with underscores converted to dashes (since dashes are illegal i...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e5f3cb04-0b68-4c48-b804-60edfacc6524
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,058
supabase-export-v2
ce10a62660c2c2a7
the :class:`Message` if defaults need to be filled in to complete the transformation to a string (for example, MIME boundaries may be generated or modified). Note that this method is provided as a convenience and may not always format the message the way you want. For example, by default it does not do the mangling o...
trusted_official_docs
CPython Docs
the :class:`Message` if defaults need to be filled in to complete the transformation to a string (for example, MIME boundaries may be generated or modified). Note that this method is provided as a convenience and may not always format the message the way you want. For example, by default it does not do the mangling o...
the :class:`Message` if defaults need to be filled in to complete the transformation to a string (for example, MIME boundaries may be generated or modified). Note that this method is provided as a convenience and may not always format the message the way you want. For example, by default it does not do the mangling o...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ea4cdb52-c6a3-4748-9a9d-e210cfbc9923
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,157
supabase-export-v2
61db8353d023b1ff
as not yet been defined for this message, it will be set to :mimetype:`text/plain` and the new parameter value will be appended as per :rfc:`2045`. Optional *header* specifies an alternative header to :mailheader:`Content-Type`, and all parameters will be quoted as necessary unless optional *requote* is ``False`` (th...
trusted_official_docs
CPython Docs
as not yet been defined for this message, it will be set to :mimetype:`text/plain` and the new parameter value will be appended as per :rfc:`2045`. Optional *header* specifies an alternative header to :mailheader:`Content-Type`, and all parameters will be quoted as necessary unless optional *requote* is ``False`` (th...
as not yet been defined for this message, it will be set to :mimetype:`text/plain` and the new parameter value will be appended as per :rfc:`2045`. Optional *header* specifies an alternative header to :mailheader:`Content-Type`, and all parameters will be quoted as necessary unless optional *requote* is ``False`` (th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f10fe1e7-aa7d-474e-8f7d-2b8f3850620e
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,143
supabase-export-v2
6d3c3a1a9311f169
content type. *ctype* should either be :mimetype:`text/plain` or :mimetype:`message/rfc822`, although this is not enforced. The default content type is not stored in the :mailheader:`Content-Type` header. .. method:: get_params(failobj=None, header='content-type', unquote=True)
trusted_official_docs
CPython Docs
content type. *ctype* should either be :mimetype:`text/plain` or :mimetype:`message/rfc822`, although this is not enforced. The default content type is not stored in the :mailheader:`Content-Type` header. .. method:: get_params(failobj=None, header='content-type', unquote=True)
content type. *ctype* should either be :mimetype:`text/plain` or :mimetype:`message/rfc822`, although this is not enforced. The default content type is not stored in the :mailheader:`Content-Type` header. .. method:: get_params(failobj=None, header='content-type', unquote=True)
python, official-docs, cpython, P0
Local_Trusted_Corpus
f213f91f-4c85-47e8-a490-3c9c8a4db465
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,180
supabase-export-v2
3194e54c6f315745
is a :mimetype:`multipart`, then the list will contain one element for each subpart in the payload, otherwise, it will be a list of length 1. Each item in the list will be a string which is the value of the ``charset`` parameter in the :mailheader:`Content-Type` header for the represented subpart. However, if the sub...
trusted_official_docs
CPython Docs
is a :mimetype:`multipart`, then the list will contain one element for each subpart in the payload, otherwise, it will be a list of length 1. Each item in the list will be a string which is the value of the ``charset`` parameter in the :mailheader:`Content-Type` header for the represented subpart. However, if the sub...
is a :mimetype:`multipart`, then the list will contain one element for each subpart in the payload, otherwise, it will be a list of length 1. Each item in the list will be a string which is the value of the ``charset`` parameter in the :mailheader:`Content-Type` header for the represented subpart. However, if the sub...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f505eb23-ae5c-4bbf-8dea-451d9bf2ab2c
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,075
supabase-export-v2
d92e723e3b4ec002
In all cases the returned value is binary data. If the message is a multipart and the *decode* flag is ``True``, then ``None`` is returned. If the payload is base64 and it was not perfectly formed (missing padding, characters outside the base64 alphabet), then an appropriate defect will be added to the message's def...
trusted_official_docs
CPython Docs
In all cases the returned value is binary data. If the message is a multipart and the *decode* flag is ``True``, then ``None`` is returned. If the payload is base64 and it was not perfectly formed (missing padding, characters outside the base64 alphabet), then an appropriate defect will be added to the message's def...
In all cases the returned value is binary data. If the message is a multipart and the *decode* flag is ``True``, then ``None`` is returned. If the payload is base64 and it was not perfectly formed (missing padding, characters outside the base64 alphabet), then an appropriate defect will be added to the message's def...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f617f906-8c64-4892-96dc-ddb4d296b512
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,056
supabase-export-v2
b3e9936a3ee21206
.. method:: as_bytes(unixfrom=False, policy=None) Return the entire message flattened as a bytes object. When optional *unixfrom* is true, the envelope header is included in the returned string. *unixfrom* defaults to ``False``. The *policy* argument may be used to override the default policy obtained from the messa...
trusted_official_docs
CPython Docs
.. method:: as_bytes(unixfrom=False, policy=None) Return the entire message flattened as a bytes object. When optional *unixfrom* is true, the envelope header is included in the returned string. *unixfrom* defaults to ``False``. The *policy* argument may be used to override the default policy obtained from the messa...
.. method:: as_bytes(unixfrom=False, policy=None) Return the entire message flattened as a bytes object. When optional *unixfrom* is true, the envelope header is included in the returned string. *unixfrom* defaults to ``False``. The *policy* argument may be used to override the default policy obtained from the messa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fb7becd5-77fe-4333-93be-b5672480d445
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,051
supabase-export-v2
ff28e4dcb3602ba7
from io import StringIO from email.generator import Generator fp = StringIO() g = Generator(fp, mangle_from_=True, maxheaderlen=60) g.flatten(msg) text = fp.getvalue() If the message object contains binary data that is not encoded according to RFC standards, the non-compliant data will be replaced by unicode "unknown...
trusted_official_docs
CPython Docs
from io import StringIO from email.generator import Generator fp = StringIO() g = Generator(fp, mangle_from_=True, maxheaderlen=60) g.flatten(msg) text = fp.getvalue() If the message object contains binary data that is not encoded according to RFC standards, the non-compliant data will be replaced by unicode "unknown...
from io import StringIO from email.generator import Generator fp = StringIO() g = Generator(fp, mangle_from_=True, maxheaderlen=60) g.flatten(msg) text = fp.getvalue() If the message object contains binary data that is not encoded according to RFC standards, the non-compliant data will be replaced by unicode "unknown...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0980248f-41db-4885-9df6-07a7e13514e4
CPython Docs
file://datasets/cpython/Doc/library/constants.rst
unknown
2dd6d889-05c0-4c8b-a570-acc873a101b9
7,213
supabase-export-v2
c1131e3b455b73c0
.. data:: NotImplemented A special value which should be returned by the binary special methods (e.g. :meth:`~object.__eq__`, :meth:`~object.__lt__`, :meth:`~object.__add__`, :meth:`~object.__rsub__`, etc.) to indicate that the operation is not implemented with respect to the other type; may be returned by the in-pl...
trusted_official_docs
CPython Docs
.. data:: NotImplemented A special value which should be returned by the binary special methods (e.g. :meth:`~object.__eq__`, :meth:`~object.__lt__`, :meth:`~object.__add__`, :meth:`~object.__rsub__`, etc.) to indicate that the operation is not implemented with respect to the other type; may be returned by the in-pl...
.. data:: NotImplemented A special value which should be returned by the binary special methods (e.g. :meth:`~object.__eq__`, :meth:`~object.__lt__`, :meth:`~object.__add__`, :meth:`~object.__rsub__`, etc.) to indicate that the operation is not implemented with respect to the other type; may be returned by the in-pl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2244342a-4bc6-44c7-ac6c-4ff3f768b81b
CPython Docs
file://datasets/cpython/Doc/library/constants.rst
unknown
2dd6d889-05c0-4c8b-a570-acc873a101b9
7,215
supabase-export-v2
17cc9f9107f20325
.. note:: When a binary (or in-place) method returns :data:`!NotImplemented` the interpreter will try the reflected operation on the other type (or some other fallback, depending on the operator). If all attempts return :data:`!NotImplemented`, the interpreter will raise an appropriate exception. Incorrectly returni...
trusted_official_docs
CPython Docs
.. note:: When a binary (or in-place) method returns :data:`!NotImplemented` the interpreter will try the reflected operation on the other type (or some other fallback, depending on the operator). If all attempts return :data:`!NotImplemented`, the interpreter will raise an appropriate exception. Incorrectly returni...
.. note:: When a binary (or in-place) method returns :data:`!NotImplemented` the interpreter will try the reflected operation on the other type (or some other fallback, depending on the operator). If all attempts return :data:`!NotImplemented`, the interpreter will raise an appropriate exception. Incorrectly returni...
python, official-docs, cpython, P0
Local_Trusted_Corpus
315bb352-6179-40c7-896c-6bbeb722cbab
CPython Docs
file://datasets/cpython/Doc/library/constants.rst
unknown
2dd6d889-05c0-4c8b-a570-acc873a101b9
7,222
supabase-export-v2
c468c7de1755f3e7
.. index:: single: ...; ellipsis literal .. data:: Ellipsis The same as the ellipsis literal "``...``", an object frequently used to indicate that something is omitted. Assignment to ``Ellipsis`` is possible, but assignment to ``...`` raises a :exc:`SyntaxError`. ``Ellipsis`` is the sole instance of the :data:`types....
trusted_official_docs
CPython Docs
.. index:: single: ...; ellipsis literal .. data:: Ellipsis The same as the ellipsis literal "``...``", an object frequently used to indicate that something is omitted. Assignment to ``Ellipsis`` is possible, but assignment to ``...`` raises a :exc:`SyntaxError`. ``Ellipsis`` is the sole instance of the :data:`types....
.. index:: single: ...; ellipsis literal .. data:: Ellipsis The same as the ellipsis literal "``...``", an object frequently used to indicate that something is omitted. Assignment to ``Ellipsis`` is possible, but assignment to ``...`` raises a :exc:`SyntaxError`. ``Ellipsis`` is the sole instance of the :data:`types....
python, official-docs, cpython, P0
Local_Trusted_Corpus
37c04c47-6d9e-4801-bb65-8a799a80d3cb
CPython Docs
file://datasets/cpython/Doc/library/constants.rst
unknown
2dd6d889-05c0-4c8b-a570-acc873a101b9
7,219
supabase-export-v2
791ddb6ba816cfcd
:data:`!NotImplemented` and :exc:`!NotImplementedError` are not interchangeable. This constant should only be used as described above; see :exc:`NotImplementedError` for details on correct usage of the exception. .. versionchanged:: 3.9 Evaluating :data:`!NotImplemented` in a boolean context was deprecated.
trusted_official_docs
CPython Docs
:data:`!NotImplemented` and :exc:`!NotImplementedError` are not interchangeable. This constant should only be used as described above; see :exc:`NotImplementedError` for details on correct usage of the exception. .. versionchanged:: 3.9 Evaluating :data:`!NotImplemented` in a boolean context was deprecated.
:data:`!NotImplemented` and :exc:`!NotImplementedError` are not interchangeable. This constant should only be used as described above; see :exc:`NotImplementedError` for details on correct usage of the exception. .. versionchanged:: 3.9 Evaluating :data:`!NotImplemented` in a boolean context was deprecated.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3cb2f293-c29c-4761-99ea-e96a5efc111e
CPython Docs
file://datasets/cpython/Doc/library/constants.rst
unknown
2dd6d889-05c0-4c8b-a570-acc873a101b9
7,229
supabase-export-v2
8a3f97145e4a06a9
Constants added by the :mod:`site` module ----------------------------------------- The :mod:`site` module (which is imported automatically during startup, except if the :option:`-S` command-line option is given) adds several constants to the built-in namespace. They are useful for the interactive interpreter shell and...
trusted_official_docs
CPython Docs
Constants added by the :mod:`site` module ----------------------------------------- The :mod:`site` module (which is imported automatically during startup, except if the :option:`-S` command-line option is given) adds several constants to the built-in namespace. They are useful for the interactive interpreter shell and...
Constants added by the :mod:`site` module ----------------------------------------- The :mod:`site` module (which is imported automatically during startup, except if the :option:`-S` command-line option is given) adds several constants to the built-in namespace. They are useful for the interactive interpreter shell and...
python, official-docs, cpython, P0
Local_Trusted_Corpus
40bc442d-e1f3-4c0c-9ca6-e686469d110a
CPython Docs
file://datasets/cpython/Doc/library/constants.rst
unknown
2dd6d889-05c0-4c8b-a570-acc873a101b9
7,231
supabase-export-v2
14f48985a0bbda01
.. data:: quit(code=None) exit(code=None) Objects that when printed, print a message like "Use quit() or Ctrl-D (i.e. EOF) to exit", and when accessed directly in the interactive interpreter or called as functions, raise :exc:`SystemExit` with the specified exit code.
trusted_official_docs
CPython Docs
.. data:: quit(code=None) exit(code=None) Objects that when printed, print a message like "Use quit() or Ctrl-D (i.e. EOF) to exit", and when accessed directly in the interactive interpreter or called as functions, raise :exc:`SystemExit` with the specified exit code.
.. data:: quit(code=None) exit(code=None) Objects that when printed, print a message like "Use quit() or Ctrl-D (i.e. EOF) to exit", and when accessed directly in the interactive interpreter or called as functions, raise :exc:`SystemExit` with the specified exit code.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5cc86617-2a2e-4c91-a0af-f802e2ed916d
CPython Docs
file://datasets/cpython/Doc/library/constants.rst
unknown
2dd6d889-05c0-4c8b-a570-acc873a101b9
7,211
supabase-export-v2
4b4e43dc94be73f2
.. data:: None An object frequently used to represent the absence of a value, as when default arguments are not passed to a function. Assignments to ``None`` are illegal and raise a :exc:`SyntaxError`. ``None`` is the sole instance of the :data:`~types.NoneType` type.
trusted_official_docs
CPython Docs
.. data:: None An object frequently used to represent the absence of a value, as when default arguments are not passed to a function. Assignments to ``None`` are illegal and raise a :exc:`SyntaxError`. ``None`` is the sole instance of the :data:`~types.NoneType` type.
.. data:: None An object frequently used to represent the absence of a value, as when default arguments are not passed to a function. Assignments to ``None`` are illegal and raise a :exc:`SyntaxError`. ``None`` is the sole instance of the :data:`~types.NoneType` type.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6d56c7c8-16b1-4b97-be95-064db1fe1142
CPython Docs
file://datasets/cpython/Doc/library/constants.rst
unknown
2dd6d889-05c0-4c8b-a570-acc873a101b9
7,221
supabase-export-v2
d01567eb9e8318bf
.. versionchanged:: 3.14 Evaluating :data:`!NotImplemented` in a boolean context now raises a :exc:`TypeError`. It previously evaluated to :const:`True` and emitted a :exc:`DeprecationWarning` since Python 3.9. .. index:: single: ...; ellipsis literal .. data:: Ellipsis
trusted_official_docs
CPython Docs
.. versionchanged:: 3.14 Evaluating :data:`!NotImplemented` in a boolean context now raises a :exc:`TypeError`. It previously evaluated to :const:`True` and emitted a :exc:`DeprecationWarning` since Python 3.9. .. index:: single: ...; ellipsis literal .. data:: Ellipsis
.. versionchanged:: 3.14 Evaluating :data:`!NotImplemented` in a boolean context now raises a :exc:`TypeError`. It previously evaluated to :const:`True` and emitted a :exc:`DeprecationWarning` since Python 3.9. .. index:: single: ...; ellipsis literal .. data:: Ellipsis
python, official-docs, cpython, P0
Local_Trusted_Corpus
d1f5b371-c588-424a-b78d-79b6e710c0b3
CPython Docs
file://datasets/cpython/Doc/library/constants.rst
unknown
2dd6d889-05c0-4c8b-a570-acc873a101b9
7,237
supabase-export-v2
78035352f86bd25c
.. data:: license Object that when printed, prints the message "Type license() to see the full license text", and when called, displays the full license text in a pager-like fashion (one screen at a time).
trusted_official_docs
CPython Docs
.. data:: license Object that when printed, prints the message "Type license() to see the full license text", and when called, displays the full license text in a pager-like fashion (one screen at a time).
.. data:: license Object that when printed, prints the message "Type license() to see the full license text", and when called, displays the full license text in a pager-like fashion (one screen at a time).
python, official-docs, cpython, P0
Local_Trusted_Corpus
d8468455-b5d8-44de-b025-b512792edd8e
CPython Docs
file://datasets/cpython/Doc/library/constants.rst
unknown
2dd6d889-05c0-4c8b-a570-acc873a101b9
7,233
supabase-export-v2
126dcf20f1954a44
.. data:: help :noindex: Object that when printed, prints the message "Type help() for interactive help, or help(object) for help about object.", and when accessed directly in the interactive interpreter, invokes the built-in help system (see :func:`help`).
trusted_official_docs
CPython Docs
.. data:: help :noindex: Object that when printed, prints the message "Type help() for interactive help, or help(object) for help about object.", and when accessed directly in the interactive interpreter, invokes the built-in help system (see :func:`help`).
.. data:: help :noindex: Object that when printed, prints the message "Type help() for interactive help, or help(object) for help about object.", and when accessed directly in the interactive interpreter, invokes the built-in help system (see :func:`help`).
python, official-docs, cpython, P0
Local_Trusted_Corpus
e4f7dd37-ef25-4479-9a9d-eb86bb5c4a7d
CPython Docs
file://datasets/cpython/Doc/library/constants.rst
unknown
2dd6d889-05c0-4c8b-a570-acc873a101b9
7,220
supabase-export-v2
70a3002e29633f7c
.. versionchanged:: 3.9 Evaluating :data:`!NotImplemented` in a boolean context was deprecated. .. versionchanged:: 3.14 Evaluating :data:`!NotImplemented` in a boolean context now raises a :exc:`TypeError`. It previously evaluated to :const:`True` and emitted a :exc:`DeprecationWarning` since Python 3.9.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.9 Evaluating :data:`!NotImplemented` in a boolean context was deprecated. .. versionchanged:: 3.14 Evaluating :data:`!NotImplemented` in a boolean context now raises a :exc:`TypeError`. It previously evaluated to :const:`True` and emitted a :exc:`DeprecationWarning` since Python 3.9.
.. versionchanged:: 3.9 Evaluating :data:`!NotImplemented` in a boolean context was deprecated. .. versionchanged:: 3.14 Evaluating :data:`!NotImplemented` in a boolean context now raises a :exc:`TypeError`. It previously evaluated to :const:`True` and emitted a :exc:`DeprecationWarning` since Python 3.9.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1280b32b-b688-433d-b6d1-a9317956415c
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,269
supabase-export-v2
7c332daf4ea1ff8c
module code is executed. (Note that this is a minimal set of variables - other variables may be set implicitly as an interpreter implementation detail.) ``__name__`` is set to *run_name* if this optional argument is not :const:`None` and to ``'<run_path>'`` otherwise.
trusted_official_docs
CPython Docs
module code is executed. (Note that this is a minimal set of variables - other variables may be set implicitly as an interpreter implementation detail.) ``__name__`` is set to *run_name* if this optional argument is not :const:`None` and to ``'<run_path>'`` otherwise.
module code is executed. (Note that this is a minimal set of variables - other variables may be set implicitly as an interpreter implementation detail.) ``__name__`` is set to *run_name* if this optional argument is not :const:`None` and to ``'<run_path>'`` otherwise.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1a1c6be6-160d-4a94-8f47-09d7a19aa587
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,268
supabase-export-v2
aee2f08cc61f0893
is executed. *init_globals* will not be modified. If any of the special global variables below are defined in *init_globals*, those definitions are overridden by :func:`run_path`. The special global variables ``__name__``, ``__spec__``, ``__file__``, ``__loader__`` and ``__package__`` are set in the globals dictionary...
trusted_official_docs
CPython Docs
is executed. *init_globals* will not be modified. If any of the special global variables below are defined in *init_globals*, those definitions are overridden by :func:`run_path`. The special global variables ``__name__``, ``__spec__``, ``__file__``, ``__loader__`` and ``__package__`` are set in the globals dictionary...
is executed. *init_globals* will not be modified. If any of the special global variables below are defined in *init_globals*, those definitions are overridden by :func:`run_path`. The special global variables ``__name__``, ``__spec__``, ``__file__``, ``__loader__`` and ``__package__`` are set in the globals dictionary...
python, official-docs, cpython, P0
Local_Trusted_Corpus
203e8e4b-0b90-4ce2-9617-45c27d32047c
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,256
supabase-export-v2
5a82d2166d51bda1
updated with a temporary module object for the module being executed. Both ``sys.argv[0]`` and ``sys.modules[__name__]`` are restored to their original values before the function returns. Note that this manipulation of :mod:`sys` is not thread-safe. Other threads may see the partially initialised module, as well as th...
trusted_official_docs
CPython Docs
updated with a temporary module object for the module being executed. Both ``sys.argv[0]`` and ``sys.modules[__name__]`` are restored to their original values before the function returns. Note that this manipulation of :mod:`sys` is not thread-safe. Other threads may see the partially initialised module, as well as th...
updated with a temporary module object for the module being executed. Both ``sys.argv[0]`` and ``sys.modules[__name__]`` are restored to their original values before the function returns. Note that this manipulation of :mod:`sys` is not thread-safe. Other threads may see the partially initialised module, as well as th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2b3a2ed8-87e1-4ce7-81e7-067810c74ef8
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,249
supabase-export-v2
4c2d98398ff76b94
dictionary. The module's code is first located using the standard import mechanism (refer to :pep:`302` for details) and then executed in a fresh module namespace. The *mod_name* argument should be an absolute module name. If the module name refers to a package rather than a normal module, then that package is importe...
trusted_official_docs
CPython Docs
dictionary. The module's code is first located using the standard import mechanism (refer to :pep:`302` for details) and then executed in a fresh module namespace. The *mod_name* argument should be an absolute module name. If the module name refers to a package rather than a normal module, then that package is importe...
dictionary. The module's code is first located using the standard import mechanism (refer to :pep:`302` for details) and then executed in a fresh module namespace. The *mod_name* argument should be an absolute module name. If the module name refers to a package rather than a normal module, then that package is importe...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2cd7de92-d778-4ca7-9db7-f4603d5d42c3
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,251
supabase-export-v2
8a4cdcdbbbf0cd8b
is executed. *init_globals* will not be modified. If any of the special global variables below are defined in *init_globals*, those definitions are overridden by :func:`run_module`. The special global variables ``__name__``, ``__spec__``, ``__file__``, ``__loader__`` and ``__package__`` are set in the globals dictiona...
trusted_official_docs
CPython Docs
is executed. *init_globals* will not be modified. If any of the special global variables below are defined in *init_globals*, those definitions are overridden by :func:`run_module`. The special global variables ``__name__``, ``__spec__``, ``__file__``, ``__loader__`` and ``__package__`` are set in the globals dictiona...
is executed. *init_globals* will not be modified. If any of the special global variables below are defined in *init_globals*, those definitions are overridden by :func:`run_module`. The special global variables ``__name__``, ``__spec__``, ``__file__``, ``__loader__`` and ``__package__`` are set in the globals dictiona...
python, official-docs, cpython, P0
Local_Trusted_Corpus
32446617-9569-47d5-98e9-ac5cc3097f50
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,252
supabase-export-v2
1a47b0b37dd746cf
module code is executed. (Note that this is a minimal set of variables - other variables may be set implicitly as an interpreter implementation detail.) ``__name__`` is set to *run_name* if this optional argument is not :const:`None`, to ``mod_name + '.__main__'`` if the named module is a package and to the *mod_name...
trusted_official_docs
CPython Docs
module code is executed. (Note that this is a minimal set of variables - other variables may be set implicitly as an interpreter implementation detail.) ``__name__`` is set to *run_name* if this optional argument is not :const:`None`, to ``mod_name + '.__main__'`` if the named module is a package and to the *mod_name...
module code is executed. (Note that this is a minimal set of variables - other variables may be set implicitly as an interpreter implementation detail.) ``__name__`` is set to *run_name* if this optional argument is not :const:`None`, to ``mod_name + '.__main__'`` if the named module is a package and to the *mod_name...
python, official-docs, cpython, P0
Local_Trusted_Corpus
331aada5-021a-44f8-9b18-0c1bab083edb
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,250
supabase-export-v2
8c628b4ca0138c62
a normal module, then that package is imported and the :mod:`__main__` submodule within that package is then executed and the resulting module globals dictionary returned. The optional dictionary argument *init_globals* may be used to pre-populate the module's globals dictionary before the code is executed. *init_glob...
trusted_official_docs
CPython Docs
a normal module, then that package is imported and the :mod:`__main__` submodule within that package is then executed and the resulting module globals dictionary returned. The optional dictionary argument *init_globals* may be used to pre-populate the module's globals dictionary before the code is executed. *init_glob...
a normal module, then that package is imported and the :mod:`__main__` submodule within that package is then executed and the resulting module globals dictionary returned. The optional dictionary argument *init_globals* may be used to pre-populate the module's globals dictionary before the code is executed. *init_glob...
python, official-docs, cpython, P0
Local_Trusted_Corpus
390c5646-4de0-4f1a-8da1-fb98e9471984
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,244
supabase-export-v2
eb5493537ac7d027
executed in the current process, and any side effects (such as cached imports of other modules) will remain in place after the functions have returned. Furthermore, any functions and classes defined by the executed code are not guaranteed to work correctly after a :mod:`!runpy` function has returned. If that limitation...
trusted_official_docs
CPython Docs
executed in the current process, and any side effects (such as cached imports of other modules) will remain in place after the functions have returned. Furthermore, any functions and classes defined by the executed code are not guaranteed to work correctly after a :mod:`!runpy` function has returned. If that limitation...
executed in the current process, and any side effects (such as cached imports of other modules) will remain in place after the functions have returned. Furthermore, any functions and classes defined by the executed code are not guaranteed to work correctly after a :mod:`!runpy` function has returned. If that limitation...
python, official-docs, cpython, P0
Local_Trusted_Corpus
42ae4677-bf11-439a-98a7-b086c9f6de83
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,255
supabase-export-v2
02f0e1ef0a41afac
``__file__``, ``__loader__`` and ``__package__`` are :ref:`set as normal <import-mod-attrs>` based on the module spec. If the argument *alter_sys* is supplied and evaluates to :const:`True`, then ``sys.argv[0]`` is updated with the value of ``__file__`` and ``sys.modules[__name__]`` is updated with a temporary module...
trusted_official_docs
CPython Docs
``__file__``, ``__loader__`` and ``__package__`` are :ref:`set as normal <import-mod-attrs>` based on the module spec. If the argument *alter_sys* is supplied and evaluates to :const:`True`, then ``sys.argv[0]`` is updated with the value of ``__file__`` and ``sys.modules[__name__]`` is updated with a temporary module...
``__file__``, ``__loader__`` and ``__package__`` are :ref:`set as normal <import-mod-attrs>` based on the module spec. If the argument *alter_sys* is supplied and evaluates to :const:`True`, then ``sys.argv[0]`` is updated with the value of ``__file__`` and ``sys.modules[__name__]`` is updated with a temporary module...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4583c84f-846e-41ca-9998-c2b0e0d4f7f9
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,265
supabase-export-v2
4267c83eb66666db
.. index:: pair: module; __main__ Execute the code at the named filesystem location and return the resulting module's globals dictionary. As with a script name supplied to the CPython command line, *file_path* may refer to a Python source file, a compiled bytecode file or a valid :data:`sys.path` entry containing a ...
trusted_official_docs
CPython Docs
.. index:: pair: module; __main__ Execute the code at the named filesystem location and return the resulting module's globals dictionary. As with a script name supplied to the CPython command line, *file_path* may refer to a Python source file, a compiled bytecode file or a valid :data:`sys.path` entry containing a ...
.. index:: pair: module; __main__ Execute the code at the named filesystem location and return the resulting module's globals dictionary. As with a script name supplied to the CPython command line, *file_path* may refer to a Python source file, a compiled bytecode file or a valid :data:`sys.path` entry containing a ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
55c63ed8-4f1c-4d52-9c0d-0578f61fb449
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,276
supabase-export-v2
8cf933aae7e7aede
.. versionadded:: 3.2 .. versionchanged:: 3.4 Updated to take advantage of the module spec feature added by :pep:`451`. This allows ``__cached__`` to be set correctly in the case where ``__main__`` is imported from a valid :data:`sys.path` entry rather than being executed directly.
trusted_official_docs
CPython Docs
.. versionadded:: 3.2 .. versionchanged:: 3.4 Updated to take advantage of the module spec feature added by :pep:`451`. This allows ``__cached__`` to be set correctly in the case where ``__main__`` is imported from a valid :data:`sys.path` entry rather than being executed directly.
.. versionadded:: 3.2 .. versionchanged:: 3.4 Updated to take advantage of the module spec feature added by :pep:`451`. This allows ``__cached__`` to be set correctly in the case where ``__main__`` is imported from a valid :data:`sys.path` entry rather than being executed directly.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5766094f-a806-47ff-9179-e8b01423e70a
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,254
supabase-export-v2
3a6216e374f2bbbb
``__spec__`` will be set appropriately for the *actually* imported module (that is, ``__spec__.name`` will always be *mod_name* or ``mod_name + '.__main__'``, never *run_name*). ``__file__``, ``__loader__`` and ``__package__`` are :ref:`set as normal <import-mod-attrs>` based on the module spec.
trusted_official_docs
CPython Docs
``__spec__`` will be set appropriately for the *actually* imported module (that is, ``__spec__.name`` will always be *mod_name* or ``mod_name + '.__main__'``, never *run_name*). ``__file__``, ``__loader__`` and ``__package__`` are :ref:`set as normal <import-mod-attrs>` based on the module spec.
``__spec__`` will be set appropriately for the *actually* imported module (that is, ``__spec__.name`` will always be *mod_name* or ``mod_name + '.__main__'``, never *run_name*). ``__file__``, ``__loader__`` and ``__package__`` are :ref:`set as normal <import-mod-attrs>` based on the module spec.
python, official-docs, cpython, P0
Local_Trusted_Corpus
594a2164-485c-4422-b472-d1475c9a06cd
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,245
supabase-export-v2
8ca88740066c80c7
has returned. If that limitation is not acceptable for a given use case, :mod:`importlib` is likely to be a more suitable choice than this module. The :mod:`!runpy` module provides two functions:
trusted_official_docs
CPython Docs
has returned. If that limitation is not acceptable for a given use case, :mod:`importlib` is likely to be a more suitable choice than this module. The :mod:`!runpy` module provides two functions:
has returned. If that limitation is not acceptable for a given use case, :mod:`importlib` is likely to be a more suitable choice than this module. The :mod:`!runpy` module provides two functions:
python, official-docs, cpython, P0
Local_Trusted_Corpus
5c2bc0ab-1ab3-40a1-96dd-cd997ca0987d
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,282
supabase-export-v2
d6fdb86626fd3869
:pep:`366` -- Main module explicit relative imports PEP written and implemented by Nick Coghlan. :pep:`451` -- A ModuleSpec Type for the Import System PEP written and implemented by Eric Snow
trusted_official_docs
CPython Docs
:pep:`366` -- Main module explicit relative imports PEP written and implemented by Nick Coghlan. :pep:`451` -- A ModuleSpec Type for the Import System PEP written and implemented by Eric Snow
:pep:`366` -- Main module explicit relative imports PEP written and implemented by Nick Coghlan. :pep:`451` -- A ModuleSpec Type for the Import System PEP written and implemented by Eric Snow
python, official-docs, cpython, P0
Local_Trusted_Corpus
5e4e4550-0feb-4f95-ab46-176968443490
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,274
supabase-export-v2
cb3ce4e0d6e42840
thread-safety limitations still apply, use of this function in threaded code should be either serialised with the import lock or delegated to a separate process. .. seealso:: :ref:`using-on-interface-options` for equivalent functionality on the command line (``python path/to/script``).
trusted_official_docs
CPython Docs
thread-safety limitations still apply, use of this function in threaded code should be either serialised with the import lock or delegated to a separate process. .. seealso:: :ref:`using-on-interface-options` for equivalent functionality on the command line (``python path/to/script``).
thread-safety limitations still apply, use of this function in threaded code should be either serialised with the import lock or delegated to a separate process. .. seealso:: :ref:`using-on-interface-options` for equivalent functionality on the command line (``python path/to/script``).
python, official-docs, cpython, P0
Local_Trusted_Corpus
6519e4d0-1320-4e39-805f-56623ea926d0
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,242
supabase-export-v2
75d9ee5fede2919a
-------------- The :mod:`!runpy` module is used to locate and run Python modules without importing them first. Its main use is to implement the :option:`-m` command line switch that allows scripts to be located using the Python module namespace rather than the filesystem.
trusted_official_docs
CPython Docs
-------------- The :mod:`!runpy` module is used to locate and run Python modules without importing them first. Its main use is to implement the :option:`-m` command line switch that allows scripts to be located using the Python module namespace rather than the filesystem.
-------------- The :mod:`!runpy` module is used to locate and run Python modules without importing them first. Its main use is to implement the :option:`-m` command line switch that allows scripts to be located using the Python module namespace rather than the filesystem.
python, official-docs, cpython, P0
Local_Trusted_Corpus
668bd9fd-f353-402f-a72d-26aa3bd253f6
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,243
supabase-export-v2
22298c8336d081d1
main use is to implement the :option:`-m` command line switch that allows scripts to be located using the Python module namespace rather than the filesystem. Note that this is *not* a sandbox module - all code is executed in the current process, and any side effects (such as cached imports of other modules) will remain...
trusted_official_docs
CPython Docs
main use is to implement the :option:`-m` command line switch that allows scripts to be located using the Python module namespace rather than the filesystem. Note that this is *not* a sandbox module - all code is executed in the current process, and any side effects (such as cached imports of other modules) will remain...
main use is to implement the :option:`-m` command line switch that allows scripts to be located using the Python module namespace rather than the filesystem. Note that this is *not* a sandbox module - all code is executed in the current process, and any side effects (such as cached imports of other modules) will remain...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7e220318-9ce5-45b4-a435-5592774adc70
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,253
supabase-export-v2
8b847faf4771a2df
*run_name* if this optional argument is not :const:`None`, to ``mod_name + '.__main__'`` if the named module is a package and to the *mod_name* argument otherwise. ``__spec__`` will be set appropriately for the *actually* imported module (that is, ``__spec__.name`` will always be *mod_name* or ``mod_name + '.__main__...
trusted_official_docs
CPython Docs
*run_name* if this optional argument is not :const:`None`, to ``mod_name + '.__main__'`` if the named module is a package and to the *mod_name* argument otherwise. ``__spec__`` will be set appropriately for the *actually* imported module (that is, ``__spec__.name`` will always be *mod_name* or ``mod_name + '.__main__...
*run_name* if this optional argument is not :const:`None`, to ``mod_name + '.__main__'`` if the named module is a package and to the *mod_name* argument otherwise. ``__spec__`` will be set appropriately for the *actually* imported module (that is, ``__spec__.name`` will always be *mod_name* or ``mod_name + '.__main__...
python, official-docs, cpython, P0
Local_Trusted_Corpus
80026675-a91c-4377-b5cf-7ab889ead956
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,277
supabase-export-v2
d2aaa395f04e78b4
:pep:`451`. This allows ``__cached__`` to be set correctly in the case where ``__main__`` is imported from a valid :data:`sys.path` entry rather than being executed directly. .. versionchanged:: 3.12 The setting of ``__cached__``, ``__loader__``, and ``__package__`` are deprecated.
trusted_official_docs
CPython Docs
:pep:`451`. This allows ``__cached__`` to be set correctly in the case where ``__main__`` is imported from a valid :data:`sys.path` entry rather than being executed directly. .. versionchanged:: 3.12 The setting of ``__cached__``, ``__loader__``, and ``__package__`` are deprecated.
:pep:`451`. This allows ``__cached__`` to be set correctly in the case where ``__main__`` is imported from a valid :data:`sys.path` entry rather than being executed directly. .. versionchanged:: 3.12 The setting of ``__cached__``, ``__loader__``, and ``__package__`` are deprecated.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a50fd2ab-e8c6-4f74-b513-d998acd75cb2
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,248
supabase-export-v2
78dd95c9ffcf42a4
.. index:: pair: module; __main__ Execute the code of the specified module and return the resulting module's globals dictionary. The module's code is first located using the standard import mechanism (refer to :pep:`302` for details) and then executed in a fresh module namespace.
trusted_official_docs
CPython Docs
.. index:: pair: module; __main__ Execute the code of the specified module and return the resulting module's globals dictionary. The module's code is first located using the standard import mechanism (refer to :pep:`302` for details) and then executed in a fresh module namespace.
.. index:: pair: module; __main__ Execute the code of the specified module and return the resulting module's globals dictionary. The module's code is first located using the standard import mechanism (refer to :pep:`302` for details) and then executed in a fresh module namespace.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ce857de8-0c33-4b58-be7d-28f671848ac2
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,257
supabase-export-v2
c46a8b7fbf1e0234
as well as the altered list of arguments. It is recommended that the ``sys`` module be left alone when invoking this function from threaded code. .. seealso:: The :option:`-m` option offering equivalent functionality from the command line.
trusted_official_docs
CPython Docs
as well as the altered list of arguments. It is recommended that the ``sys`` module be left alone when invoking this function from threaded code. .. seealso:: The :option:`-m` option offering equivalent functionality from the command line.
as well as the altered list of arguments. It is recommended that the ``sys`` module be left alone when invoking this function from threaded code. .. seealso:: The :option:`-m` option offering equivalent functionality from the command line.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d39559e0-b2d6-4738-bdf7-5be51d20e59f
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,266
supabase-export-v2
caf9979b5043651f
a Python source file, a compiled bytecode file or a valid :data:`sys.path` entry containing a :mod:`__main__` module (e.g. a zipfile containing a top-level :file:`__main__.py` file). For a simple script, the specified code is simply executed in a fresh module namespace. For a valid :data:`sys.path` entry (typically a ...
trusted_official_docs
CPython Docs
a Python source file, a compiled bytecode file or a valid :data:`sys.path` entry containing a :mod:`__main__` module (e.g. a zipfile containing a top-level :file:`__main__.py` file). For a simple script, the specified code is simply executed in a fresh module namespace. For a valid :data:`sys.path` entry (typically a ...
a Python source file, a compiled bytecode file or a valid :data:`sys.path` entry containing a :mod:`__main__` module (e.g. a zipfile containing a top-level :file:`__main__.py` file). For a simple script, the specified code is simply executed in a fresh module namespace. For a valid :data:`sys.path` entry (typically a ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e87a65f8-df0b-4aff-95ac-4af03d89438a
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,270
supabase-export-v2
1dbe0e15c5616993
``__name__`` is set to *run_name* if this optional argument is not :const:`None` and to ``'<run_path>'`` otherwise. If *file_path* directly references a script file (whether as source or as precompiled byte code), then ``__file__`` will be set to *file_path*, and ``__spec__``, ``__loader__`` and ``__package__`` will...
trusted_official_docs
CPython Docs
``__name__`` is set to *run_name* if this optional argument is not :const:`None` and to ``'<run_path>'`` otherwise. If *file_path* directly references a script file (whether as source or as precompiled byte code), then ``__file__`` will be set to *file_path*, and ``__spec__``, ``__loader__`` and ``__package__`` will...
``__name__`` is set to *run_name* if this optional argument is not :const:`None` and to ``'<run_path>'`` otherwise. If *file_path* directly references a script file (whether as source or as precompiled byte code), then ``__file__`` will be set to *file_path*, and ``__spec__``, ``__loader__`` and ``__package__`` will...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f5189a5b-b485-4edb-b347-b8e01e1e1dd3
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,261
supabase-export-v2
4b4fe889e10f85e4
This allows ``__cached__`` to be set correctly for modules run this way, as well as ensuring the real module name is always accessible as ``__spec__.name``. .. versionchanged:: 3.12 The setting of ``__cached__``, ``__loader__``, and ``__package__`` are deprecated. See :class:`~importlib.machinery.ModuleSpec` for alt...
trusted_official_docs
CPython Docs
This allows ``__cached__`` to be set correctly for modules run this way, as well as ensuring the real module name is always accessible as ``__spec__.name``. .. versionchanged:: 3.12 The setting of ``__cached__``, ``__loader__``, and ``__package__`` are deprecated. See :class:`~importlib.machinery.ModuleSpec` for alt...
This allows ``__cached__`` to be set correctly for modules run this way, as well as ensuring the real module name is always accessible as ``__spec__.name``. .. versionchanged:: 3.12 The setting of ``__cached__``, ``__loader__``, and ``__package__`` are deprecated. See :class:`~importlib.machinery.ModuleSpec` for alt...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f6a0c183-dfa8-420c-bab0-3c130fec79b4
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,273
supabase-export-v2
c4594adcf1658de8
``sys.modules[__name__]`` is updated with a temporary module object for the module being executed. All modifications to items in :mod:`sys` are reverted before the function returns. Note that, unlike :func:`run_module`, the alterations made to :mod:`sys` are not optional in this function as these adjustments are essen...
trusted_official_docs
CPython Docs
``sys.modules[__name__]`` is updated with a temporary module object for the module being executed. All modifications to items in :mod:`sys` are reverted before the function returns. Note that, unlike :func:`run_module`, the alterations made to :mod:`sys` are not optional in this function as these adjustments are essen...
``sys.modules[__name__]`` is updated with a temporary module object for the module being executed. All modifications to items in :mod:`sys` are reverted before the function returns. Note that, unlike :func:`run_module`, the alterations made to :mod:`sys` are not optional in this function as these adjustments are essen...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f8b783ce-90da-4e63-8d19-0975e6e65683
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,267
supabase-export-v2
aef89f84ff0ba4b0
there is no special protection against invoking an existing ``__main__`` entry located elsewhere on ``sys.path`` if there is no such module at the specified location. The optional dictionary argument *init_globals* may be used to pre-populate the module's globals dictionary before the code is executed. *init_globals* ...
trusted_official_docs
CPython Docs
there is no special protection against invoking an existing ``__main__`` entry located elsewhere on ``sys.path`` if there is no such module at the specified location. The optional dictionary argument *init_globals* may be used to pre-populate the module's globals dictionary before the code is executed. *init_globals* ...
there is no special protection against invoking an existing ``__main__`` entry located elsewhere on ``sys.path`` if there is no such module at the specified location. The optional dictionary argument *init_globals* may be used to pre-populate the module's globals dictionary before the code is executed. *init_globals* ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fabfbcf8-938c-40d9-a7c8-d1e885060145
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,272
supabase-export-v2
29376700b5353502
imported :mod:`__main__` module (that is, ``__spec__.name`` will always be ``__main__``). ``__file__``, ``__loader__`` and ``__package__`` will be :ref:`set as normal <import-mod-attrs>` based on the module spec. A number of alterations are also made to the :mod:`sys` module. Firstly, :data:`sys.path` may be altered a...
trusted_official_docs
CPython Docs
imported :mod:`__main__` module (that is, ``__spec__.name`` will always be ``__main__``). ``__file__``, ``__loader__`` and ``__package__`` will be :ref:`set as normal <import-mod-attrs>` based on the module spec. A number of alterations are also made to the :mod:`sys` module. Firstly, :data:`sys.path` may be altered a...
imported :mod:`__main__` module (that is, ``__spec__.name`` will always be ``__main__``). ``__file__``, ``__loader__`` and ``__package__`` will be :ref:`set as normal <import-mod-attrs>` based on the module spec. A number of alterations are also made to the :mod:`sys` module. Firstly, :data:`sys.path` may be altered a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fc932ebc-1eda-4f0e-a60e-d6adde0806ee
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,260
supabase-export-v2
6450876648495f75
.. versionchanged:: 3.2 Added ``__cached__`` global variable (see :pep:`3147`). .. versionchanged:: 3.4 Updated to take advantage of the module spec feature added by :pep:`451`. This allows ``__cached__`` to be set correctly for modules run this way, as well as ensuring the real module name is always accessible as ...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.2 Added ``__cached__`` global variable (see :pep:`3147`). .. versionchanged:: 3.4 Updated to take advantage of the module spec feature added by :pep:`451`. This allows ``__cached__`` to be set correctly for modules run this way, as well as ensuring the real module name is always accessible as ...
.. versionchanged:: 3.2 Added ``__cached__`` global variable (see :pep:`3147`). .. versionchanged:: 3.4 Updated to take advantage of the module spec feature added by :pep:`451`. This allows ``__cached__`` to be set correctly for modules run this way, as well as ensuring the real module name is always accessible as ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fdc66733-bb3b-4001-98f8-602de0343eac
CPython Docs
file://datasets/cpython/Doc/library/runpy.rst
unknown
3b5d8d2b-36cd-414f-bdd9-dec386ab03eb
7,271
supabase-export-v2
f03188dde8e51a63
as source or as precompiled byte code), then ``__file__`` will be set to *file_path*, and ``__spec__``, ``__loader__`` and ``__package__`` will all be set to :const:`None`. If *file_path* is a reference to a valid :data:`sys.path` entry, then ``__spec__`` will be set appropriately for the imported :mod:`__main__` mod...
trusted_official_docs
CPython Docs
as source or as precompiled byte code), then ``__file__`` will be set to *file_path*, and ``__spec__``, ``__loader__`` and ``__package__`` will all be set to :const:`None`. If *file_path* is a reference to a valid :data:`sys.path` entry, then ``__spec__`` will be set appropriately for the imported :mod:`__main__` mod...
as source or as precompiled byte code), then ``__file__`` will be set to *file_path*, and ``__spec__``, ``__loader__`` and ``__package__`` will all be set to :const:`None`. If *file_path* is a reference to a valid :data:`sys.path` entry, then ``__spec__`` will be set appropriately for the imported :mod:`__main__` mod...
python, official-docs, cpython, P0
Local_Trusted_Corpus
053029d0-5beb-4d99-bc56-8fc625e0a2a9
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,370
supabase-export-v2
560d406182b01907
will not be synchronized. * ``'s'``: Synchronized mode. Changes to the database will be written immediately to the file. * ``'u'``: Do not lock database. Not all flags are valid for all versions of GDBM. See the :data:`open_flags` member for a list of supported flag characters.
trusted_official_docs
CPython Docs
will not be synchronized. * ``'s'``: Synchronized mode. Changes to the database will be written immediately to the file. * ``'u'``: Do not lock database. Not all flags are valid for all versions of GDBM. See the :data:`open_flags` member for a list of supported flag characters.
will not be synchronized. * ``'s'``: Synchronized mode. Changes to the database will be written immediately to the file. * ``'u'``: Do not lock database. Not all flags are valid for all versions of GDBM. See the :data:`open_flags` member for a list of supported flag characters.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0cc6e28d-ec4c-403f-a4e2-1d9e12e7d6e7
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,421
supabase-export-v2
2767c6614a531b96
:mod:`!dbm.dumb` module provides a persistent :class:`dict`-like interface which is written entirely in Python. Unlike other :mod:`!dbm` backends, such as :mod:`dbm.gnu`, no external library is required. The :mod:`!dbm.dumb` module defines the following:
trusted_official_docs
CPython Docs
:mod:`!dbm.dumb` module provides a persistent :class:`dict`-like interface which is written entirely in Python. Unlike other :mod:`!dbm` backends, such as :mod:`dbm.gnu`, no external library is required. The :mod:`!dbm.dumb` module defines the following:
:mod:`!dbm.dumb` module provides a persistent :class:`dict`-like interface which is written entirely in Python. Unlike other :mod:`!dbm` backends, such as :mod:`dbm.gnu`, no external library is required. The :mod:`!dbm.dumb` module defines the following:
python, official-docs, cpython, P0
Local_Trusted_Corpus
1130b24e-366d-4709-a62f-2d4f0b6e4703
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,433
supabase-export-v2
839bf040deb2c7d7
.. versionchanged:: 3.5 :func:`~dbm.dumb.open` always creates a new database when *flag* is ``'n'``. .. versionchanged:: 3.8 A database opened read-only if *flag* is ``'r'``. A database is not created if it does not exist if *flag* is ``'r'`` or ``'w'``.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.5 :func:`~dbm.dumb.open` always creates a new database when *flag* is ``'n'``. .. versionchanged:: 3.8 A database opened read-only if *flag* is ``'r'``. A database is not created if it does not exist if *flag* is ``'r'`` or ``'w'``.
.. versionchanged:: 3.5 :func:`~dbm.dumb.open` always creates a new database when *flag* is ``'n'``. .. versionchanged:: 3.8 A database opened read-only if *flag* is ``'r'``. A database is not created if it does not exist if *flag* is ``'r'`` or ``'w'``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
30b40cc1-5a7e-46db-bb14-cf71c901e44a
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,297
supabase-export-v2
5b119643ada5ad3e
to guess which of the several simple database modules available --- :mod:`dbm.sqlite3`, :mod:`dbm.gnu`, :mod:`dbm.ndbm`, or :mod:`dbm.dumb` --- should be used to open a given file. Return one of the following values:
trusted_official_docs
CPython Docs
to guess which of the several simple database modules available --- :mod:`dbm.sqlite3`, :mod:`dbm.gnu`, :mod:`dbm.ndbm`, or :mod:`dbm.dumb` --- should be used to open a given file. Return one of the following values:
to guess which of the several simple database modules available --- :mod:`dbm.sqlite3`, :mod:`dbm.gnu`, :mod:`dbm.ndbm`, or :mod:`dbm.dumb` --- should be used to open a given file. Return one of the following values:
python, official-docs, cpython, P0
Local_Trusted_Corpus
354e228e-883c-493b-b32a-d1ca6af5e3a1
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,432
supabase-export-v2
0c19e5dacf409a65
simultaneous read accesses are safe.) When a program has the database open for writing, no other program should have it open for reading or writing. .. versionchanged:: 3.5 :func:`~dbm.dumb.open` always creates a new database when *flag* is ``'n'``.
trusted_official_docs
CPython Docs
simultaneous read accesses are safe.) When a program has the database open for writing, no other program should have it open for reading or writing. .. versionchanged:: 3.5 :func:`~dbm.dumb.open` always creates a new database when *flag* is ``'n'``.
simultaneous read accesses are safe.) When a program has the database open for writing, no other program should have it open for reading or writing. .. versionchanged:: 3.5 :func:`~dbm.dumb.open` always creates a new database when *flag* is ``'n'``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
39415724-6227-4589-8fa0-42a762351519
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,409
supabase-export-v2
6424433a7398b130
.. versionchanged:: 3.11 Accepts :term:`path-like object` for filename. :class:`!ndbm` objects behave similar to mutable :term:`mappings <mapping>`, but methods :meth:`!items`, :meth:`!values`, :meth:`!pop`, :meth:`!popitem`, and :meth:`!update` are not supported, the :meth:`!keys` method returns a list, and the :m...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.11 Accepts :term:`path-like object` for filename. :class:`!ndbm` objects behave similar to mutable :term:`mappings <mapping>`, but methods :meth:`!items`, :meth:`!values`, :meth:`!pop`, :meth:`!popitem`, and :meth:`!update` are not supported, the :meth:`!keys` method returns a list, and the :m...
.. versionchanged:: 3.11 Accepts :term:`path-like object` for filename. :class:`!ndbm` objects behave similar to mutable :term:`mappings <mapping>`, but methods :meth:`!items`, :meth:`!values`, :meth:`!pop`, :meth:`!popitem`, and :meth:`!update` are not supported, the :meth:`!keys` method returns a list, and the :m...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3b0c82b6-dbac-48d8-bb38-ee5e10bae1a1
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,296
supabase-export-v2
ae0de6e32a98329d
.. function:: whichdb(filename) This function attempts to guess which of the several simple database modules available --- :mod:`dbm.sqlite3`, :mod:`dbm.gnu`, :mod:`dbm.ndbm`, or :mod:`dbm.dumb` --- should be used to open a given file.
trusted_official_docs
CPython Docs
.. function:: whichdb(filename) This function attempts to guess which of the several simple database modules available --- :mod:`dbm.sqlite3`, :mod:`dbm.gnu`, :mod:`dbm.ndbm`, or :mod:`dbm.dumb` --- should be used to open a given file.
.. function:: whichdb(filename) This function attempts to guess which of the several simple database modules available --- :mod:`dbm.sqlite3`, :mod:`dbm.gnu`, :mod:`dbm.ndbm`, or :mod:`dbm.dumb` --- should be used to open a given file.
python, official-docs, cpython, P0
Local_Trusted_Corpus
40634ee0-5b86-4ec7-8ee1-cd67acfdd9ef
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,349
supabase-export-v2
8806c4f2adeaee7b
.. method:: sqlite3.reorganize() If you have carried out a lot of deletions and would like to shrink the space used on disk, this method will reorganize the database; otherwise, deleted file space will be kept and reused as new (key, value) pairs are added.
trusted_official_docs
CPython Docs
.. method:: sqlite3.reorganize() If you have carried out a lot of deletions and would like to shrink the space used on disk, this method will reorganize the database; otherwise, deleted file space will be kept and reused as new (key, value) pairs are added.
.. method:: sqlite3.reorganize() If you have carried out a lot of deletions and would like to shrink the space used on disk, this method will reorganize the database; otherwise, deleted file space will be kept and reused as new (key, value) pairs are added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
431d529f-783a-4103-81fa-e08bf9d7305c
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,430
supabase-export-v2
63100fd7a16e74e6
:param int mode: |mode_param_doc| .. warning:: It is possible to crash the Python interpreter when loading a database with a sufficiently large/complex entry due to stack depth limitations in Python's AST compiler.
trusted_official_docs
CPython Docs
:param int mode: |mode_param_doc| .. warning:: It is possible to crash the Python interpreter when loading a database with a sufficiently large/complex entry due to stack depth limitations in Python's AST compiler.
:param int mode: |mode_param_doc| .. warning:: It is possible to crash the Python interpreter when loading a database with a sufficiently large/complex entry due to stack depth limitations in Python's AST compiler.
python, official-docs, cpython, P0
Local_Trusted_Corpus
45a3d684-956a-4ca0-8f02-d803a0348f61
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,397
supabase-export-v2
a18c56f228111197
.. warning:: The NDBM library shipped as part of macOS has an undocumented limitation on the size of values, which can result in corrupted database files when storing values larger than this limit. Reading such corrupted files can result in a hard crash (segmentation fault).
trusted_official_docs
CPython Docs
.. warning:: The NDBM library shipped as part of macOS has an undocumented limitation on the size of values, which can result in corrupted database files when storing values larger than this limit. Reading such corrupted files can result in a hard crash (segmentation fault).
.. warning:: The NDBM library shipped as part of macOS has an undocumented limitation on the size of values, which can result in corrupted database files when storing values larger than this limit. Reading such corrupted files can result in a hard crash (segmentation fault).
python, official-docs, cpython, P0
Local_Trusted_Corpus
4ce6bb4f-8aa6-41ed-9640-09ad5a71f579
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,324
supabase-export-v2
c631a4a2ea1bb98a
# Record some values db[b'hello'] = b'there' db['www.python.org'] = 'Python Website' db['www.cnn.com'] = 'Cable News Network' # Note that the keys are considered bytes now. assert db[b'www.python.org'] == b'Python Website' # Notice how the value is now in bytes. assert db['www.cnn.com'] == b'Cable News Network'
trusted_official_docs
CPython Docs
# Record some values db[b'hello'] = b'there' db['www.python.org'] = 'Python Website' db['www.cnn.com'] = 'Cable News Network' # Note that the keys are considered bytes now. assert db[b'www.python.org'] == b'Python Website' # Notice how the value is now in bytes. assert db['www.cnn.com'] == b'Cable News Network'
# Record some values db[b'hello'] = b'there' db['www.python.org'] = 'Python Website' db['www.cnn.com'] = 'Cable News Network' # Note that the keys are considered bytes now. assert db[b'www.python.org'] == b'Python Website' # Notice how the value is now in bytes. assert db['www.cnn.com'] == b'Cable News Network'
python, official-docs, cpython, P0
Local_Trusted_Corpus
4e545c99-76bd-4259-9ea2-19e1647bfff4
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,406
supabase-export-v2
d7f054e0a9bb2dce
:param filename: The basename of the database file (without the :file:`.dir` or :file:`.pag` extensions). :type filename: :term:`path-like object` :param str flag: * ``'r'`` (default): |flag_r| * ``'w'``: |flag_w| * ``'c'``: |flag_c| * ``'n'``: |flag_n|
trusted_official_docs
CPython Docs
:param filename: The basename of the database file (without the :file:`.dir` or :file:`.pag` extensions). :type filename: :term:`path-like object` :param str flag: * ``'r'`` (default): |flag_r| * ``'w'``: |flag_w| * ``'c'``: |flag_c| * ``'n'``: |flag_n|
:param filename: The basename of the database file (without the :file:`.dir` or :file:`.pag` extensions). :type filename: :term:`path-like object` :param str flag: * ``'r'`` (default): |flag_r| * ``'w'``: |flag_w| * ``'c'``: |flag_c| * ``'n'``: |flag_n|
python, official-docs, cpython, P0
Local_Trusted_Corpus
5124dae3-b9ae-43ab-9eb4-0d2816afedc0
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,345
supabase-export-v2
ed2cf9c95b6ad701
but the :meth:`!keys` method returns a list, and the :meth:`!setdefault` method requires two arguments. It also supports a "closing" context manager via the :keyword:`with` keyword. The following methods are also provided:
trusted_official_docs
CPython Docs
but the :meth:`!keys` method returns a list, and the :meth:`!setdefault` method requires two arguments. It also supports a "closing" context manager via the :keyword:`with` keyword. The following methods are also provided:
but the :meth:`!keys` method returns a list, and the :meth:`!setdefault` method requires two arguments. It also supports a "closing" context manager via the :keyword:`with` keyword. The following methods are also provided:
python, official-docs, cpython, P0
Local_Trusted_Corpus
52f295f7-730f-46e5-a92f-03fae47b673d
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,325
supabase-export-v2
c0cb51eae38a4f40
keys are considered bytes now. assert db[b'www.python.org'] == b'Python Website' # Notice how the value is now in bytes. assert db['www.cnn.com'] == b'Cable News Network' # Often-used methods of the dict interface work too. print(db.get('python.org', b'not present'))
trusted_official_docs
CPython Docs
keys are considered bytes now. assert db[b'www.python.org'] == b'Python Website' # Notice how the value is now in bytes. assert db['www.cnn.com'] == b'Cable News Network' # Often-used methods of the dict interface work too. print(db.get('python.org', b'not present'))
keys are considered bytes now. assert db[b'www.python.org'] == b'Python Website' # Notice how the value is now in bytes. assert db['www.cnn.com'] == b'Cable News Network' # Often-used methods of the dict interface work too. print(db.get('python.org', b'not present'))
python, official-docs, cpython, P0
Local_Trusted_Corpus
5b900da7-6910-4db4-8d0d-597bbba64ffd
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,326
supabase-export-v2
566c0b4378d724ba
# Often-used methods of the dict interface work too. print(db.get('python.org', b'not present')) # Storing a non-string key or value will raise an exception (most # likely a TypeError). db['www.yahoo.com'] = 4
trusted_official_docs
CPython Docs
# Often-used methods of the dict interface work too. print(db.get('python.org', b'not present')) # Storing a non-string key or value will raise an exception (most # likely a TypeError). db['www.yahoo.com'] = 4
# Often-used methods of the dict interface work too. print(db.get('python.org', b'not present')) # Storing a non-string key or value will raise an exception (most # likely a TypeError). db['www.yahoo.com'] = 4
python, official-docs, cpython, P0
Local_Trusted_Corpus
5e5fd371-194a-49f6-acbe-df2a2ebd495f
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,294
supabase-export-v2
52c2d7bdabd0bc58
.. exception:: error A tuple containing the exceptions that can be raised by each of the supported modules, with a unique exception also named :exc:`dbm.error` as the first item --- the latter is used when :exc:`dbm.error` is raised.
trusted_official_docs
CPython Docs
.. exception:: error A tuple containing the exceptions that can be raised by each of the supported modules, with a unique exception also named :exc:`dbm.error` as the first item --- the latter is used when :exc:`dbm.error` is raised.
.. exception:: error A tuple containing the exceptions that can be raised by each of the supported modules, with a unique exception also named :exc:`dbm.error` as the first item --- the latter is used when :exc:`dbm.error` is raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
640ad9ff-74e0-4d95-a4fd-a5c2474b92bd
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,375
supabase-export-v2
41dbc0e5efad71c9
supported, the :meth:`!keys` method returns a list, and the :meth:`!setdefault` method requires two arguments. It also supports a "closing" context manager via the :keyword:`with` keyword. .. versionchanged:: 3.2 Added the :meth:`!get` and :meth:`!setdefault` methods.
trusted_official_docs
CPython Docs
supported, the :meth:`!keys` method returns a list, and the :meth:`!setdefault` method requires two arguments. It also supports a "closing" context manager via the :keyword:`with` keyword. .. versionchanged:: 3.2 Added the :meth:`!get` and :meth:`!setdefault` methods.
supported, the :meth:`!keys` method returns a list, and the :meth:`!setdefault` method requires two arguments. It also supports a "closing" context manager via the :keyword:`with` keyword. .. versionchanged:: 3.2 Added the :meth:`!get` and :meth:`!setdefault` methods.
python, official-docs, cpython, P0
Local_Trusted_Corpus
64c9931c-0e18-4060-940e-af38998fc0e8
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,382
supabase-export-v2
46c96f3f9c4ee016
.. method:: gdbm.nextkey(key) Returns the key that follows *key* in the traversal. The following code prints every key in the database ``db``, without having to create a list in memory that contains them all::
trusted_official_docs
CPython Docs
.. method:: gdbm.nextkey(key) Returns the key that follows *key* in the traversal. The following code prints every key in the database ``db``, without having to create a list in memory that contains them all::
.. method:: gdbm.nextkey(key) Returns the key that follows *key* in the traversal. The following code prints every key in the database ``db``, without having to create a list in memory that contains them all::
python, official-docs, cpython, P0
Local_Trusted_Corpus
675dc2d9-68b3-4112-a20e-81b7dcd66d04
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,374
supabase-export-v2
6e81fc19b70e8eb9
.. versionchanged:: 3.11 *filename* accepts a :term:`path-like object`. :class:`!gdbm` objects behave similar to mutable :term:`mappings <mapping>`, but methods :meth:`!items`, :meth:`!values`, :meth:`!pop`, :meth:`!popitem`, and :meth:`!update` are not supported, the :meth:`!keys` method returns a list, and the :m...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.11 *filename* accepts a :term:`path-like object`. :class:`!gdbm` objects behave similar to mutable :term:`mappings <mapping>`, but methods :meth:`!items`, :meth:`!values`, :meth:`!pop`, :meth:`!popitem`, and :meth:`!update` are not supported, the :meth:`!keys` method returns a list, and the :m...
.. versionchanged:: 3.11 *filename* accepts a :term:`path-like object`. :class:`!gdbm` objects behave similar to mutable :term:`mappings <mapping>`, but methods :meth:`!items`, :meth:`!values`, :meth:`!pop`, :meth:`!popitem`, and :meth:`!update` are not supported, the :meth:`!keys` method returns a list, and the :m...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7b692bb5-5cba-497c-848f-516e32ea78f6
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,299
supabase-export-v2
14bc7401bf8e4595
* the empty string (``''``) if the file's format can't be guessed * a string containing the required module name, such as ``'dbm.ndbm'`` or ``'dbm.gnu'`` .. versionchanged:: 3.11 *filename* accepts a :term:`path-like object`.
trusted_official_docs
CPython Docs
* the empty string (``''``) if the file's format can't be guessed * a string containing the required module name, such as ``'dbm.ndbm'`` or ``'dbm.gnu'`` .. versionchanged:: 3.11 *filename* accepts a :term:`path-like object`.
* the empty string (``''``) if the file's format can't be guessed * a string containing the required module name, such as ``'dbm.ndbm'`` or ``'dbm.gnu'`` .. versionchanged:: 3.11 *filename* accepts a :term:`path-like object`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7c906af2-4668-425d-954f-b69e652bc6b5
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,393
supabase-export-v2
1cd205735e09434a
-------------- The :mod:`!dbm.ndbm` module provides an interface to the :abbr:`NDBM (New Database Manager)` library. This module can be used with the "classic" NDBM interface or the :abbr:`GDBM (GNU dbm)` compatibility interface.
trusted_official_docs
CPython Docs
-------------- The :mod:`!dbm.ndbm` module provides an interface to the :abbr:`NDBM (New Database Manager)` library. This module can be used with the "classic" NDBM interface or the :abbr:`GDBM (GNU dbm)` compatibility interface.
-------------- The :mod:`!dbm.ndbm` module provides an interface to the :abbr:`NDBM (New Database Manager)` library. This module can be used with the "classic" NDBM interface or the :abbr:`GDBM (GNU dbm)` compatibility interface.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7fc25bb1-92b1-42fd-87b7-605f9e159582
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,368
supabase-export-v2
0a8f5b7aaa898913
:param str flag: * ``'r'`` (default): |flag_r| * ``'w'``: |flag_w| * ``'c'``: |flag_c| * ``'n'``: |flag_n| The following additional characters may be appended to control how the database is opened:
trusted_official_docs
CPython Docs
:param str flag: * ``'r'`` (default): |flag_r| * ``'w'``: |flag_w| * ``'c'``: |flag_c| * ``'n'``: |flag_n| The following additional characters may be appended to control how the database is opened:
:param str flag: * ``'r'`` (default): |flag_r| * ``'w'``: |flag_w| * ``'c'``: |flag_c| * ``'n'``: |flag_n| The following additional characters may be appended to control how the database is opened:
python, official-docs, cpython, P0
Local_Trusted_Corpus
80132ef1-bc16-4523-b76c-6d8fed1b1a6c
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,320
supabase-export-v2
b07a2f83166f1fb6
.. versionchanged:: 3.13 :meth:`!clear` methods are now available for all :mod:`!dbm` backends. The following example records some hostnames and a corresponding title, and then prints out the contents of the database::
trusted_official_docs
CPython Docs
.. versionchanged:: 3.13 :meth:`!clear` methods are now available for all :mod:`!dbm` backends. The following example records some hostnames and a corresponding title, and then prints out the contents of the database::
.. versionchanged:: 3.13 :meth:`!clear` methods are now available for all :mod:`!dbm` backends. The following example records some hostnames and a corresponding title, and then prints out the contents of the database::
python, official-docs, cpython, P0
Local_Trusted_Corpus
85422b2c-21cf-4bf7-99ad-723423a8db17
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,385
supabase-export-v2
aba0c3631e0aa91e
.. method:: gdbm.reorganize() If you have carried out a lot of deletions and would like to shrink the space used by the GDBM file, this routine will reorganize the database. :class:`!gdbm` objects will not shorten the length of a database file except by using this reorganization; otherwise, deleted file space will b...
trusted_official_docs
CPython Docs
.. method:: gdbm.reorganize() If you have carried out a lot of deletions and would like to shrink the space used by the GDBM file, this routine will reorganize the database. :class:`!gdbm` objects will not shorten the length of a database file except by using this reorganization; otherwise, deleted file space will b...
.. method:: gdbm.reorganize() If you have carried out a lot of deletions and would like to shrink the space used by the GDBM file, this routine will reorganize the database. :class:`!gdbm` objects will not shorten the length of a database file except by using this reorganization; otherwise, deleted file space will b...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8aa9d08e-ebb8-4962-a91e-1b84b1709650
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,318
supabase-export-v2
9cb171491acd8818
.. versionchanged:: 3.4 Added native support for the context management protocol to the objects returned by :func:`~dbm.open`. .. versionchanged:: 3.8 Deleting a key from a read-only database raises a database module specific exception instead of :exc:`KeyError`.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.4 Added native support for the context management protocol to the objects returned by :func:`~dbm.open`. .. versionchanged:: 3.8 Deleting a key from a read-only database raises a database module specific exception instead of :exc:`KeyError`.
.. versionchanged:: 3.4 Added native support for the context management protocol to the objects returned by :func:`~dbm.open`. .. versionchanged:: 3.8 Deleting a key from a read-only database raises a database module specific exception instead of :exc:`KeyError`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8af854de-a954-42b0-ba94-4ba111b2b066
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,380
supabase-export-v2
0d98947de342203c
.. method:: gdbm.firstkey() It's possible to loop over every key in the database using this method and the :meth:`nextkey` method. The traversal is ordered by GDBM's internal hash values, and won't be sorted by the key values. This method returns the starting key.
trusted_official_docs
CPython Docs
.. method:: gdbm.firstkey() It's possible to loop over every key in the database using this method and the :meth:`nextkey` method. The traversal is ordered by GDBM's internal hash values, and won't be sorted by the key values. This method returns the starting key.
.. method:: gdbm.firstkey() It's possible to loop over every key in the database using this method and the :meth:`nextkey` method. The traversal is ordered by GDBM's internal hash values, and won't be sorted by the key values. This method returns the starting key.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8d0cca0d-ddc2-4b2e-96ab-fc7ec8c25f8f
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,291
supabase-export-v2
3cfba8f23b8e138f
* :mod:`dbm.sqlite3` * :mod:`dbm.gnu` * :mod:`dbm.ndbm` If none of these modules are installed, the slow-but-simple implementation in module :mod:`dbm.dumb` will be used. There is a `third party interface <https://www.jcea.es/programacion/pybsddb.htm>`_ to the Oracle Berkeley DB.
trusted_official_docs
CPython Docs
* :mod:`dbm.sqlite3` * :mod:`dbm.gnu` * :mod:`dbm.ndbm` If none of these modules are installed, the slow-but-simple implementation in module :mod:`dbm.dumb` will be used. There is a `third party interface <https://www.jcea.es/programacion/pybsddb.htm>`_ to the Oracle Berkeley DB.
* :mod:`dbm.sqlite3` * :mod:`dbm.gnu` * :mod:`dbm.ndbm` If none of these modules are installed, the slow-but-simple implementation in module :mod:`dbm.dumb` will be used. There is a `third party interface <https://www.jcea.es/programacion/pybsddb.htm>`_ to the Oracle Berkeley DB.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8f75bf5f-2b1e-4d1d-924e-3e2ebfbf9d22
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,350
supabase-export-v2
c589d2af3466666d
used on disk, this method will reorganize the database; otherwise, deleted file space will be kept and reused as new (key, value) pairs are added. .. note:: While reorganizing, as much as two times the size of the original database is required in free disk space. However, be aware that this factor changes for each :m...
trusted_official_docs
CPython Docs
used on disk, this method will reorganize the database; otherwise, deleted file space will be kept and reused as new (key, value) pairs are added. .. note:: While reorganizing, as much as two times the size of the original database is required in free disk space. However, be aware that this factor changes for each :m...
used on disk, this method will reorganize the database; otherwise, deleted file space will be kept and reused as new (key, value) pairs are added. .. note:: While reorganizing, as much as two times the size of the original database is required in free disk space. However, be aware that this factor changes for each :m...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8fe630be-11dd-4759-9c88-e56abb69db87
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,315
supabase-export-v2
0654590a489d0351
and values are always stored as :class:`bytes`. This means that when strings are used they are implicitly converted to the default encoding before being stored. These objects also support being used in a :keyword:`with` statement, which will automatically close them when done.
trusted_official_docs
CPython Docs
and values are always stored as :class:`bytes`. This means that when strings are used they are implicitly converted to the default encoding before being stored. These objects also support being used in a :keyword:`with` statement, which will automatically close them when done.
and values are always stored as :class:`bytes`. This means that when strings are used they are implicitly converted to the default encoding before being stored. These objects also support being used in a :keyword:`with` statement, which will automatically close them when done.
python, official-docs, cpython, P0
Local_Trusted_Corpus
943ef63d-0bee-488d-a7ab-06671c7b21c6
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,319
supabase-export-v2
7c61ee7a0f6a569c
.. versionchanged:: 3.8 Deleting a key from a read-only database raises a database module specific exception instead of :exc:`KeyError`. .. versionchanged:: 3.13 :meth:`!clear` methods are now available for all :mod:`!dbm` backends.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.8 Deleting a key from a read-only database raises a database module specific exception instead of :exc:`KeyError`. .. versionchanged:: 3.13 :meth:`!clear` methods are now available for all :mod:`!dbm` backends.
.. versionchanged:: 3.8 Deleting a key from a read-only database raises a database module specific exception instead of :exc:`KeyError`. .. versionchanged:: 3.13 :meth:`!clear` methods are now available for all :mod:`!dbm` backends.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a4455eca-7ac1-44aa-a9ac-275ea6fdf8a0
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,316
supabase-export-v2
1b2308a4b3706d37
These objects also support being used in a :keyword:`with` statement, which will automatically close them when done. .. versionchanged:: 3.2 :meth:`!get` and :meth:`!setdefault` methods are now available for all :mod:`!dbm` backends.
trusted_official_docs
CPython Docs
These objects also support being used in a :keyword:`with` statement, which will automatically close them when done. .. versionchanged:: 3.2 :meth:`!get` and :meth:`!setdefault` methods are now available for all :mod:`!dbm` backends.
These objects also support being used in a :keyword:`with` statement, which will automatically close them when done. .. versionchanged:: 3.2 :meth:`!get` and :meth:`!setdefault` methods are now available for all :mod:`!dbm` backends.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a59c0667-c8c2-49a1-81e9-e3b0bb0f4f66
CPython Docs
file://datasets/cpython/Doc/library/dbm.rst
unknown
4294c7e5-d3af-4119-a555-d541e9a0b9c3
7,383
supabase-export-v2
ab1adf7d4c6db516
in the traversal. The following code prints every key in the database ``db``, without having to create a list in memory that contains them all:: k = db.firstkey() while k is not None: print(k) k = db.nextkey(k)
trusted_official_docs
CPython Docs
in the traversal. The following code prints every key in the database ``db``, without having to create a list in memory that contains them all:: k = db.firstkey() while k is not None: print(k) k = db.nextkey(k)
in the traversal. The following code prints every key in the database ``db``, without having to create a list in memory that contains them all:: k = db.firstkey() while k is not None: print(k) k = db.nextkey(k)
python, official-docs, cpython, P0
Local_Trusted_Corpus