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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2a4cd914-9e0f-4bc0-9125-823cdd34ee25 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,924 | supabase-export-v2 | 74082e07bf6bd275 | .. versionchanged:: next Added *extra_response_headers* parameter.
A lot of the work, such as parsing the request, is done by the base class
:class:`BaseHTTPRequestHandler`. This class implements the :func:`do_GET`
and :func:`do_HEAD` functions. | trusted_official_docs | CPython Docs | .. versionchanged:: next Added *extra_response_headers* parameter.
A lot of the work, such as parsing the request, is done by the base class
:class:`BaseHTTPRequestHandler`. This class implements the :func:`do_GET`
and :func:`do_HEAD` functions. | .. versionchanged:: next Added *extra_response_headers* parameter.
A lot of the work, such as parsing the request, is done by the base class
:class:`BaseHTTPRequestHandler`. This class implements the :func:`do_GET`
and :func:`do_HEAD` functions. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2d2e888f-a3ef-4f5d-bf5d-28e35e42e64b | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,816 | supabase-export-v2 | 0ba736670cc3045c | .. include:: ../includes/wasm-notavail.rst
One class, :class:`HTTPServer`, is a :class:`socketserver.TCPServer` subclass. It creates and listens at the HTTP socket, dispatching the requests to a
handler. Code to create and run the server looks like this:: | trusted_official_docs | CPython Docs | .. include:: ../includes/wasm-notavail.rst
One class, :class:`HTTPServer`, is a :class:`socketserver.TCPServer` subclass. It creates and listens at the HTTP socket, dispatching the requests to a
handler. Code to create and run the server looks like this:: | .. include:: ../includes/wasm-notavail.rst
One class, :class:`HTTPServer`, is a :class:`socketserver.TCPServer` subclass. It creates and listens at the HTTP socket, dispatching the requests to a
handler. Code to create and run the server looks like this:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2d6ceed7-d1ce-49ce-9484-3c03a3a0aa6d | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,895 | supabase-export-v2 | c78fd57c723f5ad1 | .. method:: send_response_only(code, message=None)
Sends the response header only, used for the purposes when ``100
Continue`` response is sent by the server to the client. The headers not
buffered and sent directly the output stream.If the *message* is not
specified, the HTTP message corresponding the response *cod... | trusted_official_docs | CPython Docs | .. method:: send_response_only(code, message=None)
Sends the response header only, used for the purposes when ``100
Continue`` response is sent by the server to the client. The headers not
buffered and sent directly the output stream.If the *message* is not
specified, the HTTP message corresponding the response *cod... | .. method:: send_response_only(code, message=None)
Sends the response header only, used for the purposes when ``100
Continue`` response is sent by the server to the client. The headers not
buffered and sent directly the output stream.If the *message* is not
specified, the HTTP message corresponding the response *cod... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2f4369b7-1442-4eae-9253-6de97c84db70 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,855 | supabase-export-v2 | 8951fccb4004d378 | .. attribute:: headers
Holds an instance of the class specified by the :attr:`MessageClass` class
variable. This instance parses and manages the headers in the HTTP
request. The :func:`~http.client.parse_headers` function from
:mod:`http.client` is used to parse the headers and it requires that the
HTTP request pro... | trusted_official_docs | CPython Docs | .. attribute:: headers
Holds an instance of the class specified by the :attr:`MessageClass` class
variable. This instance parses and manages the headers in the HTTP
request. The :func:`~http.client.parse_headers` function from
:mod:`http.client` is used to parse the headers and it requires that the
HTTP request pro... | .. attribute:: headers
Holds an instance of the class specified by the :attr:`MessageClass` class
variable. This instance parses and manages the headers in the HTTP
request. The :func:`~http.client.parse_headers` function from
:mod:`http.client` is used to parse the headers and it requires that the
HTTP request pro... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
36e0b870-f38c-4eaa-a440-2feb58b6a906 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,949 | supabase-export-v2 | ae057fb2df2eda53 | .. versionchanged:: 3.7 Support of the ``'If-Modified-Since'`` header.
The :class:`SimpleHTTPRequestHandler` class can be used in the following
manner in order to create a very basic webserver serving files relative to
the current directory:: | trusted_official_docs | CPython Docs | .. versionchanged:: 3.7 Support of the ``'If-Modified-Since'`` header.
The :class:`SimpleHTTPRequestHandler` class can be used in the following
manner in order to create a very basic webserver serving files relative to
the current directory:: | .. versionchanged:: 3.7 Support of the ``'If-Modified-Since'`` header.
The :class:`SimpleHTTPRequestHandler` class can be used in the following
manner in order to create a very basic webserver serving files relative to
the current directory:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
37627737-d09a-4fa8-a464-daa9c366ee41 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,971 | supabase-export-v2 | af561b4748b8931c | .. option:: -d, --directory <dir>
Specifies a directory to which it should serve the files. By default,
the server uses the current directory. For example, the following command
uses a specific directory: | trusted_official_docs | CPython Docs | .. option:: -d, --directory <dir>
Specifies a directory to which it should serve the files. By default,
the server uses the current directory. For example, the following command
uses a specific directory: | .. option:: -d, --directory <dir>
Specifies a directory to which it should serve the files. By default,
the server uses the current directory. For example, the following command
uses a specific directory: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
37826363-2ee9-4038-9f83-d74f9eaf1013 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,906 | supabase-export-v2 | a8ae3e480de67ce8 | .. method:: log_error(...)
Logs an error when a request cannot be fulfilled. By default, it passes
the message to :meth:`log_message`, so it takes the same arguments
(*format* and additional values). | trusted_official_docs | CPython Docs | .. method:: log_error(...)
Logs an error when a request cannot be fulfilled. By default, it passes
the message to :meth:`log_message`, so it takes the same arguments
(*format* and additional values). | .. method:: log_error(...)
Logs an error when a request cannot be fulfilled. By default, it passes
the message to :meth:`log_message`, so it takes the same arguments
(*format* and additional values). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3988c9af-9191-456b-bef6-72f4c7e90e23 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,896 | supabase-export-v2 | e4fa2a8073c45dc1 | client. The headers not buffered and sent directly the output stream.If the *message* is not specified, the HTTP message corresponding the response *code* is sent.
This method does not reject *message* containing CRLF sequences. | trusted_official_docs | CPython Docs | client. The headers not buffered and sent directly the output stream.If the *message* is not specified, the HTTP message corresponding the response *code* is sent.
This method does not reject *message* containing CRLF sequences. | client. The headers not buffered and sent directly the output stream.If the *message* is not specified, the HTTP message corresponding the response *code* is sent.
This method does not reject *message* containing CRLF sequences. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3e6420b3-1bda-4b27-a538-92a08098de9d | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,904 | supabase-export-v2 | e10279d24cacef06 | .. method:: log_request(code='-', size='-')
Logs an accepted (successful) request. *code* should specify the numeric
HTTP code associated with the response. If a size of the response is
available, then it should be passed as the *size* parameter. | trusted_official_docs | CPython Docs | .. method:: log_request(code='-', size='-')
Logs an accepted (successful) request. *code* should specify the numeric
HTTP code associated with the response. If a size of the response is
available, then it should be passed as the *size* parameter. | .. method:: log_request(code='-', size='-')
Logs an accepted (successful) request. *code* should specify the numeric
HTTP code associated with the response. If a size of the response is
available, then it should be passed as the *size* parameter. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3f10ada5-94a0-4212-ab1d-d48470dac129 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,939 | supabase-export-v2 | fe59d3a5bd3dc095 | .. method:: do_HEAD()
This method serves the ``'HEAD'`` request type: it sends the headers it
would send for the equivalent ``GET`` request. See the :meth:`do_GET`
method for a more complete explanation of the possible headers. | trusted_official_docs | CPython Docs | .. method:: do_HEAD()
This method serves the ``'HEAD'`` request type: it sends the headers it
would send for the equivalent ``GET`` request. See the :meth:`do_GET`
method for a more complete explanation of the possible headers. | .. method:: do_HEAD()
This method serves the ``'HEAD'`` request type: it sends the headers it
would send for the equivalent ``GET`` request. See the :meth:`do_GET`
method for a more complete explanation of the possible headers. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
46599da0-4e48-4df9-8ef2-5b3050d32b2d | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,965 | supabase-export-v2 | ed06cc992dd8bf48 | .. option:: -b, --bind <address>
Specifies a specific address to which it should bind. Both IPv4 and IPv6
addresses are supported. By default, the server binds itself to all
interfaces. For example, the following command causes the server to bind
to localhost only: | trusted_official_docs | CPython Docs | .. option:: -b, --bind <address>
Specifies a specific address to which it should bind. Both IPv4 and IPv6
addresses are supported. By default, the server binds itself to all
interfaces. For example, the following command causes the server to bind
to localhost only: | .. option:: -b, --bind <address>
Specifies a specific address to which it should bind. Both IPv4 and IPv6
addresses are supported. By default, the server binds itself to all
interfaces. For example, the following command causes the server to bind
to localhost only: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4e1f7d96-ef50-4ef7-89fc-3d738d545120 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,819 | supabase-export-v2 | 365992c678cc1b71 | .. class:: HTTPServer(server_address, RequestHandlerClass)
This class builds on the :class:`~socketserver.TCPServer` class by storing
the server address as instance variables named :attr:`server_name` and
:attr:`server_port`. The server is accessible by the handler, typically
through the handler's :attr:`server` ins... | trusted_official_docs | CPython Docs | .. class:: HTTPServer(server_address, RequestHandlerClass)
This class builds on the :class:`~socketserver.TCPServer` class by storing
the server address as instance variables named :attr:`server_name` and
:attr:`server_port`. The server is accessible by the handler, typically
through the handler's :attr:`server` ins... | .. class:: HTTPServer(server_address, RequestHandlerClass)
This class builds on the :class:`~socketserver.TCPServer` class by storing
the server address as instance variables named :attr:`server_name` and
:attr:`server_port`. The server is accessible by the handler, typically
through the handler's :attr:`server` ins... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
54a4f618-684f-4df7-a01c-98dd68332f28 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,976 | supabase-export-v2 | e79ac6788e656ecd | .. option:: -p, --protocol <version>
Specifies the HTTP version to which the server is conformant. By default,
the server is conformant to HTTP/1.0. For example, the following command
runs an HTTP/1.1 conformant server: | trusted_official_docs | CPython Docs | .. option:: -p, --protocol <version>
Specifies the HTTP version to which the server is conformant. By default,
the server is conformant to HTTP/1.0. For example, the following command
runs an HTTP/1.1 conformant server: | .. option:: -p, --protocol <version>
Specifies the HTTP version to which the server is conformant. By default,
the server is conformant to HTTP/1.0. For example, the following command
runs an HTTP/1.1 conformant server: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
596211ce-aff2-433b-9154-54d6c753765b | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,860 | supabase-export-v2 | 7a0112682b7b8426 | the client. Proper adherence to the HTTP protocol must be used when writing to this stream in order to achieve successful interoperation with HTTP clients.
.. versionchanged:: 3.6
This is an :class:`io.BufferedIOBase` stream. | trusted_official_docs | CPython Docs | the client. Proper adherence to the HTTP protocol must be used when writing to this stream in order to achieve successful interoperation with HTTP clients.
.. versionchanged:: 3.6
This is an :class:`io.BufferedIOBase` stream. | the client. Proper adherence to the HTTP protocol must be used when writing to this stream in order to achieve successful interoperation with HTTP clients.
.. versionchanged:: 3.6
This is an :class:`io.BufferedIOBase` stream. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5cef3e1b-91db-463c-9afc-4936842ac4e2 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,824 | supabase-export-v2 | d606c6aa6617e87b | .. class:: HTTPSServer(server_address, RequestHandlerClass,\ bind_and_activate=True, *, certfile, keyfile=None,\ password=None, alpn_protocols=None)
Subclass of :class:`HTTPServer` with a wrapped socket using the :mod:`ssl` module. If the :mod:`ssl` module is not available, instantiating a :class:`!HTTPSServer`
object... | trusted_official_docs | CPython Docs | .. class:: HTTPSServer(server_address, RequestHandlerClass,\ bind_and_activate=True, *, certfile, keyfile=None,\ password=None, alpn_protocols=None)
Subclass of :class:`HTTPServer` with a wrapped socket using the :mod:`ssl` module. If the :mod:`ssl` module is not available, instantiating a :class:`!HTTPSServer`
object... | .. class:: HTTPSServer(server_address, RequestHandlerClass,\ bind_and_activate=True, *, certfile, keyfile=None,\ password=None, alpn_protocols=None)
Subclass of :class:`HTTPServer` with a wrapped socket using the :mod:`ssl` module. If the :mod:`ssl` module is not available, instantiating a :class:`!HTTPSServer`
object... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5d49119a-9af3-4505-9fdd-5bedbd47c083 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,935 | supabase-export-v2 | 0fbd960f2b0e5393 | .. attribute:: extra_response_headers
A sequence of ``(name, value)`` pairs containing user-defined extra HTTP
response headers to add to each successful HTTP status 200 response. These
headers are not included in other status code responses. | trusted_official_docs | CPython Docs | .. attribute:: extra_response_headers
A sequence of ``(name, value)`` pairs containing user-defined extra HTTP
response headers to add to each successful HTTP status 200 response. These
headers are not included in other status code responses. | .. attribute:: extra_response_headers
A sequence of ``(name, value)`` pairs containing user-defined extra HTTP
response headers to add to each successful HTTP status 200 response. These
headers are not included in other status code responses. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5d8f3389-5148-410f-a575-b5125615297f | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,847 | supabase-export-v2 | 328da3ef7f14b426 | .. attribute:: requestline
Contains the string representation of the HTTP request line. The
terminating CRLF is stripped. This attribute should be set by
:meth:`handle_one_request`. If no valid request line was processed, it
should be set to the empty string. | trusted_official_docs | CPython Docs | .. attribute:: requestline
Contains the string representation of the HTTP request line. The
terminating CRLF is stripped. This attribute should be set by
:meth:`handle_one_request`. If no valid request line was processed, it
should be set to the empty string. | .. attribute:: requestline
Contains the string representation of the HTTP request line. The
terminating CRLF is stripped. This attribute should be set by
:meth:`handle_one_request`. If no valid request line was processed, it
should be set to the empty string. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5d948079-a8f4-497c-b020-30c7dc288fcc | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,925 | supabase-export-v2 | 5e9799b580846129 | A lot of the work, such as parsing the request, is done by the base class :class:`BaseHTTPRequestHandler`. This class implements the :func:`do_GET` and :func:`do_HEAD` functions.
The following are defined as class-level attributes of
:class:`SimpleHTTPRequestHandler`: | trusted_official_docs | CPython Docs | A lot of the work, such as parsing the request, is done by the base class :class:`BaseHTTPRequestHandler`. This class implements the :func:`do_GET` and :func:`do_HEAD` functions.
The following are defined as class-level attributes of
:class:`SimpleHTTPRequestHandler`: | A lot of the work, such as parsing the request, is done by the base class :class:`BaseHTTPRequestHandler`. This class implements the :func:`do_GET` and :func:`do_HEAD` functions.
The following are defined as class-level attributes of
:class:`SimpleHTTPRequestHandler`: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5e17a38f-4c81-4a63-805d-5a8bf78317ee | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 39,005 | supabase-export-v2 | bac70192998f1a14 | input and do not perform input validation such as checking for the presence of CRLF sequences. Untrusted input may result in HTTP Header injection attacks.
Earlier versions of Python did not scrub control characters from the
log messages emitted to stderr from ``python -m http.server`` or the
default :class:`BaseHTTPRe... | trusted_official_docs | CPython Docs | input and do not perform input validation such as checking for the presence of CRLF sequences. Untrusted input may result in HTTP Header injection attacks.
Earlier versions of Python did not scrub control characters from the
log messages emitted to stderr from ``python -m http.server`` or the
default :class:`BaseHTTPRe... | input and do not perform input validation such as checking for the presence of CRLF sequences. Untrusted input may result in HTTP Header injection attacks.
Earlier versions of Python did not scrub control characters from the
log messages emitted to stderr from ``python -m http.server`` or the
default :class:`BaseHTTPRe... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
672727f8-a7cb-4879-9496-f236bf9613f4 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,863 | supabase-export-v2 | 90e81066f3ad9525 | .. attribute:: server_version
Specifies the server software version. You may want to override this. The
format is multiple whitespace-separated strings, where each string is of
the form name[/version]. For example, ``'BaseHTTP/0.2'``. | trusted_official_docs | CPython Docs | .. attribute:: server_version
Specifies the server software version. You may want to override this. The
format is multiple whitespace-separated strings, where each string is of
the form name[/version]. For example, ``'BaseHTTP/0.2'``. | .. attribute:: server_version
Specifies the server software version. You may want to override this. The
format is multiple whitespace-separated strings, where each string is of
the form name[/version]. For example, ``'BaseHTTP/0.2'``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
70704057-c65c-417b-a787-2646bedd6d9e | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,999 | supabase-export-v2 | 630536beedc8d1e9 | .. option:: -H, --header <header> <value>
Specify an additional extra HTTP Response Header to send on successful HTTP
200 responses. Can be used multiple times to send additional custom response
headers. Headers that are sent automatically by the server (for instance
Content-Type) will not be overwritten by the serv... | trusted_official_docs | CPython Docs | .. option:: -H, --header <header> <value>
Specify an additional extra HTTP Response Header to send on successful HTTP
200 responses. Can be used multiple times to send additional custom response
headers. Headers that are sent automatically by the server (for instance
Content-Type) will not be overwritten by the serv... | .. option:: -H, --header <header> <value>
Specify an additional extra HTTP Response Header to send on successful HTTP
200 responses. Can be used multiple times to send additional custom response
headers. Headers that are sent automatically by the server (for instance
Content-Type) will not be overwritten by the serv... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7439c7db-a0c8-4e49-8318-6f05d2f1bd89 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,933 | supabase-export-v2 | e93c35b7c1f5ce92 | mapping suffixes into MIME types, contains custom overrides for the default system mappings. The mapping is used case-insensitively, and so should contain only lower-cased keys.
.. versionchanged:: 3.9
This dictionary is no longer filled with the default system mappings,
but only contains overrides. | trusted_official_docs | CPython Docs | mapping suffixes into MIME types, contains custom overrides for the default system mappings. The mapping is used case-insensitively, and so should contain only lower-cased keys.
.. versionchanged:: 3.9
This dictionary is no longer filled with the default system mappings,
but only contains overrides. | mapping suffixes into MIME types, contains custom overrides for the default system mappings. The mapping is used case-insensitively, and so should contain only lower-cased keys.
.. versionchanged:: 3.9
This dictionary is no longer filled with the default system mappings,
but only contains overrides. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
746c8e20-690f-4523-a11a-ffd4fb0027d5 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,830 | supabase-export-v2 | c420217c373966ea | "Application-Layer Protocol Negotiation" (ALPN) protocols supported by the server. ALPN allows the server and the client to negotiate the application protocol during the TLS handshake.
By default, it is set to ``["http/1.1"]``, meaning the server supports HTTP/1.1. | trusted_official_docs | CPython Docs | "Application-Layer Protocol Negotiation" (ALPN) protocols supported by the server. ALPN allows the server and the client to negotiate the application protocol during the TLS handshake.
By default, it is set to ``["http/1.1"]``, meaning the server supports HTTP/1.1. | "Application-Layer Protocol Negotiation" (ALPN) protocols supported by the server. ALPN allows the server and the client to negotiate the application protocol during the TLS handshake.
By default, it is set to ``["http/1.1"]``, meaning the server supports HTTP/1.1. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7842c565-3f21-4d2b-bb71-e77b5c051d14 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 39,004 | supabase-export-v2 | e153e23391ca40ed | :class:`SimpleHTTPRequestHandler` will follow symbolic links when handling requests, this makes it possible for files outside of the specified directory to be served.
Methods :meth:`BaseHTTPRequestHandler.send_header` and
:meth:`BaseHTTPRequestHandler.send_response_only` assume sanitized input
and do not perform input ... | trusted_official_docs | CPython Docs | :class:`SimpleHTTPRequestHandler` will follow symbolic links when handling requests, this makes it possible for files outside of the specified directory to be served.
Methods :meth:`BaseHTTPRequestHandler.send_header` and
:meth:`BaseHTTPRequestHandler.send_response_only` assume sanitized input
and do not perform input ... | :class:`SimpleHTTPRequestHandler` will follow symbolic links when handling requests, this makes it possible for files outside of the specified directory to be served.
Methods :meth:`BaseHTTPRequestHandler.send_header` and
:meth:`BaseHTTPRequestHandler.send_response_only` assume sanitized input
and do not perform input ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7c45c8d1-9cca-4255-9dcf-fc8992133719 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,899 | supabase-export-v2 | 32144cddc41dcbeb | Adds a blank line (indicating the end of the HTTP headers in the response) to the headers buffer and calls :meth:`flush_headers`.
.. versionchanged:: 3.2
The buffered headers are written to the output stream. | trusted_official_docs | CPython Docs | Adds a blank line (indicating the end of the HTTP headers in the response) to the headers buffer and calls :meth:`flush_headers`.
.. versionchanged:: 3.2
The buffered headers are written to the output stream. | Adds a blank line (indicating the end of the HTTP headers in the response) to the headers buffer and calls :meth:`flush_headers`.
.. versionchanged:: 3.2
The buffered headers are written to the output stream. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8214a276-e3f5-4614-9f5b-7c2f11af0c0b | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,886 | supabase-export-v2 | 28a7289c245c471a | empty if the method is HEAD or the response code is one of the following: :samp:`1{xx}`, ``204 No Content``, ``205 Reset Content``, ``304 Not Modified``.
.. versionchanged:: 3.4
The error response includes a Content-Length header. Added the *explain* argument. | trusted_official_docs | CPython Docs | empty if the method is HEAD or the response code is one of the following: :samp:`1{xx}`, ``204 No Content``, ``205 Reset Content``, ``304 Not Modified``.
.. versionchanged:: 3.4
The error response includes a Content-Length header. Added the *explain* argument. | empty if the method is HEAD or the response code is one of the following: :samp:`1{xx}`, ``204 No Content``, ``205 Reset Content``, ``304 Not Modified``.
.. versionchanged:: 3.4
The error response includes a Content-Length header. Added the *explain* argument. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
867262c7-dfbe-4e5f-9c86-9836628092a2 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,859 | supabase-export-v2 | a1bd1da0ff422bff | .. attribute:: wfile
Contains the output stream for writing a response back to the
client. Proper adherence to the HTTP protocol must be used when writing to
this stream in order to achieve successful interoperation with HTTP
clients. | trusted_official_docs | CPython Docs | .. attribute:: wfile
Contains the output stream for writing a response back to the
client. Proper adherence to the HTTP protocol must be used when writing to
this stream in order to achieve successful interoperation with HTTP
clients. | .. attribute:: wfile
Contains the output stream for writing a response back to the
client. Proper adherence to the HTTP protocol must be used when writing to
this stream in order to achieve successful interoperation with HTTP
clients. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
94c055f7-65a9-4fea-96cd-a079eaf1efce | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,826 | supabase-export-v2 | b0d414c9bd8fdeb2 | The *certfile* argument is the path to the SSL certificate chain file, and the *keyfile* is the path to file containing the private key.
A *password* can be specified for files protected and wrapped with PKCS#8,
but beware that this could possibly expose hardcoded passwords in clear. | trusted_official_docs | CPython Docs | The *certfile* argument is the path to the SSL certificate chain file, and the *keyfile* is the path to file containing the private key.
A *password* can be specified for files protected and wrapped with PKCS#8,
but beware that this could possibly expose hardcoded passwords in clear. | The *certfile* argument is the path to the SSL certificate chain file, and the *keyfile* is the path to file containing the private key.
A *password* can be specified for files protected and wrapped with PKCS#8,
but beware that this could possibly expose hardcoded passwords in clear. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9b6849a8-8071-44b1-b037-a121a06b40b7 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,825 | supabase-export-v2 | 3e15e6611a42b11e | of :class:`HTTPServer` with a wrapped socket using the :mod:`ssl` module. If the :mod:`ssl` module is not available, instantiating a :class:`!HTTPSServer` object fails with a :exc:`RuntimeError`.
The *certfile* argument is the path to the SSL certificate chain file,
and the *keyfile* is the path to file containing the... | trusted_official_docs | CPython Docs | of :class:`HTTPServer` with a wrapped socket using the :mod:`ssl` module. If the :mod:`ssl` module is not available, instantiating a :class:`!HTTPSServer` object fails with a :exc:`RuntimeError`.
The *certfile* argument is the path to the SSL certificate chain file,
and the *keyfile* is the path to file containing the... | of :class:`HTTPServer` with a wrapped socket using the :mod:`ssl` module. If the :mod:`ssl` module is not available, instantiating a :class:`!HTTPSServer` object fails with a :exc:`RuntimeError`.
The *certfile* argument is the path to the SSL certificate chain file,
and the *keyfile* is the path to file containing the... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9dba6585-3f32-4d0e-9f83-8d5a38cc5a29 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,851 | supabase-export-v2 | 0c9433b76ccca840 | .. attribute:: path
Contains the request path. If query component of the URL is present,
then ``path`` includes the query. Using the terminology of :rfc:`3986`,
``path`` here includes ``hier-part`` and the ``query``. | trusted_official_docs | CPython Docs | .. attribute:: path
Contains the request path. If query component of the URL is present,
then ``path`` includes the query. Using the terminology of :rfc:`3986`,
``path`` here includes ``hier-part`` and the ``query``. | .. attribute:: path
Contains the request path. If query component of the URL is present,
then ``path`` includes the query. Using the terminology of :rfc:`3986`,
``path`` here includes ``hier-part`` and the ``query``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a2290050-a08e-4ec4-bb7f-0d803263790d | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,876 | supabase-export-v2 | 6bb641d243fbf766 | is usually used as the *message* key in an error response, and *longmessage* as the *explain* key. It is used by :meth:`send_response_only` and :meth:`send_error` methods.
A :class:`BaseHTTPRequestHandler` instance has the following methods: | trusted_official_docs | CPython Docs | is usually used as the *message* key in an error response, and *longmessage* as the *explain* key. It is used by :meth:`send_response_only` and :meth:`send_error` methods.
A :class:`BaseHTTPRequestHandler` instance has the following methods: | is usually used as the *message* key in an error response, and *longmessage* as the *explain* key. It is used by :meth:`send_response_only` and :meth:`send_error` methods.
A :class:`BaseHTTPRequestHandler` instance has the following methods: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a2ae077d-b792-4d45-ae0a-c959b18178e5 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,921 | supabase-export-v2 | ef88c715de2e0c55 | serves files from the directory *directory* and below, or the current directory if *directory* is not provided, directly mapping the directory structure to HTTP requests.
.. versionchanged:: 3.7
Added the *directory* parameter. | trusted_official_docs | CPython Docs | serves files from the directory *directory* and below, or the current directory if *directory* is not provided, directly mapping the directory structure to HTTP requests.
.. versionchanged:: 3.7
Added the *directory* parameter. | serves files from the directory *directory* and below, or the current directory if *directory* is not provided, directly mapping the directory structure to HTTP requests.
.. versionchanged:: 3.7
Added the *directory* parameter. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a33c72a6-4802-4630-834f-39bdb62e8058 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,891 | supabase-export-v2 | f748d44f9bec28a9 | .. method:: send_header(keyword, value)
Adds the HTTP header to an internal buffer which will be written to the
output stream when either :meth:`end_headers` or :meth:`flush_headers` is
invoked. *keyword* should specify the header keyword, with *value*
specifying its value. Note that, after the send_header calls are... | trusted_official_docs | CPython Docs | .. method:: send_header(keyword, value)
Adds the HTTP header to an internal buffer which will be written to the
output stream when either :meth:`end_headers` or :meth:`flush_headers` is
invoked. *keyword* should specify the header keyword, with *value*
specifying its value. Note that, after the send_header calls are... | .. method:: send_header(keyword, value)
Adds the HTTP header to an internal buffer which will be written to the
output stream when either :meth:`end_headers` or :meth:`flush_headers` is
invoked. *keyword* should specify the header keyword, with *value*
specifying its value. Note that, after the send_header calls are... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a3614302-d7f7-43de-a0cc-3de2fcd1fdc1 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,912 | supabase-export-v2 | 6881dbc2ad274da4 | .. method:: date_time_string(timestamp=None)
Returns the date and time given by *timestamp* (which must be ``None`` or in
the format returned by :func:`time.time`), formatted for a message
header. If *timestamp* is omitted, it uses the current date and time. | trusted_official_docs | CPython Docs | .. method:: date_time_string(timestamp=None)
Returns the date and time given by *timestamp* (which must be ``None`` or in
the format returned by :func:`time.time`), formatted for a message
header. If *timestamp* is omitted, it uses the current date and time. | .. method:: date_time_string(timestamp=None)
Returns the date and time given by *timestamp* (which must be ``None`` or in
the format returned by :func:`time.time`), formatted for a message
header. If *timestamp* is omitted, it uses the current date and time. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a3d7be9f-ad64-4222-96f0-4254f2b89f8b | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,888 | supabase-export-v2 | 5ea3b7ff67b8ba2b | .. method:: send_response(code, message=None)
Adds a response header to the headers buffer and logs the accepted
request. The HTTP response line is written to the internal buffer,
followed by *Server* and *Date* headers. The values for these two headers
are picked up from the :meth:`version_string` and
:meth:`date_... | trusted_official_docs | CPython Docs | .. method:: send_response(code, message=None)
Adds a response header to the headers buffer and logs the accepted
request. The HTTP response line is written to the internal buffer,
followed by *Server* and *Date* headers. The values for these two headers
are picked up from the :meth:`version_string` and
:meth:`date_... | .. method:: send_response(code, message=None)
Adds a response header to the headers buffer and logs the accepted
request. The HTTP response line is written to the internal buffer,
followed by *Server* and *Date* headers. The values for these two headers
are picked up from the :meth:`version_string` and
:meth:`date_... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a4087130-eff4-4030-8ba9-058998c0bd6c | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,829 | supabase-export-v2 | 1af1d875df034f61 | See :meth:`ssl.SSLContext.load_cert_chain` for additional information on the accepted values for *certfile*, *keyfile* and *password*.
When specified, the *alpn_protocols* argument must be a sequence of strings
specifying the "Application-Layer Protocol Negotiation" (ALPN) protocols
supported by the server. ALPN allo... | trusted_official_docs | CPython Docs | See :meth:`ssl.SSLContext.load_cert_chain` for additional information on the accepted values for *certfile*, *keyfile* and *password*.
When specified, the *alpn_protocols* argument must be a sequence of strings
specifying the "Application-Layer Protocol Negotiation" (ALPN) protocols
supported by the server. ALPN allo... | See :meth:`ssl.SSLContext.load_cert_chain` for additional information on the accepted values for *certfile*, *keyfile* and *password*.
When specified, the *alpn_protocols* argument must be a sequence of strings
specifying the "Application-Layer Protocol Negotiation" (ALPN) protocols
supported by the server. ALPN allo... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a596c245-dc2b-49df-90c4-08df2c6e261b | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,943 | supabase-export-v2 | 1faf479b3a68dc69 | is generated by calling the :meth:`list_directory` method. This method uses :func:`os.listdir` to scan the directory, and returns a ``404`` error response if the :func:`~os.listdir` fails.
If the request was mapped to a file, it is opened. Any :exc:`OSError`
exception in opening the requested file is mapped to a ``404... | trusted_official_docs | CPython Docs | is generated by calling the :meth:`list_directory` method. This method uses :func:`os.listdir` to scan the directory, and returns a ``404`` error response if the :func:`~os.listdir` fails.
If the request was mapped to a file, it is opened. Any :exc:`OSError`
exception in opening the requested file is mapped to a ``404... | is generated by calling the :meth:`list_directory` method. This method uses :func:`os.listdir` to scan the directory, and returns a ``404`` error response if the :func:`~os.listdir` fails.
If the request was mapped to a file, it is opened. Any :exc:`OSError`
exception in opening the requested file is mapped to a ``404... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
aa1d2156-8d5d-445a-bf4b-2479fa31fa28 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,871 | supabase-export-v2 | 0a8863c61b6d6cd0 | .. attribute:: protocol_version
Specifies the HTTP version to which the server is conformant. It is sent
in responses to let the client know the server's communication
capabilities for future requests. If set to
``'HTTP/1.1'``, the server will permit HTTP persistent connections;
however, your server *must* then inc... | trusted_official_docs | CPython Docs | .. attribute:: protocol_version
Specifies the HTTP version to which the server is conformant. It is sent
in responses to let the client know the server's communication
capabilities for future requests. If set to
``'HTTP/1.1'``, the server will permit HTTP persistent connections;
however, your server *must* then inc... | .. attribute:: protocol_version
Specifies the HTTP version to which the server is conformant. It is sent
in responses to let the client know the server's communication
capabilities for future requests. If set to
``'HTTP/1.1'``, the server will permit HTTP persistent connections;
however, your server *must* then inc... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
abb0e0df-4528-4d60-8aae-5c33d73c5edc | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,821 | supabase-export-v2 | f88132b6fc7a0ae3 | .. class:: ThreadingHTTPServer(server_address, RequestHandlerClass)
This class is identical to HTTPServer but uses threads to handle
requests by using the :class:`~socketserver.ThreadingMixIn`. This
is useful to handle web browsers pre-opening sockets, on which
:class:`HTTPServer` would wait indefinitely. | trusted_official_docs | CPython Docs | .. class:: ThreadingHTTPServer(server_address, RequestHandlerClass)
This class is identical to HTTPServer but uses threads to handle
requests by using the :class:`~socketserver.ThreadingMixIn`. This
is useful to handle web browsers pre-opening sockets, on which
:class:`HTTPServer` would wait indefinitely. | .. class:: ThreadingHTTPServer(server_address, RequestHandlerClass)
This class is identical to HTTPServer but uses threads to handle
requests by using the :class:`~socketserver.ThreadingMixIn`. This
is useful to handle web browsers pre-opening sockets, on which
:class:`HTTPServer` would wait indefinitely. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b5e6fbca-06e3-464e-8956-92dff6a36400 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,929 | supabase-export-v2 | 5c27dc1b3ef82acc | .. attribute:: default_content_type
Specifies the Content-Type header value sent when the MIME type
cannot be guessed from the file extension of the requested URL. By default, it is set to ``'application/octet-stream'``. | trusted_official_docs | CPython Docs | .. attribute:: default_content_type
Specifies the Content-Type header value sent when the MIME type
cannot be guessed from the file extension of the requested URL. By default, it is set to ``'application/octet-stream'``. | .. attribute:: default_content_type
Specifies the Content-Type header value sent when the MIME type
cannot be guessed from the file extension of the requested URL. By default, it is set to ``'application/octet-stream'``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bbb091de-9507-4224-80ca-da4e7df4895a | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,944 | supabase-export-v2 | 0936cacf0b0b47a0 | sent. Otherwise, the content type is guessed by calling the :meth:`guess_type` method, which in turn uses the *extensions_map* variable, and the file contents are returned.
A ``'Content-type:'`` header with the guessed content type is output,
followed by a ``'Content-Length:'`` header with the file's size and a
``'La... | trusted_official_docs | CPython Docs | sent. Otherwise, the content type is guessed by calling the :meth:`guess_type` method, which in turn uses the *extensions_map* variable, and the file contents are returned.
A ``'Content-type:'`` header with the guessed content type is output,
followed by a ``'Content-Length:'`` header with the file's size and a
``'La... | sent. Otherwise, the content type is guessed by calling the :meth:`guess_type` method, which in turn uses the *extensions_map* variable, and the file contents are returned.
A ``'Content-type:'`` header with the guessed content type is output,
followed by a ``'Content-Length:'`` header with the file's size and a
``'La... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bfb12dcd-d767-44cf-b202-9aee187f0ab5 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,920 | supabase-export-v2 | 8e8b647e6c9d8eeb | .. class:: SimpleHTTPRequestHandler(request, client_address, server, \ *, directory=None, extra_response_headers=None)
This class serves files from the directory *directory* and below,
or the current directory if *directory* is not provided, directly
mapping the directory structure to HTTP requests. | trusted_official_docs | CPython Docs | .. class:: SimpleHTTPRequestHandler(request, client_address, server, \ *, directory=None, extra_response_headers=None)
This class serves files from the directory *directory* and below,
or the current directory if *directory* is not provided, directly
mapping the directory structure to HTTP requests. | .. class:: SimpleHTTPRequestHandler(request, client_address, server, \ *, directory=None, extra_response_headers=None)
This class serves files from the directory *directory* and below,
or the current directory if *directory* is not provided, directly
mapping the directory structure to HTTP requests. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c204a0d2-af94-454c-a947-d1054af36783 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,932 | supabase-export-v2 | 3b38a16ced2b9369 | .. attribute:: extensions_map
A dictionary mapping suffixes into MIME types, contains custom overrides
for the default system mappings. The mapping is used case-insensitively,
and so should contain only lower-cased keys. | trusted_official_docs | CPython Docs | .. attribute:: extensions_map
A dictionary mapping suffixes into MIME types, contains custom overrides
for the default system mappings. The mapping is used case-insensitively,
and so should contain only lower-cased keys. | .. attribute:: extensions_map
A dictionary mapping suffixes into MIME types, contains custom overrides
for the default system mappings. The mapping is used case-insensitively,
and so should contain only lower-cased keys. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c28b14eb-189a-41b4-87e3-1eed5519c970 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,946 | supabase-export-v2 | 23bf4685b96bcc25 | The instance attribute :attr:`extra_response_headers` is a sequence of ``(name, value)`` pairs containing user-defined extra response headers.
Then follows a blank line signifying the end of the headers, and then the
contents of the file are output. | trusted_official_docs | CPython Docs | The instance attribute :attr:`extra_response_headers` is a sequence of ``(name, value)`` pairs containing user-defined extra response headers.
Then follows a blank line signifying the end of the headers, and then the
contents of the file are output. | The instance attribute :attr:`extra_response_headers` is a sequence of ``(name, value)`` pairs containing user-defined extra response headers.
Then follows a blank line signifying the end of the headers, and then the
contents of the file are output. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c446603f-ce08-4e18-9d7f-808dffa8438d | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,913 | supabase-export-v2 | 382a6cb7a102ba9f | be ``None`` or in the format returned by :func:`time.time`), formatted for a message header. If *timestamp* is omitted, it uses the current date and time.
The result looks like ``'Sun, 06 Nov 1994 08:49:37 GMT'``. | trusted_official_docs | CPython Docs | be ``None`` or in the format returned by :func:`time.time`), formatted for a message header. If *timestamp* is omitted, it uses the current date and time.
The result looks like ``'Sun, 06 Nov 1994 08:49:37 GMT'``. | be ``None`` or in the format returned by :func:`time.time`), formatted for a message header. If *timestamp* is omitted, it uses the current date and time.
The result looks like ``'Sun, 06 Nov 1994 08:49:37 GMT'``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cb91d663-7a05-4b2e-987e-e1e3d604a6ca | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,908 | supabase-export-v2 | 474e0a856370ea25 | .. method:: log_message(format, ...)
Logs an arbitrary message to ``sys.stderr``. This is typically overridden
to create custom error logging mechanisms. The *format* argument is a
standard printf-style format string, where the additional arguments to
:meth:`log_message` are applied as inputs to the formatting. The ... | trusted_official_docs | CPython Docs | .. method:: log_message(format, ...)
Logs an arbitrary message to ``sys.stderr``. This is typically overridden
to create custom error logging mechanisms. The *format* argument is a
standard printf-style format string, where the additional arguments to
:meth:`log_message` are applied as inputs to the formatting. The ... | .. method:: log_message(format, ...)
Logs an arbitrary message to ``sys.stderr``. This is typically overridden
to create custom error logging mechanisms. The *format* argument is a
standard printf-style format string, where the additional arguments to
:meth:`log_message` are applied as inputs to the formatting. The ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d4eac062-5251-49f4-bac6-c2259e693c39 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,878 | supabase-export-v2 | 87c320264ba38afc | .. method:: handle()
Calls :meth:`handle_one_request` once (or, if persistent connections are
enabled, multiple times) to handle incoming HTTP requests. You should
never need to override it; instead, implement appropriate :meth:`!do_\*`
methods. | trusted_official_docs | CPython Docs | .. method:: handle()
Calls :meth:`handle_one_request` once (or, if persistent connections are
enabled, multiple times) to handle incoming HTTP requests. You should
never need to override it; instead, implement appropriate :meth:`!do_\*`
methods. | .. method:: handle()
Calls :meth:`handle_one_request` once (or, if persistent connections are
enabled, multiple times) to handle incoming HTTP requests. You should
never need to override it; instead, implement appropriate :meth:`!do_\*`
methods. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d61f51f0-c231-4d74-9231-baba4811601e | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,882 | supabase-export-v2 | 3348a89aa9b8d26f | .. method:: handle_expect_100()
When an HTTP/1.1 conformant server receives an ``Expect: 100-continue``
request header it responds back with a ``100 Continue`` followed by ``200
OK`` headers. This method can be overridden to raise an error if the server does not
want the client to continue. For example, the server c... | trusted_official_docs | CPython Docs | .. method:: handle_expect_100()
When an HTTP/1.1 conformant server receives an ``Expect: 100-continue``
request header it responds back with a ``100 Continue`` followed by ``200
OK`` headers. This method can be overridden to raise an error if the server does not
want the client to continue. For example, the server c... | .. method:: handle_expect_100()
When an HTTP/1.1 conformant server receives an ``Expect: 100-continue``
request header it responds back with a ``100 Continue`` followed by ``200
OK`` headers. This method can be overridden to raise an error if the server does not
want the client to continue. For example, the server c... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e4ad290d-ac4f-463a-842f-0ebac66d9b3e | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,954 | supabase-export-v2 | 3a5c0e890e4e115c | with socketserver.TCPServer(("", PORT), Handler) as httpd: print("serving at port", PORT) httpd.serve_forever()
:class:`SimpleHTTPRequestHandler` can also be subclassed to enhance behavior,
such as using different index file names by overriding the class attribute
:attr:`index_pages`. | trusted_official_docs | CPython Docs | with socketserver.TCPServer(("", PORT), Handler) as httpd: print("serving at port", PORT) httpd.serve_forever()
:class:`SimpleHTTPRequestHandler` can also be subclassed to enhance behavior,
such as using different index file names by overriding the class attribute
:attr:`index_pages`. | with socketserver.TCPServer(("", PORT), Handler) as httpd: print("serving at port", PORT) httpd.serve_forever()
:class:`SimpleHTTPRequestHandler` can also be subclassed to enhance behavior,
such as using different index file names by overriding the class attribute
:attr:`index_pages`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e6d64829-c75f-4bd6-a6d7-a88de341c6eb | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,833 | supabase-export-v2 | a2ea9db41abb32ea | .. class:: ThreadingHTTPSServer(server_address, RequestHandlerClass,\ bind_and_activate=True, *, certfile, keyfile=None,\ password=None, alpn_protocols=None)
This class is identical to :class:`HTTPSServer` but uses threads to handle
requests by inheriting from :class:`~socketserver.ThreadingMixIn`. This is
analogous ... | trusted_official_docs | CPython Docs | .. class:: ThreadingHTTPSServer(server_address, RequestHandlerClass,\ bind_and_activate=True, *, certfile, keyfile=None,\ password=None, alpn_protocols=None)
This class is identical to :class:`HTTPSServer` but uses threads to handle
requests by inheriting from :class:`~socketserver.ThreadingMixIn`. This is
analogous ... | .. class:: ThreadingHTTPSServer(server_address, RequestHandlerClass,\ bind_and_activate=True, *, certfile, keyfile=None,\ password=None, alpn_protocols=None)
This class is identical to :class:`HTTPSServer` but uses threads to handle
requests by inheriting from :class:`~socketserver.ThreadingMixIn`. This is
analogous ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f49d08c7-ba28-4d46-813a-c01cd990e8e5 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,942 | supabase-export-v2 | 4fcefccdcc3105c9 | The request is mapped to a local file by interpreting the request as a path relative to the current working directory.
If the request was mapped to a directory, the directory is checked for a
file named ``index.html`` or ``index.htm`` (in that order). If found, the
file's contents are returned; otherwise a directory ... | trusted_official_docs | CPython Docs | The request is mapped to a local file by interpreting the request as a path relative to the current working directory.
If the request was mapped to a directory, the directory is checked for a
file named ``index.html`` or ``index.htm`` (in that order). If found, the
file's contents are returned; otherwise a directory ... | The request is mapped to a local file by interpreting the request as a path relative to the current working directory.
If the request was mapped to a directory, the directory is checked for a
file named ``index.html`` or ``index.htm`` (in that order). If found, the
file's contents are returned; otherwise a directory ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f6a48559-d4f6-411e-b109-37ee0db4c162 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,936 | supabase-export-v2 | 45d1fd4af5b5a3bd | containing user-defined extra HTTP response headers to add to each successful HTTP status 200 response. These headers are not included in other status code responses.
Headers that the server sends automatically such as ``Content-Type``
will not be overwritten by :attr:`!extra_response_headers`. | trusted_official_docs | CPython Docs | containing user-defined extra HTTP response headers to add to each successful HTTP status 200 response. These headers are not included in other status code responses.
Headers that the server sends automatically such as ``Content-Type``
will not be overwritten by :attr:`!extra_response_headers`. | containing user-defined extra HTTP response headers to add to each successful HTTP status 200 response. These headers are not included in other status code responses.
Headers that the server sends automatically such as ``Content-Type``
will not be overwritten by :attr:`!extra_response_headers`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f71362cd-7420-4cd8-a46d-e84d06a20206 | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,892 | supabase-export-v2 | be3f9c5893c3462a | header keyword, with *value* specifying its value. Note that, after the send_header calls are done, :meth:`end_headers` MUST BE called in order to complete the operation.
This method does not reject input containing CRLF sequences. | trusted_official_docs | CPython Docs | header keyword, with *value* specifying its value. Note that, after the send_header calls are done, :meth:`end_headers` MUST BE called in order to complete the operation.
This method does not reject input containing CRLF sequences. | header keyword, with *value* specifying its value. Note that, after the send_header calls are done, :meth:`end_headers` MUST BE called in order to complete the operation.
This method does not reject input containing CRLF sequences. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fde24d94-0b4b-4d74-90bc-6785788a2a3f | CPython Docs | file://datasets/cpython/Doc/library/http.server.rst | unknown | e976d555-1adf-4f24-9bdc-4df94ec4798f | 38,839 | supabase-export-v2 | 8e595542a2f16639 | arguments. All of the relevant information is stored in instance variables of the handler. Subclasses should not need to override or extend the :meth:`!__init__` method.
:class:`BaseHTTPRequestHandler` has the following instance variables: | trusted_official_docs | CPython Docs | arguments. All of the relevant information is stored in instance variables of the handler. Subclasses should not need to override or extend the :meth:`!__init__` method.
:class:`BaseHTTPRequestHandler` has the following instance variables: | arguments. All of the relevant information is stored in instance variables of the handler. Subclasses should not need to override or extend the :meth:`!__init__` method.
:class:`BaseHTTPRequestHandler` has the following instance variables: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
008376b6-66df-404a-8206-0c924de29c27 | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,017 | supabase-export-v2 | 2a8fe2847bb447b6 | email.message import Message >>> from email.header import Header >>> msg = Message() >>> h = Header('p\xf6stal', 'iso-8859-1') >>> msg['Subject'] = h >>> msg.as_string() 'Subject: =?iso-8859-1?q?p=F6stal?=\n\n'
Notice here how we wanted the :mailheader:`Subject` field to contain a non-ASCII
character? We did this by cr... | trusted_official_docs | CPython Docs | email.message import Message >>> from email.header import Header >>> msg = Message() >>> h = Header('p\xf6stal', 'iso-8859-1') >>> msg['Subject'] = h >>> msg.as_string() 'Subject: =?iso-8859-1?q?p=F6stal?=\n\n'
Notice here how we wanted the :mailheader:`Subject` field to contain a non-ASCII
character? We did this by cr... | email.message import Message >>> from email.header import Header >>> msg = Message() >>> h = Header('p\xf6stal', 'iso-8859-1') >>> msg['Subject'] = h >>> msg.as_string() 'Subject: =?iso-8859-1?q?p=F6stal?=\n\n'
Notice here how we wanted the :mailheader:`Subject` field to contain a non-ASCII
character? We did this by cr... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
08a0adc3-2095-430b-95a4-7bcc436c07df | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,016 | supabase-export-v2 | 3ec4a93db8f0fecd | object to an instance of :class:`Header` instead of using a string for the header value. Import the :class:`Header` class from the :mod:`!email.header` module. For example::
>>> from email.message import Message
>>> from email.header import Header
>>> msg = Message()
>>> h = Header('p\xf6stal', 'iso-8859-1')
>>> ms... | trusted_official_docs | CPython Docs | object to an instance of :class:`Header` instead of using a string for the header value. Import the :class:`Header` class from the :mod:`!email.header` module. For example::
>>> from email.message import Message
>>> from email.header import Header
>>> msg = Message()
>>> h = Header('p\xf6stal', 'iso-8859-1')
>>> ms... | object to an instance of :class:`Header` instead of using a string for the header value. Import the :class:`Header` class from the :mod:`!email.header` module. For example::
>>> from email.message import Message
>>> from email.header import Header
>>> msg = Message()
>>> h = Header('p\xf6stal', 'iso-8859-1')
>>> ms... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0df39343-f101-47ba-a166-8af79ff1972a | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,041 | supabase-export-v2 | 490d6c81515bdf3f | .. method:: __str__()
Returns an approximation of the :class:`Header` as a string, using an
unlimited line length. All pieces are converted to unicode using the
specified encoding and joined together appropriately. Any pieces with a
charset of ``'unknown-8bit'`` are decoded as ASCII using the ``'replace'``
error ha... | trusted_official_docs | CPython Docs | .. method:: __str__()
Returns an approximation of the :class:`Header` as a string, using an
unlimited line length. All pieces are converted to unicode using the
specified encoding and joined together appropriately. Any pieces with a
charset of ``'unknown-8bit'`` are decoded as ASCII using the ``'replace'``
error ha... | .. method:: __str__()
Returns an approximation of the :class:`Header` as a string, using an
unlimited line length. All pieces are converted to unicode using the
specified encoding and joined together appropriately. Any pieces with a
charset of ``'unknown-8bit'`` are decoded as ASCII using the ``'replace'``
error ha... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
12c4b262-2403-4b8c-92e0-c8c066c8380c | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,063 | supabase-export-v2 | e75cb599456adbdd | takes a header value string and returns a sequence of pairs of the format ``(decoded_string, charset)`` where *charset* is the name of the character set.
This function takes one of those sequence of pairs and returns a
:class:`Header` instance. Optional *maxlinelen*, *header_name*, and
*continuation_ws* are as in the... | trusted_official_docs | CPython Docs | takes a header value string and returns a sequence of pairs of the format ``(decoded_string, charset)`` where *charset* is the name of the character set.
This function takes one of those sequence of pairs and returns a
:class:`Header` instance. Optional *maxlinelen*, *header_name*, and
*continuation_ws* are as in the... | takes a header value string and returns a sequence of pairs of the format ``(decoded_string, charset)`` where *charset* is the name of the character set.
This function takes one of those sequence of pairs and returns a
:class:`Header` instance. Optional *maxlinelen*, *header_name*, and
*continuation_ws* are as in the... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
148e5305-3517-4913-bc08-6d2aaeeb750a | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,014 | supabase-export-v2 | 896b973ba9e9a210 | use at a time when most email was composed of ASCII characters only. :rfc:`2822` is a specification written assuming email contains only 7-bit ASCII characters.
Of course, as email has been deployed worldwide, it has become
internationalized, such that language specific character sets can now be used in
email messages.... | trusted_official_docs | CPython Docs | use at a time when most email was composed of ASCII characters only. :rfc:`2822` is a specification written assuming email contains only 7-bit ASCII characters.
Of course, as email has been deployed worldwide, it has become
internationalized, such that language specific character sets can now be used in
email messages.... | use at a time when most email was composed of ASCII characters only. :rfc:`2822` is a specification written assuming email contains only 7-bit ASCII characters.
Of course, as email has been deployed worldwide, it has become
internationalized, such that language specific character sets can now be used in
email messages.... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
14bf3668-051f-4350-a273-eb76fdf470d0 | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,062 | supabase-export-v2 | 81ced86e92f8791d | Create a :class:`Header` instance from a sequence of pairs as returned by :func:`decode_header`.
:func:`decode_header` takes a header value string and returns a sequence of
pairs of the format ``(decoded_string, charset)`` where *charset* is the name of
the character set. | trusted_official_docs | CPython Docs | Create a :class:`Header` instance from a sequence of pairs as returned by :func:`decode_header`.
:func:`decode_header` takes a header value string and returns a sequence of
pairs of the format ``(decoded_string, charset)`` where *charset* is the name of
the character set. | Create a :class:`Header` instance from a sequence of pairs as returned by :func:`decode_header`.
:func:`decode_header` takes a header value string and returns a sequence of
pairs of the format ``(decoded_string, charset)`` where *charset* is the name of
the character set. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
18752698-093a-4a0b-b375-d7dcec74a750 | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,031 | supabase-export-v2 | 81e2e21d78c13df9 | If *s* is an instance of :class:`str`, then *charset* is a hint specifying the character set of the characters in the string.
In either case, when producing an :rfc:`2822`\ -compliant header using
:rfc:`2047` rules, the string will be encoded using the output codec of
the charset. If the string cannot be encoded usin... | trusted_official_docs | CPython Docs | If *s* is an instance of :class:`str`, then *charset* is a hint specifying the character set of the characters in the string.
In either case, when producing an :rfc:`2822`\ -compliant header using
:rfc:`2047` rules, the string will be encoded using the output codec of
the charset. If the string cannot be encoded usin... | If *s* is an instance of :class:`str`, then *charset* is a hint specifying the character set of the characters in the string.
In either case, when producing an :rfc:`2822`\ -compliant header using
:rfc:`2047` rules, the string will be encoded using the output codec of
the charset. If the string cannot be encoded usin... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2b3ae0ea-6f68-4ea8-9eab-1bf8fc699abe | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,035 | supabase-export-v2 | 45998de12be08eb9 | Encode a message header into an RFC-compliant format, possibly wrapping long lines and encapsulating non-ASCII parts in base64 or quoted-printable encodings.
Optional *splitchars* is a string containing characters which should be
given extra weight by the splitting algorithm during normal header
wrapping. This is in ... | trusted_official_docs | CPython Docs | Encode a message header into an RFC-compliant format, possibly wrapping long lines and encapsulating non-ASCII parts in base64 or quoted-printable encodings.
Optional *splitchars* is a string containing characters which should be
given extra weight by the splitting algorithm during normal header
wrapping. This is in ... | Encode a message header into an RFC-compliant format, possibly wrapping long lines and encapsulating non-ASCII parts in base64 or quoted-printable encodings.
Optional *splitchars* is a string containing characters which should be
given extra weight by the splitting algorithm during normal header
wrapping. This is in ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
397b01e1-5dc2-4d58-8bec-623272bc3d9c | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,038 | supabase-export-v2 | 03278ebf7bd8e3a6 | defaults to the most useful value for Python application code (``\n``), but ``\r\n`` can be specified in order to produce headers with RFC-compliant line separators.
.. versionchanged:: 3.2
Added the *linesep* argument. | trusted_official_docs | CPython Docs | defaults to the most useful value for Python application code (``\n``), but ``\r\n`` can be specified in order to produce headers with RFC-compliant line separators.
.. versionchanged:: 3.2
Added the *linesep* argument. | defaults to the most useful value for Python application code (``\n``), but ``\r\n`` can be specified in order to produce headers with RFC-compliant line separators.
.. versionchanged:: 3.2
Added the *linesep* argument. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3fb2e92e-e92c-4184-93ca-133679bbbe63 | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,029 | supabase-export-v2 | e92f341e6df8764d | set, which will be converted to a :class:`~email.charset.Charset` instance. A value of ``None`` (the default) means that the *charset* given in the constructor is used.
*s* may be an instance of :class:`bytes` or :class:`str`. If it is an
instance of :class:`bytes`, then *charset* is the encoding of that byte
string,... | trusted_official_docs | CPython Docs | set, which will be converted to a :class:`~email.charset.Charset` instance. A value of ``None`` (the default) means that the *charset* given in the constructor is used.
*s* may be an instance of :class:`bytes` or :class:`str`. If it is an
instance of :class:`bytes`, then *charset* is the encoding of that byte
string,... | set, which will be converted to a :class:`~email.charset.Charset` instance. A value of ``None`` (the default) means that the *charset* given in the constructor is used.
*s* may be an instance of :class:`bytes` or :class:`str`. If it is an
instance of :class:`bytes`, then *charset* is the encoding of that byte
string,... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4a74c342-9c03-4947-bf6f-ca09d706ef0d | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,023 | supabase-export-v2 | 7fc38cdfa25ccc76 | provided in the constructor (the default), the ``us-ascii`` character set is used both as *s*'s initial charset and as the default for subsequent :meth:`append` calls.
The maximum line length can be specified explicitly via *maxlinelen*. For
splitting the first line to a shorter value (to account for the field header
... | trusted_official_docs | CPython Docs | provided in the constructor (the default), the ``us-ascii`` character set is used both as *s*'s initial charset and as the default for subsequent :meth:`append` calls.
The maximum line length can be specified explicitly via *maxlinelen*. For
splitting the first line to a shorter value (to account for the field header
... | provided in the constructor (the default), the ``us-ascii`` character set is used both as *s*'s initial charset and as the default for subsequent :meth:`append` calls.
The maximum line length can be specified explicitly via *maxlinelen*. For
splitting the first line to a shorter value (to account for the field header
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4e83db44-6b68-425d-bc7e-f0ab8f6ad15e | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,037 | supabase-export-v2 | 01ef4f54ac65e69a | *maxlinelen*, if given, overrides the instance's value for the maximum line length.
*linesep* specifies the characters used to separate the lines of the
folded header. It defaults to the most useful value for Python
application code (``\n``), but ``\r\n`` can be specified in order
to produce headers with RFC-complia... | trusted_official_docs | CPython Docs | *maxlinelen*, if given, overrides the instance's value for the maximum line length.
*linesep* specifies the characters used to separate the lines of the
folded header. It defaults to the most useful value for Python
application code (``\n``), but ``\r\n`` can be specified in order
to produce headers with RFC-complia... | *maxlinelen*, if given, overrides the instance's value for the maximum line length.
*linesep* specifies the characters used to separate the lines of the
folded header. It defaults to the most useful value for Python
application code (``\n``), but ``\r\n`` can be specified in order
to produce headers with RFC-complia... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
510c46d2-9abb-45cb-a0e7-16c3d11d62aa | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,052 | supabase-export-v2 | 488b5d8ea2858d60 | of pairs containing each of the decoded parts of the header, ``(decoded_bytes, charset)``, where *decoded_bytes* is always an instance of :class:`bytes`, and *charset* is either:
- A lower case string containing the name of the character set specified. | trusted_official_docs | CPython Docs | of pairs containing each of the decoded parts of the header, ``(decoded_bytes, charset)``, where *decoded_bytes* is always an instance of :class:`bytes`, and *charset* is either:
- A lower case string containing the name of the character set specified. | of pairs containing each of the decoded parts of the header, ``(decoded_bytes, charset)``, where *decoded_bytes* is always an instance of :class:`bytes`, and *charset* is either:
- A lower case string containing the name of the character set specified. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5560091a-6358-4cfb-886f-d250b058c788 | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,012 | supabase-export-v2 | 793cb5b2e9edd843 | addition to uses in legacy code, this module can be useful in applications that need to completely control the character sets used when encoding headers.
The remaining text in this section is the original documentation of the module. | trusted_official_docs | CPython Docs | addition to uses in legacy code, this module can be useful in applications that need to completely control the character sets used when encoding headers.
The remaining text in this section is the original documentation of the module. | addition to uses in legacy code, this module can be useful in applications that need to completely control the character sets used when encoding headers.
The remaining text in this section is the original documentation of the module. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6f493293-afde-47e6-8bb7-904c01cc7a9b | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,042 | supabase-export-v2 | 9214aae33b608c87 | unicode using the specified encoding and joined together appropriately. Any pieces with a charset of ``'unknown-8bit'`` are decoded as ASCII using the ``'replace'`` error handler.
.. versionchanged:: 3.2
Added handling for the ``'unknown-8bit'`` charset. | trusted_official_docs | CPython Docs | unicode using the specified encoding and joined together appropriately. Any pieces with a charset of ``'unknown-8bit'`` are decoded as ASCII using the ``'replace'`` error handler.
.. versionchanged:: 3.2
Added handling for the ``'unknown-8bit'`` charset. | unicode using the specified encoding and joined together appropriately. Any pieces with a charset of ``'unknown-8bit'`` are decoded as ASCII using the ``'replace'`` error handler.
.. versionchanged:: 3.2
Added handling for the ``'unknown-8bit'`` charset. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6fbe0e6a-a1af-4f6d-8ce6-deff806f0ce8 | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,030 | supabase-export-v2 | e2413134cc049f09 | then *charset* is the encoding of that byte string, and a :exc:`UnicodeError` will be raised if the string cannot be decoded with that character set.
If *s* is an instance of :class:`str`, then *charset* is a hint specifying
the character set of the characters in the string. | trusted_official_docs | CPython Docs | then *charset* is the encoding of that byte string, and a :exc:`UnicodeError` will be raised if the string cannot be decoded with that character set.
If *s* is an instance of :class:`str`, then *charset* is a hint specifying
the character set of the characters in the string. | then *charset* is the encoding of that byte string, and a :exc:`UnicodeError` will be raised if the string cannot be decoded with that character set.
If *s* is an instance of :class:`str`, then *charset* is a hint specifying
the character set of the characters in the string. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7009cd7b-4b29-4c12-ba73-89f9abbeab95 | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,018 | supabase-export-v2 | 439de601d51041c9 | the subsequent :class:`~email.message.Message` instance was flattened, the :mailheader:`Subject` field was properly :rfc:`2047` encoded. MIME-aware mail readers would show this header using the embedded ISO-8859-1 character.
Here is the :class:`Header` class description: | trusted_official_docs | CPython Docs | the subsequent :class:`~email.message.Message` instance was flattened, the :mailheader:`Subject` field was properly :rfc:`2047` encoded. MIME-aware mail readers would show this header using the embedded ISO-8859-1 character.
Here is the :class:`Header` class description: | the subsequent :class:`~email.message.Message` instance was flattened, the :mailheader:`Subject` field was properly :rfc:`2047` encoded. MIME-aware mail readers would show this header using the embedded ISO-8859-1 character.
Here is the :class:`Header` class description: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
71210211-0245-4bbc-85dc-7568f1339372 | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,022 | supabase-export-v2 | 2db476f409c43964 | later append to the header with :meth:`append` method calls. *s* may be an instance of :class:`bytes` or :class:`str`, but see the :meth:`append` documentation for semantics.
Optional *charset* serves two purposes: it has the same meaning as the *charset*
argument to the :meth:`append` method. It also sets the default... | trusted_official_docs | CPython Docs | later append to the header with :meth:`append` method calls. *s* may be an instance of :class:`bytes` or :class:`str`, but see the :meth:`append` documentation for semantics.
Optional *charset* serves two purposes: it has the same meaning as the *charset*
argument to the :meth:`append` method. It also sets the default... | later append to the header with :meth:`append` method calls. *s* may be an instance of :class:`bytes` or :class:`str`, but see the :meth:`append` documentation for semantics.
Optional *charset* serves two purposes: it has the same meaning as the *charset*
argument to the :meth:`append` method. It also sets the default... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
715c5c61-1949-4652-8653-e3d534066b32 | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,011 | supabase-export-v2 | 5efd025b2861b01f | --------------
This module is part of the legacy (``Compat32``) email API. In the current API
encoding and decoding of headers is handled transparently by the
dictionary-like API of the :class:`~email.message.EmailMessage` class. In
addition to uses in legacy code, this module can be useful in applications that
need to... | trusted_official_docs | CPython Docs | --------------
This module is part of the legacy (``Compat32``) email API. In the current API
encoding and decoding of headers is handled transparently by the
dictionary-like API of the :class:`~email.message.EmailMessage` class. In
addition to uses in legacy code, this module can be useful in applications that
need to... | --------------
This module is part of the legacy (``Compat32``) email API. In the current API
encoding and decoding of headers is handled transparently by the
dictionary-like API of the :class:`~email.message.EmailMessage` class. In
addition to uses in legacy code, this module can be useful in applications that
need to... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
74bd1423-be02-4b0a-96cd-e16a207700fb | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,024 | supabase-export-v2 | 0a6beeef8a065e17 | 78, and the default value for *header_name* is ``None``, meaning it is not taken into account for the first line of a long, split header.
Optional *continuation_ws* must be :rfc:`2822`\ -compliant folding
whitespace, and is usually either a space or a hard tab character. This
character will be prepended to continuati... | trusted_official_docs | CPython Docs | 78, and the default value for *header_name* is ``None``, meaning it is not taken into account for the first line of a long, split header.
Optional *continuation_ws* must be :rfc:`2822`\ -compliant folding
whitespace, and is usually either a space or a hard tab character. This
character will be prepended to continuati... | 78, and the default value for *header_name* is ``None``, meaning it is not taken into account for the first line of a long, split header.
Optional *continuation_ws* must be :rfc:`2822`\ -compliant folding
whitespace, and is usually either a space or a hard tab character. This
character will be prepended to continuati... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
78f2048c-7bd9-40e5-b941-dfb747ee3ecc | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,025 | supabase-export-v2 | e62ceca4e32ac8f9 | is usually either a space or a hard tab character. This character will be prepended to continuation lines. *continuation_ws* defaults to a single space character.
Optional *errors* is passed straight through to the :meth:`append` method. | trusted_official_docs | CPython Docs | is usually either a space or a hard tab character. This character will be prepended to continuation lines. *continuation_ws* defaults to a single space character.
Optional *errors* is passed straight through to the :meth:`append` method. | is usually either a space or a hard tab character. This character will be prepended to continuation lines. *continuation_ws* defaults to a single space character.
Optional *errors* is passed straight through to the :meth:`append` method. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
825668c0-57a3-4773-aac5-5daa9adbf6c9 | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,028 | supabase-export-v2 | e8ecd2083089001f | Append the string *s* to the MIME header.
Optional *charset*, if given, should be a :class:`~email.charset.Charset`
instance (see :mod:`email.charset`) or the name of a character set, which
will be converted to a :class:`~email.charset.Charset` instance. A value
of ``None`` (the default) means that the *charset* giv... | trusted_official_docs | CPython Docs | Append the string *s* to the MIME header.
Optional *charset*, if given, should be a :class:`~email.charset.Charset`
instance (see :mod:`email.charset`) or the name of a character set, which
will be converted to a :class:`~email.charset.Charset` instance. A value
of ``None`` (the default) means that the *charset* giv... | Append the string *s* to the MIME header.
Optional *charset*, if given, should be a :class:`~email.charset.Charset`
instance (see :mod:`email.charset`) or the name of a character set, which
will be converted to a :class:`~email.charset.Charset` instance. A value
of ``None`` (the default) means that the *charset* giv... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
95959d86-39fd-4705-bd5e-3e98f9afef5f | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,013 | supabase-export-v2 | a866ca84f7e4e294 | The remaining text in this section is the original documentation of the module.
:rfc:`2822` is the base standard that describes the format of email messages. It derives from the older :rfc:`822` standard which came into widespread use at
a time when most email was composed of ASCII characters only. :rfc:`2822` is a
spe... | trusted_official_docs | CPython Docs | The remaining text in this section is the original documentation of the module.
:rfc:`2822` is the base standard that describes the format of email messages. It derives from the older :rfc:`822` standard which came into widespread use at
a time when most email was composed of ASCII characters only. :rfc:`2822` is a
spe... | The remaining text in this section is the original documentation of the module.
:rfc:`2822` is the base standard that describes the format of email messages. It derives from the older :rfc:`822` standard which came into widespread use at
a time when most email was composed of ASCII characters only. :rfc:`2822` is a
spe... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9d9f6670-1e55-4005-8a0d-6868bf809930 | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,015 | supabase-export-v2 | 81a8f08dfe55affd | characters into :rfc:`2822`\ -compliant format. These RFCs include :rfc:`2045`, :rfc:`2046`, :rfc:`2047`, and :rfc:`2231`. The :mod:`email` package supports these standards in its :mod:`!email.header` and :mod:`email.charset` modules.
If you want to include non-ASCII characters in your email headers, say in the
:mailhe... | trusted_official_docs | CPython Docs | characters into :rfc:`2822`\ -compliant format. These RFCs include :rfc:`2045`, :rfc:`2046`, :rfc:`2047`, and :rfc:`2231`. The :mod:`email` package supports these standards in its :mod:`!email.header` and :mod:`email.charset` modules.
If you want to include non-ASCII characters in your email headers, say in the
:mailhe... | characters into :rfc:`2822`\ -compliant format. These RFCs include :rfc:`2045`, :rfc:`2046`, :rfc:`2047`, and :rfc:`2231`. The :mod:`email` package supports these standards in its :mod:`!email.header` and :mod:`email.charset` modules.
If you want to include non-ASCII characters in your email headers, say in the
:mailhe... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a50d8062-57c1-41ac-9c3b-d8adc31c4d37 | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,055 | supabase-export-v2 | 158f6a18d2996a92 | 2. A list of length 1 containing a pair ``(string, None)``, where *string* is always an instance of :class:`str`.
An :exc:`email.errors.HeaderParseError` may be raised when certain decoding
errors occur (e.g. a base64 decoding exception). | trusted_official_docs | CPython Docs | 2. A list of length 1 containing a pair ``(string, None)``, where *string* is always an instance of :class:`str`.
An :exc:`email.errors.HeaderParseError` may be raised when certain decoding
errors occur (e.g. a base64 decoding exception). | 2. A list of length 1 containing a pair ``(string, None)``, where *string* is always an instance of :class:`str`.
An :exc:`email.errors.HeaderParseError` may be raised when certain decoding
errors occur (e.g. a base64 decoding exception). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a6db3bab-3f51-46a8-b2f9-290f6d21ecf2 | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,051 | supabase-export-v2 | aa9518d15f5a3899 | For historical reasons, this function may return either:
1. A list of pairs containing each of the decoded parts of the header,
``(decoded_bytes, charset)``, where *decoded_bytes* is always an instance of
:class:`bytes`, and *charset* is either: | trusted_official_docs | CPython Docs | For historical reasons, this function may return either:
1. A list of pairs containing each of the decoded parts of the header,
``(decoded_bytes, charset)``, where *decoded_bytes* is always an instance of
:class:`bytes`, and *charset* is either: | For historical reasons, this function may return either:
1. A list of pairs containing each of the decoded parts of the header,
``(decoded_bytes, charset)``, where *decoded_bytes* is always an instance of
:class:`bytes`, and *charset* is either: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ca1e162f-a7d0-45c7-9919-16f7cddbf7b3 | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,021 | supabase-export-v2 | 6209b57d9f47f049 | Create a MIME-compliant header that can contain strings in different character sets.
Optional *s* is the initial header value. If ``None`` (the default), the
initial header value is not set. You can later append to the header with
:meth:`append` method calls. *s* may be an instance of :class:`bytes` or
:class:`str`,... | trusted_official_docs | CPython Docs | Create a MIME-compliant header that can contain strings in different character sets.
Optional *s* is the initial header value. If ``None`` (the default), the
initial header value is not set. You can later append to the header with
:meth:`append` method calls. *s* may be an instance of :class:`bytes` or
:class:`str`,... | Create a MIME-compliant header that can contain strings in different character sets.
Optional *s* is the initial header value. If ``None`` (the default), the
initial header value is not set. You can later append to the header with
:meth:`append` method calls. *s* may be an instance of :class:`bytes` or
:class:`str`,... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e7752ee2-c0f9-4af1-86f1-a2d618853db9 | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,036 | supabase-export-v2 | 8be7a6956a7d846e | the other as a split point when other split chars do not appear in the line being split. Splitchars does not affect :RFC:`2047` encoded lines.
*maxlinelen*, if given, overrides the instance's value for the maximum
line length. | trusted_official_docs | CPython Docs | the other as a split point when other split chars do not appear in the line being split. Splitchars does not affect :RFC:`2047` encoded lines.
*maxlinelen*, if given, overrides the instance's value for the maximum
line length. | the other as a split point when other split chars do not appear in the line being split. Splitchars does not affect :RFC:`2047` encoded lines.
*maxlinelen*, if given, overrides the instance's value for the maximum
line length. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fab8b3f1-ff38-4eda-949d-4ab21f68ee89 | CPython Docs | file://datasets/cpython/Doc/library/email.header.rst | unknown | 76ce8554-59bc-4ada-a1e3-a940923858f6 | 39,032 | supabase-export-v2 | 02af0d7c2e8e5da3 | will be encoded using the output codec of the charset. If the string cannot be encoded using the output codec, a UnicodeError will be raised.
Optional *errors* is passed as the errors argument to the decode call
if *s* is a byte string. | trusted_official_docs | CPython Docs | will be encoded using the output codec of the charset. If the string cannot be encoded using the output codec, a UnicodeError will be raised.
Optional *errors* is passed as the errors argument to the decode call
if *s* is a byte string. | will be encoded using the output codec of the charset. If the string cannot be encoded using the output codec, a UnicodeError will be raised.
Optional *errors* is passed as the errors argument to the decode call
if *s* is a byte string. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d1e152f3-044b-4225-94b8-f1bb5e98fe75 | CPython Docs | file://datasets/cpython/Doc/library/modules.rst | unknown | dfed31eb-7826-4703-b542-4715946d06a8 | 39,068 | supabase-export-v2 | 76d7fdd8c2821f9b | The modules described in this chapter provide new ways to import other Python modules and hooks for customizing the import process.
The full list of modules described in this chapter is: | trusted_official_docs | CPython Docs | The modules described in this chapter provide new ways to import other Python modules and hooks for customizing the import process.
The full list of modules described in this chapter is: | The modules described in this chapter provide new ways to import other Python modules and hooks for customizing the import process.
The full list of modules described in this chapter is: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
04b56809-f3f7-41f6-80aa-ddd85eee0e10 | CPython Docs | file://datasets/cpython/Doc/library/gc.rst | unknown | 1fe0607f-d1de-49f4-8e4b-fa885112b691 | 39,147 | supabase-export-v2 | f4ae8023579483ab | If :const:`DEBUG_SAVEALL` is set, then all unreachable objects will be added to this list rather than freed.
.. versionchanged:: 3.2
If this list is non-empty at :term:`interpreter shutdown`, a
:exc:`ResourceWarning` is emitted, which is silent by default. If
:const:`DEBUG_UNCOLLECTABLE` is set, in addition all unco... | trusted_official_docs | CPython Docs | If :const:`DEBUG_SAVEALL` is set, then all unreachable objects will be added to this list rather than freed.
.. versionchanged:: 3.2
If this list is non-empty at :term:`interpreter shutdown`, a
:exc:`ResourceWarning` is emitted, which is silent by default. If
:const:`DEBUG_UNCOLLECTABLE` is set, in addition all unco... | If :const:`DEBUG_SAVEALL` is set, then all unreachable objects will be added to this list rather than freed.
.. versionchanged:: 3.2
If this list is non-empty at :term:`interpreter shutdown`, a
:exc:`ResourceWarning` is emitted, which is silent by default. If
:const:`DEBUG_UNCOLLECTABLE` is set, in addition all unco... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
110412aa-076c-4a9b-a9c2-fd7b894d1673 | CPython Docs | file://datasets/cpython/Doc/library/gc.rst | unknown | 1fe0607f-d1de-49f4-8e4b-fa885112b691 | 39,099 | supabase-export-v2 | 6f449a249758ce79 | .. function:: get_stats()
Return a list of three per-generation dictionaries containing collection
statistics since interpreter start. The number of keys may change
in the future, but currently each dictionary will contain the following
items: | trusted_official_docs | CPython Docs | .. function:: get_stats()
Return a list of three per-generation dictionaries containing collection
statistics since interpreter start. The number of keys may change
in the future, but currently each dictionary will contain the following
items: | .. function:: get_stats()
Return a list of three per-generation dictionaries containing collection
statistics since interpreter start. The number of keys may change
in the future, but currently each dictionary will contain the following
items: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
13474525-f61a-4fa9-b745-b32632ab6d33 | CPython Docs | file://datasets/cpython/Doc/library/gc.rst | unknown | 1fe0607f-d1de-49f4-8e4b-fa885112b691 | 39,133 | supabase-export-v2 | 1639d8a689d69d0d | Returns ``True`` if the given object has been finalized by the garbage collector, ``False`` otherwise. ::
>>> x = None
>>> class Lazarus:
... def __del__(self):
... global x
... x = self
... >>> lazarus = Lazarus()
>>> gc.is_finalized(lazarus)
False
>>> del lazarus
>>> gc.is_finalized(x)
True | trusted_official_docs | CPython Docs | Returns ``True`` if the given object has been finalized by the garbage collector, ``False`` otherwise. ::
>>> x = None
>>> class Lazarus:
... def __del__(self):
... global x
... x = self
... >>> lazarus = Lazarus()
>>> gc.is_finalized(lazarus)
False
>>> del lazarus
>>> gc.is_finalized(x)
True | Returns ``True`` if the given object has been finalized by the garbage collector, ``False`` otherwise. ::
>>> x = None
>>> class Lazarus:
... def __del__(self):
... global x
... x = self
... >>> lazarus = Lazarus()
>>> gc.is_finalized(lazarus)
False
>>> del lazarus
>>> gc.is_finalized(x)
True | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2642d7e0-8dcc-4ba1-8752-dceea95a8e9e | CPython Docs | file://datasets/cpython/Doc/library/gc.rst | unknown | 1fe0607f-d1de-49f4-8e4b-fa885112b691 | 39,159 | supabase-export-v2 | 97f5b7351b846e8d | "candidates": When *phase* is "stop", the total number of objects in this generation which were considered for collection and traversed.
"duration": When *phase* is "stop", the time in seconds spent in the
collection. | trusted_official_docs | CPython Docs | "candidates": When *phase* is "stop", the total number of objects in this generation which were considered for collection and traversed.
"duration": When *phase* is "stop", the time in seconds spent in the
collection. | "candidates": When *phase* is "stop", the total number of objects in this generation which were considered for collection and traversed.
"duration": When *phase* is "stop", the time in seconds spent in the
collection. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2c0450d9-e8a9-40bd-bb94-b8248188ed19 | CPython Docs | file://datasets/cpython/Doc/library/gc.rst | unknown | 1fe0607f-d1de-49f4-8e4b-fa885112b691 | 39,146 | supabase-export-v2 | 66ecfbf0e9b5cc3b | with Python 3.4, this list should be empty most of the time, except when using instances of C extension types with a non-``NULL`` ``tp_del`` slot.
If :const:`DEBUG_SAVEALL` is set, then all unreachable objects will be
added to this list rather than freed. | trusted_official_docs | CPython Docs | with Python 3.4, this list should be empty most of the time, except when using instances of C extension types with a non-``NULL`` ``tp_del`` slot.
If :const:`DEBUG_SAVEALL` is set, then all unreachable objects will be
added to this list rather than freed. | with Python 3.4, this list should be empty most of the time, except when using instances of C extension types with a non-``NULL`` ``tp_del`` slot.
If :const:`DEBUG_SAVEALL` is set, then all unreachable objects will be
added to this list rather than freed. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
38ed7eab-e5d9-4510-8b0b-670b1c449ba3 | CPython Docs | file://datasets/cpython/Doc/library/gc.rst | unknown | 1fe0607f-d1de-49f4-8e4b-fa885112b691 | 39,162 | supabase-export-v2 | e215a2e17d0558a6 | Gathering statistics about garbage collection, such as how often various generations are collected, and how long the collection takes.
Allowing applications to identify and clear their own uncollectable
types when they appear in :data:`garbage`. | trusted_official_docs | CPython Docs | Gathering statistics about garbage collection, such as how often various generations are collected, and how long the collection takes.
Allowing applications to identify and clear their own uncollectable
types when they appear in :data:`garbage`. | Gathering statistics about garbage collection, such as how often various generations are collected, and how long the collection takes.
Allowing applications to identify and clear their own uncollectable
types when they appear in :data:`garbage`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
392c5b37-119c-468c-9301-2ddd4aaefdd2 | CPython Docs | file://datasets/cpython/Doc/library/gc.rst | unknown | 1fe0607f-d1de-49f4-8e4b-fa885112b691 | 39,158 | supabase-export-v2 | 170d4b01336ed22b | "uncollectable": When *phase* is "stop", the number of objects that could not be collected and were put in :data:`garbage`.
"candidates": When *phase* is "stop", the total number of objects in this
generation which were considered for collection and traversed. | trusted_official_docs | CPython Docs | "uncollectable": When *phase* is "stop", the number of objects that could not be collected and were put in :data:`garbage`.
"candidates": When *phase* is "stop", the total number of objects in this
generation which were considered for collection and traversed. | "uncollectable": When *phase* is "stop", the number of objects that could not be collected and were put in :data:`garbage`.
"candidates": When *phase* is "stop", the total number of objects in this
generation which were considered for collection and traversed. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3d027784-cada-42df-a5d3-97e469426a83 | CPython Docs | file://datasets/cpython/Doc/library/gc.rst | unknown | 1fe0607f-d1de-49f4-8e4b-fa885112b691 | 39,125 | supabase-export-v2 | a71998fb07ef3156 | .. function:: get_referents(*objs)
Return a list of objects directly referred to by any of the arguments. The
referents returned are those objects visited by the arguments' C-level
:c:member:`~PyTypeObject.tp_traverse` methods (if any), and may not be all objects actually
directly reachable. :c:member:`~PyTypeObject... | trusted_official_docs | CPython Docs | .. function:: get_referents(*objs)
Return a list of objects directly referred to by any of the arguments. The
referents returned are those objects visited by the arguments' C-level
:c:member:`~PyTypeObject.tp_traverse` methods (if any), and may not be all objects actually
directly reachable. :c:member:`~PyTypeObject... | .. function:: get_referents(*objs)
Return a list of objects directly referred to by any of the arguments. The
referents returned are those objects visited by the arguments' C-level
:c:member:`~PyTypeObject.tp_traverse` methods (if any), and may not be all objects actually
directly reachable. :c:member:`~PyTypeObject... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
403b1376-bbc8-43e6-a09f-326bb56dc1ab | CPython Docs | file://datasets/cpython/Doc/library/gc.rst | unknown | 1fe0607f-d1de-49f4-8e4b-fa885112b691 | 39,148 | supabase-export-v2 | 39bb92cf633f2ba8 | is non-empty at :term:`interpreter shutdown`, a :exc:`ResourceWarning` is emitted, which is silent by default. If :const:`DEBUG_UNCOLLECTABLE` is set, in addition all uncollectable objects are printed.
.. versionchanged:: 3.4
Following :pep:`442`, objects with a :meth:`~object.__del__` method don't end
up in :data:`g... | trusted_official_docs | CPython Docs | is non-empty at :term:`interpreter shutdown`, a :exc:`ResourceWarning` is emitted, which is silent by default. If :const:`DEBUG_UNCOLLECTABLE` is set, in addition all uncollectable objects are printed.
.. versionchanged:: 3.4
Following :pep:`442`, objects with a :meth:`~object.__del__` method don't end
up in :data:`g... | is non-empty at :term:`interpreter shutdown`, a :exc:`ResourceWarning` is emitted, which is silent by default. If :const:`DEBUG_UNCOLLECTABLE` is set, in addition all uncollectable objects are printed.
.. versionchanged:: 3.4
Following :pep:`442`, objects with a :meth:`~object.__del__` method don't end
up in :data:`g... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4620fb48-edd2-4c4d-8461-7d92efa2c462 | CPython Docs | file://datasets/cpython/Doc/library/gc.rst | unknown | 1fe0607f-d1de-49f4-8e4b-fa885112b691 | 39,157 | supabase-export-v2 | 40bf1f39d7ffd384 | "collected": When *phase* is "stop", the number of objects successfully collected.
"uncollectable": When *phase* is "stop", the number of objects
that could not be collected and were put in :data:`garbage`. | trusted_official_docs | CPython Docs | "collected": When *phase* is "stop", the number of objects successfully collected.
"uncollectable": When *phase* is "stop", the number of objects
that could not be collected and were put in :data:`garbage`. | "collected": When *phase* is "stop", the number of objects successfully collected.
"uncollectable": When *phase* is "stop", the number of objects
that could not be collected and were put in :data:`garbage`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
48391537-e077-4059-ae2c-b188ffeda74c | CPython Docs | file://datasets/cpython/Doc/library/gc.rst | unknown | 1fe0607f-d1de-49f4-8e4b-fa885112b691 | 39,085 | supabase-export-v2 | 1bfbef4e460001b0 | of the highest generation (2) is run. Not all items in some free lists may be freed due to the particular implementation, in particular :class:`float`.
The effect of calling ``gc.collect()`` while the interpreter is already
performing a collection is undefined. | trusted_official_docs | CPython Docs | of the highest generation (2) is run. Not all items in some free lists may be freed due to the particular implementation, in particular :class:`float`.
The effect of calling ``gc.collect()`` while the interpreter is already
performing a collection is undefined. | of the highest generation (2) is run. Not all items in some free lists may be freed due to the particular implementation, in particular :class:`float`.
The effect of calling ``gc.collect()`` while the interpreter is already
performing a collection is undefined. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4cd30a17-1134-4947-90c2-568c057d6064 | CPython Docs | file://datasets/cpython/Doc/library/gc.rst | unknown | 1fe0607f-d1de-49f4-8e4b-fa885112b691 | 39,161 | supabase-export-v2 | 94df48602ee082d9 | Applications can add their own callbacks to this list. The primary use cases are:
Gathering statistics about garbage collection, such as how often
various generations are collected, and how long the collection
takes. | trusted_official_docs | CPython Docs | Applications can add their own callbacks to this list. The primary use cases are:
Gathering statistics about garbage collection, such as how often
various generations are collected, and how long the collection
takes. | Applications can add their own callbacks to this list. The primary use cases are:
Gathering statistics about garbage collection, such as how often
various generations are collected, and how long the collection
takes. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
52684a3e-f9f5-4872-bdff-2294a45932dc | CPython Docs | file://datasets/cpython/Doc/library/gc.rst | unknown | 1fe0607f-d1de-49f4-8e4b-fa885112b691 | 39,121 | supabase-export-v2 | e6036aad7c68b261 | locate those containers which support garbage collection; extension types which do refer to other objects but do not support garbage collection will not be found.
Note that objects which have already been dereferenced, but which live in cycles
and have not yet been collected by the garbage collector can be listed amon... | trusted_official_docs | CPython Docs | locate those containers which support garbage collection; extension types which do refer to other objects but do not support garbage collection will not be found.
Note that objects which have already been dereferenced, but which live in cycles
and have not yet been collected by the garbage collector can be listed amon... | locate those containers which support garbage collection; extension types which do refer to other objects but do not support garbage collection will not be found.
Note that objects which have already been dereferenced, but which live in cycles
and have not yet been collected by the garbage collector can be listed amon... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5506cb48-ef03-4ab6-b505-618e6ef2e5db | CPython Docs | file://datasets/cpython/Doc/library/gc.rst | unknown | 1fe0607f-d1de-49f4-8e4b-fa885112b691 | 39,123 | supabase-export-v2 | 661d40406d5c1c21 | because some of them could still be under construction and hence in a temporarily invalid state. Avoid using :func:`get_referrers` for any purpose other than debugging.
.. audit-event:: gc.get_referrers objs gc.get_referrers | trusted_official_docs | CPython Docs | because some of them could still be under construction and hence in a temporarily invalid state. Avoid using :func:`get_referrers` for any purpose other than debugging.
.. audit-event:: gc.get_referrers objs gc.get_referrers | because some of them could still be under construction and hence in a temporarily invalid state. Avoid using :func:`get_referrers` for any purpose other than debugging.
.. audit-event:: gc.get_referrers objs gc.get_referrers | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
57777710-16d4-49ca-89de-54bb7495a309 | CPython Docs | file://datasets/cpython/Doc/library/gc.rst | unknown | 1fe0607f-d1de-49f4-8e4b-fa885112b691 | 39,089 | supabase-export-v2 | 335b323637e2acdc | .. function:: set_debug(flags)
Set the garbage collection debugging flags. Debugging information will be
written to ``sys.stderr``. See below for a list of debugging flags which can be
combined using bit operations to control debugging. | trusted_official_docs | CPython Docs | .. function:: set_debug(flags)
Set the garbage collection debugging flags. Debugging information will be
written to ``sys.stderr``. See below for a list of debugging flags which can be
combined using bit operations to control debugging. | .. function:: set_debug(flags)
Set the garbage collection debugging flags. Debugging information will be
written to ``sys.stderr``. See below for a list of debugging flags which can be
combined using bit operations to control debugging. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5dedbf78-f12f-4ab0-8e80-abdd992523c6 | CPython Docs | file://datasets/cpython/Doc/library/gc.rst | unknown | 1fe0607f-d1de-49f4-8e4b-fa885112b691 | 39,074 | supabase-export-v2 | 725a6f241e124f70 | --------------
This module provides an interface to the optional garbage collector. It
provides the ability to disable the collector, tune the collection frequency,
and set debugging options. It also provides access to unreachable objects that
the collector found but cannot free. Since the collector supplements the
ref... | trusted_official_docs | CPython Docs | --------------
This module provides an interface to the optional garbage collector. It
provides the ability to disable the collector, tune the collection frequency,
and set debugging options. It also provides access to unreachable objects that
the collector found but cannot free. Since the collector supplements the
ref... | --------------
This module provides an interface to the optional garbage collector. It
provides the ability to disable the collector, tune the collection frequency,
and set debugging options. It also provides access to unreachable objects that
the collector found but cannot free. Since the collector supplements the
ref... | python, official-docs, cpython, P0 | Local_Trusted_Corpus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.