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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4f34c69c-f38e-46c3-b7a5-cd4f23b5276b | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,167 | supabase-export-v2 | 00ebec832bdb5450 | the history buffer (or the "window size"), and what header and trailer format is expected. It has the same meaning as `described for decompress() <#decompress-wbits>`__.
The *zdict* parameter specifies a predefined compression dictionary. If
provided, this must be the same dictionary as was used by the compressor that... | trusted_official_docs | CPython Docs | the history buffer (or the "window size"), and what header and trailer format is expected. It has the same meaning as `described for decompress() <#decompress-wbits>`__.
The *zdict* parameter specifies a predefined compression dictionary. If
provided, this must be the same dictionary as was used by the compressor that... | the history buffer (or the "window size"), and what header and trailer format is expected. It has the same meaning as `described for decompress() <#decompress-wbits>`__.
The *zdict* parameter specifies a predefined compression dictionary. If
provided, this must be the same dictionary as was used by the compressor that... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
55b185a2-a1b8-4a30-abbf-98cb13bfb7a0 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,252 | supabase-export-v2 | f80e8c819e3166b6 | for building the module if zlib-ng was used. When present, the :data:`ZLIB_VERSION` and :data:`ZLIB_RUNTIME_VERSION` constants reflect the version of the zlib API provided by zlib-ng.
If zlib-ng was not used to build the module, this constant will be absent. | trusted_official_docs | CPython Docs | for building the module if zlib-ng was used. When present, the :data:`ZLIB_VERSION` and :data:`ZLIB_RUNTIME_VERSION` constants reflect the version of the zlib API provided by zlib-ng.
If zlib-ng was not used to build the module, this constant will be absent. | for building the module if zlib-ng was used. When present, the :data:`ZLIB_VERSION` and :data:`ZLIB_RUNTIME_VERSION` constants reflect the version of the zlib API provided by zlib-ng.
If zlib-ng was not used to build the module, this constant will be absent. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5763809a-c4ff-4b0b-800d-8ea16a7ef0e1 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,127 | supabase-export-v2 | c7e5d1b9e376ff9d | .. _compress-wbits:
The *wbits* argument controls the size of the history buffer (or the
"window size") used when compressing data, and whether a header and
trailer is included in the output. It can take several ranges of values,
defaulting to ``15`` (:const:`MAX_WBITS`): | trusted_official_docs | CPython Docs | .. _compress-wbits:
The *wbits* argument controls the size of the history buffer (or the
"window size") used when compressing data, and whether a header and
trailer is included in the output. It can take several ranges of values,
defaulting to ``15`` (:const:`MAX_WBITS`): | .. _compress-wbits:
The *wbits* argument controls the size of the history buffer (or the
"window size") used when compressing data, and whether a header and
trailer is included in the output. It can take several ranges of values,
defaulting to ``15`` (:const:`MAX_WBITS`): | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5fb01f5b-1bd0-4590-9033-13207b879b87 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,150 | supabase-export-v2 | bab7246a532dff7f | of a sequence ``A`` and the CRC-32 checksum *crc2* of a sequence ``B`` of length *len2*, return the CRC-32 checksum of ``A`` and ``B`` concatenated.
This function is typically useful to combine CRC-32 checksums
that were concurrently computed. To compute checksums sequentially, use
:func:`crc32` with the running chec... | trusted_official_docs | CPython Docs | of a sequence ``A`` and the CRC-32 checksum *crc2* of a sequence ``B`` of length *len2*, return the CRC-32 checksum of ``A`` and ``B`` concatenated.
This function is typically useful to combine CRC-32 checksums
that were concurrently computed. To compute checksums sequentially, use
:func:`crc32` with the running chec... | of a sequence ``A`` and the CRC-32 checksum *crc2* of a sequence ``B`` of length *len2*, return the CRC-32 checksum of ``A`` and ``B`` concatenated.
This function is typically useful to combine CRC-32 checksums
that were concurrently computed. To compute checksums sequentially, use
:func:`crc32` with the running chec... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
657c01a3-ac16-47cf-bbb8-d7c524d9db28 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,156 | supabase-export-v2 | cd45e465a1bb0e5c | (or "window size"), and what header and trailer format is expected. It is similar to the parameter for :func:`compressobj`, but accepts more ranges of values:
* +8 to +15: The base-two logarithm of the window size. The input
must include a zlib header and trailer. | trusted_official_docs | CPython Docs | (or "window size"), and what header and trailer format is expected. It is similar to the parameter for :func:`compressobj`, but accepts more ranges of values:
* +8 to +15: The base-two logarithm of the window size. The input
must include a zlib header and trailer. | (or "window size"), and what header and trailer format is expected. It is similar to the parameter for :func:`compressobj`, but accepts more ranges of values:
* +8 to +15: The base-two logarithm of the window size. The input
must include a zlib header and trailer. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
674ff133-76f7-4c94-81c1-4f0b8d7183f8 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,129 | supabase-export-v2 | 6efc401b3ac67ce7 | 512 and 32768. Larger values produce better compression at the expense of greater memory usage. The resulting output will include a zlib-specific header and trailer.
* −9 to −15: Uses the absolute value of *wbits* as the
window size logarithm, while producing a raw output stream with no
header or trailing checksum. | trusted_official_docs | CPython Docs | 512 and 32768. Larger values produce better compression at the expense of greater memory usage. The resulting output will include a zlib-specific header and trailer.
* −9 to −15: Uses the absolute value of *wbits* as the
window size logarithm, while producing a raw output stream with no
header or trailing checksum. | 512 and 32768. Larger values produce better compression at the expense of greater memory usage. The resulting output will include a zlib-specific header and trailer.
* −9 to −15: Uses the absolute value of *wbits* as the
window size logarithm, while producing a raw output stream with no
header or trailing checksum. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6f27b8a1-9660-4198-9c42-72719ba46fda | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,163 | supabase-export-v2 | 93612efc4b9fa192 | will be increased as needed, so you don't have to get this value exactly right; tuning it will only save a few calls to :c:func:`malloc`.
.. versionchanged:: 3.6
*wbits* and *bufsize* can be used as keyword arguments. | trusted_official_docs | CPython Docs | will be increased as needed, so you don't have to get this value exactly right; tuning it will only save a few calls to :c:func:`malloc`.
.. versionchanged:: 3.6
*wbits* and *bufsize* can be used as keyword arguments. | will be increased as needed, so you don't have to get this value exactly right; tuning it will only save a few calls to :c:func:`malloc`.
.. versionchanged:: 3.6
*wbits* and *bufsize* can be used as keyword arguments. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7266e686-60cd-41be-9310-76459ba3f642 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,161 | supabase-export-v2 | 23a5b60656f4702a | (8 to 15): Uses the low 4 bits of the value as the window size logarithm, and automatically accepts either the zlib or gzip format.
When decompressing a stream, the window size must not be smaller
than the size originally used to compress the stream; using a too-small
value may result in an :exc:`error` exception. Th... | trusted_official_docs | CPython Docs | (8 to 15): Uses the low 4 bits of the value as the window size logarithm, and automatically accepts either the zlib or gzip format.
When decompressing a stream, the window size must not be smaller
than the size originally used to compress the stream; using a too-small
value may result in an :exc:`error` exception. Th... | (8 to 15): Uses the low 4 bits of the value as the window size logarithm, and automatically accepts either the zlib or gzip format.
When decompressing a stream, the window size must not be smaller
than the size originally used to compress the stream; using a too-small
value may result in an :exc:`error` exception. Th... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7925698a-6726-4f1c-9af0-4edea051f37d | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,247 | supabase-export-v2 | c0b9a20056655698 | .. data:: ZLIB_VERSION
The version string of the zlib library that was used for building the module. This may be different from the zlib library actually used at runtime, which
is available as :const:`ZLIB_RUNTIME_VERSION`. | trusted_official_docs | CPython Docs | .. data:: ZLIB_VERSION
The version string of the zlib library that was used for building the module. This may be different from the zlib library actually used at runtime, which
is available as :const:`ZLIB_RUNTIME_VERSION`. | .. data:: ZLIB_VERSION
The version string of the zlib library that was used for building the module. This may be different from the zlib library actually used at runtime, which
is available as :const:`ZLIB_RUNTIME_VERSION`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7b56bae3-8932-46db-bac1-1807ba49fffa | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,117 | supabase-export-v2 | 93cbcaa9da92ab50 | .. function:: adler32(data[, value])
Computes an Adler-32 checksum of *data*. (An Adler-32 checksum is almost as
reliable as a CRC32 but can be computed much more quickly.) The result
is an unsigned 32-bit integer. If *value* is present, it is used as
the starting value of the checksum; otherwise, a default value of... | trusted_official_docs | CPython Docs | .. function:: adler32(data[, value])
Computes an Adler-32 checksum of *data*. (An Adler-32 checksum is almost as
reliable as a CRC32 but can be computed much more quickly.) The result
is an unsigned 32-bit integer. If *value* is present, it is used as
the starting value of the checksum; otherwise, a default value of... | .. function:: adler32(data[, value])
Computes an Adler-32 checksum of *data*. (An Adler-32 checksum is almost as
reliable as a CRC32 but can be computed much more quickly.) The result
is an unsigned 32-bit integer. If *value* is present, it is used as
the starting value of the checksum; otherwise, a default value of... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
80082c3d-9a36-4a07-9923-90969b738a09 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,128 | supabase-export-v2 | 8ff7c3c1cb10ab7a | when compressing data, and whether a header and trailer is included in the output. It can take several ranges of values, defaulting to ``15`` (:const:`MAX_WBITS`):
* +9 to +15: The base-two logarithm of the window size, which
therefore ranges between 512 and 32768. Larger values produce
better compression at the expe... | trusted_official_docs | CPython Docs | when compressing data, and whether a header and trailer is included in the output. It can take several ranges of values, defaulting to ``15`` (:const:`MAX_WBITS`):
* +9 to +15: The base-two logarithm of the window size, which
therefore ranges between 512 and 32768. Larger values produce
better compression at the expe... | when compressing data, and whether a header and trailer is included in the output. It can take several ranges of values, defaulting to ``15`` (:const:`MAX_WBITS`):
* +9 to +15: The base-two logarithm of the window size, which
therefore ranges between 512 and 32768. Larger values produce
better compression at the expe... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
92e58e1a-6b79-46da-b734-a3cbf1b5b379 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,198 | supabase-export-v2 | ae783d53ea8d3679 | save the state of the decompressor midway through the data stream in order to speed up random seeks into the stream at a future point.
.. versionchanged:: 3.8
Added :func:`copy.copy` and :func:`copy.deepcopy` support to decompression
objects. | trusted_official_docs | CPython Docs | save the state of the decompressor midway through the data stream in order to speed up random seeks into the stream at a future point.
.. versionchanged:: 3.8
Added :func:`copy.copy` and :func:`copy.deepcopy` support to decompression
objects. | save the state of the decompressor midway through the data stream in order to speed up random seeks into the stream at a future point.
.. versionchanged:: 3.8
Added :func:`copy.copy` and :func:`copy.deepcopy` support to decompression
objects. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
940f3878-e176-4837-aad5-7f33483ade7f | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,159 | supabase-export-v2 | d3f6223982bee427 | to −15: Uses the absolute value of *wbits* as the window size logarithm. The input must be a raw stream with no header or trailer.
* +24 to +31 = 16 + (8 to 15): Uses the low 4 bits of the value as
the window size logarithm. The input must include a gzip header and
trailer. | trusted_official_docs | CPython Docs | to −15: Uses the absolute value of *wbits* as the window size logarithm. The input must be a raw stream with no header or trailer.
* +24 to +31 = 16 + (8 to 15): Uses the low 4 bits of the value as
the window size logarithm. The input must include a gzip header and
trailer. | to −15: Uses the absolute value of *wbits* as the window size logarithm. The input must be a raw stream with no header or trailer.
* +24 to +31 = 16 + (8 to 15): Uses the low 4 bits of the value as
the window size logarithm. The input must include a gzip header and
trailer. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9b449f6b-8a48-4bf6-ac9d-30d6401d1deb | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,112 | supabase-export-v2 | 3bcd152ae02ea01f | to be used in a particular order. This documentation doesn't attempt to cover all of the permutations; consult the `zlib manual <https://www.zlib.net/manual.html>`_ for authoritative information.
For reading and writing ``.gz`` files see the :mod:`gzip` module. | trusted_official_docs | CPython Docs | to be used in a particular order. This documentation doesn't attempt to cover all of the permutations; consult the `zlib manual <https://www.zlib.net/manual.html>`_ for authoritative information.
For reading and writing ``.gz`` files see the :mod:`gzip` module. | to be used in a particular order. This documentation doesn't attempt to cover all of the permutations; consult the `zlib manual <https://www.zlib.net/manual.html>`_ for authoritative information.
For reading and writing ``.gz`` files see the :mod:`gzip` module. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9b6b51a5-d921-4b52-a494-6dd92fc4e5b2 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,181 | supabase-export-v2 | bb6c980b35197b76 | .. attribute:: Decompress.unused_data
A bytes object which contains any bytes past the end of the compressed data. That is,
this remains ``b""`` until the last byte that contains compression data is
available. If the whole bytestring turned out to contain compressed data, this is
``b""``, an empty bytes object. | trusted_official_docs | CPython Docs | .. attribute:: Decompress.unused_data
A bytes object which contains any bytes past the end of the compressed data. That is,
this remains ``b""`` until the last byte that contains compression data is
available. If the whole bytestring turned out to contain compressed data, this is
``b""``, an empty bytes object. | .. attribute:: Decompress.unused_data
A bytes object which contains any bytes past the end of the compressed data. That is,
this remains ``b""`` until the last byte that contains compression data is
available. If the whole bytestring turned out to contain compressed data, this is
``b""``, an empty bytes object. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9eebb4d2-a2e4-4f33-b895-6a228791212f | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,141 | supabase-export-v2 | 06e1fe5b79c4539f | *strategy* is used to tune the compression algorithm. Possible values are :const:`Z_DEFAULT_STRATEGY`, :const:`Z_FILTERED`, :const:`Z_HUFFMAN_ONLY`, :const:`Z_RLE` and :const:`Z_FIXED`.
*zdict* is a predefined compression dictionary. This is a sequence of bytes
(such as a :class:`bytes` object) containing subsequences... | trusted_official_docs | CPython Docs | *strategy* is used to tune the compression algorithm. Possible values are :const:`Z_DEFAULT_STRATEGY`, :const:`Z_FILTERED`, :const:`Z_HUFFMAN_ONLY`, :const:`Z_RLE` and :const:`Z_FIXED`.
*zdict* is a predefined compression dictionary. This is a sequence of bytes
(such as a :class:`bytes` object) containing subsequences... | *strategy* is used to tune the compression algorithm. Possible values are :const:`Z_DEFAULT_STRATEGY`, :const:`Z_FILTERED`, :const:`Z_HUFFMAN_ONLY`, :const:`Z_RLE` and :const:`Z_FIXED`.
*zdict* is a predefined compression dictionary. This is a sequence of bytes
(such as a :class:`bytes` object) containing subsequences... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a12bc62a-265b-4850-8708-03419b1eb604 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,153 | supabase-export-v2 | 8e5721e2cfbca65b | .. function:: decompress(data, /, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)
Decompresses the bytes in *data*, returning a bytes object containing the
uncompressed data. The *wbits* parameter depends on
the format of *data*, and is discussed further below. If *bufsize* is given, it is used as the initial size of the outp... | trusted_official_docs | CPython Docs | .. function:: decompress(data, /, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)
Decompresses the bytes in *data*, returning a bytes object containing the
uncompressed data. The *wbits* parameter depends on
the format of *data*, and is discussed further below. If *bufsize* is given, it is used as the initial size of the outp... | .. function:: decompress(data, /, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)
Decompresses the bytes in *data*, returning a bytes object containing the
uncompressed data. The *wbits* parameter depends on
the format of *data*, and is discussed further below. If *bufsize* is given, it is used as the initial size of the outp... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a1f42750-55bd-47c4-aaef-f7dd21ae858f | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,189 | supabase-export-v2 | 5afbd0e5bdd114c9 | .. method:: Decompress.decompress(data, max_length=0)
Decompress *data*, returning a bytes object containing the uncompressed data
corresponding to at least part of the data in *string*. This data should be
concatenated to the output produced by any preceding calls to the
:meth:`decompress` method. Some of the input... | trusted_official_docs | CPython Docs | .. method:: Decompress.decompress(data, max_length=0)
Decompress *data*, returning a bytes object containing the uncompressed data
corresponding to at least part of the data in *string*. This data should be
concatenated to the output produced by any preceding calls to the
:meth:`decompress` method. Some of the input... | .. method:: Decompress.decompress(data, max_length=0)
Decompress *data*, returning a bytes object containing the uncompressed data
corresponding to at least part of the data in *string*. This data should be
concatenated to the output produced by any preceding calls to the
:meth:`decompress` method. Some of the input... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a6ca3b42-73ce-4fce-a429-799b1f2df981 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,186 | supabase-export-v2 | cd5a35989da42c34 | A boolean indicating whether the end of the compressed data stream has been reached.
This makes it possible to distinguish between a properly formed compressed
stream, and an incomplete or truncated one. | trusted_official_docs | CPython Docs | A boolean indicating whether the end of the compressed data stream has been reached.
This makes it possible to distinguish between a properly formed compressed
stream, and an incomplete or truncated one. | A boolean indicating whether the end of the compressed data stream has been reached.
This makes it possible to distinguish between a properly formed compressed
stream, and an incomplete or truncated one. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a88603e1-d43b-4828-8e1a-b097ffe1d461 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,257 | supabase-export-v2 | d13a0703592de557 | https://www.zlib.net/manual.html The zlib manual explains the semantics and usage of the library's many functions.
In case gzip (de)compression is a bottleneck, the `python-isal`_
package speeds up (de)compression with a mostly compatible API. | trusted_official_docs | CPython Docs | https://www.zlib.net/manual.html The zlib manual explains the semantics and usage of the library's many functions.
In case gzip (de)compression is a bottleneck, the `python-isal`_
package speeds up (de)compression with a mostly compatible API. | https://www.zlib.net/manual.html The zlib manual explains the semantics and usage of the library's many functions.
In case gzip (de)compression is a bottleneck, the `python-isal`_
package speeds up (de)compression with a mostly compatible API. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a8d923da-42fc-4c39-b979-83cd404b0cec | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,136 | supabase-export-v2 | 34197ce7e3d323b9 | Returns a compression object, to be used for compressing data streams that won't fit into memory at once.
*level* is the compression level -- an integer from ``0`` to ``9`` or ``-1``. See :const:`Z_BEST_SPEED` (``1``), :const:`Z_BEST_COMPRESSION` (``9``),
:const:`Z_NO_COMPRESSION` (``0``), and the default,
:const:`Z_... | trusted_official_docs | CPython Docs | Returns a compression object, to be used for compressing data streams that won't fit into memory at once.
*level* is the compression level -- an integer from ``0`` to ``9`` or ``-1``. See :const:`Z_BEST_SPEED` (``1``), :const:`Z_BEST_COMPRESSION` (``9``),
:const:`Z_NO_COMPRESSION` (``0``), and the default,
:const:`Z_... | Returns a compression object, to be used for compressing data streams that won't fit into memory at once.
*level* is the compression level -- an integer from ``0`` to ``9`` or ``-1``. See :const:`Z_BEST_SPEED` (``1``), :const:`Z_BEST_COMPRESSION` (``9``),
:const:`Z_NO_COMPRESSION` (``0``), and the default,
:const:`Z_... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a9004420-425a-4126-9348-ccd05bc51635 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,175 | supabase-export-v2 | 02dd42327730b078 | .. method:: Compress.flush([mode])
All pending input is processed, and a bytes object containing the remaining compressed
output is returned. *mode* can be selected from the constants
:const:`Z_NO_FLUSH`, :const:`Z_PARTIAL_FLUSH`, :const:`Z_SYNC_FLUSH`,
:const:`Z_FULL_FLUSH`, :const:`Z_BLOCK`, or :const:`Z_FINISH`,
... | trusted_official_docs | CPython Docs | .. method:: Compress.flush([mode])
All pending input is processed, and a bytes object containing the remaining compressed
output is returned. *mode* can be selected from the constants
:const:`Z_NO_FLUSH`, :const:`Z_PARTIAL_FLUSH`, :const:`Z_SYNC_FLUSH`,
:const:`Z_FULL_FLUSH`, :const:`Z_BLOCK`, or :const:`Z_FINISH`,
... | .. method:: Compress.flush([mode])
All pending input is processed, and a bytes object containing the remaining compressed
output is returned. *mode* can be selected from the constants
:const:`Z_NO_FLUSH`, :const:`Z_PARTIAL_FLUSH`, :const:`Z_SYNC_FLUSH`,
:const:`Z_FULL_FLUSH`, :const:`Z_BLOCK`, or :const:`Z_FINISH`,
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b18b296b-b904-49fd-8776-f8b54729a5cd | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,137 | supabase-export-v2 | 620597ec405c7490 | integer from ``0`` to ``9`` or ``-1``. See :const:`Z_BEST_SPEED` (``1``), :const:`Z_BEST_COMPRESSION` (``9``), :const:`Z_NO_COMPRESSION` (``0``), and the default, :const:`Z_DEFAULT_COMPRESSION` (``-1``) for more information about these values.
*method* is the compression algorithm. Currently, the only supported value i... | trusted_official_docs | CPython Docs | integer from ``0`` to ``9`` or ``-1``. See :const:`Z_BEST_SPEED` (``1``), :const:`Z_BEST_COMPRESSION` (``9``), :const:`Z_NO_COMPRESSION` (``0``), and the default, :const:`Z_DEFAULT_COMPRESSION` (``-1``) for more information about these values.
*method* is the compression algorithm. Currently, the only supported value i... | integer from ``0`` to ``9`` or ``-1``. See :const:`Z_BEST_SPEED` (``1``), :const:`Z_BEST_COMPRESSION` (``9``), :const:`Z_NO_COMPRESSION` (``0``), and the default, :const:`Z_DEFAULT_COMPRESSION` (``-1``) for more information about these values.
*method* is the compression algorithm. Currently, the only supported value i... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bad41afb-5c98-46f0-acd6-f14461e2ea67 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,157 | supabase-export-v2 | f2351a6c555d6b54 | * +8 to +15: The base-two logarithm of the window size. The input must include a zlib header and trailer.
* 0: Automatically determine the window size from the zlib header. Only supported since zlib 1.2.3.5. | trusted_official_docs | CPython Docs | * +8 to +15: The base-two logarithm of the window size. The input must include a zlib header and trailer.
* 0: Automatically determine the window size from the zlib header. Only supported since zlib 1.2.3.5. | * +8 to +15: The base-two logarithm of the window size. The input must include a zlib header and trailer.
* 0: Automatically determine the window size from the zlib header. Only supported since zlib 1.2.3.5. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bb60412b-9c05-4caf-91d4-5b87175fdae6 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,173 | supabase-export-v2 | f24ad1db202f8737 | .. method:: Compress.compress(data)
Compress *data*, returning a bytes object containing compressed data for at least
part of the data in *data*. This data should be concatenated to the output
produced by any preceding calls to the :meth:`compress` method. Some input may
be kept in internal buffers for later process... | trusted_official_docs | CPython Docs | .. method:: Compress.compress(data)
Compress *data*, returning a bytes object containing compressed data for at least
part of the data in *data*. This data should be concatenated to the output
produced by any preceding calls to the :meth:`compress` method. Some input may
be kept in internal buffers for later process... | .. method:: Compress.compress(data)
Compress *data*, returning a bytes object containing compressed data for at least
part of the data in *data*. This data should be concatenated to the output
produced by any preceding calls to the :meth:`compress` method. Some input may
be kept in internal buffers for later process... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
be6e2b4e-3648-4496-942e-a5f458f3bdbd | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,122 | supabase-export-v2 | 1dc7af05dddbda94 | of a sequence ``A`` and the Adler-32 checksum *adler2* of a sequence ``B`` of length *len2*, return the Adler-32 checksum of ``A`` and ``B`` concatenated.
This function is typically useful to combine Adler-32 checksums
that were concurrently computed. To compute checksums sequentially, use
:func:`adler32` with the ru... | trusted_official_docs | CPython Docs | of a sequence ``A`` and the Adler-32 checksum *adler2* of a sequence ``B`` of length *len2*, return the Adler-32 checksum of ``A`` and ``B`` concatenated.
This function is typically useful to combine Adler-32 checksums
that were concurrently computed. To compute checksums sequentially, use
:func:`adler32` with the ru... | of a sequence ``A`` and the Adler-32 checksum *adler2* of a sequence ``B`` of length *len2*, return the Adler-32 checksum of ``A`` and ``B`` concatenated.
This function is typically useful to combine Adler-32 checksums
that were concurrently computed. To compute checksums sequentially, use
:func:`adler32` with the ru... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c48a3327-d1b3-4f96-b59c-f7dd2107940d | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,121 | supabase-export-v2 | 70c55833dd2d07a3 | Combine two Adler-32 checksums into one.
Given the Adler-32 checksum *adler1* of a sequence ``A`` and the
Adler-32 checksum *adler2* of a sequence ``B`` of length *len2*,
return the Adler-32 checksum of ``A`` and ``B`` concatenated. | trusted_official_docs | CPython Docs | Combine two Adler-32 checksums into one.
Given the Adler-32 checksum *adler1* of a sequence ``A`` and the
Adler-32 checksum *adler2* of a sequence ``B`` of length *len2*,
return the Adler-32 checksum of ``A`` and ``B`` concatenated. | Combine two Adler-32 checksums into one.
Given the Adler-32 checksum *adler1* of a sequence ``A`` and the
Adler-32 checksum *adler2* of a sequence ``B`` of length *len2*,
return the Adler-32 checksum of ``A`` and ``B`` concatenated. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c4e5d0c8-d6e3-4d88-8e39-6f1316f3efc8 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,195 | supabase-export-v2 | 331c0747d0179cfb | the remaining uncompressed output is returned. After calling :meth:`flush`, the :meth:`decompress` method cannot be called again; the only realistic action is to delete the object.
The optional parameter *length* sets the initial size of the output buffer. | trusted_official_docs | CPython Docs | the remaining uncompressed output is returned. After calling :meth:`flush`, the :meth:`decompress` method cannot be called again; the only realistic action is to delete the object.
The optional parameter *length* sets the initial size of the output buffer. | the remaining uncompressed output is returned. After calling :meth:`flush`, the :meth:`decompress` method cannot be called again; the only realistic action is to delete the object.
The optional parameter *length* sets the initial size of the output buffer. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ca544688-fefe-44c1-964c-6473cbb45625 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,166 | supabase-export-v2 | acddc2a145c5cc23 | Returns a decompression object, to be used for decompressing data streams that won't fit into memory at once.
The *wbits* parameter controls the size of the history buffer (or the
"window size"), and what header and trailer format is expected. It has
the same meaning as `described for decompress() <#decompress-wbits>... | trusted_official_docs | CPython Docs | Returns a decompression object, to be used for decompressing data streams that won't fit into memory at once.
The *wbits* parameter controls the size of the history buffer (or the
"window size"), and what header and trailer format is expected. It has
the same meaning as `described for decompress() <#decompress-wbits>... | Returns a decompression object, to be used for decompressing data streams that won't fit into memory at once.
The *wbits* parameter controls the size of the history buffer (or the
"window size"), and what header and trailer format is expected. It has
the same meaning as `described for decompress() <#decompress-wbits>... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cb09f290-21f3-4d8f-856c-226ce3c066e2 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,162 | supabase-export-v2 | d1a8d285215a049e | result in an :exc:`error` exception. The default *wbits* value corresponds to the largest window size and requires a zlib header and trailer to be included.
*bufsize* is the initial size of the buffer used to hold decompressed data. If
more space is required, the buffer size will be increased as needed, so you
don't ... | trusted_official_docs | CPython Docs | result in an :exc:`error` exception. The default *wbits* value corresponds to the largest window size and requires a zlib header and trailer to be included.
*bufsize* is the initial size of the buffer used to hold decompressed data. If
more space is required, the buffer size will be increased as needed, so you
don't ... | result in an :exc:`error` exception. The default *wbits* value corresponds to the largest window size and requires a zlib header and trailer to be included.
*bufsize* is the initial size of the buffer used to hold decompressed data. If
more space is required, the buffer size will be increased as needed, so you
don't ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cd6d602b-04f6-4efd-9b4e-c4c09f45bf9c | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,158 | supabase-export-v2 | 11e44751616769aa | * 0: Automatically determine the window size from the zlib header. Only supported since zlib 1.2.3.5.
* −8 to −15: Uses the absolute value of *wbits* as the window size
logarithm. The input must be a raw stream with no header or trailer. | trusted_official_docs | CPython Docs | * 0: Automatically determine the window size from the zlib header. Only supported since zlib 1.2.3.5.
* −8 to −15: Uses the absolute value of *wbits* as the window size
logarithm. The input must be a raw stream with no header or trailer. | * 0: Automatically determine the window size from the zlib header. Only supported since zlib 1.2.3.5.
* −8 to −15: Uses the absolute value of *wbits* as the window size
logarithm. The input must be a raw stream with no header or trailer. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d7dec10b-b2e7-4d98-982b-671bec59b9af | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,142 | supabase-export-v2 | ee35af55dc49639d | in the data that is to be compressed. Those subsequences that are expected to be most common should come at the end of the dictionary.
.. versionchanged:: 3.3
Added the *zdict* parameter and keyword argument support. | trusted_official_docs | CPython Docs | in the data that is to be compressed. Those subsequences that are expected to be most common should come at the end of the dictionary.
.. versionchanged:: 3.3
Added the *zdict* parameter and keyword argument support. | in the data that is to be compressed. Those subsequences that are expected to be most common should come at the end of the dictionary.
.. versionchanged:: 3.3
Added the *zdict* parameter and keyword argument support. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
de0aa6d6-55bb-4795-b78a-68a71592d4b1 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,125 | supabase-export-v2 | 16c9b2a2ee01db5e | .. function:: compress(data, /, level=Z_DEFAULT_COMPRESSION, wbits=MAX_WBITS)
Compresses the bytes in *data*, returning a bytes object containing compressed data. *level* is an integer from ``0`` to ``9`` or ``-1`` controlling the level of compression;
See :const:`Z_BEST_SPEED` (``1``), :const:`Z_BEST_COMPRESSION` (``... | trusted_official_docs | CPython Docs | .. function:: compress(data, /, level=Z_DEFAULT_COMPRESSION, wbits=MAX_WBITS)
Compresses the bytes in *data*, returning a bytes object containing compressed data. *level* is an integer from ``0`` to ``9`` or ``-1`` controlling the level of compression;
See :const:`Z_BEST_SPEED` (``1``), :const:`Z_BEST_COMPRESSION` (``... | .. function:: compress(data, /, level=Z_DEFAULT_COMPRESSION, wbits=MAX_WBITS)
Compresses the bytes in *data*, returning a bytes object containing compressed data. *level* is an integer from ``0`` to ``9`` or ``-1`` controlling the level of compression;
See :const:`Z_BEST_SPEED` (``1``), :const:`Z_BEST_COMPRESSION` (``... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e668d94d-7001-43b9-9072-fc811f89b51f | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,139 | supabase-export-v2 | 41faa9a38c61b186 | history buffer (or the "window size"), and what header and trailer format will be used. It has the same meaning as `described for compress() <#compress-wbits>`__.
The *memLevel* argument controls the amount of memory used for the
internal compression state. Valid values range from ``1`` to ``9``. Higher values use mor... | trusted_official_docs | CPython Docs | history buffer (or the "window size"), and what header and trailer format will be used. It has the same meaning as `described for compress() <#compress-wbits>`__.
The *memLevel* argument controls the amount of memory used for the
internal compression state. Valid values range from ``1`` to ``9``. Higher values use mor... | history buffer (or the "window size"), and what header and trailer format will be used. It has the same meaning as `described for compress() <#compress-wbits>`__.
The *memLevel* argument controls the amount of memory used for the
internal compression state. Valid values range from ``1`` to ``9``. Higher values use mor... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e8c4c67f-7a57-442f-bb40-fb4b18c20399 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,243 | supabase-export-v2 | 3d9649ff386ba7ab | Flush mode ``6``, for inflate operations. Instructs inflate to return when it gets to the next deflate block boundary.
This constant is only available if Python was compiled with zlib
1.2.3.4 or greater. | trusted_official_docs | CPython Docs | Flush mode ``6``, for inflate operations. Instructs inflate to return when it gets to the next deflate block boundary.
This constant is only available if Python was compiled with zlib
1.2.3.4 or greater. | Flush mode ``6``, for inflate operations. Instructs inflate to return when it gets to the next deflate block boundary.
This constant is only available if Python was compiled with zlib
1.2.3.4 or greater. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
eb387196-99f0-411d-aeee-335fa0904553 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,140 | supabase-export-v2 | cc46503a01771528 | used for the internal compression state. Valid values range from ``1`` to ``9``. Higher values use more memory, but are faster and produce smaller output.
*strategy* is used to tune the compression algorithm. Possible values are
:const:`Z_DEFAULT_STRATEGY`, :const:`Z_FILTERED`, :const:`Z_HUFFMAN_ONLY`,
:const:`Z_RLE`... | trusted_official_docs | CPython Docs | used for the internal compression state. Valid values range from ``1`` to ``9``. Higher values use more memory, but are faster and produce smaller output.
*strategy* is used to tune the compression algorithm. Possible values are
:const:`Z_DEFAULT_STRATEGY`, :const:`Z_FILTERED`, :const:`Z_HUFFMAN_ONLY`,
:const:`Z_RLE`... | used for the internal compression state. Valid values range from ``1`` to ``9``. Higher values use more memory, but are faster and produce smaller output.
*strategy* is used to tune the compression algorithm. Possible values are
:const:`Z_DEFAULT_STRATEGY`, :const:`Z_FILTERED`, :const:`Z_HUFFMAN_ONLY`,
:const:`Z_RLE`... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
eb460552-79fe-474c-890b-fbccb3046305 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,194 | supabase-export-v2 | 68d5321c58d6b3e0 | .. method:: Decompress.flush([length])
All pending input is processed, and a bytes object containing the remaining
uncompressed output is returned. After calling :meth:`flush`, the
:meth:`decompress` method cannot be called again; the only realistic action is
to delete the object. | trusted_official_docs | CPython Docs | .. method:: Decompress.flush([length])
All pending input is processed, and a bytes object containing the remaining
uncompressed output is returned. After calling :meth:`flush`, the
:meth:`decompress` method cannot be called again; the only realistic action is
to delete the object. | .. method:: Decompress.flush([length])
All pending input is processed, and a bytes object containing the remaining
uncompressed output is returned. After calling :meth:`flush`, the
:meth:`decompress` method cannot be called again; the only realistic action is
to delete the object. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
eb54e2ce-4133-4dec-ba0b-dc15b422712f | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,183 | supabase-export-v2 | 6de7259b1fd6b6a1 | .. attribute:: Decompress.unconsumed_tail
A bytes object that contains any data that was not consumed by the last
:meth:`decompress` call because it exceeded the limit for the uncompressed data
buffer. This data has not yet been seen by the zlib machinery, so you must feed
it (possibly with further data concatenated... | trusted_official_docs | CPython Docs | .. attribute:: Decompress.unconsumed_tail
A bytes object that contains any data that was not consumed by the last
:meth:`decompress` call because it exceeded the limit for the uncompressed data
buffer. This data has not yet been seen by the zlib machinery, so you must feed
it (possibly with further data concatenated... | .. attribute:: Decompress.unconsumed_tail
A bytes object that contains any data that was not consumed by the last
:meth:`decompress` call because it exceeded the limit for the uncompressed data
buffer. This data has not yet been seen by the zlib machinery, so you must feed
it (possibly with further data concatenated... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f6e52742-d15e-4d7e-9f17-c6ef9e3da584 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,190 | supabase-export-v2 | 8c598456f8f9e7fe | the output produced by any preceding calls to the :meth:`decompress` method. Some of the input data may be preserved in internal buffers for later processing.
If the optional parameter *max_length* is non-zero then the return value will be
no longer than *max_length*. This may mean that not all of the compressed input... | trusted_official_docs | CPython Docs | the output produced by any preceding calls to the :meth:`decompress` method. Some of the input data may be preserved in internal buffers for later processing.
If the optional parameter *max_length* is non-zero then the return value will be
no longer than *max_length*. This may mean that not all of the compressed input... | the output produced by any preceding calls to the :meth:`decompress` method. Some of the input data may be preserved in internal buffers for later processing.
If the optional parameter *max_length* is non-zero then the return value will be
no longer than *max_length*. This may mean that not all of the compressed input... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f7a947c9-46ba-485c-be3b-4b53b64e1032 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,149 | supabase-export-v2 | 83d9ee7fb54c063f | Combine two CRC-32 checksums into one.
Given the CRC-32 checksum *crc1* of a sequence ``A`` and the
CRC-32 checksum *crc2* of a sequence ``B`` of length *len2*,
return the CRC-32 checksum of ``A`` and ``B`` concatenated. | trusted_official_docs | CPython Docs | Combine two CRC-32 checksums into one.
Given the CRC-32 checksum *crc1* of a sequence ``A`` and the
CRC-32 checksum *crc2* of a sequence ``B`` of length *len2*,
return the CRC-32 checksum of ``A`` and ``B`` concatenated. | Combine two CRC-32 checksums into one.
Given the CRC-32 checksum *crc1* of a sequence ``A`` and the
CRC-32 checksum *crc2* of a sequence ``B`` of length *len2*,
return the CRC-32 checksum of ``A`` and ``B`` concatenated. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f9830346-5da7-4f72-8ef2-d2dcff33ce00 | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,131 | supabase-export-v2 | a0c8a6721b6b13c4 | Uses the low 4 bits of the value as the window size logarithm, while including a basic :program:`gzip` header and trailing checksum in the output.
Raises the :exc:`error` exception if any error occurs. | trusted_official_docs | CPython Docs | Uses the low 4 bits of the value as the window size logarithm, while including a basic :program:`gzip` header and trailing checksum in the output.
Raises the :exc:`error` exception if any error occurs. | Uses the low 4 bits of the value as the window size logarithm, while including a basic :program:`gzip` header and trailing checksum in the output.
Raises the :exc:`error` exception if any error occurs. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f9f05f18-992f-4a48-803e-8c610d2ba3ef | CPython Docs | file://datasets/cpython/Doc/library/zlib.rst | unknown | 19c6c17f-ec30-4c71-aacb-32bd7c8be8ed | 41,169 | supabase-export-v2 | bf374114fc25cc26 | .. note::
If *zdict* is a mutable object (such as a :class:`bytearray`), you must not
modify its contents between the call to :func:`decompressobj` and the first
call to the decompressor's ``decompress()`` method. | trusted_official_docs | CPython Docs | .. note::
If *zdict* is a mutable object (such as a :class:`bytearray`), you must not
modify its contents between the call to :func:`decompressobj` and the first
call to the decompressor's ``decompress()`` method. | .. note::
If *zdict* is a mutable object (such as a :class:`bytearray`), you must not
modify its contents between the call to :func:`decompressobj` and the first
call to the decompressor's ``decompress()`` method. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b414ea8b-119f-441d-9c1d-28b2f577a551 | CPython Docs | file://datasets/cpython/Doc/library/ossaudiodev.rst | unknown | 12edb023-5e8b-4557-aab3-9341b05b3890 | 41,263 | supabase-export-v2 | 9487521f92755788 | part of the Python standard library. It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after being deprecated in Python 3.11. The removal was decided in :pep:`594`.
The last version of Python that provided the :mod:`!ossaudiodev` module was
`Python 3.12 <https://docs.python.org/3.12/library/ossaudiodev.html>`_. | trusted_official_docs | CPython Docs | part of the Python standard library. It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after being deprecated in Python 3.11. The removal was decided in :pep:`594`.
The last version of Python that provided the :mod:`!ossaudiodev` module was
`Python 3.12 <https://docs.python.org/3.12/library/ossaudiodev.html>`_. | part of the Python standard library. It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after being deprecated in Python 3.11. The removal was decided in :pep:`594`.
The last version of Python that provided the :mod:`!ossaudiodev` module was
`Python 3.12 <https://docs.python.org/3.12/library/ossaudiodev.html>`_. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2a06f499-7437-4896-9378-ba4ce0af6e1d | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,316 | supabase-export-v2 | 387e9867cebce2e4 | .. function:: atanh(z)
Return the inverse hyperbolic tangent of *z*. There are two branch cuts: One
extends from ``1`` along the real axis to ``∞``. The other extends from
``-1`` along the real axis to ``-∞``. | trusted_official_docs | CPython Docs | .. function:: atanh(z)
Return the inverse hyperbolic tangent of *z*. There are two branch cuts: One
extends from ``1`` along the real axis to ``∞``. The other extends from
``-1`` along the real axis to ``-∞``. | .. function:: atanh(z)
Return the inverse hyperbolic tangent of *z*. There are two branch cuts: One
extends from ``1`` along the real axis to ``∞``. The other extends from
``-1`` along the real axis to ``-∞``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
35e6eab7-3b0d-4b83-9d17-b732691324c5 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,270 | supabase-export-v2 | 4b508913d8a4b21c | at the sign of the imaginary part, while for a branch cut along the imaginary axis we look at the sign of the real part.
For example, the :func:`cmath.sqrt` function has a branch cut along the
negative real axis. An argument of ``-2-0j`` is treated as
though it lies *below* the branch cut, and so gives a result on th... | trusted_official_docs | CPython Docs | at the sign of the imaginary part, while for a branch cut along the imaginary axis we look at the sign of the real part.
For example, the :func:`cmath.sqrt` function has a branch cut along the
negative real axis. An argument of ``-2-0j`` is treated as
though it lies *below* the branch cut, and so gives a result on th... | at the sign of the imaginary part, while for a branch cut along the imaginary axis we look at the sign of the real part.
For example, the :func:`cmath.sqrt` function has a branch cut along the
negative real axis. An argument of ``-2-0j`` is treated as
though it lies *below* the branch cut, and so gives a result on th... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
406665a6-7fa0-4022-be9f-7323125930c6 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,282 | supabase-export-v2 | 36b6b748907ee480 | complex number ``z`` is stored internally using *rectangular* or *Cartesian* coordinates. It is completely determined by its *real part* ``z.real`` and its *imaginary part* ``z.imag``.
*Polar coordinates* give an alternative way to represent a complex
number. In polar coordinates, a complex number *z* is defined by the... | trusted_official_docs | CPython Docs | complex number ``z`` is stored internally using *rectangular* or *Cartesian* coordinates. It is completely determined by its *real part* ``z.real`` and its *imaginary part* ``z.imag``.
*Polar coordinates* give an alternative way to represent a complex
number. In polar coordinates, a complex number *z* is defined by the... | complex number ``z`` is stored internally using *rectangular* or *Cartesian* coordinates. It is completely determined by its *real part* ``z.real`` and its *imaginary part* ``z.imag``.
*Polar coordinates* give an alternative way to represent a complex
number. In polar coordinates, a complex number *z* is defined by the... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
44056ef9-2602-4fe3-b816-4a84f9f57dc9 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,277 | supabase-export-v2 | 95892f63315d2797 | arc tangent of *z* :func:`cos(z) <cos>` Return the cosine of *z* :func:`sin(z) <sin>` Return the sine of *z* :func:`tan(z) <tan>` Return the tangent of *z*
**Hyperbolic functions**
--------------------------------------------------------------------------------------------------
:func:`acosh(z) <acosh>` Return the inve... | trusted_official_docs | CPython Docs | arc tangent of *z* :func:`cos(z) <cos>` Return the cosine of *z* :func:`sin(z) <sin>` Return the sine of *z* :func:`tan(z) <tan>` Return the tangent of *z*
**Hyperbolic functions**
--------------------------------------------------------------------------------------------------
:func:`acosh(z) <acosh>` Return the inve... | arc tangent of *z* :func:`cos(z) <cos>` Return the cosine of *z* :func:`sin(z) <sin>` Return the sine of *z* :func:`tan(z) <tan>` Return the tangent of *z*
**Hyperbolic functions**
--------------------------------------------------------------------------------------------------
:func:`acosh(z) <acosh>` Return the inve... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4909c2b2-3a9d-436d-8032-1a0143e71332 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,279 | supabase-export-v2 | 2e072018132c8b8f | any component of *z* is a NaN :func:`isclose(a, b, *, rel_tol, abs_tol) <isclose>` Check if the values *a* and *b* are close to each other
**Constants**
--------------------------------------------------------------------------------------------------
:data:`pi` *π* = 3.141592... :data:`e` *e* = 2.718281... :data:`tau`... | trusted_official_docs | CPython Docs | any component of *z* is a NaN :func:`isclose(a, b, *, rel_tol, abs_tol) <isclose>` Check if the values *a* and *b* are close to each other
**Constants**
--------------------------------------------------------------------------------------------------
:data:`pi` *π* = 3.141592... :data:`e` *e* = 2.718281... :data:`tau`... | any component of *z* is a NaN :func:`isclose(a, b, *, rel_tol, abs_tol) <isclose>` Check if the values *a* and *b* are close to each other
**Constants**
--------------------------------------------------------------------------------------------------
:data:`pi` *π* = 3.141592... :data:`e` *e* = 2.718281... :data:`tau`... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4915ac91-791a-4a71-a231-a9de7d905579 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,267 | supabase-export-v2 | 92f8fb1b21d0a0cb | --------------
This module provides access to mathematical functions for complex numbers. The
functions in this module accept integers, floating-point numbers or complex
numbers as arguments. They will also accept any Python object that has either a
:meth:`~object.__complex__` or a :meth:`~object.__float__` method: the... | trusted_official_docs | CPython Docs | --------------
This module provides access to mathematical functions for complex numbers. The
functions in this module accept integers, floating-point numbers or complex
numbers as arguments. They will also accept any Python object that has either a
:meth:`~object.__complex__` or a :meth:`~object.__float__` method: the... | --------------
This module provides access to mathematical functions for complex numbers. The
functions in this module accept integers, floating-point numbers or complex
numbers as arguments. They will also accept any Python object that has either a
:meth:`~object.__complex__` or a :meth:`~object.__float__` method: the... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
53de75b6-963d-4f45-ad0c-26d1e886b3f8 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,314 | supabase-export-v2 | b251de57289ec21a | .. function:: asinh(z)
Return the inverse hyperbolic sine of *z*. There are two branch cuts:
One extends from ``1j`` along the imaginary axis to ``∞j``. The other
extends from ``-1j`` along the imaginary axis to ``-∞j``. | trusted_official_docs | CPython Docs | .. function:: asinh(z)
Return the inverse hyperbolic sine of *z*. There are two branch cuts:
One extends from ``1j`` along the imaginary axis to ``∞j``. The other
extends from ``-1j`` along the imaginary axis to ``-∞j``. | .. function:: asinh(z)
Return the inverse hyperbolic sine of *z*. There are two branch cuts:
One extends from ``1j`` along the imaginary axis to ``∞j``. The other
extends from ``-1j`` along the imaginary axis to ``-∞j``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5c0dd8bb-fc19-4e9d-a3c7-bf192075d3eb | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,308 | supabase-export-v2 | c890872bac11215d | .. function:: atan(z)
Return the arc tangent of *z*. There are two branch cuts: One extends from
``1j`` along the imaginary axis to ``∞j``. The other extends from ``-1j``
along the imaginary axis to ``-∞j``. | trusted_official_docs | CPython Docs | .. function:: atan(z)
Return the arc tangent of *z*. There are two branch cuts: One extends from
``1j`` along the imaginary axis to ``∞j``. The other extends from ``-1j``
along the imaginary axis to ``-∞j``. | .. function:: atan(z)
Return the arc tangent of *z*. There are two branch cuts: One extends from
``1j`` along the imaginary axis to ``∞j``. The other extends from ``-1j``
along the imaginary axis to ``-∞j``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
64aeb158-3981-4c90-8c83-a28e9d2eb851 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,281 | supabase-export-v2 | 27b6520d519bb7a3 | Conversions to and from polar coordinates -----------------------------------------
A Python complex number ``z`` is stored internally using *rectangular*
or *Cartesian* coordinates. It is completely determined by its *real
part* ``z.real`` and its *imaginary part* ``z.imag``. | trusted_official_docs | CPython Docs | Conversions to and from polar coordinates -----------------------------------------
A Python complex number ``z`` is stored internally using *rectangular*
or *Cartesian* coordinates. It is completely determined by its *real
part* ``z.real`` and its *imaginary part* ``z.imag``. | Conversions to and from polar coordinates -----------------------------------------
A Python complex number ``z`` is stored internally using *rectangular*
or *Cartesian* coordinates. It is completely determined by its *real
part* ``z.real`` and its *imaginary part* ``z.imag``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7c14e779-7cb9-477c-ade0-3fe1382c143f | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,304 | supabase-export-v2 | a81f772fe55c30b4 | .. function:: acos(z)
Return the arc cosine of *z*. There are two branch cuts: One extends right
from 1 along the real axis to ∞. The other extends left from -1 along the
real axis to -∞. | trusted_official_docs | CPython Docs | .. function:: acos(z)
Return the arc cosine of *z*. There are two branch cuts: One extends right
from 1 along the real axis to ∞. The other extends left from -1 along the
real axis to -∞. | .. function:: acos(z)
Return the arc cosine of *z*. There are two branch cuts: One extends right
from 1 along the real axis to ∞. The other extends left from -1 along the
real axis to -∞. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
95480675-c864-473c-85f1-af75cc2a498e | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,286 | supabase-export-v2 | 691f66f7a9b455c8 | operation lies along the negative real axis. The sign of the result is the same as the sign of ``z.imag``, even when ``z.imag`` is zero::
>>> phase(-1+0j)
3.141592653589793
>>> phase(-1-0j)
-3.141592653589793 | trusted_official_docs | CPython Docs | operation lies along the negative real axis. The sign of the result is the same as the sign of ``z.imag``, even when ``z.imag`` is zero::
>>> phase(-1+0j)
3.141592653589793
>>> phase(-1-0j)
-3.141592653589793 | operation lies along the negative real axis. The sign of the result is the same as the sign of ``z.imag``, even when ``z.imag`` is zero::
>>> phase(-1+0j)
3.141592653589793
>>> phase(-1-0j)
-3.141592653589793 | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a7ad6224-000e-40b0-a7fc-d61b9396bcd9 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,334 | supabase-export-v2 | df21e15a34cf08dc | tolerance is ``1e-09``, which assures that the two values are the same within about 9 decimal digits. *rel_tol* must be nonnegative and less than ``1.0``.
*abs_tol* is the absolute tolerance; it defaults to ``0.0`` and it must be
nonnegative. When comparing ``x`` to ``0.0``, ``isclose(x, 0)`` is computed
as ``abs(x) ... | trusted_official_docs | CPython Docs | tolerance is ``1e-09``, which assures that the two values are the same within about 9 decimal digits. *rel_tol* must be nonnegative and less than ``1.0``.
*abs_tol* is the absolute tolerance; it defaults to ``0.0`` and it must be
nonnegative. When comparing ``x`` to ``0.0``, ``isclose(x, 0)`` is computed
as ``abs(x) ... | tolerance is ``1e-09``, which assures that the two values are the same within about 9 decimal digits. *rel_tol* must be nonnegative and less than ``1.0``.
*abs_tol* is the absolute tolerance; it defaults to ``0.0`` and it must be
nonnegative. When comparing ``x`` to ``0.0``, ``isclose(x, 0)`` is computed
as ``abs(x) ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b1566ee5-2d2e-426d-ad9e-659684907d19 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,280 | supabase-export-v2 | c94014675f77e3ed | :data:`tau` *τ* = 2\ *π* = 6.283185... :data:`inf` Positive infinity :data:`infj` Pure imaginary infinity :data:`nan` "Not a number" (NaN) :data:`nanj` Pure imaginary NaN ==================================================== ============================================
Conversions to and from polar coordinates
---------... | trusted_official_docs | CPython Docs | :data:`tau` *τ* = 2\ *π* = 6.283185... :data:`inf` Positive infinity :data:`infj` Pure imaginary infinity :data:`nan` "Not a number" (NaN) :data:`nanj` Pure imaginary NaN ==================================================== ============================================
Conversions to and from polar coordinates
---------... | :data:`tau` *τ* = 2\ *π* = 6.283185... :data:`inf` Positive infinity :data:`infj` Pure imaginary infinity :data:`nan` "Not a number" (NaN) :data:`nanj` Pure imaginary NaN ==================================================== ============================================
Conversions to and from polar coordinates
---------... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b30cea09-7cc8-4612-b25f-bdbcaef0c043 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,297 | supabase-export-v2 | a908fd66a54ceebe | .. function:: log(z[, base])
Return the logarithm of *z* to the given *base*. If the *base* is not
specified, returns the natural logarithm of *z*. There is one branch cut,
from 0 along the negative real axis to -∞. | trusted_official_docs | CPython Docs | .. function:: log(z[, base])
Return the logarithm of *z* to the given *base*. If the *base* is not
specified, returns the natural logarithm of *z*. There is one branch cut,
from 0 along the negative real axis to -∞. | .. function:: log(z[, base])
Return the logarithm of *z* to the given *base*. If the *base* is not
specified, returns the natural logarithm of *z*. There is one branch cut,
from 0 along the negative real axis to -∞. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ba245b55-2810-484b-8ff5-31428556c4e4 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,357 | supabase-export-v2 | 2c14d813c1da0f2d | .. seealso::
Kahan, W: Branch cuts for complex elementary functions; or, Much ado about
nothing's sign bit. In Iserles, A., and Powell, M. (eds.), The state of the art
in numerical analysis. Clarendon Press (1987) pp165--211. | trusted_official_docs | CPython Docs | .. seealso::
Kahan, W: Branch cuts for complex elementary functions; or, Much ado about
nothing's sign bit. In Iserles, A., and Powell, M. (eds.), The state of the art
in numerical analysis. Clarendon Press (1987) pp165--211. | .. seealso::
Kahan, W: Branch cuts for complex elementary functions; or, Much ado about
nothing's sign bit. In Iserles, A., and Powell, M. (eds.), The state of the art
in numerical analysis. Clarendon Press (1987) pp165--211. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bab6e219-9c26-4c9f-af09-7e1098c87de5 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,269 | supabase-export-v2 | 42c519a2ff301c9c | .. note::
For functions involving branch cuts, we have the problem of deciding how to
define those functions on the cut itself. Following Kahan's "Branch cuts for
complex elementary functions" paper, as well as Annex G of C99 and later C
standards, we use the sign of zero to distinguish one side of the branch cut
f... | trusted_official_docs | CPython Docs | .. note::
For functions involving branch cuts, we have the problem of deciding how to
define those functions on the cut itself. Following Kahan's "Branch cuts for
complex elementary functions" paper, as well as Annex G of C99 and later C
standards, we use the sign of zero to distinguish one side of the branch cut
f... | .. note::
For functions involving branch cuts, we have the problem of deciding how to
define those functions on the cut itself. Following Kahan's "Branch cuts for
complex elementary functions" paper, as well as Annex G of C99 and later C
standards, we use the sign of zero to distinguish one side of the branch cut
f... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bd2765d9-fbb3-4cf5-bffc-c52d130c6b3d | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,278 | supabase-export-v2 | bbc3ea34c7ceb969 | *z* :func:`cosh(z) <cosh>` Return the hyperbolic cosine of *z* :func:`sinh(z) <sinh>` Return the hyperbolic sine of *z* :func:`tanh(z) <tanh>` Return the hyperbolic tangent of *z*
**Classification functions**
--------------------------------------------------------------------------------------------------
:func:`isfin... | trusted_official_docs | CPython Docs | *z* :func:`cosh(z) <cosh>` Return the hyperbolic cosine of *z* :func:`sinh(z) <sinh>` Return the hyperbolic sine of *z* :func:`tanh(z) <tanh>` Return the hyperbolic tangent of *z*
**Classification functions**
--------------------------------------------------------------------------------------------------
:func:`isfin... | *z* :func:`cosh(z) <cosh>` Return the hyperbolic cosine of *z* :func:`sinh(z) <sinh>` Return the hyperbolic sine of *z* :func:`tanh(z) <tanh>` Return the hyperbolic tangent of *z*
**Classification functions**
--------------------------------------------------------------------------------------------------
:func:`isfin... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bfae761e-aa00-40be-b281-f76b555c75ed | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,283 | supabase-export-v2 | 4fece20f2dcca9b2 | while the phase *phi* is the counterclockwise angle, measured in radians, from the positive x-axis to the line segment that joins the origin to *z*.
The following functions can be used to convert from the native
rectangular coordinates to polar coordinates and back. | trusted_official_docs | CPython Docs | while the phase *phi* is the counterclockwise angle, measured in radians, from the positive x-axis to the line segment that joins the origin to *z*.
The following functions can be used to convert from the native
rectangular coordinates to polar coordinates and back. | while the phase *phi* is the counterclockwise angle, measured in radians, from the positive x-axis to the line segment that joins the origin to *z*.
The following functions can be used to convert from the native
rectangular coordinates to polar coordinates and back. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c0d5cbd4-dc54-4861-9d41-b0aa7c3f1d3c | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,335 | supabase-export-v2 | a1fbc10000162019 | <= rel_tol * abs(x)``, which is ``False`` for any ``x`` and rel_tol less than ``1.0``. So add an appropriate positive abs_tol argument to the call.
The IEEE 754 special values of ``NaN``, ``inf``, and ``-inf`` will be
handled according to IEEE rules. Specifically, ``NaN`` is not considered
close to any other value, i... | trusted_official_docs | CPython Docs | <= rel_tol * abs(x)``, which is ``False`` for any ``x`` and rel_tol less than ``1.0``. So add an appropriate positive abs_tol argument to the call.
The IEEE 754 special values of ``NaN``, ``inf``, and ``-inf`` will be
handled according to IEEE rules. Specifically, ``NaN`` is not considered
close to any other value, i... | <= rel_tol * abs(x)``, which is ``False`` for any ``x`` and rel_tol less than ``1.0``. So add an appropriate positive abs_tol argument to the call.
The IEEE 754 special values of ``NaN``, ``inf``, and ``-inf`` will be
handled according to IEEE rules. Specifically, ``NaN`` is not considered
close to any other value, i... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c387dcbd-9550-48f3-ba5b-5162d1bc0728 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,290 | supabase-export-v2 | 133dcaed65342a2a | .. function:: polar(z)
Return the representation of *z* in polar coordinates. Returns a
pair ``(r, phi)`` where *r* is the modulus of *z* and *phi* is the
phase of *z*. ``polar(z)`` is equivalent to ``(abs(z),
phase(z))``. | trusted_official_docs | CPython Docs | .. function:: polar(z)
Return the representation of *z* in polar coordinates. Returns a
pair ``(r, phi)`` where *r* is the modulus of *z* and *phi* is the
phase of *z*. ``polar(z)`` is equivalent to ``(abs(z),
phase(z))``. | .. function:: polar(z)
Return the representation of *z* in polar coordinates. Returns a
pair ``(r, phi)`` where *r* is the modulus of *z* and *phi* is the
phase of *z*. ``polar(z)`` is equivalent to ``(abs(z),
phase(z))``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cd061d3a-ccc0-4f04-98cb-87bb21a321e6 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,355 | supabase-export-v2 | 6b418b5aa7848901 | complex number, even if the answer can be expressed as a real number (in which case the complex number has an imaginary part of zero).
A note on branch cuts: They are curves along which the given function fails to
be continuous. They are a necessary feature of many complex functions. It is
assumed that if you need to c... | trusted_official_docs | CPython Docs | complex number, even if the answer can be expressed as a real number (in which case the complex number has an imaginary part of zero).
A note on branch cuts: They are curves along which the given function fails to
be continuous. They are a necessary feature of many complex functions. It is
assumed that if you need to c... | complex number, even if the answer can be expressed as a real number (in which case the complex number has an imaginary part of zero).
A note on branch cuts: They are curves along which the given function fails to
be continuous. They are a necessary feature of many complex functions. It is
assumed that if you need to c... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d5273dd1-30a1-4d93-8d94-dcbd4299a381 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,275 | supabase-export-v2 | 8ebd3bd6ef9b833b | *z* :func:`polar(z) <polar>` Return the representation of *z* in polar coordinates :func:`rect(r, phi) <rect>` Return the complex number *z* with polar coordinates *r* and *phi*
**Power and logarithmic functions**
--------------------------------------------------------------------------------------------------
:func:`... | trusted_official_docs | CPython Docs | *z* :func:`polar(z) <polar>` Return the representation of *z* in polar coordinates :func:`rect(r, phi) <rect>` Return the complex number *z* with polar coordinates *r* and *phi*
**Power and logarithmic functions**
--------------------------------------------------------------------------------------------------
:func:`... | *z* :func:`polar(z) <polar>` Return the representation of *z* in polar coordinates :func:`rect(r, phi) <rect>` Return the complex number *z* with polar coordinates *r* and *phi*
**Power and logarithmic functions**
--------------------------------------------------------------------------------------------------
:func:`... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e39c434c-17f7-4c90-8238-b09eff9f320e | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,276 | supabase-export-v2 | c7b52f4dc25bb769 | of *z* to the given *base* (*e* by default) :func:`log10(z) <log10>` Return the base-10 logarithm of *z* :func:`sqrt(z) <sqrt>` Return the square root of *z*
**Trigonometric functions**
--------------------------------------------------------------------------------------------------
:func:`acos(z) <acos>` Return the a... | trusted_official_docs | CPython Docs | of *z* to the given *base* (*e* by default) :func:`log10(z) <log10>` Return the base-10 logarithm of *z* :func:`sqrt(z) <sqrt>` Return the square root of *z*
**Trigonometric functions**
--------------------------------------------------------------------------------------------------
:func:`acos(z) <acos>` Return the a... | of *z* to the given *base* (*e* by default) :func:`log10(z) <log10>` Return the base-10 logarithm of *z* :func:`sqrt(z) <sqrt>` Return the square root of *z*
**Trigonometric functions**
--------------------------------------------------------------------------------------------------
:func:`acos(z) <acos>` Return the a... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e6b6555d-8f1d-4e2c-8cb6-e415ead36841 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,285 | supabase-export-v2 | 78429c8add468394 | .. function:: phase(z)
Return the phase of *z* (also known as the *argument* of *z*), as a float. ``phase(z)`` is equivalent to ``math.atan2(z.imag, z.real)``. The result
lies in the range [-\ *π*, *π*], and the branch cut for this operation lies
along the negative real axis. The sign of the result is the same as the... | trusted_official_docs | CPython Docs | .. function:: phase(z)
Return the phase of *z* (also known as the *argument* of *z*), as a float. ``phase(z)`` is equivalent to ``math.atan2(z.imag, z.real)``. The result
lies in the range [-\ *π*, *π*], and the branch cut for this operation lies
along the negative real axis. The sign of the result is the same as the... | .. function:: phase(z)
Return the phase of *z* (also known as the *argument* of *z*), as a float. ``phase(z)`` is equivalent to ``math.atan2(z.imag, z.real)``. The result
lies in the range [-\ *π*, *π*], and the branch cut for this operation lies
along the negative real axis. The sign of the result is the same as the... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f098cd80-0816-4cb5-9d20-0a12a00500d9 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,274 | supabase-export-v2 | ed2c7f5716626d11 | >>> cmath.sqrt(-2+0j) 1.4142135623730951j
==================================================== ============================================
**Conversions to and from polar coordinates**
--------------------------------------------------------------------------------------------------
:func:`phase(z) <phase>` Return the... | trusted_official_docs | CPython Docs | >>> cmath.sqrt(-2+0j) 1.4142135623730951j
==================================================== ============================================
**Conversions to and from polar coordinates**
--------------------------------------------------------------------------------------------------
:func:`phase(z) <phase>` Return the... | >>> cmath.sqrt(-2+0j) 1.4142135623730951j
==================================================== ============================================
**Conversions to and from polar coordinates**
--------------------------------------------------------------------------------------------------
:func:`phase(z) <phase>` Return the... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f22e4d48-70f6-40f1-b08f-b5b42e561e84 | CPython Docs | file://datasets/cpython/Doc/library/cmath.rst | unknown | 31d97237-9a11-41b2-9178-f95a3b59f30e | 41,354 | supabase-export-v2 | 86b1cbe0bb4665d5 | .. index:: pair: module; math
Note that the selection of functions is similar, but not identical, to that in
module :mod:`math`. The reason for having two modules is that some users aren't
interested in complex numbers, and perhaps don't even know what they are. They
would rather have ``math.sqrt(-1)`` raise an excepti... | trusted_official_docs | CPython Docs | .. index:: pair: module; math
Note that the selection of functions is similar, but not identical, to that in
module :mod:`math`. The reason for having two modules is that some users aren't
interested in complex numbers, and perhaps don't even know what they are. They
would rather have ``math.sqrt(-1)`` raise an excepti... | .. index:: pair: module; math
Note that the selection of functions is similar, but not identical, to that in
module :mod:`math`. The reason for having two modules is that some users aren't
interested in complex numbers, and perhaps don't even know what they are. They
would rather have ``math.sqrt(-1)`` raise an excepti... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0bcf9dcf-8898-440f-8bec-1155d2aa1534 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,421 | supabase-export-v2 | b246eabb7079bc00 | class currentTime: @staticmethod def getCurrentTime(): return dt.datetime.now()
with SimpleXMLRPCServer(("localhost", 8000)) as server:
server.register_function(pow)
server.register_function(lambda x,y: x+y, 'add')
server.register_instance(ExampleService(), allow_dotted_names=True)
server.register_multicall_functio... | trusted_official_docs | CPython Docs | class currentTime: @staticmethod def getCurrentTime(): return dt.datetime.now()
with SimpleXMLRPCServer(("localhost", 8000)) as server:
server.register_function(pow)
server.register_function(lambda x,y: x+y, 'add')
server.register_instance(ExampleService(), allow_dotted_names=True)
server.register_multicall_functio... | class currentTime: @staticmethod def getCurrentTime(): return dt.datetime.now()
with SimpleXMLRPCServer(("localhost", 8000)) as server:
server.register_function(pow)
server.register_function(lambda x,y: x+y, 'add')
server.register_instance(ExampleService(), allow_dotted_names=True)
server.register_multicall_functio... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
13a6c7ef-45c6-45eb-9233-f119a6b7aaed | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,367 | supabase-export-v2 | 683dffd8951bf1fa | .. class:: SimpleXMLRPCServer(addr, requestHandler=SimpleXMLRPCRequestHandler,\ logRequests=True, allow_none=False, encoding=None,\ bind_and_activate=True, use_builtin_types=False)
Create a new server instance. This class provides methods for registration of
functions that can be called by the XML-RPC protocol. The *r... | trusted_official_docs | CPython Docs | .. class:: SimpleXMLRPCServer(addr, requestHandler=SimpleXMLRPCRequestHandler,\ logRequests=True, allow_none=False, encoding=None,\ bind_and_activate=True, use_builtin_types=False)
Create a new server instance. This class provides methods for registration of
functions that can be called by the XML-RPC protocol. The *r... | .. class:: SimpleXMLRPCServer(addr, requestHandler=SimpleXMLRPCRequestHandler,\ logRequests=True, allow_none=False, encoding=None,\ bind_and_activate=True, use_builtin_types=False)
Create a new server instance. This class provides methods for registration of
functions that can be called by the XML-RPC protocol. The *r... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
151c846f-f80d-4c8c-879a-2ec912924727 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,448 | supabase-export-v2 | 2facec718a3faad5 | Documenting XMLRPC server -------------------------
These classes extend the above classes to serve HTML documentation in response
to HTTP GET requests. Servers can either be free standing, using
:class:`DocXMLRPCServer`, or embedded in a CGI environment, using
:class:`DocCGIXMLRPCRequestHandler`. | trusted_official_docs | CPython Docs | Documenting XMLRPC server -------------------------
These classes extend the above classes to serve HTML documentation in response
to HTTP GET requests. Servers can either be free standing, using
:class:`DocXMLRPCServer`, or embedded in a CGI environment, using
:class:`DocCGIXMLRPCRequestHandler`. | Documenting XMLRPC server -------------------------
These classes extend the above classes to serve HTML documentation in response
to HTTP GET requests. Servers can either be free standing, using
:class:`DocXMLRPCServer`, or embedded in a CGI environment, using
:class:`DocCGIXMLRPCRequestHandler`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1ca517f2-9e8d-441a-85c6-1965851222c8 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,379 | supabase-export-v2 | 48112c8f18480edc | .. method:: SimpleXMLRPCServer.register_function(function=None, name=None)
Register a function that can respond to XML-RPC requests. If *name* is given,
it will be the method name associated with *function*, otherwise
:attr:`function.__name__` will be used. *name* is a string, and may contain
characters not legal in... | trusted_official_docs | CPython Docs | .. method:: SimpleXMLRPCServer.register_function(function=None, name=None)
Register a function that can respond to XML-RPC requests. If *name* is given,
it will be the method name associated with *function*, otherwise
:attr:`function.__name__` will be used. *name* is a string, and may contain
characters not legal in... | .. method:: SimpleXMLRPCServer.register_function(function=None, name=None)
Register a function that can respond to XML-RPC requests. If *name* is given,
it will be the method name associated with *function*, otherwise
:attr:`function.__name__` will be used. *name* is a string, and may contain
characters not legal in... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1d85f2cc-35f5-4b3d-9481-e4c631143e35 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,362 | supabase-export-v2 | 2029fb84eb94fdec | --------------
The :mod:`!xmlrpc.server` module provides a basic server framework for XML-RPC
servers written in Python. Servers can either be free standing, using
:class:`SimpleXMLRPCServer`, or embedded in a CGI environment, using
:class:`CGIXMLRPCRequestHandler`. | trusted_official_docs | CPython Docs | --------------
The :mod:`!xmlrpc.server` module provides a basic server framework for XML-RPC
servers written in Python. Servers can either be free standing, using
:class:`SimpleXMLRPCServer`, or embedded in a CGI environment, using
:class:`CGIXMLRPCRequestHandler`. | --------------
The :mod:`!xmlrpc.server` module provides a basic server framework for XML-RPC
servers written in Python. Servers can either be free standing, using
:class:`SimpleXMLRPCServer`, or embedded in a CGI environment, using
:class:`CGIXMLRPCRequestHandler`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3492fad3-26f1-48ea-8d1b-c75fce1168cd | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,458 | supabase-export-v2 | 35afad1773eeab4d | DocXMLRPCServer objects -----------------------
The :class:`DocXMLRPCServer` class is derived from :class:`SimpleXMLRPCServer`
and provides a means of creating self-documenting, stand alone XML-RPC
servers. HTTP POST requests are handled as XML-RPC method calls. HTTP GET
requests are handled by generating pydoc-style H... | trusted_official_docs | CPython Docs | DocXMLRPCServer objects -----------------------
The :class:`DocXMLRPCServer` class is derived from :class:`SimpleXMLRPCServer`
and provides a means of creating self-documenting, stand alone XML-RPC
servers. HTTP POST requests are handled as XML-RPC method calls. HTTP GET
requests are handled by generating pydoc-style H... | DocXMLRPCServer objects -----------------------
The :class:`DocXMLRPCServer` class is derived from :class:`SimpleXMLRPCServer`
and provides a means of creating self-documenting, stand alone XML-RPC
servers. HTTP POST requests are handled as XML-RPC method calls. HTTP GET
requests are handled by generating pydoc-style H... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3f0f8ca5-097d-4e47-8401-b4f7a540bc87 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,413 | supabase-export-v2 | 59a346b711a694b9 | name, using # register_function as a decorator. *name* can only be given # as a keyword argument. @server.register_function(name='add') def adder_function(x, y): return x + y
# Register a function under function.__name__. @server.register_function
def mul(x, y):
return x * y | trusted_official_docs | CPython Docs | name, using # register_function as a decorator. *name* can only be given # as a keyword argument. @server.register_function(name='add') def adder_function(x, y): return x + y
# Register a function under function.__name__. @server.register_function
def mul(x, y):
return x * y | name, using # register_function as a decorator. *name* can only be given # as a keyword argument. @server.register_function(name='add') def adder_function(x, y): return x + y
# Register a function under function.__name__. @server.register_function
def mul(x, y):
return x * y | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
49b02b2a-569c-47b8-9b8f-9217e5e92375 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,369 | supabase-export-v2 | 02df968bc67c754a | parameter is passed to the :func:`~xmlrpc.client.loads` function and controls which types are processed when date/times values or binary data are received; it defaults to false.
.. versionchanged:: 3.3
The *use_builtin_types* flag was added. | trusted_official_docs | CPython Docs | parameter is passed to the :func:`~xmlrpc.client.loads` function and controls which types are processed when date/times values or binary data are received; it defaults to false.
.. versionchanged:: 3.3
The *use_builtin_types* flag was added. | parameter is passed to the :func:`~xmlrpc.client.loads` function and controls which types are processed when date/times values or binary data are received; it defaults to false.
.. versionchanged:: 3.3
The *use_builtin_types* flag was added. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4a34b259-8f1b-4139-9e3c-5c4ce91861e3 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,381 | supabase-export-v2 | 7bfd1bc03fdec945 | a decorator, *name* can only be given as a keyword argument to register *function* under *name*. If no *name* is given, :attr:`function.__name__` will be used.
.. versionchanged:: 3.7
:meth:`register_function` can be used as a decorator. | trusted_official_docs | CPython Docs | a decorator, *name* can only be given as a keyword argument to register *function* under *name*. If no *name* is given, :attr:`function.__name__` will be used.
.. versionchanged:: 3.7
:meth:`register_function` can be used as a decorator. | a decorator, *name* can only be given as a keyword argument to register *function* under *name*. If no *name* is given, :attr:`function.__name__` will be used.
.. versionchanged:: 3.7
:meth:`register_function` can be used as a decorator. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
51b67c67-a2ca-4d2b-aade-685e23d84f8c | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,392 | supabase-export-v2 | af2d588f33b25ffb | .. attribute:: SimpleXMLRPCRequestHandler.rpc_paths
An attribute value that must be a tuple listing valid path portions of the URL
for receiving XML-RPC requests. Requests posted to other paths will result in a
404 "no such page" HTTP error. If this tuple is empty, all paths will be
considered valid. The default val... | trusted_official_docs | CPython Docs | .. attribute:: SimpleXMLRPCRequestHandler.rpc_paths
An attribute value that must be a tuple listing valid path portions of the URL
for receiving XML-RPC requests. Requests posted to other paths will result in a
404 "no such page" HTTP error. If this tuple is empty, all paths will be
considered valid. The default val... | .. attribute:: SimpleXMLRPCRequestHandler.rpc_paths
An attribute value that must be a tuple listing valid path portions of the URL
for receiving XML-RPC requests. Requests posted to other paths will result in a
404 "no such page" HTTP error. If this tuple is empty, all paths will be
considered valid. The default val... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5551856f-c43e-4936-9497-e5d5bd21d619 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,466 | supabase-export-v2 | e8191bb99c4935eb | DocCGIXMLRPCRequestHandler --------------------------
The :class:`DocCGIXMLRPCRequestHandler` class is derived from
:class:`CGIXMLRPCRequestHandler` and provides a means of creating
self-documenting, XML-RPC CGI scripts. HTTP POST requests are handled as XML-RPC
method calls. HTTP GET requests are handled by generating... | trusted_official_docs | CPython Docs | DocCGIXMLRPCRequestHandler --------------------------
The :class:`DocCGIXMLRPCRequestHandler` class is derived from
:class:`CGIXMLRPCRequestHandler` and provides a means of creating
self-documenting, XML-RPC CGI scripts. HTTP POST requests are handled as XML-RPC
method calls. HTTP GET requests are handled by generating... | DocCGIXMLRPCRequestHandler --------------------------
The :class:`DocCGIXMLRPCRequestHandler` class is derived from
:class:`CGIXMLRPCRequestHandler` and provides a means of creating
self-documenting, XML-RPC CGI scripts. HTTP POST requests are handled as XML-RPC
method calls. HTTP GET requests are handled by generating... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5800d143-0556-436d-9e86-0abfb18a543a | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,433 | supabase-export-v2 | 67ca920196bb24ca | .. method:: CGIXMLRPCRequestHandler.register_function(function=None, name=None)
Register a function that can respond to XML-RPC requests. If *name* is given,
it will be the method name associated with *function*, otherwise
:attr:`function.__name__` will be used. *name* is a string, and may contain
characters not leg... | trusted_official_docs | CPython Docs | .. method:: CGIXMLRPCRequestHandler.register_function(function=None, name=None)
Register a function that can respond to XML-RPC requests. If *name* is given,
it will be the method name associated with *function*, otherwise
:attr:`function.__name__` will be used. *name* is a string, and may contain
characters not leg... | .. method:: CGIXMLRPCRequestHandler.register_function(function=None, name=None)
Register a function that can respond to XML-RPC requests. If *name* is given,
it will be the method name associated with *function*, otherwise
:attr:`function.__name__` will be used. *name* is a string, and may contain
characters not leg... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5e3f1884-928f-4f6b-89cb-dcb8e0977119 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,443 | supabase-export-v2 | bdf54aa28cbd2931 | .. method:: CGIXMLRPCRequestHandler.handle_request(request_text=None)
Handle an XML-RPC request. If *request_text* is given, it should be the POST
data provided by the HTTP server, otherwise the contents of stdin will be used. | trusted_official_docs | CPython Docs | .. method:: CGIXMLRPCRequestHandler.handle_request(request_text=None)
Handle an XML-RPC request. If *request_text* is given, it should be the POST
data provided by the HTTP server, otherwise the contents of stdin will be used. | .. method:: CGIXMLRPCRequestHandler.handle_request(request_text=None)
Handle an XML-RPC request. If *request_text* is given, it should be the POST
data provided by the HTTP server, otherwise the contents of stdin will be used. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6296edda-9b7f-4db2-8e89-5be822c3131b | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,371 | supabase-export-v2 | 8e3858d839f36a6c | .. class:: CGIXMLRPCRequestHandler(allow_none=False, encoding=None,\ use_builtin_types=False)
Create a new instance to handle XML-RPC requests in a CGI environment. The
*allow_none* and *encoding* parameters are passed on to :mod:`xmlrpc.client`
and control the XML-RPC responses that will be returned from the server.... | trusted_official_docs | CPython Docs | .. class:: CGIXMLRPCRequestHandler(allow_none=False, encoding=None,\ use_builtin_types=False)
Create a new instance to handle XML-RPC requests in a CGI environment. The
*allow_none* and *encoding* parameters are passed on to :mod:`xmlrpc.client`
and control the XML-RPC responses that will be returned from the server.... | .. class:: CGIXMLRPCRequestHandler(allow_none=False, encoding=None,\ use_builtin_types=False)
Create a new instance to handle XML-RPC requests in a CGI environment. The
*allow_none* and *encoding* parameters are passed on to :mod:`xmlrpc.client`
and control the XML-RPC responses that will be returned from the server.... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
67458fb0-6acc-49ba-876e-73df9cc4fb97 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,455 | supabase-export-v2 | 8a0412f345feb1e5 | .. class:: DocXMLRPCRequestHandler()
Create a new request handler instance. This request handler supports XML-RPC
POST requests, documentation GET requests, and modifies logging so that the
*logRequests* parameter to the :class:`DocXMLRPCServer` constructor parameter is
honored. | trusted_official_docs | CPython Docs | .. class:: DocXMLRPCRequestHandler()
Create a new request handler instance. This request handler supports XML-RPC
POST requests, documentation GET requests, and modifies logging so that the
*logRequests* parameter to the :class:`DocXMLRPCServer` constructor parameter is
honored. | .. class:: DocXMLRPCRequestHandler()
Create a new request handler instance. This request handler supports XML-RPC
POST requests, documentation GET requests, and modifies logging so that the
*logRequests* parameter to the :class:`DocXMLRPCServer` constructor parameter is
honored. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6e55e1f5-c882-4946-8409-d35eae9ab982 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,437 | supabase-export-v2 | f2763e69dad60119 | .. method:: CGIXMLRPCRequestHandler.register_instance(instance)
Register an object which is used to expose method names which have not been
registered using :meth:`register_function`. If instance contains a
:meth:`_dispatch` method, it is called with the requested method name and the
parameters from the request; the... | trusted_official_docs | CPython Docs | .. method:: CGIXMLRPCRequestHandler.register_instance(instance)
Register an object which is used to expose method names which have not been
registered using :meth:`register_function`. If instance contains a
:meth:`_dispatch` method, it is called with the requested method name and the
parameters from the request; the... | .. method:: CGIXMLRPCRequestHandler.register_instance(instance)
Register an object which is used to expose method names which have not been
registered using :meth:`register_function`. If instance contains a
:meth:`_dispatch` method, it is called with the requested method name and the
parameters from the request; the... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
912d52b2-dbdc-43a6-b4b0-93a0e27edd5a | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,368 | supabase-export-v2 | 5d6c6f65c4a11d90 | that will be returned from the server. The *bind_and_activate* parameter controls whether :meth:`server_bind` and :meth:`server_activate` are called immediately by the constructor; it defaults to true.
Setting it to false allows code to manipulate
the *allow_reuse_address* class variable before the address is bound. T... | trusted_official_docs | CPython Docs | that will be returned from the server. The *bind_and_activate* parameter controls whether :meth:`server_bind` and :meth:`server_activate` are called immediately by the constructor; it defaults to true.
Setting it to false allows code to manipulate
the *allow_reuse_address* class variable before the address is bound. T... | that will be returned from the server. The *bind_and_activate* parameter controls whether :meth:`server_bind` and :meth:`server_activate` are called immediately by the constructor; it defaults to true.
Setting it to false allows code to manipulate
the *allow_reuse_address* class variable before the address is bound. T... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a5c8a192-da47-45b2-b075-663e33fbbca4 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,428 | supabase-export-v2 | b7d60c98afb9f9ad | multi = MultiCall(server) multi.getData() multi.pow(2,9) multi.add(1,2) try: for response in multi(): print(response) except Error as v: print("ERROR", v)
This client which interacts with the demo XMLRPC server can be invoked as:: | trusted_official_docs | CPython Docs | multi = MultiCall(server) multi.getData() multi.pow(2,9) multi.add(1,2) try: for response in multi(): print(response) except Error as v: print("ERROR", v)
This client which interacts with the demo XMLRPC server can be invoked as:: | multi = MultiCall(server) multi.getData() multi.pow(2,9) multi.add(1,2) try: for response in multi(): print(response) except Error as v: print("ERROR", v)
This client which interacts with the demo XMLRPC server can be invoked as:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ac18976c-7268-430e-bf36-57013b1382fb | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,374 | supabase-export-v2 | af2312046cc59e78 | .. class:: SimpleXMLRPCRequestHandler()
Create a new request handler instance. This request handler supports ``POST``
requests and modifies logging so that the *logRequests* parameter to the
:class:`SimpleXMLRPCServer` constructor parameter is honored. | trusted_official_docs | CPython Docs | .. class:: SimpleXMLRPCRequestHandler()
Create a new request handler instance. This request handler supports ``POST``
requests and modifies logging so that the *logRequests* parameter to the
:class:`SimpleXMLRPCServer` constructor parameter is honored. | .. class:: SimpleXMLRPCRequestHandler()
Create a new request handler instance. This request handler supports ``POST``
requests and modifies logging so that the *logRequests* parameter to the
:class:`SimpleXMLRPCServer` constructor parameter is honored. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
adc9b055-3031-4dc1-94d5-b1af4e471ba7 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,417 | supabase-export-v2 | 5c72cab6cc71ef66 | .. warning::
Enabling the *allow_dotted_names* option allows intruders to access your
module's global variables and may allow intruders to execute arbitrary code on
your machine. Only use this example within a secure, closed network. | trusted_official_docs | CPython Docs | .. warning::
Enabling the *allow_dotted_names* option allows intruders to access your
module's global variables and may allow intruders to execute arbitrary code on
your machine. Only use this example within a secure, closed network. | .. warning::
Enabling the *allow_dotted_names* option allows intruders to access your
module's global variables and may allow intruders to execute arbitrary code on
your machine. Only use this example within a secure, closed network. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b3a0b6f4-e5b7-43e9-89ea-709803623509 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,384 | supabase-export-v2 | 63d0cd6d40e168c1 | client as the result. If *instance* does not have a :meth:`_dispatch` method, it is searched for an attribute matching the name of the requested method.
If the optional *allow_dotted_names* argument is true and the instance does not
have a :meth:`_dispatch` method, then if the requested method name contains
periods, ... | trusted_official_docs | CPython Docs | client as the result. If *instance* does not have a :meth:`_dispatch` method, it is searched for an attribute matching the name of the requested method.
If the optional *allow_dotted_names* argument is true and the instance does not
have a :meth:`_dispatch` method, then if the requested method name contains
periods, ... | client as the result. If *instance* does not have a :meth:`_dispatch` method, it is searched for an attribute matching the name of the requested method.
If the optional *allow_dotted_names* argument is true and the instance does not
have a :meth:`_dispatch` method, then if the requested method name contains
periods, ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b69f46b6-7610-4379-9674-84ad7a1ac141 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,449 | supabase-export-v2 | 34812e0fa70a46a2 | serve HTML documentation in response to HTTP GET requests. Servers can either be free standing, using :class:`DocXMLRPCServer`, or embedded in a CGI environment, using :class:`DocCGIXMLRPCRequestHandler`.
.. class:: DocXMLRPCServer(addr, requestHandler=DocXMLRPCRequestHandler,\
logRequests=True, allow_none=False, enco... | trusted_official_docs | CPython Docs | serve HTML documentation in response to HTTP GET requests. Servers can either be free standing, using :class:`DocXMLRPCServer`, or embedded in a CGI environment, using :class:`DocCGIXMLRPCRequestHandler`.
.. class:: DocXMLRPCServer(addr, requestHandler=DocXMLRPCRequestHandler,\
logRequests=True, allow_none=False, enco... | serve HTML documentation in response to HTTP GET requests. Servers can either be free standing, using :class:`DocXMLRPCServer`, or embedded in a CGI environment, using :class:`DocCGIXMLRPCRequestHandler`.
.. class:: DocXMLRPCServer(addr, requestHandler=DocXMLRPCRequestHandler,\
logRequests=True, allow_none=False, enco... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bad54420-2093-4a70-b1f6-d234a2206612 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,386 | supabase-export-v2 | a5a3f27a9b80eea1 | .. warning::
Enabling the *allow_dotted_names* option allows intruders to access your
module's global variables and may allow intruders to execute arbitrary code on
your machine. Only use this option on a secure, closed network. | trusted_official_docs | CPython Docs | .. warning::
Enabling the *allow_dotted_names* option allows intruders to access your
module's global variables and may allow intruders to execute arbitrary code on
your machine. Only use this option on a secure, closed network. | .. warning::
Enabling the *allow_dotted_names* option allows intruders to access your
module's global variables and may allow intruders to execute arbitrary code on
your machine. Only use this option on a secure, closed network. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bd141d00-b053-4d68-a31e-b34b725b2e38 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,412 | supabase-export-v2 | 82bc9bfd9af94ab6 | # Register pow() function; this will use the value of # pow.__name__ as the name, which is just 'pow'. server.register_function(pow)
# Register a function under a different name, using
# register_function as a decorator. *name* can only be given
# as a keyword argument. @server.register_function(name='add')
def adde... | trusted_official_docs | CPython Docs | # Register pow() function; this will use the value of # pow.__name__ as the name, which is just 'pow'. server.register_function(pow)
# Register a function under a different name, using
# register_function as a decorator. *name* can only be given
# as a keyword argument. @server.register_function(name='add')
def adde... | # Register pow() function; this will use the value of # pow.__name__ as the name, which is just 'pow'. server.register_function(pow)
# Register a function under a different name, using
# register_function as a decorator. *name* can only be given
# as a keyword argument. @server.register_function(name='add')
def adde... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cd03d757-c645-41e1-9d80-59dfd4401a9b | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,400 | supabase-export-v2 | e85fd6d25fddb59e | # Register a function under a different name def adder_function(x, y): return x + y server.register_function(adder_function, 'add')
# Register an instance; all the methods of the instance are
# published as XML-RPC methods (in this case, just 'mul'). class MyFuncs:
def mul(self, x, y):
return x * y | trusted_official_docs | CPython Docs | # Register a function under a different name def adder_function(x, y): return x + y server.register_function(adder_function, 'add')
# Register an instance; all the methods of the instance are
# published as XML-RPC methods (in this case, just 'mul'). class MyFuncs:
def mul(self, x, y):
return x * y | # Register a function under a different name def adder_function(x, y): return x + y server.register_function(adder_function, 'add')
# Register an instance; all the methods of the instance are
# published as XML-RPC methods (in this case, just 'mul'). class MyFuncs:
def mul(self, x, y):
return x * y | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dc3e9dd5-07c8-4e88-90b0-9fa53bc1f23b | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,383 | supabase-export-v2 | b70f10064010546d | .. method:: SimpleXMLRPCServer.register_instance(instance, allow_dotted_names=False)
Register an object which is used to expose method names which have not been
registered using :meth:`register_function`. If *instance* contains a
:meth:`_dispatch` method, it is called with the requested method name and the
parameter... | trusted_official_docs | CPython Docs | .. method:: SimpleXMLRPCServer.register_instance(instance, allow_dotted_names=False)
Register an object which is used to expose method names which have not been
registered using :meth:`register_function`. If *instance* contains a
:meth:`_dispatch` method, it is called with the requested method name and the
parameter... | .. method:: SimpleXMLRPCServer.register_instance(instance, allow_dotted_names=False)
Register an object which is used to expose method names which have not been
registered using :meth:`register_function`. If *instance* contains a
:meth:`_dispatch` method, it is called with the requested method name and the
parameter... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e56f0046-0cf6-4930-9dd2-ea0d0c138c6d | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,422 | supabase-export-v2 | 6c522d996b4c075d | as server: server.register_function(pow) server.register_function(lambda x,y: x+y, 'add') server.register_instance(ExampleService(), allow_dotted_names=True) server.register_multicall_functions() print('Serving XML-RPC on localhost port 8000') try: server.serve_forever() except KeyboardInterrupt: print("\nKeyboard inte... | trusted_official_docs | CPython Docs | as server: server.register_function(pow) server.register_function(lambda x,y: x+y, 'add') server.register_instance(ExampleService(), allow_dotted_names=True) server.register_multicall_functions() print('Serving XML-RPC on localhost port 8000') try: server.serve_forever() except KeyboardInterrupt: print("\nKeyboard inte... | as server: server.register_function(pow) server.register_function(lambda x,y: x+y, 'add') server.register_instance(ExampleService(), allow_dotted_names=True) server.register_multicall_functions() print('Serving XML-RPC on localhost port 8000') try: server.serve_forever() except KeyboardInterrupt: print("\nKeyboard inte... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f6b0e680-8c1b-484e-aa77-96ced771019c | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,398 | supabase-export-v2 | b44499d2ddeef671 | # Create server with SimpleXMLRPCServer(('localhost', 8000), requestHandler=RequestHandler) as server: server.register_introspection_functions()
# Register pow() function; this will use the value of
# pow.__name__ as the name, which is just 'pow'. server.register_function(pow) | trusted_official_docs | CPython Docs | # Create server with SimpleXMLRPCServer(('localhost', 8000), requestHandler=RequestHandler) as server: server.register_introspection_functions()
# Register pow() function; this will use the value of
# pow.__name__ as the name, which is just 'pow'. server.register_function(pow) | # Create server with SimpleXMLRPCServer(('localhost', 8000), requestHandler=RequestHandler) as server: server.register_introspection_functions()
# Register pow() function; this will use the value of
# pow.__name__ as the name, which is just 'pow'. server.register_function(pow) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f84b55a2-7202-41fd-88cf-90075b2cdac2 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,399 | supabase-export-v2 | edf740a3ddaf383a | # Register pow() function; this will use the value of # pow.__name__ as the name, which is just 'pow'. server.register_function(pow)
# Register a function under a different name
def adder_function(x, y):
return x + y
server.register_function(adder_function, 'add') | trusted_official_docs | CPython Docs | # Register pow() function; this will use the value of # pow.__name__ as the name, which is just 'pow'. server.register_function(pow)
# Register a function under a different name
def adder_function(x, y):
return x + y
server.register_function(adder_function, 'add') | # Register pow() function; this will use the value of # pow.__name__ as the name, which is just 'pow'. server.register_function(pow)
# Register a function under a different name
def adder_function(x, y):
return x + y
server.register_function(adder_function, 'add') | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ffc0e606-e13d-4e5e-a6b1-7490dacdb647 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.server.rst | unknown | 2abfc7d0-265a-4a24-aeaa-edaa979da11b | 41,380 | supabase-export-v2 | d3860213e8435217 | associated with *function*, otherwise :attr:`function.__name__` will be used. *name* is a string, and may contain characters not legal in Python identifiers, including the period character.
This method can also be used as a decorator. When used as a decorator,
*name* can only be given as a keyword argument to register... | trusted_official_docs | CPython Docs | associated with *function*, otherwise :attr:`function.__name__` will be used. *name* is a string, and may contain characters not legal in Python identifiers, including the period character.
This method can also be used as a decorator. When used as a decorator,
*name* can only be given as a keyword argument to register... | associated with *function*, otherwise :attr:`function.__name__` will be used. *name* is a string, and may contain characters not legal in Python identifiers, including the period character.
This method can also be used as a decorator. When used as a decorator,
*name* can only be given as a keyword argument to register... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
001f2477-2f6b-400f-bceb-4a88e8c6554a | CPython Docs | file://datasets/cpython/Doc/library/unittest.rst | unknown | 9631c318-9739-45cd-9e68-6c9a3439030e | 42,008 | supabase-export-v2 | a9acd9f7fb329776 | .. attribute:: suiteClass
Callable object that constructs a test suite from a list of tests. No
methods on the resulting object are needed. The default value is the
:class:`TestSuite` class. | trusted_official_docs | CPython Docs | .. attribute:: suiteClass
Callable object that constructs a test suite from a list of tests. No
methods on the resulting object are needed. The default value is the
:class:`TestSuite` class. | .. attribute:: suiteClass
Callable object that constructs a test suite from a list of tests. No
methods on the resulting object are needed. The default value is the
:class:`TestSuite` class. | 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.