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
e4bc7af3-3dba-4dbf-9c6e-6e1db72941d4
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,786
supabase-export-v2
efe9d02ed30a0247
A proxy object uses a weakref callback so that when it gets garbage collected it deregisters itself from the manager which owns its referent. A shared object gets deleted from the manager process when there are no longer any proxies referring to it.
trusted_official_docs
CPython Docs
A proxy object uses a weakref callback so that when it gets garbage collected it deregisters itself from the manager which owns its referent. A shared object gets deleted from the manager process when there are no longer any proxies referring to it.
A proxy object uses a weakref callback so that when it gets garbage collected it deregisters itself from the manager which owns its referent. A shared object gets deleted from the manager process when there are no longer any proxies referring to it.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e6644d63-5d67-4327-bd64-4f094579e100
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,896
supabase-export-v2
888e78199a1ee6d8
The difference is that, if :func:`select.select` is interrupted by a signal, it can raise :exc:`OSError` with an error number of ``EINTR``, whereas :func:`wait` will not. **Windows**: An item in *object_list* must either be an integer handle which is waitable (according to the definition used by the documentation of ...
trusted_official_docs
CPython Docs
The difference is that, if :func:`select.select` is interrupted by a signal, it can raise :exc:`OSError` with an error number of ``EINTR``, whereas :func:`wait` will not. **Windows**: An item in *object_list* must either be an integer handle which is waitable (according to the definition used by the documentation of ...
The difference is that, if :func:`select.select` is interrupted by a signal, it can raise :exc:`OSError` with an error number of ``EINTR``, whereas :func:`wait` will not. **Windows**: An item in *object_list* must either be an integer handle which is waitable (according to the definition used by the documentation of ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e6b5677f-cff5-44a6-96ce-87dba0380159
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,161
supabase-export-v2
a5d567a0005537bc
Available on POSIX systems. .. versionchanged:: 3.14 This is no longer the default start method on any platform. Code that requires *fork* must explicitly specify that via :func:`get_context` or :func:`set_start_method`.
trusted_official_docs
CPython Docs
Available on POSIX systems. .. versionchanged:: 3.14 This is no longer the default start method on any platform. Code that requires *fork* must explicitly specify that via :func:`get_context` or :func:`set_start_method`.
Available on POSIX systems. .. versionchanged:: 3.14 This is no longer the default start method on any platform. Code that requires *fork* must explicitly specify that via :func:`get_context` or :func:`set_start_method`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e7db4bd6-457e-4bbc-b62b-608beb2e49f7
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,352
supabase-export-v2
51aa08b413a42147
.. warning:: As mentioned above, if a child process has put items on a queue (and it has not used :meth:`JoinableQueue.cancel_join_thread <multiprocessing.Queue.cancel_join_thread>`), then that process will not terminate until all buffered items have been flushed to the pipe.
trusted_official_docs
CPython Docs
.. warning:: As mentioned above, if a child process has put items on a queue (and it has not used :meth:`JoinableQueue.cancel_join_thread <multiprocessing.Queue.cancel_join_thread>`), then that process will not terminate until all buffered items have been flushed to the pipe.
.. warning:: As mentioned above, if a child process has put items on a queue (and it has not used :meth:`JoinableQueue.cancel_join_thread <multiprocessing.Queue.cancel_join_thread>`), then that process will not terminate until all buffered items have been flushed to the pipe.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e891b9c1-bc31-4035-950a-58a1aa432254
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,453
supabase-export-v2
4538ce93dfaccf75
not set and *allow_none* is ``False``, the global start method is set to the default, and its name is returned. See :ref:`global-start-method` for more details. The return value can be ``'fork'``, ``'spawn'``, ``'forkserver'`` or ``None``. See :ref:`multiprocessing-start-methods`.
trusted_official_docs
CPython Docs
not set and *allow_none* is ``False``, the global start method is set to the default, and its name is returned. See :ref:`global-start-method` for more details. The return value can be ``'fork'``, ``'spawn'``, ``'forkserver'`` or ``None``. See :ref:`multiprocessing-start-methods`.
not set and *allow_none* is ``False``, the global start method is set to the default, and its name is returned. See :ref:`global-start-method` for more details. The return value can be ``'fork'``, ``'spawn'``, ``'forkserver'`` or ``None``. See :ref:`multiprocessing-start-methods`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e8a675b5-d16f-407d-8802-d56585320f26
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,741
supabase-export-v2
951adde0c2843513
Local processes can also access that queue, using the code from above on the client to access it remotely:: >>> from multiprocessing import Process, Queue >>> from multiprocessing.managers import BaseManager >>> class Worker(Process): ... def __init__(self, q): ... self.q = q ... super().__init__() ... def run(se...
trusted_official_docs
CPython Docs
Local processes can also access that queue, using the code from above on the client to access it remotely:: >>> from multiprocessing import Process, Queue >>> from multiprocessing.managers import BaseManager >>> class Worker(Process): ... def __init__(self, q): ... self.q = q ... super().__init__() ... def run(se...
Local processes can also access that queue, using the code from above on the client to access it remotely:: >>> from multiprocessing import Process, Queue >>> from multiprocessing.managers import BaseManager >>> class Worker(Process): ... def __init__(self, q): ... self.q = q ... super().__init__() ... def run(se...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e9738c83-6f03-453e-9396-e5b678139e93
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,899
supabase-export-v2
daa47761a0dbada8
code creates a listener which uses ``'secret password'`` as an authentication key. It then waits for a connection and sends some data to the client:: from multiprocessing.connection import Listener from array import array
trusted_official_docs
CPython Docs
code creates a listener which uses ``'secret password'`` as an authentication key. It then waits for a connection and sends some data to the client:: from multiprocessing.connection import Listener from array import array
code creates a listener which uses ``'secret password'`` as an authentication key. It then waits for a connection and sends some data to the client:: from multiprocessing.connection import Listener from array import array
python, official-docs, cpython, P0
Local_Trusted_Corpus
e9f9e198-10a5-476f-b0f5-ba2c0c26363e
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,340
supabase-export-v2
454fe4b9697c1a37
on the :class:`queue.Queue` class in the standard library. They differ in that :class:`Queue` lacks the :meth:`~queue.Queue.task_done` and :meth:`~queue.Queue.join` methods introduced into Python 2.5's :class:`queue.Queue` class. If you use :class:`JoinableQueue` then you **must** call :meth:`JoinableQueue.task_done` f...
trusted_official_docs
CPython Docs
on the :class:`queue.Queue` class in the standard library. They differ in that :class:`Queue` lacks the :meth:`~queue.Queue.task_done` and :meth:`~queue.Queue.join` methods introduced into Python 2.5's :class:`queue.Queue` class. If you use :class:`JoinableQueue` then you **must** call :meth:`JoinableQueue.task_done` f...
on the :class:`queue.Queue` class in the standard library. They differ in that :class:`Queue` lacks the :meth:`~queue.Queue.task_done` and :meth:`~queue.Queue.join` methods introduced into Python 2.5's :class:`queue.Queue` class. If you use :class:`JoinableQueue` then you **must** call :meth:`JoinableQueue.task_done` f...
python, official-docs, cpython, P0
Local_Trusted_Corpus
eb7e7a4c-8e8b-4a04-b84a-c8031d56ad76
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,745
supabase-export-v2
a62a8cf12a3e42e2
(presumably) in a different process. The shared object is said to be the *referent* of the proxy. Multiple proxy objects may have the same referent. A proxy object has methods which invoke corresponding methods of its referent (although not every method of the referent will necessarily be available through the proxy). ...
trusted_official_docs
CPython Docs
(presumably) in a different process. The shared object is said to be the *referent* of the proxy. Multiple proxy objects may have the same referent. A proxy object has methods which invoke corresponding methods of its referent (although not every method of the referent will necessarily be available through the proxy). ...
(presumably) in a different process. The shared object is said to be the *referent* of the proxy. Multiple proxy objects may have the same referent. A proxy object has methods which invoke corresponding methods of its referent (although not every method of the referent will necessarily be available through the proxy). ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ebeee56e-b7e1-4392-9880-9069aea03fa7
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,824
supabase-export-v2
f23ec7357aaee9c6
the iterator returned by the :meth:`imap` method has an optional *timeout* parameter: ``next(timeout)`` will raise :exc:`multiprocessing.TimeoutError` if the result cannot be returned within *timeout* seconds. .. method:: imap_unordered(func, iterable[, chunksize])
trusted_official_docs
CPython Docs
the iterator returned by the :meth:`imap` method has an optional *timeout* parameter: ``next(timeout)`` will raise :exc:`multiprocessing.TimeoutError` if the result cannot be returned within *timeout* seconds. .. method:: imap_unordered(func, iterable[, chunksize])
the iterator returned by the :meth:`imap` method has an optional *timeout* parameter: ``next(timeout)`` will raise :exc:`multiprocessing.TimeoutError` if the result cannot be returned within *timeout* seconds. .. method:: imap_unordered(func, iterable[, chunksize])
python, official-docs, cpython, P0
Local_Trusted_Corpus
ec2ceafa-b10a-4cbd-a437-ebe9d333c774
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,339
supabase-export-v2
4e3fd7c3dc4c6f77
For passing messages one can use :func:`Pipe` (for a connection between two processes) or a queue (which allows multiple producers and consumers). The :class:`Queue`, :class:`SimpleQueue` and :class:`JoinableQueue` types are multi-producer, multi-consumer :abbr:`FIFO (first-in, first-out)` queues modelled on the :class...
trusted_official_docs
CPython Docs
For passing messages one can use :func:`Pipe` (for a connection between two processes) or a queue (which allows multiple producers and consumers). The :class:`Queue`, :class:`SimpleQueue` and :class:`JoinableQueue` types are multi-producer, multi-consumer :abbr:`FIFO (first-in, first-out)` queues modelled on the :class...
For passing messages one can use :func:`Pipe` (for a connection between two processes) or a queue (which allows multiple producers and consumers). The :class:`Queue`, :class:`SimpleQueue` and :class:`JoinableQueue` types are multi-producer, multi-consumer :abbr:`FIFO (first-in, first-out)` queues modelled on the :class...
python, official-docs, cpython, P0
Local_Trusted_Corpus
eec33908-c5f4-494f-b744-f66c88b27f5a
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,545
supabase-export-v2
5d282b0c05b802a3
in an unlocked state, then set it to locked and return ``True``. Note that the name of this first argument differs from that in :meth:`threading.Lock.acquire`. With the *block* argument set to ``False``, the method call does not block. If the lock is currently in a locked state, return ``False``; otherwise set the lo...
trusted_official_docs
CPython Docs
in an unlocked state, then set it to locked and return ``True``. Note that the name of this first argument differs from that in :meth:`threading.Lock.acquire`. With the *block* argument set to ``False``, the method call does not block. If the lock is currently in a locked state, return ``False``; otherwise set the lo...
in an unlocked state, then set it to locked and return ``True``. Note that the name of this first argument differs from that in :meth:`threading.Lock.acquire`. With the *block* argument set to ``False``, the method call does not block. If the lock is currently in a locked state, return ``False``; otherwise set the lo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ef555b39-31c8-4a61-bf7d-208967139a47
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,602
supabase-export-v2
7506c1c53b6dc720
.. note:: Although it is possible to store a pointer in shared memory remember that this will refer to a location in the address space of a specific process. However, the pointer is quite likely to be invalid in the context of a second process and trying to dereference the pointer from the second process may cause a...
trusted_official_docs
CPython Docs
.. note:: Although it is possible to store a pointer in shared memory remember that this will refer to a location in the address space of a specific process. However, the pointer is quite likely to be invalid in the context of a second process and trying to dereference the pointer from the second process may cause a...
.. note:: Although it is possible to store a pointer in shared memory remember that this will refer to a location in the address space of a specific process. However, the pointer is quite likely to be invalid in the context of a second process and trying to dereference the pointer from the second process may cause a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f071bfd6-1e3f-4af7-9f6a-346381e0ea11
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,772
supabase-export-v2
cac9249aa01ce31a
a copy of the result of the call or a proxy to a new shared object -- see documentation for the *method_to_typeid* argument of :meth:`BaseManager.register`. If an exception is raised by the call, then is re-raised by :meth:`_callmethod`. If some other exception is raised in the manager's process then this is converte...
trusted_official_docs
CPython Docs
a copy of the result of the call or a proxy to a new shared object -- see documentation for the *method_to_typeid* argument of :meth:`BaseManager.register`. If an exception is raised by the call, then is re-raised by :meth:`_callmethod`. If some other exception is raised in the manager's process then this is converte...
a copy of the result of the call or a proxy to a new shared object -- see documentation for the *method_to_typeid* argument of :meth:`BaseManager.register`. If an exception is raised by the call, then is re-raised by :meth:`_callmethod`. If some other exception is raised in the manager's process then this is converte...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f08e3b66-354c-4243-97ad-85644d3c1ff0
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,662
supabase-export-v2
1cc3fd01b2cb3431
Returns a :class:`Server` object which represents the actual server under the control of the Manager. The :class:`Server` object supports the :meth:`serve_forever` method:: >>> from multiprocessing.managers import BaseManager >>> manager = BaseManager(address=('', 50000), authkey=b'abc') >>> server = manager.get_serv...
trusted_official_docs
CPython Docs
Returns a :class:`Server` object which represents the actual server under the control of the Manager. The :class:`Server` object supports the :meth:`serve_forever` method:: >>> from multiprocessing.managers import BaseManager >>> manager = BaseManager(address=('', 50000), authkey=b'abc') >>> server = manager.get_serv...
Returns a :class:`Server` object which represents the actual server under the control of the Manager. The :class:`Server` object supports the :meth:`serve_forever` method:: >>> from multiprocessing.managers import BaseManager >>> manager = BaseManager(address=('', 50000), authkey=b'abc') >>> server = manager.get_serv...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f118b475-5f0d-4a71-b718-b4270745531a
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,239
supabase-export-v2
8217acc00cea90a0
# print same numbers in arbitrary order for i in pool.imap_unordered(f, range(10)): print(i) # evaluate "f(20)" asynchronously res = pool.apply_async(f, (20,)) # runs in *only* one process print(res.get(timeout=1)) # prints "400"
trusted_official_docs
CPython Docs
# print same numbers in arbitrary order for i in pool.imap_unordered(f, range(10)): print(i) # evaluate "f(20)" asynchronously res = pool.apply_async(f, (20,)) # runs in *only* one process print(res.get(timeout=1)) # prints "400"
# print same numbers in arbitrary order for i in pool.imap_unordered(f, range(10)): print(i) # evaluate "f(20)" asynchronously res = pool.apply_async(f, (20,)) # runs in *only* one process print(res.get(timeout=1)) # prints "400"
python, official-docs, cpython, P0
Local_Trusted_Corpus
f187a6bc-8a13-4bc4-b4cb-09280acde35d
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,203
supabase-export-v2
f3ffe0f9b69eb61e
the synchronization primitives from :mod:`threading`. For instance one can use a lock to ensure that only one process prints to standard output at a time:: from multiprocessing import Process, Lock
trusted_official_docs
CPython Docs
the synchronization primitives from :mod:`threading`. For instance one can use a lock to ensure that only one process prints to standard output at a time:: from multiprocessing import Process, Lock
the synchronization primitives from :mod:`threading`. For instance one can use a lock to ensure that only one process prints to standard output at a time:: from multiprocessing import Process, Lock
python, official-docs, cpython, P0
Local_Trusted_Corpus
f20ccb4e-eb5e-4612-bfff-ba568ebbf264
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,806
supabase-export-v2
b80716a47bf26f25
Given this blocks, :meth:`apply_async` is better suited for performing work in parallel. Additionally, *func* is only executed in one of the workers of the pool. .. method:: apply_async(func[, args[, kwds[, callback[, error_callback]]]])
trusted_official_docs
CPython Docs
Given this blocks, :meth:`apply_async` is better suited for performing work in parallel. Additionally, *func* is only executed in one of the workers of the pool. .. method:: apply_async(func[, args[, kwds[, callback[, error_callback]]]])
Given this blocks, :meth:`apply_async` is better suited for performing work in parallel. Additionally, *func* is only executed in one of the workers of the pool. .. method:: apply_async(func[, args[, kwds[, callback[, error_callback]]]])
python, official-docs, cpython, P0
Local_Trusted_Corpus
f23fa958-b2a6-479b-a3e8-bd131e8b378d
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,321
supabase-export-v2
f2cb7306211cb3bd
.. method:: close() Close the :class:`Process` object, releasing all resources associated with it. :exc:`ValueError` is raised if the underlying process is still running. Once :meth:`close` returns successfully, most other methods and attributes of the :class:`Process` object will raise :exc:`ValueError`.
trusted_official_docs
CPython Docs
.. method:: close() Close the :class:`Process` object, releasing all resources associated with it. :exc:`ValueError` is raised if the underlying process is still running. Once :meth:`close` returns successfully, most other methods and attributes of the :class:`Process` object will raise :exc:`ValueError`.
.. method:: close() Close the :class:`Process` object, releasing all resources associated with it. :exc:`ValueError` is raised if the underlying process is still running. Once :meth:`close` returns successfully, most other methods and attributes of the :class:`Process` object will raise :exc:`ValueError`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f2f5b7b0-db2f-49ef-8b3e-dd8da0493759
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,627
supabase-export-v2
e4cea0df71c7b5d1
is a context object, or ``None`` (use the current context). If ``None``, calling this may set the global start method. See :ref:`global-start-method` for more details. A synchronized wrapper will have two methods in addition to those of the object it wraps: :meth:`get_obj` returns the wrapped object and :meth:`get_lo...
trusted_official_docs
CPython Docs
is a context object, or ``None`` (use the current context). If ``None``, calling this may set the global start method. See :ref:`global-start-method` for more details. A synchronized wrapper will have two methods in addition to those of the object it wraps: :meth:`get_obj` returns the wrapped object and :meth:`get_lo...
is a context object, or ``None`` (use the current context). If ``None``, calling this may set the global start method. See :ref:`global-start-method` for more details. A synchronized wrapper will have two methods in addition to those of the object it wraps: :meth:`get_obj` returns the wrapped object and :meth:`get_lo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f30211d3-312f-4377-8640-e60ec41d6640
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,926
supabase-export-v2
ca21d399535b0ae4
automatically unpickled. Unfortunately unpickling data from an untrusted source is a security risk. Therefore :class:`Listener` and :func:`Client` use the :mod:`hmac` module to provide digest authentication. An authentication key is a byte string which can be thought of as a password: once a connection is established b...
trusted_official_docs
CPython Docs
automatically unpickled. Unfortunately unpickling data from an untrusted source is a security risk. Therefore :class:`Listener` and :func:`Client` use the :mod:`hmac` module to provide digest authentication. An authentication key is a byte string which can be thought of as a password: once a connection is established b...
automatically unpickled. Unfortunately unpickling data from an untrusted source is a security risk. Therefore :class:`Listener` and :func:`Client` use the :mod:`hmac` module to provide digest authentication. An authentication key is a byte string which can be thought of as a password: once a connection is established b...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f42c3bde-8fce-44c0-9a08-aa52a2bc25a1
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,348
supabase-export-v2
b153b2cfbf5c6df8
object on an empty queue there may be an infinitesimal delay before the queue's :meth:`~Queue.empty` method returns :const:`False` and :meth:`~Queue.get_nowait` can return without raising :exc:`queue.Empty`. (2) If multiple processes are enqueuing objects, it is possible for the objects to be received at the other end...
trusted_official_docs
CPython Docs
object on an empty queue there may be an infinitesimal delay before the queue's :meth:`~Queue.empty` method returns :const:`False` and :meth:`~Queue.get_nowait` can return without raising :exc:`queue.Empty`. (2) If multiple processes are enqueuing objects, it is possible for the objects to be received at the other end...
object on an empty queue there may be an infinitesimal delay before the queue's :meth:`~Queue.empty` method returns :const:`False` and :meth:`~Queue.get_nowait` can return without raising :exc:`queue.Empty`. (2) If multiple processes are enqueuing objects, it is possible for the objects to be received at the other end...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f480ee57-6396-4285-8382-2ed2247c5683
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,894
supabase-export-v2
6ce6c6388518f430
* a readable :class:`~multiprocessing.connection.Connection` object; * a connected and readable :class:`socket.socket` object; or * the :attr:`~multiprocessing.Process.sentinel` attribute of a :class:`~multiprocessing.Process` object. A connection or socket object is ready when there is data available to be read from ...
trusted_official_docs
CPython Docs
* a readable :class:`~multiprocessing.connection.Connection` object; * a connected and readable :class:`socket.socket` object; or * the :attr:`~multiprocessing.Process.sentinel` attribute of a :class:`~multiprocessing.Process` object. A connection or socket object is ready when there is data available to be read from ...
* a readable :class:`~multiprocessing.connection.Connection` object; * a connected and readable :class:`socket.socket` object; or * the :attr:`~multiprocessing.Process.sentinel` attribute of a :class:`~multiprocessing.Process` object. A connection or socket object is ready when there is data available to be read from ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f48f9118-7a82-4c62-a071-ead3f6c0a2c4
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,747
supabase-export-v2
da12b53728eef3a1
.. doctest:: >>> mp_context = multiprocessing.get_context('spawn') >>> manager = mp_context.Manager() >>> l = manager.list([i*i for i in range(10)]) >>> print(l) [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] >>> print(repr(l)) <ListProxy object, typeid 'list' at 0x...> >>> l[4] 16 >>> l[2:5] [4, 9, 16]
trusted_official_docs
CPython Docs
.. doctest:: >>> mp_context = multiprocessing.get_context('spawn') >>> manager = mp_context.Manager() >>> l = manager.list([i*i for i in range(10)]) >>> print(l) [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] >>> print(repr(l)) <ListProxy object, typeid 'list' at 0x...> >>> l[4] 16 >>> l[2:5] [4, 9, 16]
.. doctest:: >>> mp_context = multiprocessing.get_context('spawn') >>> manager = mp_context.Manager() >>> l = manager.list([i*i for i in range(10)]) >>> print(l) [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] >>> print(repr(l)) <ListProxy object, typeid 'list' at 0x...> >>> l[4] 16 >>> l[2:5] [4, 9, 16]
python, official-docs, cpython, P0
Local_Trusted_Corpus
f51f26b1-1822-4a17-825c-1470932f834b
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,353
supabase-export-v2
16aba8b306aef54d
a queue (and it has not used :meth:`JoinableQueue.cancel_join_thread <multiprocessing.Queue.cancel_join_thread>`), then that process will not terminate until all buffered items have been flushed to the pipe. This means that if you try joining that process you may get a deadlock unless you are sure that all items which...
trusted_official_docs
CPython Docs
a queue (and it has not used :meth:`JoinableQueue.cancel_join_thread <multiprocessing.Queue.cancel_join_thread>`), then that process will not terminate until all buffered items have been flushed to the pipe. This means that if you try joining that process you may get a deadlock unless you are sure that all items which...
a queue (and it has not used :meth:`JoinableQueue.cancel_join_thread <multiprocessing.Queue.cancel_join_thread>`), then that process will not terminate until all buffered items have been flushed to the pipe. This means that if you try joining that process you may get a deadlock unless you are sure that all items which...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f5db1fa8-e9fa-40c5-ae1f-7d95037621b4
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,359
supabase-export-v2
2aa3dfbbffe63b67
*duplex* is ``False`` then the pipe is unidirectional: ``conn1`` can only be used for receiving messages and ``conn2`` can only be used for sending messages. The :meth:`~multiprocessing.Connection.send` method serializes the object using :mod:`pickle` and the :meth:`~multiprocessing.Connection.recv` re-creates the obj...
trusted_official_docs
CPython Docs
*duplex* is ``False`` then the pipe is unidirectional: ``conn1`` can only be used for receiving messages and ``conn2`` can only be used for sending messages. The :meth:`~multiprocessing.Connection.send` method serializes the object using :mod:`pickle` and the :meth:`~multiprocessing.Connection.recv` re-creates the obj...
*duplex* is ``False`` then the pipe is unidirectional: ``conn1`` can only be used for receiving messages and ``conn2`` can only be used for sending messages. The :meth:`~multiprocessing.Connection.send` method serializes the object using :mod:`pickle` and the :meth:`~multiprocessing.Connection.recv` re-creates the obj...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f6901938-bb6d-4f70-b5fc-1472cddce73c
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,973
supabase-export-v2
07ff362b1d26bd93
cause any shared resources (such as locks, semaphores, pipes and queues) currently being used by the process to become broken or unavailable to other processes. Therefore it is probably best to only consider using :meth:`Process.terminate <multiprocessing.Process.terminate>` on processes which never use any shared re...
trusted_official_docs
CPython Docs
cause any shared resources (such as locks, semaphores, pipes and queues) currently being used by the process to become broken or unavailable to other processes. Therefore it is probably best to only consider using :meth:`Process.terminate <multiprocessing.Process.terminate>` on processes which never use any shared re...
cause any shared resources (such as locks, semaphores, pipes and queues) currently being used by the process to become broken or unavailable to other processes. Therefore it is probably best to only consider using :meth:`Process.terminate <multiprocessing.Process.terminate>` on processes which never use any shared re...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f8e1f949-584f-4b36-9423-89a1c5291601
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,813
supabase-export-v2
cff687e9e129f52a
equivalent of the :func:`map` built-in function (it supports only one *iterable* argument though, for multiple iterables see :meth:`starmap`). It blocks until the result is ready. This method chops the iterable into a number of chunks which it submits to the process pool as separate tasks. The (approximate) size of th...
trusted_official_docs
CPython Docs
equivalent of the :func:`map` built-in function (it supports only one *iterable* argument though, for multiple iterables see :meth:`starmap`). It blocks until the result is ready. This method chops the iterable into a number of chunks which it submits to the process pool as separate tasks. The (approximate) size of th...
equivalent of the :func:`map` built-in function (it supports only one *iterable* argument though, for multiple iterables see :meth:`starmap`). It blocks until the result is ready. This method chops the iterable into a number of chunks which it submits to the process pool as separate tasks. The (approximate) size of th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fb286e55-493b-42d5-b9ca-9a2a7d5a9906
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,210
supabase-export-v2
3950bca1dc30c9f4
when doing concurrent programming it is usually best to avoid using shared state as far as possible. This is particularly true when using multiple processes. However, if you really do need to use some shared data then :mod:`!multiprocessing` provides a couple of ways of doing so.
trusted_official_docs
CPython Docs
when doing concurrent programming it is usually best to avoid using shared state as far as possible. This is particularly true when using multiple processes. However, if you really do need to use some shared data then :mod:`!multiprocessing` provides a couple of ways of doing so.
when doing concurrent programming it is usually best to avoid using shared state as far as possible. This is particularly true when using multiple processes. However, if you really do need to use some shared data then :mod:`!multiprocessing` provides a couple of ways of doing so.
python, official-docs, cpython, P0
Local_Trusted_Corpus
fb6dc9cf-81c0-4a23-b80c-7258944aa504
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,202
supabase-export-v2
7ad777b665e5db2f
Synchronization between processes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :mod:`!multiprocessing` contains equivalents of all the synchronization primitives from :mod:`threading`. For instance one can use a lock to ensure that only one process prints to standard output at a time::
trusted_official_docs
CPython Docs
Synchronization between processes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :mod:`!multiprocessing` contains equivalents of all the synchronization primitives from :mod:`threading`. For instance one can use a lock to ensure that only one process prints to standard output at a time::
Synchronization between processes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :mod:`!multiprocessing` contains equivalents of all the synchronization primitives from :mod:`threading`. For instance one can use a lock to ensure that only one process prints to standard output at a time::
python, official-docs, cpython, P0
Local_Trusted_Corpus
fbb5173a-82a2-4a74-a20b-4e2426106717
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,307
supabase-export-v2
55b781487d2985ce
You can use this value if you want to wait on several events at once using :func:`multiprocessing.connection.wait`. Otherwise calling :meth:`join` is simpler. On Windows, this is an OS handle usable with the ``WaitForSingleObject`` and ``WaitForMultipleObjects`` family of API calls. On POSIX, this is a file descripto...
trusted_official_docs
CPython Docs
You can use this value if you want to wait on several events at once using :func:`multiprocessing.connection.wait`. Otherwise calling :meth:`join` is simpler. On Windows, this is an OS handle usable with the ``WaitForSingleObject`` and ``WaitForMultipleObjects`` family of API calls. On POSIX, this is a file descripto...
You can use this value if you want to wait on several events at once using :func:`multiprocessing.connection.wait`. Otherwise calling :meth:`join` is simpler. On Windows, this is an OS handle usable with the ``WaitForSingleObject`` and ``WaitForMultipleObjects`` family of API calls. On POSIX, this is a file descripto...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fbd3333e-9e03-4f5d-96a8-a8004a517459
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,947
supabase-export-v2
50ad8a7d89cee5fe
.. class:: ThreadPool([processes[, initializer[, initargs]]]) A thread pool object which controls a pool of worker threads to which jobs can be submitted. :class:`ThreadPool` instances are fully interface compatible with :class:`Pool` instances, and their resources must also be properly managed, either by using the ...
trusted_official_docs
CPython Docs
.. class:: ThreadPool([processes[, initializer[, initargs]]]) A thread pool object which controls a pool of worker threads to which jobs can be submitted. :class:`ThreadPool` instances are fully interface compatible with :class:`Pool` instances, and their resources must also be properly managed, either by using the ...
.. class:: ThreadPool([processes[, initializer[, initargs]]]) A thread pool object which controls a pool of worker threads to which jobs can be submitted. :class:`ThreadPool` instances are fully interface compatible with :class:`Pool` instances, and their resources must also be properly managed, either by using the ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fc41b93c-54aa-4112-b743-23dcaf571133
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,249
supabase-export-v2
bf1af5774c1f43f8
on <module '__main__' (<class '_frozen_importlib.BuiltinImporter'>)> AttributeError: Can't get attribute 'f' on <module '__main__' (<class '_frozen_importlib.BuiltinImporter'>)> AttributeError: Can't get attribute 'f' on <module '__main__' (<class '_frozen_importlib.BuiltinImporter'>)> (If you try this it will actually...
trusted_official_docs
CPython Docs
on <module '__main__' (<class '_frozen_importlib.BuiltinImporter'>)> AttributeError: Can't get attribute 'f' on <module '__main__' (<class '_frozen_importlib.BuiltinImporter'>)> AttributeError: Can't get attribute 'f' on <module '__main__' (<class '_frozen_importlib.BuiltinImporter'>)> (If you try this it will actually...
on <module '__main__' (<class '_frozen_importlib.BuiltinImporter'>)> AttributeError: Can't get attribute 'f' on <module '__main__' (<class '_frozen_importlib.BuiltinImporter'>)> AttributeError: Can't get attribute 'f' on <module '__main__' (<class '_frozen_importlib.BuiltinImporter'>)> (If you try this it will actually...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fc675822-5455-4c52-b15a-82e4059719d8
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,444
supabase-export-v2
85522170f56bf9f4
.. function:: get_all_start_methods() Returns a list of the supported start methods, the first of which is the default. The possible start methods are ``'fork'``, ``'spawn'`` and ``'forkserver'``. Not all platforms support all methods. See :ref:`multiprocessing-start-methods`.
trusted_official_docs
CPython Docs
.. function:: get_all_start_methods() Returns a list of the supported start methods, the first of which is the default. The possible start methods are ``'fork'``, ``'spawn'`` and ``'forkserver'``. Not all platforms support all methods. See :ref:`multiprocessing-start-methods`.
.. function:: get_all_start_methods() Returns a list of the supported start methods, the first of which is the default. The possible start methods are ``'fork'``, ``'spawn'`` and ``'forkserver'``. Not all platforms support all methods. See :ref:`multiprocessing-start-methods`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
fd61057f-dc68-4da0-96f6-bfed1aa8a2ca
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,629
supabase-export-v2
bbcbbbca70791b6b
Note that accessing the ctypes object through the wrapper can be a lot slower than accessing the raw ctypes object. .. versionchanged:: 3.5 Synchronized objects support the :term:`context manager` protocol.
trusted_official_docs
CPython Docs
Note that accessing the ctypes object through the wrapper can be a lot slower than accessing the raw ctypes object. .. versionchanged:: 3.5 Synchronized objects support the :term:`context manager` protocol.
Note that accessing the ctypes object through the wrapper can be a lot slower than accessing the raw ctypes object. .. versionchanged:: 3.5 Synchronized objects support the :term:`context manager` protocol.
python, official-docs, cpython, P0
Local_Trusted_Corpus
fd6a0d3b-ede3-4f3b-aaf3-4d374c0770cb
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,553
supabase-export-v2
16226539e934cba1
.. class:: RLock() A recursive lock object: a close analog of :class:`threading.RLock`. A recursive lock must be released by the process or thread that acquired it. Once a process or thread has acquired a recursive lock, the same process or thread may acquire it again without blocking; that process or thread must re...
trusted_official_docs
CPython Docs
.. class:: RLock() A recursive lock object: a close analog of :class:`threading.RLock`. A recursive lock must be released by the process or thread that acquired it. Once a process or thread has acquired a recursive lock, the same process or thread may acquire it again without blocking; that process or thread must re...
.. class:: RLock() A recursive lock object: a close analog of :class:`threading.RLock`. A recursive lock must be released by the process or thread that acquired it. Once a process or thread has acquired a recursive lock, the same process or thread may acquire it again without blocking; that process or thread must re...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fdf6eca8-cbb2-49cf-821d-551cbe8ad8c2
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,606
supabase-export-v2
a2c84a3b301e6aef
will be initially zeroed. Otherwise *size_or_initializer* is a sequence which is used to initialize the array and whose length determines the length of the array. Note that setting and getting an element is potentially non-atomic -- use :func:`Array` instead to make sure that access is automatically synchronized usin...
trusted_official_docs
CPython Docs
will be initially zeroed. Otherwise *size_or_initializer* is a sequence which is used to initialize the array and whose length determines the length of the array. Note that setting and getting an element is potentially non-atomic -- use :func:`Array` instead to make sure that access is automatically synchronized usin...
will be initially zeroed. Otherwise *size_or_initializer* is a sequence which is used to initialize the array and whose length determines the length of the array. Note that setting and getting an element is potentially non-atomic -- use :func:`Array` instead to make sure that access is automatically synchronized usin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fe265ce4-d3f5-4fa0-96a5-7bf1b8335a47
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,673
supabase-export-v2
9d01afbb04ad9cb9
*typeid* is a "type identifier" which is used to identify a particular type of shared object. This must be a string. *callable* is a callable used for creating objects for this type identifier. If a manager instance will be connected to the server using the :meth:`connect` method, or if the *create_method* argument ...
trusted_official_docs
CPython Docs
*typeid* is a "type identifier" which is used to identify a particular type of shared object. This must be a string. *callable* is a callable used for creating objects for this type identifier. If a manager instance will be connected to the server using the :meth:`connect` method, or if the *create_method* argument ...
*typeid* is a "type identifier" which is used to identify a particular type of shared object. This must be a string. *callable* is a callable used for creating objects for this type identifier. If a manager instance will be connected to the server using the :meth:`connect` method, or if the *create_method* argument ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ff24300f-a885-4350-81b1-55a4573b49e6
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,925
supabase-export-v2
fae31b08a880d40b
Authentication keys ^^^^^^^^^^^^^^^^^^^ When one uses :meth:`Connection.recv <Connection.recv>`, the data received is automatically unpickled. Unfortunately unpickling data from an untrusted source is a security risk. Therefore :class:`Listener` and :func:`Client` use the :mod:`hmac` module to provide digest authentica...
trusted_official_docs
CPython Docs
Authentication keys ^^^^^^^^^^^^^^^^^^^ When one uses :meth:`Connection.recv <Connection.recv>`, the data received is automatically unpickled. Unfortunately unpickling data from an untrusted source is a security risk. Therefore :class:`Listener` and :func:`Client` use the :mod:`hmac` module to provide digest authentica...
Authentication keys ^^^^^^^^^^^^^^^^^^^ When one uses :meth:`Connection.recv <Connection.recv>`, the data received is automatically unpickled. Unfortunately unpickling data from an untrusted source is a security risk. Therefore :class:`Listener` and :func:`Client` use the :mod:`hmac` module to provide digest authentica...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ffbd0733-3fbb-44f1-9e0f-4ef8a17ec31d
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,503
supabase-export-v2
035a1c6895fce4ff
the buffer is too short then a :exc:`BufferTooShort` exception is raised and the complete message is available as ``e.args[0]`` where ``e`` is the exception instance. .. versionchanged:: 3.3 Connection objects themselves can now be transferred between processes using :meth:`Connection.send` and :meth:`Connection.recv...
trusted_official_docs
CPython Docs
the buffer is too short then a :exc:`BufferTooShort` exception is raised and the complete message is available as ``e.args[0]`` where ``e`` is the exception instance. .. versionchanged:: 3.3 Connection objects themselves can now be transferred between processes using :meth:`Connection.send` and :meth:`Connection.recv...
the buffer is too short then a :exc:`BufferTooShort` exception is raised and the complete message is available as ``e.args[0]`` where ``e`` is the exception instance. .. versionchanged:: 3.3 Connection objects themselves can now be transferred between processes using :meth:`Connection.send` and :meth:`Connection.recv...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ffd4f7d7-4fb8-4dec-adb5-9b826ac14fc5
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,831
supabase-export-v2
015f04ff850fd277
.. method:: starmap_async(func, iterable[, chunksize[, callback[, error_callback]]]) A combination of :meth:`starmap` and :meth:`map_async` that iterates over *iterable* of iterables and calls *func* with the iterables unpacked. Returns a result object.
trusted_official_docs
CPython Docs
.. method:: starmap_async(func, iterable[, chunksize[, callback[, error_callback]]]) A combination of :meth:`starmap` and :meth:`map_async` that iterates over *iterable* of iterables and calls *func* with the iterables unpacked. Returns a result object.
.. method:: starmap_async(func, iterable[, chunksize[, callback[, error_callback]]]) A combination of :meth:`starmap` and :meth:`map_async` that iterates over *iterable* of iterables and calls *func* with the iterables unpacked. Returns a result object.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ffe843a1-cfbc-4158-86c6-ed1114b5d7ae
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,998
supabase-export-v2
0a70fa87923ce873
sys.stdin.close() sys.stdin = open(os.open(os.devnull, os.O_RDONLY), closefd=False) Which solves the fundamental issue of processes colliding with each other resulting in a bad file descriptor error, but introduces a potential danger to applications which replace :func:`sys.stdin` with a "file-like object" with outp...
trusted_official_docs
CPython Docs
sys.stdin.close() sys.stdin = open(os.open(os.devnull, os.O_RDONLY), closefd=False) Which solves the fundamental issue of processes colliding with each other resulting in a bad file descriptor error, but introduces a potential danger to applications which replace :func:`sys.stdin` with a "file-like object" with outp...
sys.stdin.close() sys.stdin = open(os.open(os.devnull, os.O_RDONLY), closefd=False) Which solves the fundamental issue of processes colliding with each other resulting in a bad file descriptor error, but introduces a potential danger to applications which replace :func:`sys.stdin` with a "file-like object" with outp...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fff0f5e9-54de-4071-bd49-4d7604f65e37
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,494
supabase-export-v2
4d73a70eaf70eaa7
Send byte data from a :term:`bytes-like object` as a complete message. If *offset* is given then data is read from that position in *buf*. If *size* is given then that many bytes will be read from *buf*. Very large buffers (approximately 32 MiB+, though it depends on the OS) may raise a :exc:`ValueError` exception
trusted_official_docs
CPython Docs
Send byte data from a :term:`bytes-like object` as a complete message. If *offset* is given then data is read from that position in *buf*. If *size* is given then that many bytes will be read from *buf*. Very large buffers (approximately 32 MiB+, though it depends on the OS) may raise a :exc:`ValueError` exception
Send byte data from a :term:`bytes-like object` as a complete message. If *offset* is given then data is read from that position in *buf*. If *size* is given then that many bytes will be read from *buf*. Very large buffers (approximately 32 MiB+, though it depends on the OS) may raise a :exc:`ValueError` exception
python, official-docs, cpython, P0
Local_Trusted_Corpus
fffb8248-dc7d-456d-b39d-307178d14c61
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,808
supabase-export-v2
36ab8b640ddaea7d
A variant of the :meth:`apply` method which returns a :class:`~multiprocessing.pool.AsyncResult` object. If *callback* is specified then it should be a callable which accepts a single argument. When the result becomes ready *callback* is applied to it, that is unless the call failed, in which case the *error_callback...
trusted_official_docs
CPython Docs
A variant of the :meth:`apply` method which returns a :class:`~multiprocessing.pool.AsyncResult` object. If *callback* is specified then it should be a callable which accepts a single argument. When the result becomes ready *callback* is applied to it, that is unless the call failed, in which case the *error_callback...
A variant of the :meth:`apply` method which returns a :class:`~multiprocessing.pool.AsyncResult` object. If *callback* is specified then it should be a callable which accepts a single argument. When the result becomes ready *callback* is applied to it, that is unless the call failed, in which case the *error_callback...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ca72bed7-f9ad-4030-ac7a-cc634e9bbc9c
CPython Docs
file://datasets/cpython/Doc/library/frameworks.rst
unknown
c870a24f-9868-4206-a883-0998c263fec0
7,033
supabase-export-v2
d84f1a47e781f643
This chapter is no longer maintained, and the modules it contained have been moved to their respective topical documentation. * :mod:`cmd` — :doc:`Command Line Interface Libraries <./cmdlinelibs>` * :mod:`shlex` — :doc:`Unix Specific Services <./unix>` * :mod:`turtle` — :doc:`Graphical User Interfaces with Tk <./tk>`
trusted_official_docs
CPython Docs
This chapter is no longer maintained, and the modules it contained have been moved to their respective topical documentation. * :mod:`cmd` — :doc:`Command Line Interface Libraries <./cmdlinelibs>` * :mod:`shlex` — :doc:`Unix Specific Services <./unix>` * :mod:`turtle` — :doc:`Graphical User Interfaces with Tk <./tk>`
This chapter is no longer maintained, and the modules it contained have been moved to their respective topical documentation. * :mod:`cmd` — :doc:`Command Line Interface Libraries <./cmdlinelibs>` * :mod:`shlex` — :doc:`Unix Specific Services <./unix>` * :mod:`turtle` — :doc:`Graphical User Interfaces with Tk <./tk>`
python, official-docs, cpython, P0
Local_Trusted_Corpus
00ac9ff0-29b9-43b4-9c2a-52eede9f1ec7
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,167
supabase-export-v2
74ca5325bd4040dc
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 added. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the ``make_`` and ``add_`` methods.
trusted_official_docs
CPython Docs
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 added. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the ``make_`` and ``add_`` methods.
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 added. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the ``make_`` and ``add_`` methods.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0212be90-a3a6-415e-a2fd-d6ec276be37a
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,072
supabase-export-v2
b187307eca36cd93
.. method:: get_payload(i=None, decode=False) Return the current payload, which will be a list of :class:`Message` objects when :meth:`is_multipart` is ``True``, or 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.
trusted_official_docs
CPython Docs
.. method:: get_payload(i=None, decode=False) Return the current payload, which will be a list of :class:`Message` objects when :meth:`is_multipart` is ``True``, or 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.
.. method:: get_payload(i=None, decode=False) Return the current payload, which will be a list of :class:`Message` objects when :meth:`is_multipart` is ``True``, or 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.
python, official-docs, cpython, P0
Local_Trusted_Corpus
09b481ba-70a8-4e38-ba4d-881ed2be23e8
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,077
supabase-export-v2
736281d3a50ec093
no ``charset`` is specified, or if the ``charset`` given is not recognized by the email package, the body is decoded using the default ASCII charset. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by :meth:`~email.message.EmailMessage.get_content` and :meth:`...
trusted_official_docs
CPython Docs
no ``charset`` is specified, or if the ``charset`` given is not recognized by the email package, the body is decoded using the default ASCII charset. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by :meth:`~email.message.EmailMessage.get_content` and :meth:`...
no ``charset`` is specified, or if the ``charset`` given is not recognized by the email package, the body is decoded using the default ASCII charset. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by :meth:`~email.message.EmailMessage.get_content` and :meth:`...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0c9b95e0-bfa9-4e54-9215-915c4836074b
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,057
supabase-export-v2
41b1fff6bef0d571
instance. This can be used to control some of the formatting produced by the method, since the specified *policy* will be passed to the ``BytesGenerator``. Flattening the message may trigger changes to the :class:`Message` if defaults need to be filled in to complete the transformation to a string (for example, MIME ...
trusted_official_docs
CPython Docs
instance. This can be used to control some of the formatting produced by the method, since the specified *policy* will be passed to the ``BytesGenerator``. Flattening the message may trigger changes to the :class:`Message` if defaults need to be filled in to complete the transformation to a string (for example, MIME ...
instance. This can be used to control some of the formatting produced by the method, since the specified *policy* will be passed to the ``BytesGenerator``. Flattening the message may trigger changes to the :class:`Message` if defaults need to be filled in to complete the transformation to a string (for example, MIME ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0e0cfdda-9eae-4764-bbc6-50ce48292fb8
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,154
supabase-export-v2
a675aa5099566be8
any case, the parameter value (either the returned string, or the ``VALUE`` item in the 3-tuple) is always unquoted, unless *unquote* is set to ``False``. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the *params* property of the individual header objects ...
trusted_official_docs
CPython Docs
any case, the parameter value (either the returned string, or the ``VALUE`` item in the 3-tuple) is always unquoted, unless *unquote* is set to ``False``. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the *params* property of the individual header objects ...
any case, the parameter value (either the returned string, or the ``VALUE`` item in the 3-tuple) is always unquoted, unless *unquote* is set to ``False``. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the *params* property of the individual header objects ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
129bff97-f697-4485-8269-ffd59228456a
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,162
supabase-export-v2
2693e6b46448d06c
.. method:: del_param(param, header='content-type', requote=True) Remove the given parameter completely from the :mailheader:`Content-Type` header. The header will be re-written in place without the parameter or its value. All values will be quoted as necessary unless *requote* is ``False`` (the default is ``True``)...
trusted_official_docs
CPython Docs
.. method:: del_param(param, header='content-type', requote=True) Remove the given parameter completely from the :mailheader:`Content-Type` header. The header will be re-written in place without the parameter or its value. All values will be quoted as necessary unless *requote* is ``False`` (the default is ``True``)...
.. method:: del_param(param, header='content-type', requote=True) Remove the given parameter completely from the :mailheader:`Content-Type` header. The header will be re-written in place without the parameter or its value. All values will be quoted as necessary unless *requote* is ``False`` (the default is ``True``)...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1f449458-4258-4c62-a556-4721263aa12f
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,038
supabase-export-v2
99b079c5a7356383
The philosophy and structure of the two classes is otherwise the same. This document describes the behavior under the default (for :class:`Message`) policy :attr:`~email.policy.Compat32`. If you are going to use another policy, you should be using the :class:`~email.message.EmailMessage` class instead.
trusted_official_docs
CPython Docs
The philosophy and structure of the two classes is otherwise the same. This document describes the behavior under the default (for :class:`Message`) policy :attr:`~email.policy.Compat32`. If you are going to use another policy, you should be using the :class:`~email.message.EmailMessage` class instead.
The philosophy and structure of the two classes is otherwise the same. This document describes the behavior under the default (for :class:`Message`) policy :attr:`~email.policy.Compat32`. If you are going to use another policy, you should be using the :class:`~email.message.EmailMessage` class instead.
python, official-docs, cpython, P0
Local_Trusted_Corpus
294f9099-50a4-427d-ae5c-05014f6450c6
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,080
supabase-export-v2
d216ccebdc318d6d
payload to *payload*. It is the client's responsibility to ensure the payload invariants. Optional *charset* sets the message's default character set; see :meth:`set_charset` for details. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by :meth:`~email.message....
trusted_official_docs
CPython Docs
payload to *payload*. It is the client's responsibility to ensure the payload invariants. Optional *charset* sets the message's default character set; see :meth:`set_charset` for details. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by :meth:`~email.message....
payload to *payload*. It is the client's responsibility to ensure the payload invariants. Optional *charset* sets the message's default character set; see :meth:`set_charset` for details. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by :meth:`~email.message....
python, official-docs, cpython, P0
Local_Trusted_Corpus
29a10066-5417-42c1-bb80-a30dfaa9c523
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,045
supabase-export-v2
15f56621b1cb1be0
use the :class:`compat32 <email.policy.Compat32>` policy, which maintains backward compatibility with the Python 3.2 version of the email package. For more information see the :mod:`~email.policy` documentation. .. versionchanged:: 3.3 The *policy* keyword argument was added.
trusted_official_docs
CPython Docs
use the :class:`compat32 <email.policy.Compat32>` policy, which maintains backward compatibility with the Python 3.2 version of the email package. For more information see the :mod:`~email.policy` documentation. .. versionchanged:: 3.3 The *policy* keyword argument was added.
use the :class:`compat32 <email.policy.Compat32>` policy, which maintains backward compatibility with the Python 3.2 version of the email package. For more information see the :mod:`~email.policy` documentation. .. versionchanged:: 3.3 The *policy* keyword argument was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2eb8aa68-ffa7-4448-adf1-8dde0db32a80
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,059
supabase-export-v2
ccc58728ed99fd7d
with ``From`` that is required by the Unix mbox format. For more flexibility, instantiate a :class:`~email.generator.BytesGenerator` instance and use its :meth:`~email.generator.BytesGenerator.flatten` method directly. For example:: from io import BytesIO from email.generator import BytesGenerator fp = BytesIO() g =...
trusted_official_docs
CPython Docs
with ``From`` that is required by the Unix mbox format. For more flexibility, instantiate a :class:`~email.generator.BytesGenerator` instance and use its :meth:`~email.generator.BytesGenerator.flatten` method directly. For example:: from io import BytesIO from email.generator import BytesGenerator fp = BytesIO() g =...
with ``From`` that is required by the Unix mbox format. For more flexibility, instantiate a :class:`~email.generator.BytesGenerator` instance and use its :meth:`~email.generator.BytesGenerator.flatten` method directly. For example:: from io import BytesIO from email.generator import BytesGenerator fp = BytesIO() g =...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3111173a-0dbf-4f68-91a2-8e23e488ef0d
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,142
supabase-export-v2
816d3d3a4fcbea6d
.. method:: set_default_type(ctype) Set the default 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.
trusted_official_docs
CPython Docs
.. method:: set_default_type(ctype) Set the default 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:: set_default_type(ctype) Set the default 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.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3b2594ef-dbe7-45cf-8756-c2465558257f
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,097
supabase-export-v2
d954f488ff4b5583
message object has a field named *name*. Matching is done case-insensitively and *name* should not include the trailing colon. Used for the ``in`` operator, e.g.:: if 'message-id' in myMessage: print('Message-ID:', myMessage['message-id'])
trusted_official_docs
CPython Docs
message object has a field named *name*. Matching is done case-insensitively and *name* should not include the trailing colon. Used for the ``in`` operator, e.g.:: if 'message-id' in myMessage: print('Message-ID:', myMessage['message-id'])
message object has a field named *name*. Matching is done case-insensitively and *name* should not include the trailing colon. Used for the ``in`` operator, e.g.:: if 'message-id' in myMessage: print('Message-ID:', myMessage['message-id'])
python, official-docs, cpython, P0
Local_Trusted_Corpus
3c505c89-c0c7-4bc5-86f7-f18b94d7be5d
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,131
supabase-export-v2
78a357bae633b571
.. method:: replace_header(_name, _value) Replace a header. Replace the first header found in the message that matches *_name*, retaining header order and field name case. If no matching header was found, a :exc:`KeyError` is raised.
trusted_official_docs
CPython Docs
.. method:: replace_header(_name, _value) Replace a header. Replace the first header found in the message that matches *_name*, retaining header order and field name case. If no matching header was found, a :exc:`KeyError` is raised.
.. method:: replace_header(_name, _value) Replace a header. Replace the first header found in the message that matches *_name*, retaining header order and field name case. If no matching header was found, a :exc:`KeyError` is raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
44cced71-76d4-492a-b70f-21ef73fcd2e1
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,042
supabase-export-v2
7bc8bbec4855ada2
a string or bytes, in the case of simple message objects, or a list of :class:`Message` objects, for MIME container documents (e.g. :mimetype:`multipart/\*` and :mimetype:`message/rfc822`). Here are the methods of the :class:`Message` class:
trusted_official_docs
CPython Docs
a string or bytes, in the case of simple message objects, or a list of :class:`Message` objects, for MIME container documents (e.g. :mimetype:`multipart/\*` and :mimetype:`message/rfc822`). Here are the methods of the :class:`Message` class:
a string or bytes, in the case of simple message objects, or a list of :class:`Message` objects, for MIME container documents (e.g. :mimetype:`multipart/\*` and :mimetype:`message/rfc822`). Here are the methods of the :class:`Message` class:
python, official-docs, cpython, P0
Local_Trusted_Corpus
44f0a9a1-a68d-4a66-a8eb-4f2f5b85727a
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,096
supabase-export-v2
45914bd581fdd25c
.. method:: __contains__(name) Return ``True`` if the message object has a field named *name*. Matching is done case-insensitively and *name* should not include the trailing colon. Used for the ``in`` operator, e.g.::
trusted_official_docs
CPython Docs
.. method:: __contains__(name) Return ``True`` if the message object has a field named *name*. Matching is done case-insensitively and *name* should not include the trailing colon. Used for the ``in`` operator, e.g.::
.. method:: __contains__(name) Return ``True`` if the message object has a field named *name*. Matching is done case-insensitively and *name* should not include the trailing colon. Used for the ``in`` operator, e.g.::
python, official-docs, cpython, P0
Local_Trusted_Corpus
467670dc-b13e-4c50-a668-28b228199b93
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,194
supabase-export-v2
781025b22502ef15
Here the ``message`` parts are not ``multiparts``, but they do contain subparts. ``is_multipart()`` returns ``True`` and ``walk`` descends into the subparts. :class:`Message` objects can also optionally contain two instance attributes, which can be used when generating the plain text of a MIME message.
trusted_official_docs
CPython Docs
Here the ``message`` parts are not ``multiparts``, but they do contain subparts. ``is_multipart()`` returns ``True`` and ``walk`` descends into the subparts. :class:`Message` objects can also optionally contain two instance attributes, which can be used when generating the plain text of a MIME message.
Here the ``message`` parts are not ``multiparts``, but they do contain subparts. ``is_multipart()`` returns ``True`` and ``walk`` descends into the subparts. :class:`Message` objects can also optionally contain two instance attributes, which can be used when generating the plain text of a MIME message.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4999ba4f-37ce-4146-83bf-67bad5a96c9b
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,153
supabase-export-v2
e997cd843da49837
rawparam = msg.get_param('foo') param = email.utils.collapse_rfc2231_value(rawparam) In any case, the parameter value (either the returned string, or the ``VALUE`` item in the 3-tuple) is always unquoted, unless *unquote* is set to ``False``.
trusted_official_docs
CPython Docs
rawparam = msg.get_param('foo') param = email.utils.collapse_rfc2231_value(rawparam) In any case, the parameter value (either the returned string, or the ``VALUE`` item in the 3-tuple) is always unquoted, unless *unquote* is set to ``False``.
rawparam = msg.get_param('foo') param = email.utils.collapse_rfc2231_value(rawparam) In any case, the parameter value (either the returned string, or the ``VALUE`` item in the 3-tuple) is always unquoted, unless *unquote* is set to ``False``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4b241db4-aade-49c1-9acb-068e32a4bf51
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,121
supabase-export-v2
d11366da7fe75ace
can usually be set to ``None`` or the empty string (see :rfc:`2231` for other possibilities), and ``VALUE`` is the string value containing non-ASCII code points. If a three tuple is not passed and the value contains non-ASCII characters, it is automatically encoded in :rfc:`2231` format using a ``CHARSET`` of ``utf-...
trusted_official_docs
CPython Docs
can usually be set to ``None`` or the empty string (see :rfc:`2231` for other possibilities), and ``VALUE`` is the string value containing non-ASCII code points. If a three tuple is not passed and the value contains non-ASCII characters, it is automatically encoded in :rfc:`2231` format using a ``CHARSET`` of ``utf-...
can usually be set to ``None`` or the empty string (see :rfc:`2231` for other possibilities), and ``VALUE`` is the string value containing non-ASCII code points. If a three tuple is not passed and the value contains non-ASCII characters, it is automatically encoded in :rfc:`2231` format using a ``CHARSET`` of ``utf-...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4cb97a4e-af77-453a-95b1-df3cd4821c66
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,090
supabase-export-v2
e3b134305266d0dd
original message, or were added to the message later. Any header deleted and then re-added are always appended to the end of the header list. These semantic differences are intentional and are biased toward maximal convenience.
trusted_official_docs
CPython Docs
original message, or were added to the message later. Any header deleted and then re-added are always appended to the end of the header list. These semantic differences are intentional and are biased toward maximal convenience.
original message, or were added to the message later. Any header deleted and then re-added are always appended to the end of the header list. These semantic differences are intentional and are biased toward maximal convenience.
python, official-docs, cpython, P0
Local_Trusted_Corpus
55e088b2-94ef-4558-ba78-499971ded5e0
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,050
supabase-export-v2
145b1e0d8b38156f
with ``From`` that is required by the Unix mbox format. For more flexibility, instantiate a :class:`~email.generator.Generator` instance and use its :meth:`~email.generator.Generator.flatten` method directly. For example:: from io import StringIO from email.generator import Generator fp = StringIO() g = Generator(fp...
trusted_official_docs
CPython Docs
with ``From`` that is required by the Unix mbox format. For more flexibility, instantiate a :class:`~email.generator.Generator` instance and use its :meth:`~email.generator.Generator.flatten` method directly. For example:: from io import StringIO from email.generator import Generator fp = StringIO() g = Generator(fp...
with ``From`` that is required by the Unix mbox format. For more flexibility, instantiate a :class:`~email.generator.Generator` instance and use its :meth:`~email.generator.Generator.flatten` method directly. For example:: from io import StringIO from email.generator import Generator fp = StringIO() g = Generator(fp...
python, official-docs, cpython, P0
Local_Trusted_Corpus
58576d19-2a68-4380-95e3-d1bd2e05bbde
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,079
supabase-export-v2
ddde2989d27a3871
.. method:: set_payload(payload, charset=None) Set the entire message object's payload to *payload*. It is the client's responsibility to ensure the payload invariants. Optional *charset* sets the message's default character set; see :meth:`set_charset` for details.
trusted_official_docs
CPython Docs
.. method:: set_payload(payload, charset=None) Set the entire message object's payload to *payload*. It is the client's responsibility to ensure the payload invariants. Optional *charset* sets the message's default character set; see :meth:`set_charset` for details.
.. method:: set_payload(payload, charset=None) Set the entire message object's payload to *payload*. It is the client's responsibility to ensure the payload invariants. Optional *charset* sets the message's default character set; see :meth:`set_charset` for details.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5a809cd8-5279-4a20-abc3-3e2f9c7dd628
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,103
supabase-export-v2
f8afbb4e1dbe2d69
Add a header to the message with field name *name* and value *val*. The field is appended to the end of the message's existing fields. Note that this does *not* overwrite or delete any existing header with the same name. If you want to ensure that the new header is the only one present in the message with field name ...
trusted_official_docs
CPython Docs
Add a header to the message with field name *name* and value *val*. The field is appended to the end of the message's existing fields. Note that this does *not* overwrite or delete any existing header with the same name. If you want to ensure that the new header is the only one present in the message with field name ...
Add a header to the message with field name *name* and value *val*. The field is appended to the end of the message's existing fields. Note that this does *not* overwrite or delete any existing header with the same name. If you want to ensure that the new header is the only one present in the message with field name ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
63fcc91b-36f4-4aa0-b19c-b3316feaef58
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,037
supabase-export-v2
64bbcbdb82ff998a
slightly different. We also document here some methods that, while supported by the :class:`~email.message.EmailMessage` class, are not recommended unless you are dealing with legacy code. The philosophy and structure of the two classes is otherwise the same.
trusted_official_docs
CPython Docs
slightly different. We also document here some methods that, while supported by the :class:`~email.message.EmailMessage` class, are not recommended unless you are dealing with legacy code. The philosophy and structure of the two classes is otherwise the same.
slightly different. We also document here some methods that, while supported by the :class:`~email.message.EmailMessage` class, are not recommended unless you are dealing with legacy code. The philosophy and structure of the two classes is otherwise the same.
python, official-docs, cpython, P0
Local_Trusted_Corpus
645ffd04-8937-4027-b3ca-6cec4ed37d61
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,174
supabase-export-v2
a8decdfb803d6850
of the :mailheader:`Content-Type` header to *boundary*. :meth:`set_boundary` will always quote *boundary* if necessary. A :exc:`~email.errors.HeaderParseError` is raised if the message object has no :mailheader:`Content-Type` header. Note that using this method is subtly different than deleting the old :mailheader:`Co...
trusted_official_docs
CPython Docs
of the :mailheader:`Content-Type` header to *boundary*. :meth:`set_boundary` will always quote *boundary* if necessary. A :exc:`~email.errors.HeaderParseError` is raised if the message object has no :mailheader:`Content-Type` header. Note that using this method is subtly different than deleting the old :mailheader:`Co...
of the :mailheader:`Content-Type` header to *boundary*. :meth:`set_boundary` will always quote *boundary* if necessary. A :exc:`~email.errors.HeaderParseError` is raised if the message object has no :mailheader:`Content-Type` header. Note that using this method is subtly different than deleting the old :mailheader:`Co...
python, official-docs, cpython, P0
Local_Trusted_Corpus
67bcee58-df80-46e5-9598-9a4c18786b63
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,052
supabase-export-v2
3ef49ccd245c8c0d
that is not encoded according to RFC standards, the non-compliant data will be replaced by unicode "unknown character" code points. (See also :meth:`.as_bytes` and :class:`~email.generator.BytesGenerator`.) .. versionchanged:: 3.4 the *policy* keyword argument was added.
trusted_official_docs
CPython Docs
that is not encoded according to RFC standards, the non-compliant data will be replaced by unicode "unknown character" code points. (See also :meth:`.as_bytes` and :class:`~email.generator.BytesGenerator`.) .. versionchanged:: 3.4 the *policy* keyword argument was added.
that is not encoded according to RFC standards, the non-compliant data will be replaced by unicode "unknown character" code points. (See also :meth:`.as_bytes` and :class:`~email.generator.BytesGenerator`.) .. versionchanged:: 3.4 the *policy* keyword argument was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
68386680-3be9-4ca3-8f0f-004aebd4aa02
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,100
supabase-export-v2
f120764640ee5fc0
the named header field. *name* should not include the colon field separator. If the header is missing, ``None`` is returned; a :exc:`KeyError` is never raised. Note that if the named field appears more than once in the message's headers, exactly which of those field values will be returned is undefined. Use the :meth...
trusted_official_docs
CPython Docs
the named header field. *name* should not include the colon field separator. If the header is missing, ``None`` is returned; a :exc:`KeyError` is never raised. Note that if the named field appears more than once in the message's headers, exactly which of those field values will be returned is undefined. Use the :meth...
the named header field. *name* should not include the colon field separator. If the header is missing, ``None`` is returned; a :exc:`KeyError` is never raised. Note that if the named field appears more than once in the message's headers, exactly which of those field values will be returned is undefined. Use the :meth...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6ac920fd-2b03-40d7-a336-0ce2d9617ad8
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,187
supabase-export-v2
4dcb6eb1bd42b4b2
.. testsetup:: import email from email import message_from_binary_file from os.path import join, dirname lib_dir = dirname(dirname(email.__file__)) file_path = join(lib_dir, 'test/test_email/data/msg_16.txt') with open(file_path, 'rb') as f: msg = message_from_binary_file(f) from email.iterators import _structur...
trusted_official_docs
CPython Docs
.. testsetup:: import email from email import message_from_binary_file from os.path import join, dirname lib_dir = dirname(dirname(email.__file__)) file_path = join(lib_dir, 'test/test_email/data/msg_16.txt') with open(file_path, 'rb') as f: msg = message_from_binary_file(f) from email.iterators import _structur...
.. testsetup:: import email from email import message_from_binary_file from os.path import join, dirname lib_dir = dirname(dirname(email.__file__)) file_path = join(lib_dir, 'test/test_email/data/msg_16.txt') with open(file_path, 'rb') as f: msg = message_from_binary_file(f) from email.iterators import _structur...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6b65d999-394c-4caf-ab51-ad19c958077e
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,048
supabase-export-v2
5a76913f82dc78db
instance. This can be used to control some of the formatting produced by the method, since the specified *policy* will be passed to the ``Generator``. Flattening the message may trigger changes to the :class:`Message` if defaults need to be filled in to complete the transformation to a string (for example, MIME bound...
trusted_official_docs
CPython Docs
instance. This can be used to control some of the formatting produced by the method, since the specified *policy* will be passed to the ``Generator``. Flattening the message may trigger changes to the :class:`Message` if defaults need to be filled in to complete the transformation to a string (for example, MIME bound...
instance. This can be used to control some of the formatting produced by the method, since the specified *policy* will be passed to the ``Generator``. Flattening the message may trigger changes to the :class:`Message` if defaults need to be filled in to complete the transformation to a string (for example, MIME bound...
python, official-docs, cpython, P0
Local_Trusted_Corpus
767c869c-6806-4b8b-b104-c0ce4f97915b
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,165
supabase-export-v2
d7e257bfba0d6146
Set the main type and subtype for the :mailheader:`Content-Type` header. *type* must be a string in the form :mimetype:`maintype/subtype`, otherwise a :exc:`ValueError` is raised. This method replaces the :mailheader:`Content-Type` header, keeping all the parameters in place. If *requote* is ``False``, this leaves the...
trusted_official_docs
CPython Docs
Set the main type and subtype for the :mailheader:`Content-Type` header. *type* must be a string in the form :mimetype:`maintype/subtype`, otherwise a :exc:`ValueError` is raised. This method replaces the :mailheader:`Content-Type` header, keeping all the parameters in place. If *requote* is ``False``, this leaves the...
Set the main type and subtype for the :mailheader:`Content-Type` header. *type* must be a string in the form :mimetype:`maintype/subtype`, otherwise a :exc:`ValueError` is raised. This method replaces the :mailheader:`Content-Type` header, keeping all the parameters in place. If *requote* is ``False``, this leaves the...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7b9b833f-7722-4247-b491-66bda4bf6caf
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,047
supabase-export-v2
5e9b053dfc730ddb
.. method:: as_string(unixfrom=False, maxheaderlen=0, policy=None) Return the entire message flattened as a string. When optional *unixfrom* is true, the envelope header is included in the returned string. *unixfrom* defaults to ``False``. For backward compatibility reasons, *maxheaderlen* defaults to ``0``, so if yo...
trusted_official_docs
CPython Docs
.. method:: as_string(unixfrom=False, maxheaderlen=0, policy=None) Return the entire message flattened as a string. When optional *unixfrom* is true, the envelope header is included in the returned string. *unixfrom* defaults to ``False``. For backward compatibility reasons, *maxheaderlen* defaults to ``0``, so if yo...
.. method:: as_string(unixfrom=False, maxheaderlen=0, policy=None) Return the entire message flattened as a string. When optional *unixfrom* is true, the envelope header is included in the returned string. *unixfrom* defaults to ``False``. For backward compatibility reasons, *maxheaderlen* defaults to ``0``, so if yo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7eee1255-665f-4e8d-9788-d37ba38e0615
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,151
supabase-export-v2
00a5882ec10161cb
``CHARSET`` and ``LANGUAGE`` can be ``None``, in which case you should consider ``VALUE`` to be encoded in the ``us-ascii`` charset. You can usually ignore ``LANGUAGE``. If your application doesn't care whether the parameter was encoded as in :rfc:`2231`, you can collapse the parameter value by calling :func:`email.u...
trusted_official_docs
CPython Docs
``CHARSET`` and ``LANGUAGE`` can be ``None``, in which case you should consider ``VALUE`` to be encoded in the ``us-ascii`` charset. You can usually ignore ``LANGUAGE``. If your application doesn't care whether the parameter was encoded as in :rfc:`2231`, you can collapse the parameter value by calling :func:`email.u...
``CHARSET`` and ``LANGUAGE`` can be ``None``, in which case you should consider ``VALUE`` to be encoded in the ``us-ascii`` charset. You can usually ignore ``LANGUAGE``. If your application doesn't care whether the parameter was encoded as in :rfc:`2231`, you can collapse the parameter value by calling :func:`email.u...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7f5d30f8-fc11-48a2-be60-bb34d6b188b9
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,092
supabase-export-v2
c2c90f39c0abeafa
Note that in all cases, any envelope header present in the message is not included in the mapping interface. In a model generated from bytes, any header values that (in contravention of the RFCs) contain non-ASCII bytes will, when retrieved through this interface, be represented as :class:`~email.header.Header` objec...
trusted_official_docs
CPython Docs
Note that in all cases, any envelope header present in the message is not included in the mapping interface. In a model generated from bytes, any header values that (in contravention of the RFCs) contain non-ASCII bytes will, when retrieved through this interface, be represented as :class:`~email.header.Header` objec...
Note that in all cases, any envelope header present in the message is not included in the mapping interface. In a model generated from bytes, any header values that (in contravention of the RFCs) contain non-ASCII bytes will, when retrieved through this interface, be represented as :class:`~email.header.Header` objec...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8319f795-c020-4528-8f75-99ca71568718
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,084
supabase-export-v2
0f10fd932bfef39c
existing :mailheader:`Content-Transfer-Encoding` header, then the payload will be transfer-encoded, if needed, using the specified :class:`~email.charset.Charset`, and a header with the appropriate value will be added. If a :mailheader:`Content-Transfer-Encoding` header already exists, the payload is assumed to alread...
trusted_official_docs
CPython Docs
existing :mailheader:`Content-Transfer-Encoding` header, then the payload will be transfer-encoded, if needed, using the specified :class:`~email.charset.Charset`, and a header with the appropriate value will be added. If a :mailheader:`Content-Transfer-Encoding` header already exists, the payload is assumed to alread...
existing :mailheader:`Content-Transfer-Encoding` header, then the payload will be transfer-encoded, if needed, using the specified :class:`~email.charset.Charset`, and a header with the appropriate value will be added. If a :mailheader:`Content-Transfer-Encoding` header already exists, the payload is assumed to alread...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8e6b9191-8255-4670-a8e9-6d48644dba87
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,158
supabase-export-v2
103c2fa60938e3bc
Optional *header* specifies an alternative header to :mailheader:`Content-Type`, and all parameters will be quoted as necessary unless optional *requote* is ``False`` (the default is ``True``). If optional *charset* is specified, the parameter will be encoded according to :rfc:`2231`. Optional *language* specifies the...
trusted_official_docs
CPython Docs
Optional *header* specifies an alternative header to :mailheader:`Content-Type`, and all parameters will be quoted as necessary unless optional *requote* is ``False`` (the default is ``True``). If optional *charset* is specified, the parameter will be encoded according to :rfc:`2231`. Optional *language* specifies the...
Optional *header* specifies an alternative header to :mailheader:`Content-Type`, and all parameters will be quoted as necessary unless optional *requote* is ``False`` (the default is ``True``). If optional *charset* is specified, the parameter will be encoded according to :rfc:`2231`. Optional *language* specifies the...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8efdf336-c5d9-415f-8bb4-58a9869781f5
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,133
supabase-export-v2
aac09b81aa6cacdf
.. method:: get_content_type() Return the message's content type. The returned string is coerced to lower case of the form :mimetype:`maintype/subtype`. If there was no :mailheader:`Content-Type` header in the message the default type as given by :meth:`get_default_type` will be returned. Since according to :rfc:`2...
trusted_official_docs
CPython Docs
.. method:: get_content_type() Return the message's content type. The returned string is coerced to lower case of the form :mimetype:`maintype/subtype`. If there was no :mailheader:`Content-Type` header in the message the default type as given by :meth:`get_default_type` will be returned. Since according to :rfc:`2...
.. method:: get_content_type() Return the message's content type. The returned string is coerced to lower case of the form :mimetype:`maintype/subtype`. If there was no :mailheader:`Content-Type` header in the message the default type as given by :meth:`get_default_type` will be returned. Since according to :rfc:`2...
python, official-docs, cpython, P0
Local_Trusted_Corpus
91f62b67-ec1d-476e-bf58-41dcb8715493
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,069
supabase-export-v2
4cdeabc6439e833f
.. method:: attach(payload) Add the given *payload* to the current payload, which must be ``None`` or a list of :class:`Message` objects before the call. After the call, the payload will always be a list of :class:`Message` objects. If you want to set the payload to a scalar object (e.g. a string), use :meth:`set_p...
trusted_official_docs
CPython Docs
.. method:: attach(payload) Add the given *payload* to the current payload, which must be ``None`` or a list of :class:`Message` objects before the call. After the call, the payload will always be a list of :class:`Message` objects. If you want to set the payload to a scalar object (e.g. a string), use :meth:`set_p...
.. method:: attach(payload) Add the given *payload* to the current payload, which must be ``None`` or a list of :class:`Message` objects before the call. After the call, the payload will always be a list of :class:`Message` objects. If you want to set the payload to a scalar object (e.g. a string), use :meth:`set_p...
python, official-docs, cpython, P0
Local_Trusted_Corpus
94b2d601-2be1-433c-a93b-187ac82d7e2f
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,039
supabase-export-v2
4eb440208fc274f6
the behavior under the default (for :class:`Message`) policy :attr:`~email.policy.Compat32`. If you are going to use another policy, you should be using the :class:`~email.message.EmailMessage` class instead. An email message consists of *headers* and a *payload*. Headers must be :rfc:`5322` style names and values, whe...
trusted_official_docs
CPython Docs
the behavior under the default (for :class:`Message`) policy :attr:`~email.policy.Compat32`. If you are going to use another policy, you should be using the :class:`~email.message.EmailMessage` class instead. An email message consists of *headers* and a *payload*. Headers must be :rfc:`5322` style names and values, whe...
the behavior under the default (for :class:`Message`) policy :attr:`~email.policy.Compat32`. If you are going to use another policy, you should be using the :class:`~email.message.EmailMessage` class instead. An email message consists of *headers* and a *payload*. Headers must be :rfc:`5322` style names and values, whe...
python, official-docs, cpython, P0
Local_Trusted_Corpus
964595fc-fe44-45bb-aacf-49adc79e264f
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,149
supabase-export-v2
4acd6456b5bd2fcc
*param* as a string. If the message has no :mailheader:`Content-Type` header or if there is no such parameter, then *failobj* is returned (defaults to ``None``). Optional *header* if given, specifies the message header to use instead of :mailheader:`Content-Type`.
trusted_official_docs
CPython Docs
*param* as a string. If the message has no :mailheader:`Content-Type` header or if there is no such parameter, then *failobj* is returned (defaults to ``None``). Optional *header* if given, specifies the message header to use instead of :mailheader:`Content-Type`.
*param* as a string. If the message has no :mailheader:`Content-Type` header or if there is no such parameter, then *failobj* is returned (defaults to ``None``). Optional *header* if given, specifies the message header to use instead of :mailheader:`Content-Type`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
97a36076-f95b-43db-833d-9cf26ec3e237
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,099
supabase-export-v2
79aafece81643bce
.. method:: __getitem__(name) Return the value of the named header field. *name* should not include the colon field separator. If the header is missing, ``None`` is returned; a :exc:`KeyError` is never raised.
trusted_official_docs
CPython Docs
.. method:: __getitem__(name) Return the value of the named header field. *name* should not include the colon field separator. If the header is missing, ``None`` is returned; a :exc:`KeyError` is never raised.
.. method:: __getitem__(name) Return the value of the named header field. *name* should not include the colon field separator. If the header is missing, ``None`` is returned; a :exc:`KeyError` is never raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9a0c35e6-1053-4182-888a-ddbe979674cb
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,074
supabase-export-v2
c7fbe09f1c77d247
the number of items in the payload. If the payload is a string (i.e. :meth:`is_multipart` is ``False``) and *i* is given, a :exc:`TypeError` is raised. Optional *decode* is a flag indicating whether the payload should be decoded or not, according to the :mailheader:`Content-Transfer-Encoding` header. When ``True`` an...
trusted_official_docs
CPython Docs
the number of items in the payload. If the payload is a string (i.e. :meth:`is_multipart` is ``False``) and *i* is given, a :exc:`TypeError` is raised. Optional *decode* is a flag indicating whether the payload should be decoded or not, according to the :mailheader:`Content-Transfer-Encoding` header. When ``True`` an...
the number of items in the payload. If the payload is a string (i.e. :meth:`is_multipart` is ``False``) and *i* is given, a :exc:`TypeError` is raised. Optional *decode* is a flag indicating whether the payload should be decoded or not, according to the :mailheader:`Content-Transfer-Encoding` header. When ``True`` an...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9a1567b0-2465-468d-87b1-bbd9628378ef
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,085
supabase-export-v2
a92823b99d62a3cc
If a :mailheader:`Content-Transfer-Encoding` header already exists, the payload is assumed to already be correctly encoded using that :mailheader:`Content-Transfer-Encoding` and is not modified. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the *charset* p...
trusted_official_docs
CPython Docs
If a :mailheader:`Content-Transfer-Encoding` header already exists, the payload is assumed to already be correctly encoded using that :mailheader:`Content-Transfer-Encoding` and is not modified. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the *charset* p...
If a :mailheader:`Content-Transfer-Encoding` header already exists, the payload is assumed to already be correctly encoded using that :mailheader:`Content-Transfer-Encoding` and is not modified. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the *charset* p...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9bc9b3e7-5966-4ed0-b4b2-fed55be2e0b5
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,148
supabase-export-v2
f562100f029c320b
.. method:: get_param(param, failobj=None, header='content-type', unquote=True) Return the value of the :mailheader:`Content-Type` header's parameter *param* as a string. If the message has no :mailheader:`Content-Type` header or if there is no such parameter, then *failobj* is returned (defaults to ``None``).
trusted_official_docs
CPython Docs
.. method:: get_param(param, failobj=None, header='content-type', unquote=True) Return the value of the :mailheader:`Content-Type` header's parameter *param* as a string. If the message has no :mailheader:`Content-Type` header or if there is no such parameter, then *failobj* is returned (defaults to ``None``).
.. method:: get_param(param, failobj=None, header='content-type', unquote=True) Return the value of the :mailheader:`Content-Type` header's parameter *param* as a string. If the message has no :mailheader:`Content-Type` header or if there is no such parameter, then *failobj* is returned (defaults to ``None``).
python, official-docs, cpython, P0
Local_Trusted_Corpus
9d20459e-a746-4e59-b0ed-a5854801044f
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,089
supabase-export-v2
bf96aee60bcf26ce
This is a legacy method. On the :class:`~email.message.EmailMessage` class it always returns ``None``. The following methods implement a mapping-like interface for accessing the message's :rfc:`2822` headers. Note that there are some semantic differences between these methods and a normal mapping (i.e. dictionary) in...
trusted_official_docs
CPython Docs
This is a legacy method. On the :class:`~email.message.EmailMessage` class it always returns ``None``. The following methods implement a mapping-like interface for accessing the message's :rfc:`2822` headers. Note that there are some semantic differences between these methods and a normal mapping (i.e. dictionary) in...
This is a legacy method. On the :class:`~email.message.EmailMessage` class it always returns ``None``. The following methods implement a mapping-like interface for accessing the message's :rfc:`2822` headers. Note that there are some semantic differences between these methods and a normal mapping (i.e. dictionary) in...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a162926f-7bc8-45cb-9309-1865bd01702b
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,163
supabase-export-v2
b3b4d6951251b909
or its value. All values will be quoted as necessary unless *requote* is ``False`` (the default is ``True``). Optional *header* specifies an alternative to :mailheader:`Content-Type`. .. method:: set_type(type, header='Content-Type', requote=True)
trusted_official_docs
CPython Docs
or its value. All values will be quoted as necessary unless *requote* is ``False`` (the default is ``True``). Optional *header* specifies an alternative to :mailheader:`Content-Type`. .. method:: set_type(type, header='Content-Type', requote=True)
or its value. All values will be quoted as necessary unless *requote* is ``False`` (the default is ``True``). Optional *header* specifies an alternative to :mailheader:`Content-Type`. .. method:: set_type(type, header='Content-Type', requote=True)
python, official-docs, cpython, P0
Local_Trusted_Corpus
a2b6e3b6-ecf3-4916-a34f-c59b7866ac6b
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,177
supabase-export-v2
ce47e70fda8f95ef
of the :mailheader:`Content-Type` header, coerced to lower case. If there is no :mailheader:`Content-Type` header, or if that header has no ``charset`` parameter, *failobj* is returned. Note that this method differs from :meth:`get_charset` which returns the :class:`~email.charset.Charset` instance for the default enc...
trusted_official_docs
CPython Docs
of the :mailheader:`Content-Type` header, coerced to lower case. If there is no :mailheader:`Content-Type` header, or if that header has no ``charset`` parameter, *failobj* is returned. Note that this method differs from :meth:`get_charset` which returns the :class:`~email.charset.Charset` instance for the default enc...
of the :mailheader:`Content-Type` header, coerced to lower case. If there is no :mailheader:`Content-Type` header, or if that header has no ``charset`` parameter, *failobj* is returned. Note that this method differs from :meth:`get_charset` which returns the :class:`~email.charset.Charset` instance for the default enc...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a4fb8eae-64bb-4585-9646-b0640712f94c
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,070
supabase-export-v2
10a32f9a3e798743
will always be a list of :class:`Message` objects. If you want to set the payload to a scalar object (e.g. a string), use :meth:`set_payload` instead. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by :meth:`~email.message.EmailMessage.set_content` and the re...
trusted_official_docs
CPython Docs
will always be a list of :class:`Message` objects. If you want to set the payload to a scalar object (e.g. a string), use :meth:`set_payload` instead. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by :meth:`~email.message.EmailMessage.set_content` and the re...
will always be a list of :class:`Message` objects. If you want to set the payload to a scalar object (e.g. a string), use :meth:`set_payload` instead. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by :meth:`~email.message.EmailMessage.set_content` and the re...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a7bc3172-e8cd-4cae-9e7e-cbb2abc0588f
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,201
supabase-export-v2
040a24b327308eb0
acts the same way as the *preamble* attribute, except that it contains text that appears between the last boundary and the end of the message. You do not need to set the epilogue to the empty string in order for the :class:`~email.generator.Generator` to print a newline at the end of the file.
trusted_official_docs
CPython Docs
acts the same way as the *preamble* attribute, except that it contains text that appears between the last boundary and the end of the message. You do not need to set the epilogue to the empty string in order for the :class:`~email.generator.Generator` to print a newline at the end of the file.
acts the same way as the *preamble* attribute, except that it contains text that appears between the last boundary and the end of the message. You do not need to set the epilogue to the empty string in order for the :class:`~email.generator.Generator` to print a newline at the end of the file.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a882eb18-2862-43dc-9313-49caedfe41b0
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,114
supabase-export-v2
54fd5b6c5f9fc924
.. method:: get(name, failobj=None) Return the value 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``).
trusted_official_docs
CPython Docs
.. method:: get(name, failobj=None) Return the value 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``).
.. method:: get(name, failobj=None) Return the value 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``).
python, official-docs, cpython, P0
Local_Trusted_Corpus
a8eb429d-9789-4f8c-9dd0-e28b39e89111
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,063
supabase-export-v2
f7cd63f2b6a34869
.. method:: is_multipart() Return ``True`` if the message's payload is a list of sub-\ :class:`Message` objects, otherwise return ``False``. When :meth:`is_multipart` returns ``False``, the payload should be a string object (which might be a CTE encoded binary payload). (Note that :meth:`is_multipart` returning ``T...
trusted_official_docs
CPython Docs
.. method:: is_multipart() Return ``True`` if the message's payload is a list of sub-\ :class:`Message` objects, otherwise return ``False``. When :meth:`is_multipart` returns ``False``, the payload should be a string object (which might be a CTE encoded binary payload). (Note that :meth:`is_multipart` returning ``T...
.. method:: is_multipart() Return ``True`` if the message's payload is a list of sub-\ :class:`Message` objects, otherwise return ``False``. When :meth:`is_multipart` returns ``False``, the payload should be a string object (which might be a CTE encoded binary payload). (Note that :meth:`is_multipart` returning ``T...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a9509fcc-f3af-4a98-9a9e-bd7633756f07
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,200
supabase-export-v2
8829bd72bf648d41
.. attribute:: epilogue The *epilogue* attribute acts the same way as the *preamble* attribute, except that it contains text that appears between the last boundary and the end of the message.
trusted_official_docs
CPython Docs
.. attribute:: epilogue The *epilogue* attribute acts the same way as the *preamble* attribute, except that it contains text that appears between the last boundary and the end of the message.
.. attribute:: epilogue The *epilogue* attribute acts the same way as the *preamble* attribute, except that it contains text that appears between the last boundary and the end of the message.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ac78fdb2-dee2-44dd-8fcc-8db4ad23a757
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,036
supabase-export-v2
2f700bf2c0d95582
.. module:: email.message :synopsis: The base class representing email messages in a fashion backward compatible with Python 3.2 :noindex: :no-index: The :class:`Message` class is very similar to the :class:`~email.message.EmailMessage` class, without the methods added by that class, and with the default behavior of ce...
trusted_official_docs
CPython Docs
.. module:: email.message :synopsis: The base class representing email messages in a fashion backward compatible with Python 3.2 :noindex: :no-index: The :class:`Message` class is very similar to the :class:`~email.message.EmailMessage` class, without the methods added by that class, and with the default behavior of ce...
.. module:: email.message :synopsis: The base class representing email messages in a fashion backward compatible with Python 3.2 :noindex: :no-index: The :class:`Message` class is very similar to the :class:`~email.message.EmailMessage` class, without the methods added by that class, and with the default behavior of ce...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ae44fb44-e1af-41ba-aecf-51d7e6b4c24e
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,144
supabase-export-v2
d7c8300aa2387499
.. method:: get_params(failobj=None, header='content-type', unquote=True) Return the message's :mailheader:`Content-Type` parameters, as a list. The elements of the returned list are 2-tuples of key/value pairs, as split on the ``'='`` sign. The left hand side of the ``'='`` is the key, while the right hand side is t...
trusted_official_docs
CPython Docs
.. method:: get_params(failobj=None, header='content-type', unquote=True) Return the message's :mailheader:`Content-Type` parameters, as a list. The elements of the returned list are 2-tuples of key/value pairs, as split on the ``'='`` sign. The left hand side of the ``'='`` is the key, while the right hand side is t...
.. method:: get_params(failobj=None, header='content-type', unquote=True) Return the message's :mailheader:`Content-Type` parameters, as a list. The elements of the returned list are 2-tuples of key/value pairs, as split on the ``'='`` sign. The left hand side of the ``'='`` is the key, while the right hand side is t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ae602991-5c4d-4ff9-9c5b-1501f81076cd
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,152
supabase-export-v2
9ed182ed12cddd55
:meth:`get_param`. This will return a suitably decoded Unicode string when the value is a tuple, or the original string unquoted if it isn't. For example:: rawparam = msg.get_param('foo') param = email.utils.collapse_rfc2231_value(rawparam)
trusted_official_docs
CPython Docs
:meth:`get_param`. This will return a suitably decoded Unicode string when the value is a tuple, or the original string unquoted if it isn't. For example:: rawparam = msg.get_param('foo') param = email.utils.collapse_rfc2231_value(rawparam)
:meth:`get_param`. This will return a suitably decoded Unicode string when the value is a tuple, or the original string unquoted if it isn't. For example:: rawparam = msg.get_param('foo') param = email.utils.collapse_rfc2231_value(rawparam)
python, official-docs, cpython, P0
Local_Trusted_Corpus
ae8a6da9-cd98-4d07-8c4c-9e18daa25eb4
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,146
supabase-export-v2
4555bf334b772b71
Optional *failobj* is the object to return if there is no :mailheader:`Content-Type` header. Optional *header* is the header to search instead of :mailheader:`Content-Type`. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the *params* property of the individ...
trusted_official_docs
CPython Docs
Optional *failobj* is the object to return if there is no :mailheader:`Content-Type` header. Optional *header* is the header to search instead of :mailheader:`Content-Type`. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the *params* property of the individ...
Optional *failobj* is the object to return if there is no :mailheader:`Content-Type` header. Optional *header* is the header to search instead of :mailheader:`Content-Type`. This is a legacy method. On the :class:`~email.message.EmailMessage` class its functionality is replaced by the *params* property of the individ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b0be3c0c-4967-4816-8302-737af330c02f
CPython Docs
file://datasets/cpython/Doc/library/email.compat32-message.rst
unknown
fce1f211-7b0c-45a0-983d-4020f021d559
7,076
supabase-export-v2
52e7bd745897bebc
perfectly formed (missing padding, characters outside the base64 alphabet), then an appropriate defect will be added to the message's defect property (:class:`~email.errors.InvalidBase64PaddingDefect` or :class:`~email.errors.InvalidBase64CharactersDefect`, respectively). When *decode* is ``False`` (the default) the bo...
trusted_official_docs
CPython Docs
perfectly formed (missing padding, characters outside the base64 alphabet), then an appropriate defect will be added to the message's defect property (:class:`~email.errors.InvalidBase64PaddingDefect` or :class:`~email.errors.InvalidBase64CharactersDefect`, respectively). When *decode* is ``False`` (the default) the bo...
perfectly formed (missing padding, characters outside the base64 alphabet), then an appropriate defect will be added to the message's defect property (:class:`~email.errors.InvalidBase64PaddingDefect` or :class:`~email.errors.InvalidBase64CharactersDefect`, respectively). When *decode* is ``False`` (the default) the bo...
python, official-docs, cpython, P0
Local_Trusted_Corpus