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
ba688919-8ed2-4be8-ae9c-c8fef922828f
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,772
supabase-export-v2
f1c0bb20c1d284df
.. function:: make_server(host, port, app, server_class=WSGIServer, handler_class=WSGIRequestHandler) Create a new WSGI server listening on *host* and *port*, accepting connections for *app*. The return value is an instance of the supplied *server_class*, and will process requests using the specified *handler_class*....
trusted_official_docs
CPython Docs
.. function:: make_server(host, port, app, server_class=WSGIServer, handler_class=WSGIRequestHandler) Create a new WSGI server listening on *host* and *port*, accepting connections for *app*. The return value is an instance of the supplied *server_class*, and will process requests using the specified *handler_class*....
.. function:: make_server(host, port, app, server_class=WSGIServer, handler_class=WSGIRequestHandler) Create a new WSGI server listening on *host* and *port*, accepting connections for *app*. The return value is an instance of the supplied *server_class*, and will process requests using the specified *handler_class*....
python, official-docs, cpython, P0
Local_Trusted_Corpus
be316ec1-ec0c-4c4e-aa33-0db3d0209d1e
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,728
supabase-export-v2
5b2bb9a98bae72ea
Update *environ* with trivial defaults for testing purposes. This routine adds various parameters required for WSGI, including ``HTTP_HOST``, ``SERVER_NAME``, ``SERVER_PORT``, ``REQUEST_METHOD``, ``SCRIPT_NAME``, ``PATH_INFO``, and all of the :pep:`3333`\ -defined ``wsgi.*`` variables. It only supplies default value...
trusted_official_docs
CPython Docs
Update *environ* with trivial defaults for testing purposes. This routine adds various parameters required for WSGI, including ``HTTP_HOST``, ``SERVER_NAME``, ``SERVER_PORT``, ``REQUEST_METHOD``, ``SCRIPT_NAME``, ``PATH_INFO``, and all of the :pep:`3333`\ -defined ``wsgi.*`` variables. It only supplies default value...
Update *environ* with trivial defaults for testing purposes. This routine adds various parameters required for WSGI, including ``HTTP_HOST``, ``SERVER_NAME``, ``SERVER_PORT``, ``REQUEST_METHOD``, ``SCRIPT_NAME``, ``PATH_INFO``, and all of the :pep:`3333`\ -defined ``wsgi.*`` variables. It only supplies default value...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bf52915c-fc61-4641-9b7b-a0933710ba63
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,802
supabase-export-v2
a56ceac460fc00f8
creates WSGI application objects that validate communications between a WSGI server or gateway and a WSGI application object, to check both sides for protocol conformance. Note that this utility does not guarantee complete :pep:`3333` compliance; an absence of errors from this module does not necessarily mean that erro...
trusted_official_docs
CPython Docs
creates WSGI application objects that validate communications between a WSGI server or gateway and a WSGI application object, to check both sides for protocol conformance. Note that this utility does not guarantee complete :pep:`3333` compliance; an absence of errors from this module does not necessarily mean that erro...
creates WSGI application objects that validate communications between a WSGI server or gateway and a WSGI application object, to check both sides for protocol conformance. Note that this utility does not guarantee complete :pep:`3333` compliance; an absence of errors from this module does not necessarily mean that erro...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c60a81c9-443b-468d-8706-b4e41697d29c
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,730
supabase-export-v2
9e99052470ad6554
WSGI servers and applications to set up dummy environments. It should NOT be used by actual WSGI servers or applications, since the data is fake! Example usage (see also :func:`~wsgiref.simple_server.demo_app` for another example)::
trusted_official_docs
CPython Docs
WSGI servers and applications to set up dummy environments. It should NOT be used by actual WSGI servers or applications, since the data is fake! Example usage (see also :func:`~wsgiref.simple_server.demo_app` for another example)::
WSGI servers and applications to set up dummy environments. It should NOT be used by actual WSGI servers or applications, since the data is fake! Example usage (see also :func:`~wsgiref.simple_server.demo_app` for another example)::
python, official-docs, cpython, P0
Local_Trusted_Corpus
ca3e8447-0678-4063-975d-8affff693492
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,722
supabase-export-v2
0a8ea12469ee6838
.. function:: shift_path_info(environ) Shift a single name from ``PATH_INFO`` to ``SCRIPT_NAME`` and return the name. The *environ* dictionary is *modified* in-place; use a copy if you need to keep the original ``PATH_INFO`` or ``SCRIPT_NAME`` intact.
trusted_official_docs
CPython Docs
.. function:: shift_path_info(environ) Shift a single name from ``PATH_INFO`` to ``SCRIPT_NAME`` and return the name. The *environ* dictionary is *modified* in-place; use a copy if you need to keep the original ``PATH_INFO`` or ``SCRIPT_NAME`` intact.
.. function:: shift_path_info(environ) Shift a single name from ``PATH_INFO`` to ``SCRIPT_NAME`` and return the name. The *environ* dictionary is *modified* in-place; use a copy if you need to keep the original ``PATH_INFO`` or ``SCRIPT_NAME`` intact.
python, official-docs, cpython, P0
Local_Trusted_Corpus
cb044fb0-40f5-4a35-b30c-f871c19aa621
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,850
supabase-export-v2
f724bec15cdaf27e
Insert CGI variables for the current request into the :attr:`environ` attribute. Here are some other methods and attributes you may wish to override. This list is only a summary, however, and does not include every method that can be overridden. You should consult the docstrings and source code for additional inform...
trusted_official_docs
CPython Docs
Insert CGI variables for the current request into the :attr:`environ` attribute. Here are some other methods and attributes you may wish to override. This list is only a summary, however, and does not include every method that can be overridden. You should consult the docstrings and source code for additional inform...
Insert CGI variables for the current request into the :attr:`environ` attribute. Here are some other methods and attributes you may wish to override. This list is only a summary, however, and does not include every method that can be overridden. You should consult the docstrings and source code for additional inform...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cb36f183-e9e9-4d03-b0db-93fa8ea43259
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,896
supabase-export-v2
1e4829618e4f263e
where the environment is bytes, but the system encoding used by Python to decode it is anything other than ISO-8859-1 (e.g. Unix systems using UTF-8). If you are implementing a CGI-based handler of your own, you probably want to use this routine instead of just copying values out of ``os.environ`` directly.
trusted_official_docs
CPython Docs
where the environment is bytes, but the system encoding used by Python to decode it is anything other than ISO-8859-1 (e.g. Unix systems using UTF-8). If you are implementing a CGI-based handler of your own, you probably want to use this routine instead of just copying values out of ``os.environ`` directly.
where the environment is bytes, but the system encoding used by Python to decode it is anything other than ISO-8859-1 (e.g. Unix systems using UTF-8). If you are implementing a CGI-based handler of your own, you probably want to use this routine instead of just copying values out of ``os.environ`` directly.
python, official-docs, cpython, P0
Local_Trusted_Corpus
cda56b0b-aee4-4cf1-a6b0-4d26b3b4c968
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,891
supabase-export-v2
ecef7ae9f1ba265d
being used to communicate directly to the client, rather than via a CGI-like gateway protocol that wants the HTTP status in a special ``Status:`` header. This attribute's default value is true in :class:`BaseHandler`, but false in :class:`BaseCGIHandler` and :class:`CGIHandler`.
trusted_official_docs
CPython Docs
being used to communicate directly to the client, rather than via a CGI-like gateway protocol that wants the HTTP status in a special ``Status:`` header. This attribute's default value is true in :class:`BaseHandler`, but false in :class:`BaseCGIHandler` and :class:`CGIHandler`.
being used to communicate directly to the client, rather than via a CGI-like gateway protocol that wants the HTTP status in a special ``Status:`` header. This attribute's default value is true in :class:`BaseHandler`, but false in :class:`BaseCGIHandler` and :class:`CGIHandler`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
cecd400a-a0d2-4a91-b688-b708e2a073aa
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,816
supabase-export-v2
49f415d179fbce91
.. module:: wsgiref.handlers :synopsis: WSGI server/gateway base classes. This module provides base handler classes for implementing WSGI servers and gateways. These base classes handle most of the work of communicating with a WSGI application, as long as they are given a CGI-like environment, along with input, output,...
trusted_official_docs
CPython Docs
.. module:: wsgiref.handlers :synopsis: WSGI server/gateway base classes. This module provides base handler classes for implementing WSGI servers and gateways. These base classes handle most of the work of communicating with a WSGI application, as long as they are given a CGI-like environment, along with input, output,...
.. module:: wsgiref.handlers :synopsis: WSGI server/gateway base classes. This module provides base handler classes for implementing WSGI servers and gateways. These base classes handle most of the work of communicating with a WSGI application, as long as they are given a CGI-like environment, along with input, output,...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d30255af-c870-4f65-abb6-ddf5b77b95f6
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,841
supabase-export-v2
bb00c8f9cc8e783f
.. method:: BaseHandler._write(data) Buffer the bytes *data* for transmission to the client. It's okay if this method actually transmits the data; :class:`BaseHandler` just separates write and flush operations for greater efficiency when the underlying system actually has such a distinction.
trusted_official_docs
CPython Docs
.. method:: BaseHandler._write(data) Buffer the bytes *data* for transmission to the client. It's okay if this method actually transmits the data; :class:`BaseHandler` just separates write and flush operations for greater efficiency when the underlying system actually has such a distinction.
.. method:: BaseHandler._write(data) Buffer the bytes *data* for transmission to the client. It's okay if this method actually transmits the data; :class:`BaseHandler` just separates write and flush operations for greater efficiency when the underlying system actually has such a distinction.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d3faab3f-6f75-440d-a9b5-c5a830c5b2fc
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,839
supabase-export-v2
7aad4aa2f5a86c84
the other :class:`BaseHandler` methods are invoked by this method in the process of running the application, and thus exist primarily to allow customizing the process. The following methods MUST be overridden in a subclass:
trusted_official_docs
CPython Docs
the other :class:`BaseHandler` methods are invoked by this method in the process of running the application, and thus exist primarily to allow customizing the process. The following methods MUST be overridden in a subclass:
the other :class:`BaseHandler` methods are invoked by this method in the process of running the application, and thus exist primarily to allow customizing the process. The following methods MUST be overridden in a subclass:
python, official-docs, cpython, P0
Local_Trusted_Corpus
d7f738e6-6373-449e-a7b5-3f9ab055868e
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,724
supabase-export-v2
eab2b687fc46d8ce
If there are no remaining path segments in ``PATH_INFO``, ``None`` is returned. Typically, this routine is used to process each portion of a request URI path, for example to treat the path as a series of dictionary keys. This routine modifies the passed-in environment to make it suitable for invoking another WSGI ap...
trusted_official_docs
CPython Docs
If there are no remaining path segments in ``PATH_INFO``, ``None`` is returned. Typically, this routine is used to process each portion of a request URI path, for example to treat the path as a series of dictionary keys. This routine modifies the passed-in environment to make it suitable for invoking another WSGI ap...
If there are no remaining path segments in ``PATH_INFO``, ``None`` is returned. Typically, this routine is used to process each portion of a request URI path, for example to treat the path as a series of dictionary keys. This routine modifies the passed-in environment to make it suitable for invoking another WSGI ap...
python, official-docs, cpython, P0
Local_Trusted_Corpus
da21a684-cef6-441f-b7c5-66ad0ca543b4
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,718
supabase-export-v2
c8198573b2923e87
.. function:: request_uri(environ, include_query=True) Return the full request URI, optionally including the query string, using the algorithm found in the "URL Reconstruction" section of :pep:`3333`. If *include_query* is false, the query string is not included in the resulting URI.
trusted_official_docs
CPython Docs
.. function:: request_uri(environ, include_query=True) Return the full request URI, optionally including the query string, using the algorithm found in the "URL Reconstruction" section of :pep:`3333`. If *include_query* is false, the query string is not included in the resulting URI.
.. function:: request_uri(environ, include_query=True) Return the full request URI, optionally including the query string, using the algorithm found in the "URL Reconstruction" section of :pep:`3333`. If *include_query* is false, the query string is not included in the resulting URI.
python, official-docs, cpython, P0
Local_Trusted_Corpus
dfd795f9-ed92-47cb-92aa-4409a5c3d3a7
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,709
supabase-export-v2
d17915efb76ffb66
serves WSGI applications, types for static type checking, and a validation tool that checks WSGI servers and applications for conformance to the WSGI specification (:pep:`3333`). See `wsgi.readthedocs.io <https://wsgi.readthedocs.io/>`_ for more information about WSGI, and links to tutorials and other resources.
trusted_official_docs
CPython Docs
serves WSGI applications, types for static type checking, and a validation tool that checks WSGI servers and applications for conformance to the WSGI specification (:pep:`3333`). See `wsgi.readthedocs.io <https://wsgi.readthedocs.io/>`_ for more information about WSGI, and links to tutorials and other resources.
serves WSGI applications, types for static type checking, and a validation tool that checks WSGI servers and applications for conformance to the WSGI specification (:pep:`3333`). See `wsgi.readthedocs.io <https://wsgi.readthedocs.io/>`_ for more information about WSGI, and links to tutorials and other resources.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e9757c88-695c-4bcb-ac02-5a643fe9c8be
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,862
supabase-export-v2
f83e1c27979fcbc1
to set a default ``Server:`` header in HTTP responses. It is ignored for handlers (such as :class:`BaseCGIHandler` and :class:`CGIHandler`) that are not HTTP origin servers. .. versionchanged:: 3.3 The term "Python" is replaced with implementation specific term like "CPython", "Jython" etc.
trusted_official_docs
CPython Docs
to set a default ``Server:`` header in HTTP responses. It is ignored for handlers (such as :class:`BaseCGIHandler` and :class:`CGIHandler`) that are not HTTP origin servers. .. versionchanged:: 3.3 The term "Python" is replaced with implementation specific term like "CPython", "Jython" etc.
to set a default ``Server:`` header in HTTP responses. It is ignored for handlers (such as :class:`BaseCGIHandler` and :class:`CGIHandler`) that are not HTTP origin servers. .. versionchanged:: 3.3 The term "Python" is replaced with implementation specific term like "CPython", "Jython" etc.
python, official-docs, cpython, P0
Local_Trusted_Corpus
eadea88f-35c5-4108-a334-35f4fda112a7
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,760
supabase-export-v2
a16a6a70753a0557
Return a list of all the values for the named header. The returned list will be sorted in the order they appeared in the original header list or were added to this instance, and may contain duplicates. Any fields deleted and re-inserted are always appended to the header list. If no fields exist with the given name, ...
trusted_official_docs
CPython Docs
Return a list of all the values for the named header. The returned list will be sorted in the order they appeared in the original header list or were added to this instance, and may contain duplicates. Any fields deleted and re-inserted are always appended to the header list. If no fields exist with the given name, ...
Return a list of all the values for the named header. The returned list will be sorted in the order they appeared in the original header list or were added to this instance, and may contain duplicates. Any fields deleted and re-inserted are always appended to the header list. If no fields exist with the given name, ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ec13f95d-8851-4702-a3af-8f3a6bb06b29
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,832
supabase-export-v2
cdf93f659f24db89
support explicitly setting the environment and streams via the constructor. The supplied environment and streams are stored in the :attr:`stdin`, :attr:`stdout`, :attr:`stderr`, and :attr:`environ` attributes. The :meth:`~io.BufferedIOBase.write` method of *stdout* should write each chunk in full, like :class:`io.Buff...
trusted_official_docs
CPython Docs
support explicitly setting the environment and streams via the constructor. The supplied environment and streams are stored in the :attr:`stdin`, :attr:`stdout`, :attr:`stderr`, and :attr:`environ` attributes. The :meth:`~io.BufferedIOBase.write` method of *stdout* should write each chunk in full, like :class:`io.Buff...
support explicitly setting the environment and streams via the constructor. The supplied environment and streams are stored in the :attr:`stdin`, :attr:`stdout`, :attr:`stderr`, and :attr:`environ` attributes. The :meth:`~io.BufferedIOBase.write` method of *stdout* should write each chunk in full, like :class:`io.Buff...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ecc65aad-07f0-4560-8cfd-dd3fa49239e5
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,805
supabase-export-v2
3ec82b0d074fdd2d
.. function:: validator(application) Wrap *application* and return a new WSGI application object. The returned application will forward all requests to the original *application*, and will check that both the *application* and the server invoking it are conforming to the WSGI specification and to :rfc:`2616`.
trusted_official_docs
CPython Docs
.. function:: validator(application) Wrap *application* and return a new WSGI application object. The returned application will forward all requests to the original *application*, and will check that both the *application* and the server invoking it are conforming to the WSGI specification and to :rfc:`2616`.
.. function:: validator(application) Wrap *application* and return a new WSGI application object. The returned application will forward all requests to the original *application*, and will check that both the *application* and the server invoking it are conforming to the WSGI specification and to :rfc:`2616`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ed7da764-c6c9-4360-be2d-d967faaafd11
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,706
supabase-export-v2
aa875d48b56cd0f1
:mod:`!wsgiref` is a reference implementation and is not recommended for production. The module only implements basic security checks. The Web Server Gateway Interface (WSGI) is a standard interface between web server software and web applications written in Python. Having a standard interface makes it easy to use an a...
trusted_official_docs
CPython Docs
:mod:`!wsgiref` is a reference implementation and is not recommended for production. The module only implements basic security checks. The Web Server Gateway Interface (WSGI) is a standard interface between web server software and web applications written in Python. Having a standard interface makes it easy to use an a...
:mod:`!wsgiref` is a reference implementation and is not recommended for production. The module only implements basic security checks. The Web Server Gateway Interface (WSGI) is a standard interface between web server software and web applications written in Python. Having a standard interface makes it easy to use an a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f1788819-8314-40a6-9935-27652c8e247c
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,763
supabase-export-v2
23493a4fe3514f27
Add a (possibly multi-valued) header, with optional MIME parameters specified via keyword arguments. *name* is the header field to add. Keyword arguments can be used to set MIME parameters for the header field. Each parameter must be a string or ``None``. Underscores in parameter names are converted to dashes, since d...
trusted_official_docs
CPython Docs
Add a (possibly multi-valued) header, with optional MIME parameters specified via keyword arguments. *name* is the header field to add. Keyword arguments can be used to set MIME parameters for the header field. Each parameter must be a string or ``None``. Underscores in parameter names are converted to dashes, since d...
Add a (possibly multi-valued) header, with optional MIME parameters specified via keyword arguments. *name* is the header field to add. Keyword arguments can be used to set MIME parameters for the header field. Each parameter must be a string or ``None``. Underscores in parameter names are converted to dashes, since d...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f214bc17-b1b5-4b5c-8954-08d0625ea9b1
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,801
supabase-export-v2
865db3cd45f592ab
.. module:: wsgiref.validate :synopsis: WSGI conformance checker. When creating new WSGI application objects, frameworks, servers, or middleware, it can be useful to validate the new code's conformance using :mod:`!wsgiref.validate`. This module provides a function that creates WSGI application objects that validate co...
trusted_official_docs
CPython Docs
.. module:: wsgiref.validate :synopsis: WSGI conformance checker. When creating new WSGI application objects, frameworks, servers, or middleware, it can be useful to validate the new code's conformance using :mod:`!wsgiref.validate`. This module provides a function that creates WSGI application objects that validate co...
.. module:: wsgiref.validate :synopsis: WSGI conformance checker. When creating new WSGI application objects, frameworks, servers, or middleware, it can be useful to validate the new code's conformance using :mod:`!wsgiref.validate`. This module provides a function that creates WSGI application objects that validate co...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f28b38a4-a46a-4d47-ab56-a19101f5a5bf
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,723
supabase-export-v2
f307f9d3360a9847
``SCRIPT_NAME`` and return the name. The *environ* dictionary is *modified* in-place; use a copy if you need to keep the original ``PATH_INFO`` or ``SCRIPT_NAME`` intact. If there are no remaining path segments in ``PATH_INFO``, ``None`` is returned.
trusted_official_docs
CPython Docs
``SCRIPT_NAME`` and return the name. The *environ* dictionary is *modified* in-place; use a copy if you need to keep the original ``PATH_INFO`` or ``SCRIPT_NAME`` intact. If there are no remaining path segments in ``PATH_INFO``, ``None`` is returned.
``SCRIPT_NAME`` and return the name. The *environ* dictionary is *modified* in-place; use a copy if you need to keep the original ``PATH_INFO`` or ``SCRIPT_NAME`` intact. If there are no remaining path segments in ``PATH_INFO``, ``None`` is returned.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f4155601-5482-4f0f-84c9-c2aa8bc32787
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,753
supabase-export-v2
0cf1184ef75d3878
object wrapping *headers*, which must be a list of header name/value tuples as described in :pep:`3333`. The default value of *headers* is an empty list. :class:`Headers` objects support typical mapping operations including :meth:`~object.__getitem__`, :meth:`~dict.get`, :meth:`~object.__setitem__`, :meth:`~dict.setd...
trusted_official_docs
CPython Docs
object wrapping *headers*, which must be a list of header name/value tuples as described in :pep:`3333`. The default value of *headers* is an empty list. :class:`Headers` objects support typical mapping operations including :meth:`~object.__getitem__`, :meth:`~dict.get`, :meth:`~object.__setitem__`, :meth:`~dict.setd...
object wrapping *headers*, which must be a list of header name/value tuples as described in :pep:`3333`. The default value of *headers* is an empty list. :class:`Headers` objects support typical mapping operations including :meth:`~object.__getitem__`, :meth:`~dict.get`, :meth:`~object.__setitem__`, :meth:`~dict.setd...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f620ffe1-dea1-4af0-bb08-c6f46a5fc7a6
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,895
supabase-export-v2
3c7367223a691b75
.. function:: read_environ() Transcode CGI variables from ``os.environ`` to :pep:`3333` "bytes in unicode" strings, returning a new dictionary. This function is used by :class:`CGIHandler` and :class:`IISCGIHandler` in place of directly using ``os.environ``, which is not necessarily WSGI-compliant on all platforms ...
trusted_official_docs
CPython Docs
.. function:: read_environ() Transcode CGI variables from ``os.environ`` to :pep:`3333` "bytes in unicode" strings, returning a new dictionary. This function is used by :class:`CGIHandler` and :class:`IISCGIHandler` in place of directly using ``os.environ``, which is not necessarily WSGI-compliant on all platforms ...
.. function:: read_environ() Transcode CGI variables from ``os.environ`` to :pep:`3333` "bytes in unicode" strings, returning a new dictionary. This function is used by :class:`CGIHandler` and :class:`IISCGIHandler` in place of directly using ``os.environ``, which is not necessarily WSGI-compliant on all platforms ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
faeb9be9-80a4-449c-893f-41741ec1509f
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,925
supabase-export-v2
eb283f0a546ec90b
the path and port from command-line arguments path = sys.argv[1] if len(sys.argv) > 1 else os.getcwd() port = int(sys.argv[2]) if len(sys.argv) > 2 else 8000 # Make and start the server until control-c httpd = simple_server.make_server("", port, app) print(f"Serving {path} on port {port}, control-C to stop") try: h...
trusted_official_docs
CPython Docs
the path and port from command-line arguments path = sys.argv[1] if len(sys.argv) > 1 else os.getcwd() port = int(sys.argv[2]) if len(sys.argv) > 2 else 8000 # Make and start the server until control-c httpd = simple_server.make_server("", port, app) print(f"Serving {path} on port {port}, control-C to stop") try: h...
the path and port from command-line arguments path = sys.argv[1] if len(sys.argv) > 1 else os.getcwd() port = int(sys.argv[2]) if len(sys.argv) > 2 else 8000 # Make and start the server until control-c httpd = simple_server.make_server("", port, app) print(f"Serving {path} on port {port}, control-C to stop") try: h...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fc10e381-951a-4961-a3dc-6539b23ab25b
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,732
supabase-export-v2
d9e1f5da2c5fe4ff
from wsgiref.util import setup_testing_defaults from wsgiref.simple_server import make_server # A relatively simple WSGI application. It's going to print out the # environment dictionary after being updated by setup_testing_defaults def simple_app(environ, start_response): setup_testing_defaults(environ)
trusted_official_docs
CPython Docs
from wsgiref.util import setup_testing_defaults from wsgiref.simple_server import make_server # A relatively simple WSGI application. It's going to print out the # environment dictionary after being updated by setup_testing_defaults def simple_app(environ, start_response): setup_testing_defaults(environ)
from wsgiref.util import setup_testing_defaults from wsgiref.simple_server import make_server # A relatively simple WSGI application. It's going to print out the # environment dictionary after being updated by setup_testing_defaults def simple_app(environ, start_response): setup_testing_defaults(environ)
python, official-docs, cpython, P0
Local_Trusted_Corpus
fe6d47bb-f4b1-4b14-b990-7f0db8182bc0
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,741
supabase-export-v2
715592733650bd3d
.. class:: FileWrapper(filelike, blksize=8192) A concrete implementation of the :class:`wsgiref.types.FileWrapper` protocol used to convert a file-like object to an :term:`iterator`. The resulting objects are :term:`iterable`\ s. As the object is iterated over, the optional *blksize* parameter will be repeatedly pas...
trusted_official_docs
CPython Docs
.. class:: FileWrapper(filelike, blksize=8192) A concrete implementation of the :class:`wsgiref.types.FileWrapper` protocol used to convert a file-like object to an :term:`iterator`. The resulting objects are :term:`iterable`\ s. As the object is iterated over, the optional *blksize* parameter will be repeatedly pas...
.. class:: FileWrapper(filelike, blksize=8192) A concrete implementation of the :class:`wsgiref.types.FileWrapper` protocol used to convert a file-like object to an :term:`iterator`. The resulting objects are :term:`iterable`\ s. As the object is iterated over, the optional *blksize* parameter will be repeatedly pas...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ff3ce75d-9938-4ada-a2d9-69e1b8de1e11
CPython Docs
file://datasets/cpython/Doc/library/wsgiref.rst
unknown
deae5c25-3c54-49d0-9d17-4d2f8bbb530d
5,803
supabase-export-v2
268ce5955b17dd61
not exist. However, if this module does produce an error, then it is virtually certain that either the server or application is not 100% compliant. This module is based on the :mod:`paste.lint` module from Ian Bicking's "Python Paste" library.
trusted_official_docs
CPython Docs
not exist. However, if this module does produce an error, then it is virtually certain that either the server or application is not 100% compliant. This module is based on the :mod:`paste.lint` module from Ian Bicking's "Python Paste" library.
not exist. However, if this module does produce an error, then it is virtually certain that either the server or application is not 100% compliant. This module is based on the :mod:`paste.lint` module from Ian Bicking's "Python Paste" library.
python, official-docs, cpython, P0
Local_Trusted_Corpus
02c3333b-c887-4d84-955e-584a0e7e7466
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,950
supabase-export-v2
1a7023c0735fcb98
newdoc = impl.createDocument(None, "some_tag", None) top_element = newdoc.documentElement text = newdoc.createTextNode('Some textual content.') top_element.appendChild(text) Once you have a DOM document object, you can access the parts of your XML document through its properties and methods. These properties are define...
trusted_official_docs
CPython Docs
newdoc = impl.createDocument(None, "some_tag", None) top_element = newdoc.documentElement text = newdoc.createTextNode('Some textual content.') top_element.appendChild(text) Once you have a DOM document object, you can access the parts of your XML document through its properties and methods. These properties are define...
newdoc = impl.createDocument(None, "some_tag", None) top_element = newdoc.documentElement text = newdoc.createTextNode('Some textual content.') top_element.appendChild(text) Once you have a DOM document object, you can access the parts of your XML document through its properties and methods. These properties are define...
python, official-docs, cpython, P0
Local_Trusted_Corpus
048dcc62-3bbd-46bb-a837-cd3bdaba646b
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,993
supabase-export-v2
3909f7d624eba0d1
* ``DOMException`` is currently not supported in :mod:`!xml.dom.minidom`. Instead, :mod:`!xml.dom.minidom` uses standard Python exceptions such as :exc:`TypeError` and :exc:`AttributeError`. * :class:`NodeList` objects are implemented using Python's built-in list type. These objects provide the interface defined in the...
trusted_official_docs
CPython Docs
* ``DOMException`` is currently not supported in :mod:`!xml.dom.minidom`. Instead, :mod:`!xml.dom.minidom` uses standard Python exceptions such as :exc:`TypeError` and :exc:`AttributeError`. * :class:`NodeList` objects are implemented using Python's built-in list type. These objects provide the interface defined in the...
* ``DOMException`` is currently not supported in :mod:`!xml.dom.minidom`. Instead, :mod:`!xml.dom.minidom` uses standard Python exceptions such as :exc:`TypeError` and :exc:`AttributeError`. * :class:`NodeList` objects are implemented using Python's built-in list type. These objects provide the interface defined in the...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0b9cbfa1-051f-4c3f-91d4-a78c22f05240
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,960
supabase-export-v2
51415d43c07f60ad
You can avoid calling this method explicitly by using the :keyword:`with` statement. The following code will automatically unlink *dom* when the :keyword:`!with` block is exited:: with xml.dom.minidom.parse(datasource) as dom: ... # Work with dom.
trusted_official_docs
CPython Docs
You can avoid calling this method explicitly by using the :keyword:`with` statement. The following code will automatically unlink *dom* when the :keyword:`!with` block is exited:: with xml.dom.minidom.parse(datasource) as dom: ... # Work with dom.
You can avoid calling this method explicitly by using the :keyword:`with` statement. The following code will automatically unlink *dom* when the :keyword:`!with` block is exited:: with xml.dom.minidom.parse(datasource) as dom: ... # Work with dom.
python, official-docs, cpython, P0
Local_Trusted_Corpus
147bf6a4-70eb-4641-b443-21e657930a59
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,946
supabase-export-v2
a1acf03a6d7cd7cc
interfaces. The parsing of the document will be completed before these functions return; it's simply that these functions do not provide a parser implementation themselves. You can also create a :class:`Document` by calling a method on a "DOM Implementation" object. You can get this object either by calling the :func:`...
trusted_official_docs
CPython Docs
interfaces. The parsing of the document will be completed before these functions return; it's simply that these functions do not provide a parser implementation themselves. You can also create a :class:`Document` by calling a method on a "DOM Implementation" object. You can get this object either by calling the :func:`...
interfaces. The parsing of the document will be completed before these functions return; it's simply that these functions do not provide a parser implementation themselves. You can also create a :class:`Document` by calling a method on a "DOM Implementation" object. You can get this object either by calling the :func:`...
python, official-docs, cpython, P0
Local_Trusted_Corpus
36da636c-cc67-4d7a-ab84-43697d7fd6da
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,964
supabase-export-v2
e7b22b4baee3698a
For the :class:`Document` node, an additional keyword argument *encoding* can be used to specify the encoding field of the XML header. Similarly, explicitly stating the *standalone* argument causes the standalone document declarations to be added to the prologue of the XML document. If the value is set to ``True``, `...
trusted_official_docs
CPython Docs
For the :class:`Document` node, an additional keyword argument *encoding* can be used to specify the encoding field of the XML header. Similarly, explicitly stating the *standalone* argument causes the standalone document declarations to be added to the prologue of the XML document. If the value is set to ``True``, `...
For the :class:`Document` node, an additional keyword argument *encoding* can be used to specify the encoding field of the XML header. Similarly, explicitly stating the *standalone* argument causes the standalone document declarations to be added to the prologue of the XML document. If the value is set to ``True``, `...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3a993270-d803-4891-881c-4d19707708d6
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,963
supabase-export-v2
4973741cfef3a34a
*addindent* parameter is the incremental indentation to use for subnodes of the current one. The *newl* parameter specifies the string to use to terminate newlines. For the :class:`Document` node, an additional keyword argument *encoding* can be used to specify the encoding field of the XML header.
trusted_official_docs
CPython Docs
*addindent* parameter is the incremental indentation to use for subnodes of the current one. The *newl* parameter specifies the string to use to terminate newlines. For the :class:`Document` node, an additional keyword argument *encoding* can be used to specify the encoding field of the XML header.
*addindent* parameter is the incremental indentation to use for subnodes of the current one. The *newl* parameter specifies the string to use to terminate newlines. For the :class:`Document` node, an additional keyword argument *encoding* can be used to specify the encoding field of the XML header.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3cb68f75-8a07-47b8-8a85-f89e0dfce327
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,945
supabase-export-v2
8f414b2d889af452
Both functions return a :class:`Document` object representing the content of the document. What the :func:`parse` and :func:`parseString` functions do is connect an XML parser with a "DOM builder" that can accept parse events from any SAX parser and convert them into a DOM tree. The names of the functions are perhaps m...
trusted_official_docs
CPython Docs
Both functions return a :class:`Document` object representing the content of the document. What the :func:`parse` and :func:`parseString` functions do is connect an XML parser with a "DOM builder" that can accept parse events from any SAX parser and convert them into a DOM tree. The names of the functions are perhaps m...
Both functions return a :class:`Document` object representing the content of the document. What the :func:`parse` and :func:`parseString` functions do is connect an XML parser with a "DOM builder" that can accept parse events from any SAX parser and convert them into a DOM tree. The names of the functions are perhaps m...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3de07a03-60ab-45ab-b8fb-9ec1e6d5bbb1
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,990
supabase-export-v2
2ade92b4707c0dda
* The types ``short int``, ``unsigned int``, ``unsigned long long``, and ``boolean`` all map to Python integer objects. * The type ``DOMString`` maps to Python strings. :mod:`!xml.dom.minidom` supports either bytes or strings, but will normally produce strings. Values of type ``DOMString`` may also be ``None`` where a...
trusted_official_docs
CPython Docs
* The types ``short int``, ``unsigned int``, ``unsigned long long``, and ``boolean`` all map to Python integer objects. * The type ``DOMString`` maps to Python strings. :mod:`!xml.dom.minidom` supports either bytes or strings, but will normally produce strings. Values of type ``DOMString`` may also be ``None`` where a...
* The types ``short int``, ``unsigned int``, ``unsigned long long``, and ``boolean`` all map to Python integer objects. * The type ``DOMString`` maps to Python strings. :mod:`!xml.dom.minidom` supports either bytes or strings, but will normally produce strings. Values of type ``DOMString`` may also be ``None`` where a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4891270f-93e2-4dea-a623-a726291580ab
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,965
supabase-export-v2
b85b59cb01c9a553
value is set to ``True``, ``standalone="yes"`` is added, otherwise it is set to ``"no"``. Not stating the argument will omit the declaration from the document. .. versionchanged:: 3.8 The :meth:`writexml` method now preserves the attribute order specified by the user.
trusted_official_docs
CPython Docs
value is set to ``True``, ``standalone="yes"`` is added, otherwise it is set to ``"no"``. Not stating the argument will omit the declaration from the document. .. versionchanged:: 3.8 The :meth:`writexml` method now preserves the attribute order specified by the user.
value is set to ``True``, ``standalone="yes"`` is added, otherwise it is set to ``"no"``. Not stating the argument will omit the declaration from the document. .. versionchanged:: 3.8 The :meth:`writexml` method now preserves the attribute order specified by the user.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4e0ad146-82bd-403e-aae6-e20965b8e66f
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,986
supabase-export-v2
9ab6b60faae37dd5
Usage of the DOM interface in Python is straight-forward. The following mapping rules apply: * Interfaces are accessed through instance objects. Applications should not instantiate the classes themselves; they should use the creator functions available on the :class:`Document` object. Derived interfaces support all ...
trusted_official_docs
CPython Docs
Usage of the DOM interface in Python is straight-forward. The following mapping rules apply: * Interfaces are accessed through instance objects. Applications should not instantiate the classes themselves; they should use the creator functions available on the :class:`Document` object. Derived interfaces support all ...
Usage of the DOM interface in Python is straight-forward. The following mapping rules apply: * Interfaces are accessed through instance objects. Applications should not instantiate the classes themselves; they should use the creator functions available on the :class:`Document` object. Derived interfaces support all ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
53bf56c6-9982-4d1b-b0ef-65459fac50b4
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,988
supabase-export-v2
a6423c34b6877c85
DOM uses only :keyword:`in` parameters, the arguments are passed in normal order (from left to right). There are no optional arguments. ``void`` operations return ``None``. * IDL attributes map to instance attributes. For compatibility with the OMG IDL language mapping for Python, an attribute ``foo`` can also be acce...
trusted_official_docs
CPython Docs
DOM uses only :keyword:`in` parameters, the arguments are passed in normal order (from left to right). There are no optional arguments. ``void`` operations return ``None``. * IDL attributes map to instance attributes. For compatibility with the OMG IDL language mapping for Python, an attribute ``foo`` can also be acce...
DOM uses only :keyword:`in` parameters, the arguments are passed in normal order (from left to right). There are no optional arguments. ``void`` operations return ``None``. * IDL attributes map to instance attributes. For compatibility with the OMG IDL language mapping for Python, an attribute ``foo`` can also be acce...
python, official-docs, cpython, P0
Local_Trusted_Corpus
69355f30-7c1a-4fa1-b289-e3efc397b856
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,987
supabase-export-v2
df4c4ac67f3bf490
should use the creator functions available on the :class:`Document` object. Derived interfaces support all operations (and attributes) from the base interfaces, plus any new operations. * Operations are used as methods. Since the DOM uses only :keyword:`in` parameters, the arguments are passed in normal order (from le...
trusted_official_docs
CPython Docs
should use the creator functions available on the :class:`Document` object. Derived interfaces support all operations (and attributes) from the base interfaces, plus any new operations. * Operations are used as methods. Since the DOM uses only :keyword:`in` parameters, the arguments are passed in normal order (from le...
should use the creator functions available on the :class:`Document` object. Derived interfaces support all operations (and attributes) from the base interfaces, plus any new operations. * Operations are used as methods. Since the DOM uses only :keyword:`in` parameters, the arguments are passed in normal order (from le...
python, official-docs, cpython, P0
Local_Trusted_Corpus
79895f89-0677-4873-a12b-a21b8a4eb0e1
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,958
supabase-export-v2
9a07ae7b1412e98b
.. method:: Node.unlink() Break internal references within the DOM so that it will be garbage collected on versions of Python without cyclic GC. Even when cyclic GC is available, using this can make large amounts of memory available sooner, so calling this on DOM objects as soon as they are no longer needed is good ...
trusted_official_docs
CPython Docs
.. method:: Node.unlink() Break internal references within the DOM so that it will be garbage collected on versions of Python without cyclic GC. Even when cyclic GC is available, using this can make large amounts of memory available sooner, so calling this on DOM objects as soon as they are no longer needed is good ...
.. method:: Node.unlink() Break internal references within the DOM so that it will be garbage collected on versions of Python without cyclic GC. Even when cyclic GC is available, using this can make large amounts of memory available sooner, so calling this on DOM objects as soon as they are no longer needed is good ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7f18fe36-e33a-4213-b736-94be3b4f0d43
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,970
supabase-export-v2
76e3740966686e89
does not specify an encoding. Encoding this string in an encoding other than UTF-8 is likely incorrect, since UTF-8 is the default encoding of XML. The *standalone* argument behaves exactly as in :meth:`writexml`.
trusted_official_docs
CPython Docs
does not specify an encoding. Encoding this string in an encoding other than UTF-8 is likely incorrect, since UTF-8 is the default encoding of XML. The *standalone* argument behaves exactly as in :meth:`writexml`.
does not specify an encoding. Encoding this string in an encoding other than UTF-8 is likely incorrect, since UTF-8 is the default encoding of XML. The *standalone* argument behaves exactly as in :meth:`writexml`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
833306d2-2716-41a6-a53b-9277efef1281
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,933
supabase-export-v2
624c6e5c5765fc88
If you need to parse untrusted or unauthenticated data, see :ref:`xml-security`. DOM applications typically start by parsing some XML into a DOM. With :mod:`!xml.dom.minidom`, this is done through the parse functions::
trusted_official_docs
CPython Docs
If you need to parse untrusted or unauthenticated data, see :ref:`xml-security`. DOM applications typically start by parsing some XML into a DOM. With :mod:`!xml.dom.minidom`, this is done through the parse functions::
If you need to parse untrusted or unauthenticated data, see :ref:`xml-security`. DOM applications typically start by parsing some XML into a DOM. With :mod:`!xml.dom.minidom`, this is done through the parse functions::
python, official-docs, cpython, P0
Local_Trusted_Corpus
8ce6824f-92c6-4fe5-a11e-dc705d2761c3
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,959
supabase-export-v2
28a005b6b0026f74
good practice. This only needs to be called on the :class:`Document` object, but may be called on child nodes to discard children of that node. You can avoid calling this method explicitly by using the :keyword:`with` statement. The following code will automatically unlink *dom* when the :keyword:`!with` block is exi...
trusted_official_docs
CPython Docs
good practice. This only needs to be called on the :class:`Document` object, but may be called on child nodes to discard children of that node. You can avoid calling this method explicitly by using the :keyword:`with` statement. The following code will automatically unlink *dom* when the :keyword:`!with` block is exi...
good practice. This only needs to be called on the :class:`Document` object, but may be called on child nodes to discard children of that node. You can avoid calling this method explicitly by using the :keyword:`with` statement. The following code will automatically unlink *dom* when the :keyword:`!with` block is exi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
94acbc9b-799b-456d-88a4-6e9c24f0c1ca
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,992
supabase-export-v2
e6790daacd3ac7f6
* ``const`` declarations map to variables in their respective scope (e.g. ``xml.dom.minidom.Node.PROCESSING_INSTRUCTION_NODE``); they must not be changed. * ``DOMException`` is currently not supported in :mod:`!xml.dom.minidom`. Instead, :mod:`!xml.dom.minidom` uses standard Python exceptions such as :exc:`TypeError` ...
trusted_official_docs
CPython Docs
* ``const`` declarations map to variables in their respective scope (e.g. ``xml.dom.minidom.Node.PROCESSING_INSTRUCTION_NODE``); they must not be changed. * ``DOMException`` is currently not supported in :mod:`!xml.dom.minidom`. Instead, :mod:`!xml.dom.minidom` uses standard Python exceptions such as :exc:`TypeError` ...
* ``const`` declarations map to variables in their respective scope (e.g. ``xml.dom.minidom.Node.PROCESSING_INSTRUCTION_NODE``); they must not be changed. * ``DOMException`` is currently not supported in :mod:`!xml.dom.minidom`. Instead, :mod:`!xml.dom.minidom` uses standard Python exceptions such as :exc:`TypeError` ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
97eeb714-7ed6-479c-9f4f-e4884ac2c7cd
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,941
supabase-export-v2
494ccbbbb2b42c24
change the document handler of the parser and activate namespace support; other parser configuration (like setting an entity resolver) must have been done in advance. If you have XML in a string, you can use the :func:`parseString` function instead:
trusted_official_docs
CPython Docs
change the document handler of the parser and activate namespace support; other parser configuration (like setting an entity resolver) must have been done in advance. If you have XML in a string, you can use the :func:`parseString` function instead:
change the document handler of the parser and activate namespace support; other parser configuration (like setting an entity resolver) must have been done in advance. If you have XML in a string, you can use the :func:`parseString` function instead:
python, official-docs, cpython, P0
Local_Trusted_Corpus
9a1a7f48-ddcf-40f2-960e-c006de554f89
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,969
supabase-export-v2
fad8ea66f8113584
Return a string or byte string containing the XML represented by the DOM node. With an explicit *encoding* [1]_ argument, the result is a byte string in the specified encoding. With no *encoding* argument, the result is a Unicode string, and the XML declaration in the resulting string does not specify an encoding. E...
trusted_official_docs
CPython Docs
Return a string or byte string containing the XML represented by the DOM node. With an explicit *encoding* [1]_ argument, the result is a byte string in the specified encoding. With no *encoding* argument, the result is a Unicode string, and the XML declaration in the resulting string does not specify an encoding. E...
Return a string or byte string containing the XML represented by the DOM node. With an explicit *encoding* [1]_ argument, the result is a byte string in the specified encoding. With no *encoding* argument, the result is a Unicode string, and the XML declaration in the resulting string does not specify an encoding. E...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9a7e07a7-d58e-4c67-934b-e1514ae11f08
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,952
supabase-export-v2
c289529e847655e9
dom3 = parseString("<myxml>Some data</myxml>") assert dom3.documentElement.tagName == "myxml" When you are finished with a DOM tree, you may optionally call the :meth:`unlink` method to encourage early cleanup of the now-unneeded objects. :meth:`unlink` is an :mod:`!xml.dom.minidom`\ -specific extension to the DOM API ...
trusted_official_docs
CPython Docs
dom3 = parseString("<myxml>Some data</myxml>") assert dom3.documentElement.tagName == "myxml" When you are finished with a DOM tree, you may optionally call the :meth:`unlink` method to encourage early cleanup of the now-unneeded objects. :meth:`unlink` is an :mod:`!xml.dom.minidom`\ -specific extension to the DOM API ...
dom3 = parseString("<myxml>Some data</myxml>") assert dom3.documentElement.tagName == "myxml" When you are finished with a DOM tree, you may optionally call the :meth:`unlink` method to encourage early cleanup of the now-unneeded objects. :meth:`unlink` is an :mod:`!xml.dom.minidom`\ -specific extension to the DOM API ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a1615b2c-35ac-4c83-843f-44f61965401c
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,989
supabase-export-v2
b8a086d933e1e03f
an attribute ``foo`` can also be accessed through accessor methods :meth:`_get_foo` and :meth:`_set_foo`. ``readonly`` attributes must not be changed; this is not enforced at runtime. * The types ``short int``, ``unsigned int``, ``unsigned long long``, and ``boolean`` all map to Python integer objects.
trusted_official_docs
CPython Docs
an attribute ``foo`` can also be accessed through accessor methods :meth:`_get_foo` and :meth:`_set_foo`. ``readonly`` attributes must not be changed; this is not enforced at runtime. * The types ``short int``, ``unsigned int``, ``unsigned long long``, and ``boolean`` all map to Python integer objects.
an attribute ``foo`` can also be accessed through accessor methods :meth:`_get_foo` and :meth:`_set_foo`. ``readonly`` attributes must not be changed; this is not enforced at runtime. * The types ``short int``, ``unsigned int``, ``unsigned long long``, and ``boolean`` all map to Python integer objects.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ab8fd520-7985-4207-8195-813edc4cd6e7
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,930
supabase-export-v2
5c4943cb07c7a493
-------------- :mod:`!xml.dom.minidom` is a minimal implementation of the Document Object Model interface, with an API similar to that in other languages. It is intended to be simpler than the full DOM and also significantly smaller. Users who are not already proficient with the DOM should consider using the :mod:`xml....
trusted_official_docs
CPython Docs
-------------- :mod:`!xml.dom.minidom` is a minimal implementation of the Document Object Model interface, with an API similar to that in other languages. It is intended to be simpler than the full DOM and also significantly smaller. Users who are not already proficient with the DOM should consider using the :mod:`xml....
-------------- :mod:`!xml.dom.minidom` is a minimal implementation of the Document Object Model interface, with an API similar to that in other languages. It is intended to be simpler than the full DOM and also significantly smaller. Users who are not already proficient with the DOM should consider using the :mod:`xml....
python, official-docs, cpython, P0
Local_Trusted_Corpus
abf5b9db-6f31-4557-935e-30cd9610b0dd
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,994
supabase-export-v2
9111b7678e3c6ea5
earlier versions of Python they do not support the official API. They are, however, much more "Pythonic" than the interface defined in the W3C recommendations. The following interfaces have no implementation in :mod:`!xml.dom.minidom`:
trusted_official_docs
CPython Docs
earlier versions of Python they do not support the official API. They are, however, much more "Pythonic" than the interface defined in the W3C recommendations. The following interfaces have no implementation in :mod:`!xml.dom.minidom`:
earlier versions of Python they do not support the official API. They are, however, much more "Pythonic" than the interface defined in the W3C recommendations. The following interfaces have no implementation in :mod:`!xml.dom.minidom`:
python, official-docs, cpython, P0
Local_Trusted_Corpus
b307ab73-785e-4e7d-8bba-34ebb5159c7d
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,991
supabase-export-v2
359b80bc08a491d4
produce strings. Values of type ``DOMString`` may also be ``None`` where allowed to have the IDL ``null`` value by the DOM specification from the W3C. * ``const`` declarations map to variables in their respective scope (e.g. ``xml.dom.minidom.Node.PROCESSING_INSTRUCTION_NODE``); they must not be changed.
trusted_official_docs
CPython Docs
produce strings. Values of type ``DOMString`` may also be ``None`` where allowed to have the IDL ``null`` value by the DOM specification from the W3C. * ``const`` declarations map to variables in their respective scope (e.g. ``xml.dom.minidom.Node.PROCESSING_INSTRUCTION_NODE``); they must not be changed.
produce strings. Values of type ``DOMString`` may also be ``None`` where allowed to have the IDL ``null`` value by the DOM specification from the W3C. * ``const`` declarations map to variables in their respective scope (e.g. ``xml.dom.minidom.Node.PROCESSING_INSTRUCTION_NODE``); they must not be changed.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b44ab8ae-1f99-46cd-a6c5-ec04f7a7c9b1
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,980
supabase-export-v2
69870f2579f5cad5
DOM Example ----------- This example program is a fairly realistic example of a simple program. In this particular case, we do not take much advantage of the flexibility of the DOM.
trusted_official_docs
CPython Docs
DOM Example ----------- This example program is a fairly realistic example of a simple program. In this particular case, we do not take much advantage of the flexibility of the DOM.
DOM Example ----------- This example program is a fairly realistic example of a simple program. In this particular case, we do not take much advantage of the flexibility of the DOM.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b95880f8-5bff-47da-8035-dddd0f1e35e7
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,962
supabase-export-v2
705df7e5d2877789
.. method:: Node.writexml(writer, indent="", addindent="", newl="", \ encoding=None, standalone=None) Write XML to the writer object. The writer receives texts but not bytes as input, it should have a :meth:`write` method which matches that of the file object interface. The *indent* parameter is the indentation of th...
trusted_official_docs
CPython Docs
.. method:: Node.writexml(writer, indent="", addindent="", newl="", \ encoding=None, standalone=None) Write XML to the writer object. The writer receives texts but not bytes as input, it should have a :meth:`write` method which matches that of the file object interface. The *indent* parameter is the indentation of th...
.. method:: Node.writexml(writer, indent="", addindent="", newl="", \ encoding=None, standalone=None) Write XML to the writer object. The writer receives texts but not bytes as input, it should have a :meth:`write` method which matches that of the file object interface. The *indent* parameter is the indentation of th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cdb0bde1-7d71-4583-8a79-339c43932e9d
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,974
supabase-export-v2
f93a4c0607ca50d8
.. method:: Node.toprettyxml(indent="\t", newl="\n", encoding=None, \ standalone=None) Return a pretty-printed version of the document. *indent* specifies the indentation string and defaults to a tabulator; *newl* specifies the string emitted at the end of each line and defaults to ``\n``.
trusted_official_docs
CPython Docs
.. method:: Node.toprettyxml(indent="\t", newl="\n", encoding=None, \ standalone=None) Return a pretty-printed version of the document. *indent* specifies the indentation string and defaults to a tabulator; *newl* specifies the string emitted at the end of each line and defaults to ``\n``.
.. method:: Node.toprettyxml(indent="\t", newl="\n", encoding=None, \ standalone=None) Return a pretty-printed version of the document. *indent* specifies the indentation string and defaults to a tabulator; *newl* specifies the string emitted at the end of each line and defaults to ``\n``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
cebed205-bc42-438f-b87e-5492695fdbb5
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,951
supabase-export-v2
3230b2506961ecab
is the :attr:`documentElement` property. It gives you the main element in the XML document: the one that holds all others. Here is an example program:: dom3 = parseString("<myxml>Some data</myxml>") assert dom3.documentElement.tagName == "myxml"
trusted_official_docs
CPython Docs
is the :attr:`documentElement` property. It gives you the main element in the XML document: the one that holds all others. Here is an example program:: dom3 = parseString("<myxml>Some data</myxml>") assert dom3.documentElement.tagName == "myxml"
is the :attr:`documentElement` property. It gives you the main element in the XML document: the one that holds all others. Here is an example program:: dom3 = parseString("<myxml>Some data</myxml>") assert dom3.documentElement.tagName == "myxml"
python, official-docs, cpython, P0
Local_Trusted_Corpus
d18086c8-3b77-4c82-bc7b-d8647a8ea907
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,956
supabase-export-v2
3dd4de39123f33cd
DOM Objects ----------- The definition of the DOM API for Python is given as part of the :mod:`xml.dom` module documentation. This section lists the differences between the API and :mod:`!xml.dom.minidom`.
trusted_official_docs
CPython Docs
DOM Objects ----------- The definition of the DOM API for Python is given as part of the :mod:`xml.dom` module documentation. This section lists the differences between the API and :mod:`!xml.dom.minidom`.
DOM Objects ----------- The definition of the DOM API for Python is given as part of the :mod:`xml.dom` module documentation. This section lists the differences between the API and :mod:`!xml.dom.minidom`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d2422977-15f9-4493-99e3-4c95a28ec744
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,999
supabase-export-v2
c737ecc66b17d187
.. rubric:: Footnotes .. [1] The encoding name included in the XML output should conform to the appropriate standards. For example, "UTF-8" is valid, but "UTF8" is not valid in an XML document's declaration, even though Python accepts it as an encoding name. See https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-Enco...
trusted_official_docs
CPython Docs
.. rubric:: Footnotes .. [1] The encoding name included in the XML output should conform to the appropriate standards. For example, "UTF-8" is valid, but "UTF8" is not valid in an XML document's declaration, even though Python accepts it as an encoding name. See https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-Enco...
.. rubric:: Footnotes .. [1] The encoding name included in the XML output should conform to the appropriate standards. For example, "UTF-8" is valid, but "UTF8" is not valid in an XML document's declaration, even though Python accepts it as an encoding name. See https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-Enco...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d895062c-992c-4d32-9295-6e643859715c
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,944
supabase-export-v2
592a3aff3bc78d2f
Return a :class:`Document` that represents the *string*. This method creates an :class:`io.StringIO` object for the string and passes that on to :func:`parse`. Both functions return a :class:`Document` object representing the content of the document.
trusted_official_docs
CPython Docs
Return a :class:`Document` that represents the *string*. This method creates an :class:`io.StringIO` object for the string and passes that on to :func:`parse`. Both functions return a :class:`Document` object representing the content of the document.
Return a :class:`Document` that represents the *string*. This method creates an :class:`io.StringIO` object for the string and passes that on to :func:`parse`. Both functions return a :class:`Document` object representing the content of the document.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f674986c-5cdc-4be8-89c8-70f8a77bd6da
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,985
supabase-export-v2
da951d78021a152b
The :mod:`!xml.dom.minidom` module is essentially a DOM 1.0-compatible DOM with some DOM 2 features (primarily namespace features). Usage of the DOM interface in Python is straight-forward. The following mapping rules apply:
trusted_official_docs
CPython Docs
The :mod:`!xml.dom.minidom` module is essentially a DOM 1.0-compatible DOM with some DOM 2 features (primarily namespace features). Usage of the DOM interface in Python is straight-forward. The following mapping rules apply:
The :mod:`!xml.dom.minidom` module is essentially a DOM 1.0-compatible DOM with some DOM 2 features (primarily namespace features). Usage of the DOM interface in Python is straight-forward. The following mapping rules apply:
python, official-docs, cpython, P0
Local_Trusted_Corpus
f693e335-aa3b-40b7-a65e-58ddb60142a6
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,940
supabase-export-v2
303ba64f1646ac90
.. function:: parse(filename_or_file, parser=None, bufsize=None) Return a :class:`Document` from the given input. *filename_or_file* may be either a file name, or a file-like object. *parser*, if given, must be a SAX2 parser object. This function will change the document handler of the parser and activate namespace ...
trusted_official_docs
CPython Docs
.. function:: parse(filename_or_file, parser=None, bufsize=None) Return a :class:`Document` from the given input. *filename_or_file* may be either a file name, or a file-like object. *parser*, if given, must be a SAX2 parser object. This function will change the document handler of the parser and activate namespace ...
.. function:: parse(filename_or_file, parser=None, bufsize=None) Return a :class:`Document` from the given input. *filename_or_file* may be either a file name, or a file-like object. *parser*, if given, must be a SAX2 parser object. This function will change the document handler of the parser and activate namespace ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f85fc09a-93be-440e-9e2e-9e5f9a0013d4
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.minidom.rst
unknown
575c5701-fc85-43c4-af05-47c208ac9882
5,975
supabase-export-v2
acd6c0666ac98591
*indent* specifies the indentation string and defaults to a tabulator; *newl* specifies the string emitted at the end of each line and defaults to ``\n``. The *encoding* argument behaves like the corresponding argument of :meth:`toxml`.
trusted_official_docs
CPython Docs
*indent* specifies the indentation string and defaults to a tabulator; *newl* specifies the string emitted at the end of each line and defaults to ``\n``. The *encoding* argument behaves like the corresponding argument of :meth:`toxml`.
*indent* specifies the indentation string and defaults to a tabulator; *newl* specifies the string emitted at the end of each line and defaults to ``\n``. The *encoding* argument behaves like the corresponding argument of :meth:`toxml`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1d0a8969-ed96-4ea0-a733-3f7151b022e5
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,022
supabase-export-v2
7ba6dabc638bb816
.. function:: setrlimit(resource, limits) Sets new limits of consumption of *resource*. The *limits* argument must be a tuple ``(soft, hard)`` of two integers describing the new limits. A value of :const:`~resource.RLIM_INFINITY` can be used to request a limit that is unlimited.
trusted_official_docs
CPython Docs
.. function:: setrlimit(resource, limits) Sets new limits of consumption of *resource*. The *limits* argument must be a tuple ``(soft, hard)`` of two integers describing the new limits. A value of :const:`~resource.RLIM_INFINITY` can be used to request a limit that is unlimited.
.. function:: setrlimit(resource, limits) Sets new limits of consumption of *resource*. The *limits* argument must be a tuple ``(soft, hard)`` of two integers describing the new limits. A value of :const:`~resource.RLIM_INFINITY` can be used to request a limit that is unlimited.
python, official-docs, cpython, P0
Local_Trusted_Corpus
41bf99f5-652c-4c16-9224-52c64b4f0d98
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,029
supabase-export-v2
63b155df21700360
is 0, then the call applies to the current process. *resource* and *limits* have the same meaning as in :func:`setrlimit`, except that *limits* is optional. When *limits* is not given the function returns the *resource* limit of the process *pid*. When *limits* is given the *resource* limit of the process is set and ...
trusted_official_docs
CPython Docs
is 0, then the call applies to the current process. *resource* and *limits* have the same meaning as in :func:`setrlimit`, except that *limits* is optional. When *limits* is not given the function returns the *resource* limit of the process *pid*. When *limits* is given the *resource* limit of the process is set and ...
is 0, then the call applies to the current process. *resource* and *limits* have the same meaning as in :func:`setrlimit`, except that *limits* is optional. When *limits* is not given the function returns the *resource* limit of the process *pid*. When *limits* is given the *resource* limit of the process is set and ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
43c2c42a-c4f3-4682-bdec-086d7b3e045a
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,037
supabase-export-v2
4a0b0e714f9722dd
.. data:: RLIMIT_CORE The maximum size (in bytes) of a core file that the current process can create. This may result in the creation of a partial core file if a larger core would be required to contain the entire process image.
trusted_official_docs
CPython Docs
.. data:: RLIMIT_CORE The maximum size (in bytes) of a core file that the current process can create. This may result in the creation of a partial core file if a larger core would be required to contain the entire process image.
.. data:: RLIMIT_CORE The maximum size (in bytes) of a core file that the current process can create. This may result in the creation of a partial core file if a larger core would be required to contain the entire process image.
python, official-docs, cpython, P0
Local_Trusted_Corpus
442d49d1-6b93-480a-a4d0-2e18ff151e20
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,112
supabase-export-v2
58ae5b22a9d7a958
| signals received | +--------+----------------------+---------------------------------------+ | ``14`` | :attr:`!ru_nvcsw` | voluntary context switches | +--------+----------------------+---------------------------------------+ | ``15`` | :attr:`!ru_nivcsw` | involuntary context switches | +--------+------------------...
trusted_official_docs
CPython Docs
| signals received | +--------+----------------------+---------------------------------------+ | ``14`` | :attr:`!ru_nvcsw` | voluntary context switches | +--------+----------------------+---------------------------------------+ | ``15`` | :attr:`!ru_nivcsw` | involuntary context switches | +--------+------------------...
| signals received | +--------+----------------------+---------------------------------------+ | ``14`` | :attr:`!ru_nvcsw` | voluntary context switches | +--------+----------------------+---------------------------------------+ | ``15`` | :attr:`!ru_nivcsw` | involuntary context switches | +--------+------------------...
python, official-docs, cpython, P0
Local_Trusted_Corpus
48a598a5-115d-44ce-9b14-c82c33e18f5e
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,024
supabase-export-v2
f6dc3741cee915a8
of super-user can request any valid limit value, including unlimited, but :exc:`ValueError` will still be raised if the requested limit exceeds the system imposed limit. ``setrlimit`` may also raise :exc:`error` if the underlying system call fails.
trusted_official_docs
CPython Docs
of super-user can request any valid limit value, including unlimited, but :exc:`ValueError` will still be raised if the requested limit exceeds the system imposed limit. ``setrlimit`` may also raise :exc:`error` if the underlying system call fails.
of super-user can request any valid limit value, including unlimited, but :exc:`ValueError` will still be raised if the requested limit exceeds the system imposed limit. ``setrlimit`` may also raise :exc:`error` if the underlying system call fails.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4f83e5bc-a43a-4681-89f6-7f1dbe1be1ad
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,028
supabase-export-v2
2ed2013d6ec3495e
.. function:: prlimit(pid, resource[, limits]) Combines :func:`setrlimit` and :func:`getrlimit` in one function and supports to get and set the resources limits of an arbitrary process. If *pid* is 0, then the call applies to the current process. *resource* and *limits* have the same meaning as in :func:`setrlimit`,...
trusted_official_docs
CPython Docs
.. function:: prlimit(pid, resource[, limits]) Combines :func:`setrlimit` and :func:`getrlimit` in one function and supports to get and set the resources limits of an arbitrary process. If *pid* is 0, then the call applies to the current process. *resource* and *limits* have the same meaning as in :func:`setrlimit`,...
.. function:: prlimit(pid, resource[, limits]) Combines :func:`setrlimit` and :func:`getrlimit` in one function and supports to get and set the resources limits of an arbitrary process. If *pid* is 0, then the call applies to the current process. *resource* and *limits* have the same meaning as in :func:`setrlimit`,...
python, official-docs, cpython, P0
Local_Trusted_Corpus
525fbb0a-744d-425a-a106-e09978c142fa
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,115
supabase-export-v2
f74123e21e510c5f
Returns the number of bytes in a system page. (This need not be the same as the hardware page size.) The following :const:`!RUSAGE_\*` symbols are passed to the :func:`getrusage` function to specify which processes information should be provided for.
trusted_official_docs
CPython Docs
Returns the number of bytes in a system page. (This need not be the same as the hardware page size.) The following :const:`!RUSAGE_\*` symbols are passed to the :func:`getrusage` function to specify which processes information should be provided for.
Returns the number of bytes in a system page. (This need not be the same as the hardware page size.) The following :const:`!RUSAGE_\*` symbols are passed to the :func:`getrusage` function to specify which processes information should be provided for.
python, official-docs, cpython, P0
Local_Trusted_Corpus
58dd4673-e5b0-4530-92dc-d14a416262c7
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,077
supabase-export-v2
c62312910ec0d478
.. data:: RLIMIT_SBSIZE The maximum size (in bytes) of socket buffer usage for this user. This limits the amount of network memory, and hence the amount of mbufs, that this user may hold at any time.
trusted_official_docs
CPython Docs
.. data:: RLIMIT_SBSIZE The maximum size (in bytes) of socket buffer usage for this user. This limits the amount of network memory, and hence the amount of mbufs, that this user may hold at any time.
.. data:: RLIMIT_SBSIZE The maximum size (in bytes) of socket buffer usage for this user. This limits the amount of network memory, and hence the amount of mbufs, that this user may hold at any time.
python, official-docs, cpython, P0
Local_Trusted_Corpus
633536c6-2213-4d37-9e6a-1b8f3b946371
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,111
supabase-export-v2
c823376656455fec
system mode, respectively. The remaining values are integers. Consult the :manpage:`getrusage(2)` man page for detailed information about these values. A brief summary is presented here: +--------+----------------------+---------------------------------------+ | Index | Field | Resource | +========+==================...
trusted_official_docs
CPython Docs
system mode, respectively. The remaining values are integers. Consult the :manpage:`getrusage(2)` man page for detailed information about these values. A brief summary is presented here: +--------+----------------------+---------------------------------------+ | Index | Field | Resource | +========+==================...
system mode, respectively. The remaining values are integers. Consult the :manpage:`getrusage(2)` man page for detailed information about these values. A brief summary is presented here: +--------+----------------------+---------------------------------------+ | Index | Field | Resource | +========+==================...
python, official-docs, cpython, P0
Local_Trusted_Corpus
781d543c-4136-4274-9678-f9a86ad2c0bd
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,012
supabase-export-v2
2a181b2bc526e695
to any value greater than the soft limit, but not raised. (Only processes with the effective UID of the super-user can raise a hard limit.) The specific resources that can be limited are system dependent. They are described in the :manpage:`getrlimit(2)` man page. The resources listed below are supported when the under...
trusted_official_docs
CPython Docs
to any value greater than the soft limit, but not raised. (Only processes with the effective UID of the super-user can raise a hard limit.) The specific resources that can be limited are system dependent. They are described in the :manpage:`getrlimit(2)` man page. The resources listed below are supported when the under...
to any value greater than the soft limit, but not raised. (Only processes with the effective UID of the super-user can raise a hard limit.) The specific resources that can be limited are system dependent. They are described in the :manpage:`getrlimit(2)` man page. The resources listed below are supported when the under...
python, official-docs, cpython, P0
Local_Trusted_Corpus
83f97a97-1df2-40bc-8214-30a6ce5166f3
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,108
supabase-export-v2
05db3757e6f1d484
# a CPU-bound task for i in range(10 ** 8): _ = 1 + 1 print(getrusage(RUSAGE_SELF)) The fields of the return value each describe how a particular system resource has been used, e.g. amount of time spent running in user mode or number of times the process was swapped out of main memory. Some values are dependent on th...
trusted_official_docs
CPython Docs
# a CPU-bound task for i in range(10 ** 8): _ = 1 + 1 print(getrusage(RUSAGE_SELF)) The fields of the return value each describe how a particular system resource has been used, e.g. amount of time spent running in user mode or number of times the process was swapped out of main memory. Some values are dependent on th...
# a CPU-bound task for i in range(10 ** 8): _ = 1 + 1 print(getrusage(RUSAGE_SELF)) The fields of the return value each describe how a particular system resource has been used, e.g. amount of time spent running in user mode or number of times the process was swapped out of main memory. Some values are dependent on th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9b66f5e3-9bf9-4ca4-b7f1-77a4bf6187c6
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,081
supabase-export-v2
6145be63705b3e18
This limit is enforced only if bit 1 of the vm.overcommit sysctl is set. Please see `tuning(7) <https://man.freebsd.org/cgi/man.cgi?query=tuning&sektion=7>`__ for a complete description of this sysctl. .. availability:: FreeBSD >= 8.
trusted_official_docs
CPython Docs
This limit is enforced only if bit 1 of the vm.overcommit sysctl is set. Please see `tuning(7) <https://man.freebsd.org/cgi/man.cgi?query=tuning&sektion=7>`__ for a complete description of this sysctl. .. availability:: FreeBSD >= 8.
This limit is enforced only if bit 1 of the vm.overcommit sysctl is set. Please see `tuning(7) <https://man.freebsd.org/cgi/man.cgi?query=tuning&sektion=7>`__ for a complete description of this sysctl. .. availability:: FreeBSD >= 8.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9ed38052-8109-4bc0-95b6-cacfb66471be
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,110
supabase-export-v2
0ab4dd0bf5d6dd5a
For backward compatibility, the return value is also accessible as a tuple of 16 elements. The fields :attr:`!ru_utime` and :attr:`!ru_stime` of the return value are floating-point values representing the amount of time spent executing in user mode and the amount of time spent executing in system mode, respectively. ...
trusted_official_docs
CPython Docs
For backward compatibility, the return value is also accessible as a tuple of 16 elements. The fields :attr:`!ru_utime` and :attr:`!ru_stime` of the return value are floating-point values representing the amount of time spent executing in user mode and the amount of time spent executing in system mode, respectively. ...
For backward compatibility, the return value is also accessible as a tuple of 16 elements. The fields :attr:`!ru_utime` and :attr:`!ru_stime` of the return value are floating-point values representing the amount of time spent executing in user mode and the amount of time spent executing in system mode, respectively. ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9f25615c-e658-4346-a41a-ec2c8cb67c8f
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,035
supabase-export-v2
d0fa943f30e86857
consumption can be controlled using the :func:`setrlimit` and :func:`getrlimit` functions described below. The values of these symbols are exactly the constants used by C programs. The Unix man page for :manpage:`getrlimit(2)` lists the available resources. Note that not all systems use the same symbol or same value to...
trusted_official_docs
CPython Docs
consumption can be controlled using the :func:`setrlimit` and :func:`getrlimit` functions described below. The values of these symbols are exactly the constants used by C programs. The Unix man page for :manpage:`getrlimit(2)` lists the available resources. Note that not all systems use the same symbol or same value to...
consumption can be controlled using the :func:`setrlimit` and :func:`getrlimit` functions described below. The values of these symbols are exactly the constants used by C programs. The Unix man page for :manpage:`getrlimit(2)` lists the available resources. Note that not all systems use the same symbol or same value to...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a3599bb8-53b4-40ba-9e33-d7d0af455e72
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,109
supabase-export-v2
4a6c644a461a4da7
process was swapped out of main memory. Some values are dependent on the clock tick interval, e.g. the amount of memory the process is using. For backward compatibility, the return value is also accessible as a tuple of 16 elements.
trusted_official_docs
CPython Docs
process was swapped out of main memory. Some values are dependent on the clock tick interval, e.g. the amount of memory the process is using. For backward compatibility, the return value is also accessible as a tuple of 16 elements.
process was swapped out of main memory. Some values are dependent on the clock tick interval, e.g. the amount of memory the process is using. For backward compatibility, the return value is also accessible as a tuple of 16 elements.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a4c1258b-127a-4c49-a9c5-76d03a7aa9fb
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,030
supabase-export-v2
86e414ef733772bc
*resource* limit of the process *pid*. When *limits* is given the *resource* limit of the process is set and the former resource limit is returned. Raises :exc:`ProcessLookupError` when *pid* can't be found and :exc:`PermissionError` when the user doesn't have ``CAP_SYS_RESOURCE`` for the process.
trusted_official_docs
CPython Docs
*resource* limit of the process *pid*. When *limits* is given the *resource* limit of the process is set and the former resource limit is returned. Raises :exc:`ProcessLookupError` when *pid* can't be found and :exc:`PermissionError` when the user doesn't have ``CAP_SYS_RESOURCE`` for the process.
*resource* limit of the process *pid*. When *limits* is given the *resource* limit of the process is set and the former resource limit is returned. Raises :exc:`ProcessLookupError` when *pid* can't be found and :exc:`PermissionError` when the user doesn't have ``CAP_SYS_RESOURCE`` for the process.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a6a880f4-1f96-42ff-96e2-ec20a5120ef4
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,017
supabase-export-v2
f5781600a3da3168
.. data:: RLIM_SAVED_CUR .. data:: RLIM_SAVED_MAX Constants used to represent the soft and hard limit values if they cannot be represented in the ``rlim_t`` value in C. Can be equal to :data:`RLIM_INFINITY`.
trusted_official_docs
CPython Docs
.. data:: RLIM_SAVED_CUR .. data:: RLIM_SAVED_MAX Constants used to represent the soft and hard limit values if they cannot be represented in the ``rlim_t`` value in C. Can be equal to :data:`RLIM_INFINITY`.
.. data:: RLIM_SAVED_CUR .. data:: RLIM_SAVED_MAX Constants used to represent the soft and hard limit values if they cannot be represented in the ``rlim_t`` value in C. Can be equal to :data:`RLIM_INFINITY`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
bd99a881-b070-436d-8079-d6ee6e170c12
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,023
supabase-export-v2
28d91c6580d0b8c4
a tuple ``(soft, hard)`` of two integers describing the new limits. A value of :const:`~resource.RLIM_INFINITY` can be used to request a limit that is unlimited. Raises :exc:`ValueError` if an invalid resource is specified, if the new soft limit exceeds the hard limit, or if a process tries to raise its hard limit. Sp...
trusted_official_docs
CPython Docs
a tuple ``(soft, hard)`` of two integers describing the new limits. A value of :const:`~resource.RLIM_INFINITY` can be used to request a limit that is unlimited. Raises :exc:`ValueError` if an invalid resource is specified, if the new soft limit exceeds the hard limit, or if a process tries to raise its hard limit. Sp...
a tuple ``(soft, hard)`` of two integers describing the new limits. A value of :const:`~resource.RLIM_INFINITY` can be used to request a limit that is unlimited. Raises :exc:`ValueError` if an invalid resource is specified, if the new soft limit exceeds the hard limit, or if a process tries to raise its hard limit. Sp...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c3c3856e-cc7f-4be5-8e50-f55210fcfbd7
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,011
supabase-export-v2
f1a02ea7019dcfe9
Resource Limits --------------- Resources usage can be limited using the :func:`setrlimit` function described below. Each resource is controlled by a pair of limits: a soft limit and a hard limit. The soft limit is the current limit, and may be lowered or raised by a process over time. The soft limit can never exceed t...
trusted_official_docs
CPython Docs
Resource Limits --------------- Resources usage can be limited using the :func:`setrlimit` function described below. Each resource is controlled by a pair of limits: a soft limit and a hard limit. The soft limit is the current limit, and may be lowered or raised by a process over time. The soft limit can never exceed t...
Resource Limits --------------- Resources usage can be limited using the :func:`setrlimit` function described below. Each resource is controlled by a pair of limits: a soft limit and a hard limit. The soft limit is the current limit, and may be lowered or raised by a process over time. The soft limit can never exceed t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cb76ab3d-54dc-4a74-bfe6-815bc09cb32c
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,039
supabase-export-v2
06944c21f31f495b
.. data:: RLIMIT_CPU The maximum amount of processor time (in seconds) that a process can use. If this limit is exceeded, a :const:`~signal.SIGXCPU` signal is sent to the process. (See the :mod:`signal` module documentation for information about how to catch this signal and do something useful, e.g. flush open files...
trusted_official_docs
CPython Docs
.. data:: RLIMIT_CPU The maximum amount of processor time (in seconds) that a process can use. If this limit is exceeded, a :const:`~signal.SIGXCPU` signal is sent to the process. (See the :mod:`signal` module documentation for information about how to catch this signal and do something useful, e.g. flush open files...
.. data:: RLIMIT_CPU The maximum amount of processor time (in seconds) that a process can use. If this limit is exceeded, a :const:`~signal.SIGXCPU` signal is sent to the process. (See the :mod:`signal` module documentation for information about how to catch this signal and do something useful, e.g. flush open files...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d9ec00e7-a13e-445e-87cf-4b1ef7131150
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,020
supabase-export-v2
38b57b26a55302bb
.. function:: getrlimit(resource) Returns a tuple ``(soft, hard)`` with the current soft and hard limits of *resource*. Raises :exc:`ValueError` if an invalid resource is specified, or :exc:`error` if the underlying system call fails unexpectedly.
trusted_official_docs
CPython Docs
.. function:: getrlimit(resource) Returns a tuple ``(soft, hard)`` with the current soft and hard limits of *resource*. Raises :exc:`ValueError` if an invalid resource is specified, or :exc:`error` if the underlying system call fails unexpectedly.
.. function:: getrlimit(resource) Returns a tuple ``(soft, hard)`` with the current soft and hard limits of *resource*. Raises :exc:`ValueError` if an invalid resource is specified, or :exc:`error` if the underlying system call fails unexpectedly.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e12a6042-02b8-4a77-af2d-de0309b1b48c
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,103
supabase-export-v2
b19d31b447c570e5
.. function:: getrusage(who) This function returns an object that describes the resources consumed by either the current process or its children, as specified by the *who* parameter. The *who* parameter should be specified using one of the :const:`!RUSAGE_\*` constants described below.
trusted_official_docs
CPython Docs
.. function:: getrusage(who) This function returns an object that describes the resources consumed by either the current process or its children, as specified by the *who* parameter. The *who* parameter should be specified using one of the :const:`!RUSAGE_\*` constants described below.
.. function:: getrusage(who) This function returns an object that describes the resources consumed by either the current process or its children, as specified by the *who* parameter. The *who* parameter should be specified using one of the :const:`!RUSAGE_\*` constants described below.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ebc446cc-086b-4bc1-b2d2-78abf80990f9
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,034
supabase-export-v2
d2bd8db272827ff9
.. versionadded:: 3.4 These symbols define resources whose consumption can be controlled using the :func:`setrlimit` and :func:`getrlimit` functions described below. The values of these symbols are exactly the constants used by C programs.
trusted_official_docs
CPython Docs
.. versionadded:: 3.4 These symbols define resources whose consumption can be controlled using the :func:`setrlimit` and :func:`getrlimit` functions described below. The values of these symbols are exactly the constants used by C programs.
.. versionadded:: 3.4 These symbols define resources whose consumption can be controlled using the :func:`setrlimit` and :func:`getrlimit` functions described below. The values of these symbols are exactly the constants used by C programs.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f2cb6820-2be5-4073-8115-1745fdb76e56
CPython Docs
file://datasets/cpython/Doc/library/resource.rst
unknown
40f18291-a336-4429-992b-9b9e5560d671
6,080
supabase-export-v2
70bf18d17af1dd53
.. data:: RLIMIT_SWAP The maximum size (in bytes) of the swap space that may be reserved or used by all of this user id's processes. This limit is enforced only if bit 1 of the vm.overcommit sysctl is set. Please see `tuning(7) <https://man.freebsd.org/cgi/man.cgi?query=tuning&sektion=7>`__ for a complete descriptio...
trusted_official_docs
CPython Docs
.. data:: RLIMIT_SWAP The maximum size (in bytes) of the swap space that may be reserved or used by all of this user id's processes. This limit is enforced only if bit 1 of the vm.overcommit sysctl is set. Please see `tuning(7) <https://man.freebsd.org/cgi/man.cgi?query=tuning&sektion=7>`__ for a complete descriptio...
.. data:: RLIMIT_SWAP The maximum size (in bytes) of the swap space that may be reserved or used by all of this user id's processes. This limit is enforced only if bit 1 of the vm.overcommit sysctl is set. Please see `tuning(7) <https://man.freebsd.org/cgi/man.cgi?query=tuning&sektion=7>`__ for a complete descriptio...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0015eb6e-0d63-4c14-8926-6a06f50d1069
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
7,000
supabase-export-v2
00a33418395abf9c
you can make it fork-safe by storing the pid whenever you append to the cache, and discarding the cache when the pid changes. For example:: @property def cache(self): pid = os.getpid() if pid != self._pid: self._pid = pid self._cache = [] return self._cache
trusted_official_docs
CPython Docs
you can make it fork-safe by storing the pid whenever you append to the cache, and discarding the cache when the pid changes. For example:: @property def cache(self): pid = os.getpid() if pid != self._pid: self._pid = pid self._cache = [] return self._cache
you can make it fork-safe by storing the pid whenever you append to the cache, and discarding the cache when the pid changes. For example:: @property def cache(self): pid = os.getpid() if pid != self._pid: self._pid = pid self._cache = [] return self._cache
python, official-docs, cpython, P0
Local_Trusted_Corpus
00a75ab8-940a-494d-b82c-6a604c9f22ae
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,165
supabase-export-v2
d0c2db0bdc4185f1
system libraries or preloaded imports spawn threads as a side-effect so it is generally safe for it to use :func:`os.fork`. No unnecessary resources are inherited. Available on POSIX platforms which support passing file descriptors over Unix pipes such as Linux. The default on those.
trusted_official_docs
CPython Docs
system libraries or preloaded imports spawn threads as a side-effect so it is generally safe for it to use :func:`os.fork`. No unnecessary resources are inherited. Available on POSIX platforms which support passing file descriptors over Unix pipes such as Linux. The default on those.
system libraries or preloaded imports spawn threads as a side-effect so it is generally safe for it to use :func:`os.fork`. No unnecessary resources are inherited. Available on POSIX platforms which support passing file descriptors over Unix pipes such as Linux. The default on those.
python, official-docs, cpython, P0
Local_Trusted_Corpus
02a936c9-42d4-4e57-bc56-7c49fb9aaf49
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,838
supabase-export-v2
df87a7e15dc9ddeb
Wait for the worker processes to exit. One must call :meth:`close` or :meth:`terminate` before using :meth:`join`. .. versionchanged:: 3.3 Pool objects now support the context management protocol -- see :ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the pool object, and :meth:`~contextmanager._...
trusted_official_docs
CPython Docs
Wait for the worker processes to exit. One must call :meth:`close` or :meth:`terminate` before using :meth:`join`. .. versionchanged:: 3.3 Pool objects now support the context management protocol -- see :ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the pool object, and :meth:`~contextmanager._...
Wait for the worker processes to exit. One must call :meth:`close` or :meth:`terminate` before using :meth:`join`. .. versionchanged:: 3.3 Pool objects now support the context management protocol -- see :ref:`typecontextmanager`. :meth:`~contextmanager.__enter__` returns the pool object, and :meth:`~contextmanager._...
python, official-docs, cpython, P0
Local_Trusted_Corpus
02cce16d-09fa-45ff-9ed1-5d24d6494e29
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,259
supabase-export-v2
6fc82b39bbdac1a0
Process objects represent activity that is run in a separate process. The :class:`Process` class has equivalents of all the methods of :class:`threading.Thread`. The constructor should always be called with keyword arguments. *group* should always be ``None``; it exists solely for compatibility with :class:`threading...
trusted_official_docs
CPython Docs
Process objects represent activity that is run in a separate process. The :class:`Process` class has equivalents of all the methods of :class:`threading.Thread`. The constructor should always be called with keyword arguments. *group* should always be ``None``; it exists solely for compatibility with :class:`threading...
Process objects represent activity that is run in a separate process. The :class:`Process` class has equivalents of all the methods of :class:`threading.Thread`. The constructor should always be called with keyword arguments. *group* should always be ``None``; it exists solely for compatibility with :class:`threading...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0626819c-d8ba-4be9-a30f-db1cfbd3a4fc
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,312
supabase-export-v2
0d99d971a448fdc7
Note: if the child process catches and discards :exc:`KeyboardInterrupt`, the process will not be terminated. Note: the default behavior will also set :attr:`exitcode` to ``1`` as if an uncaught exception was raised in the child process. To have a different :attr:`exitcode` you may simply catch :exc:`KeyboardInterrup...
trusted_official_docs
CPython Docs
Note: if the child process catches and discards :exc:`KeyboardInterrupt`, the process will not be terminated. Note: the default behavior will also set :attr:`exitcode` to ``1`` as if an uncaught exception was raised in the child process. To have a different :attr:`exitcode` you may simply catch :exc:`KeyboardInterrup...
Note: if the child process catches and discards :exc:`KeyboardInterrupt`, the process will not be terminated. Note: the default behavior will also set :attr:`exitcode` to ``1`` as if an uncaught exception was raised in the child process. To have a different :attr:`exitcode` you may simply catch :exc:`KeyboardInterrup...
python, official-docs, cpython, P0
Local_Trusted_Corpus
06f3fe38-cf4c-4dce-86e2-51b5602357f2
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,654
supabase-export-v2
81501e9e796677b6
incoming connections to the server process. If *authkey* is ``None`` then ``current_process().authkey`` is used. Otherwise *authkey* is used and it must be a byte string. *serializer* must be ``'pickle'`` (use :mod:`pickle` serialization) or ``'xmlrpclib'`` (use :mod:`xmlrpc.client` serialization).
trusted_official_docs
CPython Docs
incoming connections to the server process. If *authkey* is ``None`` then ``current_process().authkey`` is used. Otherwise *authkey* is used and it must be a byte string. *serializer* must be ``'pickle'`` (use :mod:`pickle` serialization) or ``'xmlrpclib'`` (use :mod:`xmlrpc.client` serialization).
incoming connections to the server process. If *authkey* is ``None`` then ``current_process().authkey`` is used. Otherwise *authkey* is used and it must be a byte string. *serializer* must be ``'pickle'`` (use :mod:`pickle` serialization) or ``'xmlrpclib'`` (use :mod:`xmlrpc.client` serialization).
python, official-docs, cpython, P0
Local_Trusted_Corpus
070cda48-2f76-4718-9671-3ccf254275ac
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,876
supabase-export-v2
a42003c1673d7f9c
.. note:: If an address of '0.0.0.0' is used, the address will not be a connectable end point on Windows. If you require a connectable end-point, you should use '127.0.0.1'.
trusted_official_docs
CPython Docs
.. note:: If an address of '0.0.0.0' is used, the address will not be a connectable end point on Windows. If you require a connectable end-point, you should use '127.0.0.1'.
.. note:: If an address of '0.0.0.0' is used, the address will not be a connectable end point on Windows. If you require a connectable end-point, you should use '127.0.0.1'.
python, official-docs, cpython, P0
Local_Trusted_Corpus
08f5deea-d6f5-4d12-a7f4-0eac57a6b295
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,823
supabase-export-v2
c717e3a3249ed576
method. For very long iterables using a large value for *chunksize* can make the job complete **much** faster than using the default value of ``1``. Also if *chunksize* is ``1`` then the :meth:`!next` method of the iterator returned by the :meth:`imap` method has an optional *timeout* parameter: ``next(timeout)`` wil...
trusted_official_docs
CPython Docs
method. For very long iterables using a large value for *chunksize* can make the job complete **much** faster than using the default value of ``1``. Also if *chunksize* is ``1`` then the :meth:`!next` method of the iterator returned by the :meth:`imap` method has an optional *timeout* parameter: ``next(timeout)`` wil...
method. For very long iterables using a large value for *chunksize* can make the job complete **much** faster than using the default value of ``1``. Also if *chunksize* is ``1`` then the :meth:`!next` method of the iterator returned by the :meth:`imap` method has an optional *timeout* parameter: ``next(timeout)`` wil...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0a27e37d-dab7-44bc-aef2-48cbdfd29433
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,636
supabase-export-v2
0636a62cce6b90db
def modify(n, x, s, A): n.value **= 2 x.value **= 2 s.value = s.value.upper() for a in A: a.x **= 2 a.y **= 2 if __name__ == '__main__': lock = Lock()
trusted_official_docs
CPython Docs
def modify(n, x, s, A): n.value **= 2 x.value **= 2 s.value = s.value.upper() for a in A: a.x **= 2 a.y **= 2 if __name__ == '__main__': lock = Lock()
def modify(n, x, s, A): n.value **= 2 x.value **= 2 s.value = s.value.upper() for a in A: a.x **= 2 a.y **= 2 if __name__ == '__main__': lock = Lock()
python, official-docs, cpython, P0
Local_Trusted_Corpus
0a581f55-8a37-4494-b9f2-677c31b308ad
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,776
supabase-export-v2
30b77fb917a94bd6
.. doctest:: >>> l = manager.list(range(10)) >>> l._callmethod('__len__') 10 >>> l._callmethod('__getitem__', (slice(2, 7),)) # equivalent to l[2:7] [2, 3, 4, 5, 6] >>> l._callmethod('__getitem__', (20,)) # equivalent to l[20] Traceback (most recent call last): ... IndexError: list index out of range
trusted_official_docs
CPython Docs
.. doctest:: >>> l = manager.list(range(10)) >>> l._callmethod('__len__') 10 >>> l._callmethod('__getitem__', (slice(2, 7),)) # equivalent to l[2:7] [2, 3, 4, 5, 6] >>> l._callmethod('__getitem__', (20,)) # equivalent to l[20] Traceback (most recent call last): ... IndexError: list index out of range
.. doctest:: >>> l = manager.list(range(10)) >>> l._callmethod('__len__') 10 >>> l._callmethod('__getitem__', (slice(2, 7),)) # equivalent to l[2:7] [2, 3, 4, 5, 6] >>> l._callmethod('__getitem__', (20,)) # equivalent to l[20] Traceback (most recent call last): ... IndexError: list index out of range
python, official-docs, cpython, P0
Local_Trusted_Corpus
0a96a7a9-31ec-45a1-b92a-21b8490f5f40
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,735
supabase-export-v2
5ad2a1a4e3de6c99
Running the following commands creates a server for a single shared queue which remote clients can access:: >>> from multiprocessing.managers import BaseManager >>> from queue import Queue >>> queue = Queue() >>> class QueueManager(BaseManager): pass >>> QueueManager.register('get_queue', callable=lambda:queue) >>...
trusted_official_docs
CPython Docs
Running the following commands creates a server for a single shared queue which remote clients can access:: >>> from multiprocessing.managers import BaseManager >>> from queue import Queue >>> queue = Queue() >>> class QueueManager(BaseManager): pass >>> QueueManager.register('get_queue', callable=lambda:queue) >>...
Running the following commands creates a server for a single shared queue which remote clients can access:: >>> from multiprocessing.managers import BaseManager >>> from queue import Queue >>> queue = Queue() >>> class QueueManager(BaseManager): pass >>> QueueManager.register('get_queue', callable=lambda:queue) >>...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0abe54cf-2543-4bf6-a5f5-7d507f587405
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,911
supabase-export-v2
5512516d461f1b3e
arr = array('i', [0, 0, 0, 0, 0]) print(conn.recv_bytes_into(arr)) # => 8 print(arr) # => array('i', [42, 1729, 0, 0, 0]) The following code uses :func:`~multiprocessing.connection.wait` to wait for messages from multiple processes at once::
trusted_official_docs
CPython Docs
arr = array('i', [0, 0, 0, 0, 0]) print(conn.recv_bytes_into(arr)) # => 8 print(arr) # => array('i', [42, 1729, 0, 0, 0]) The following code uses :func:`~multiprocessing.connection.wait` to wait for messages from multiple processes at once::
arr = array('i', [0, 0, 0, 0, 0]) print(conn.recv_bytes_into(arr)) # => 8 print(arr) # => array('i', [42, 1729, 0, 0, 0]) The following code uses :func:`~multiprocessing.connection.wait` to wait for messages from multiple processes at once::
python, official-docs, cpython, P0
Local_Trusted_Corpus
0ad50087-c72d-4c0f-b713-13b67ec9fab1
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,387
supabase-export-v2
27a787fd4014831d
A queue must not be used anymore after it is closed. For example, :meth:`~Queue.get`, :meth:`~Queue.put` and :meth:`~Queue.empty` methods must no longer be called. The background thread will quit once it has flushed all buffered data to the pipe. This is called automatically when the queue is garbage collected.
trusted_official_docs
CPython Docs
A queue must not be used anymore after it is closed. For example, :meth:`~Queue.get`, :meth:`~Queue.put` and :meth:`~Queue.empty` methods must no longer be called. The background thread will quit once it has flushed all buffered data to the pipe. This is called automatically when the queue is garbage collected.
A queue must not be used anymore after it is closed. For example, :meth:`~Queue.get`, :meth:`~Queue.put` and :meth:`~Queue.empty` methods must no longer be called. The background thread will quit once it has flushed all buffered data to the pipe. This is called automatically when the queue is garbage collected.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0b05927a-40ce-4179-912f-b16867b0bbbc
CPython Docs
file://datasets/cpython/Doc/library/multiprocessing.rst
unknown
dabaa007-4d48-4185-8c2f-de72cec02891
6,686
supabase-export-v2
f90fb00739d91682
methods create and return :ref:`multiprocessing-proxy_objects` for a number of commonly used data types to be synchronized across processes. This notably includes shared lists and dictionaries. .. method:: Barrier(parties[, action[, timeout]])
trusted_official_docs
CPython Docs
methods create and return :ref:`multiprocessing-proxy_objects` for a number of commonly used data types to be synchronized across processes. This notably includes shared lists and dictionaries. .. method:: Barrier(parties[, action[, timeout]])
methods create and return :ref:`multiprocessing-proxy_objects` for a number of commonly used data types to be synchronized across processes. This notably includes shared lists and dictionaries. .. method:: Barrier(parties[, action[, timeout]])
python, official-docs, cpython, P0
Local_Trusted_Corpus