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
3fe45a2a-cd4f-4d08-9d68-685688f55471
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,791
supabase-export-v2
1727b42e98c41a85
The :mod:`!bz2` module contains: * The :func:`.open` function and :class:`BZ2File` class for reading and writing compressed files. * The :class:`BZ2Compressor` and :class:`BZ2Decompressor` classes for incremental (de)compression. * The :func:`compress` and :func:`decompress` functions for one-shot (de)compression.
trusted_official_docs
CPython Docs
The :mod:`!bz2` module contains: * The :func:`.open` function and :class:`BZ2File` class for reading and writing compressed files. * The :class:`BZ2Compressor` and :class:`BZ2Decompressor` classes for incremental (de)compression. * The :func:`compress` and :func:`decompress` functions for one-shot (de)compression.
The :mod:`!bz2` module contains: * The :func:`.open` function and :class:`BZ2File` class for reading and writing compressed files. * The :class:`BZ2Compressor` and :class:`BZ2Decompressor` classes for incremental (de)compression. * The :func:`compress` and :func:`decompress` functions for one-shot (de)compression.
python, official-docs, cpython, P0
Local_Trusted_Corpus
40c8f8be-19de-4986-895e-9ba563ff4951
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,860
supabase-export-v2
ebe55c2e6884db35
was decompressed and returned (either because this was less than *max_length* bytes, or because *max_length* was negative), the :attr:`~.needs_input` attribute will be set to ``True``. Attempting to decompress data after the end of stream is reached raises an :exc:`EOFError`. Any data found after the end of the strea...
trusted_official_docs
CPython Docs
was decompressed and returned (either because this was less than *max_length* bytes, or because *max_length* was negative), the :attr:`~.needs_input` attribute will be set to ``True``. Attempting to decompress data after the end of stream is reached raises an :exc:`EOFError`. Any data found after the end of the strea...
was decompressed and returned (either because this was less than *max_length* bytes, or because *max_length* was negative), the :attr:`~.needs_input` attribute will be set to ``True``. Attempting to decompress data after the end of stream is reached raises an :exc:`EOFError`. Any data found after the end of the strea...
python, official-docs, cpython, P0
Local_Trusted_Corpus
40ee9d54-1ed7-4c08-9a9e-43328381973b
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,800
supabase-export-v2
927420bfcbed2ebb
mode, this function is equivalent to the :class:`BZ2File` constructor: ``BZ2File(filename, mode, compresslevel=compresslevel)``. In this case, the *encoding*, *errors* and *newline* arguments must not be provided. For text mode, a :class:`BZ2File` object is created, and wrapped in an :class:`io.TextIOWrapper` instance...
trusted_official_docs
CPython Docs
mode, this function is equivalent to the :class:`BZ2File` constructor: ``BZ2File(filename, mode, compresslevel=compresslevel)``. In this case, the *encoding*, *errors* and *newline* arguments must not be provided. For text mode, a :class:`BZ2File` object is created, and wrapped in an :class:`io.TextIOWrapper` instance...
mode, this function is equivalent to the :class:`BZ2File` constructor: ``BZ2File(filename, mode, compresslevel=compresslevel)``. In this case, the *encoding*, *errors* and *newline* arguments must not be provided. For text mode, a :class:`BZ2File` object is created, and wrapped in an :class:`io.TextIOWrapper` instance...
python, official-docs, cpython, P0
Local_Trusted_Corpus
43225f55-392a-471f-b3c8-be724955d93c
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,811
supabase-export-v2
8d0fa186c1dd3f16
If *mode* is ``'r'``, the input file may be the concatenation of multiple compressed streams. :class:`BZ2File` provides all of the members specified by the :class:`io.BufferedIOBase`, except for :meth:`~io.BufferedIOBase.detach` and :meth:`~io.IOBase.truncate`. Iteration and the :keyword:`with` statement are supporte...
trusted_official_docs
CPython Docs
If *mode* is ``'r'``, the input file may be the concatenation of multiple compressed streams. :class:`BZ2File` provides all of the members specified by the :class:`io.BufferedIOBase`, except for :meth:`~io.BufferedIOBase.detach` and :meth:`~io.IOBase.truncate`. Iteration and the :keyword:`with` statement are supporte...
If *mode* is ``'r'``, the input file may be the concatenation of multiple compressed streams. :class:`BZ2File` provides all of the members specified by the :class:`io.BufferedIOBase`, except for :meth:`~io.BufferedIOBase.detach` and :meth:`~io.IOBase.truncate`. Iteration and the :keyword:`with` statement are supporte...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4c0d771b-bfd1-4df2-a62d-3cdcb8b4bc60
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,888
supabase-export-v2
860d34261866fa16
"nonrandom" stream of data (a stream of ``b"z"`` chunks). Random data tends to compress poorly, while ordered, repetitive data usually yields a high compression ratio. Writing and reading a bzip2-compressed file in binary mode:
trusted_official_docs
CPython Docs
"nonrandom" stream of data (a stream of ``b"z"`` chunks). Random data tends to compress poorly, while ordered, repetitive data usually yields a high compression ratio. Writing and reading a bzip2-compressed file in binary mode:
"nonrandom" stream of data (a stream of ``b"z"`` chunks). Random data tends to compress poorly, while ordered, repetitive data usually yields a high compression ratio. Writing and reading a bzip2-compressed file in binary mode:
python, official-docs, cpython, P0
Local_Trusted_Corpus
6ddee450-90f7-454a-acf9-305257c09d0c
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,798
supabase-export-v2
263a56c6f4930434
``'r'``, ``'rb'``, ``'w'``, ``'wb'``, ``'x'``, ``'xb'``, ``'a'`` or ``'ab'`` for binary mode, or ``'rt'``, ``'wt'``, ``'xt'``, or ``'at'`` for text mode. The default is ``'rb'``. The *compresslevel* argument is an integer from 1 to 9, as for the :class:`BZ2File` constructor.
trusted_official_docs
CPython Docs
``'r'``, ``'rb'``, ``'w'``, ``'wb'``, ``'x'``, ``'xb'``, ``'a'`` or ``'ab'`` for binary mode, or ``'rt'``, ``'wt'``, ``'xt'``, or ``'at'`` for text mode. The default is ``'rb'``. The *compresslevel* argument is an integer from 1 to 9, as for the :class:`BZ2File` constructor.
``'r'``, ``'rb'``, ``'w'``, ``'wb'``, ``'x'``, ``'xb'``, ``'a'`` or ``'ab'`` for binary mode, or ``'rt'``, ``'wt'``, ``'xt'``, or ``'at'`` for text mode. The default is ``'rb'``. The *compresslevel* argument is an integer from 1 to 9, as for the :class:`BZ2File` constructor.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7fa1b317-ac28-4852-9b52-faa7dd79a536
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,885
supabase-export-v2
21a8650a04710af1
len(data) / len(c) # Data compression ratio 1.513595166163142 >>> d = bz2.decompress(c) >>> data == d # Check equality to original object after round-trip True Using :class:`BZ2Compressor` for incremental compression:
trusted_official_docs
CPython Docs
len(data) / len(c) # Data compression ratio 1.513595166163142 >>> d = bz2.decompress(c) >>> data == d # Check equality to original object after round-trip True Using :class:`BZ2Compressor` for incremental compression:
len(data) / len(c) # Data compression ratio 1.513595166163142 >>> d = bz2.decompress(c) >>> data == d # Check equality to original object after round-trip True Using :class:`BZ2Compressor` for incremental compression:
python, official-docs, cpython, P0
Local_Trusted_Corpus
7fdce7e4-f6c8-43fd-bc6d-59b052494c62
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,799
supabase-export-v2
f6130802f0e32f2a
The *compresslevel* argument is an integer from 1 to 9, as for the :class:`BZ2File` constructor. For binary mode, this function is equivalent to the :class:`BZ2File` constructor: ``BZ2File(filename, mode, compresslevel=compresslevel)``. In this case, the *encoding*, *errors* and *newline* arguments must not be provi...
trusted_official_docs
CPython Docs
The *compresslevel* argument is an integer from 1 to 9, as for the :class:`BZ2File` constructor. For binary mode, this function is equivalent to the :class:`BZ2File` constructor: ``BZ2File(filename, mode, compresslevel=compresslevel)``. In this case, the *encoding*, *errors* and *newline* arguments must not be provi...
The *compresslevel* argument is an integer from 1 to 9, as for the :class:`BZ2File` constructor. For binary mode, this function is equivalent to the :class:`BZ2File` constructor: ``BZ2File(filename, mode, compresslevel=compresslevel)``. In this case, the *encoding*, *errors* and *newline* arguments must not be provi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8add2535-e3e9-41da-8ed9-db8abf1f993d
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,887
supabase-export-v2
4f15a9cb1fab54ca
>>> # Finish the compression process. Call this once you have >>> # finished providing data to the compressor. >>> out = out + comp.flush() The example above uses a very "nonrandom" stream of data (a stream of ``b"z"`` chunks). Random data tends to compress poorly, while ordered, repetitive data usually yields a high c...
trusted_official_docs
CPython Docs
>>> # Finish the compression process. Call this once you have >>> # finished providing data to the compressor. >>> out = out + comp.flush() The example above uses a very "nonrandom" stream of data (a stream of ``b"z"`` chunks). Random data tends to compress poorly, while ordered, repetitive data usually yields a high c...
>>> # Finish the compression process. Call this once you have >>> # finished providing data to the compressor. >>> out = out + comp.flush() The example above uses a very "nonrandom" stream of data (a stream of ``b"z"`` chunks). Random data tends to compress poorly, while ordered, repetitive data usually yields a high c...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9b3a6590-3cbf-4d4d-97d7-a2a35afe9dc8
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,806
supabase-export-v2
758eb0d07e990432
Open a bzip2-compressed file in binary mode. If *filename* is a :class:`str` or :class:`bytes` object, open the named file directly. Otherwise, *filename* should be a :term:`file object`, which will be used to read or write the compressed data.
trusted_official_docs
CPython Docs
Open a bzip2-compressed file in binary mode. If *filename* is a :class:`str` or :class:`bytes` object, open the named file directly. Otherwise, *filename* should be a :term:`file object`, which will be used to read or write the compressed data.
Open a bzip2-compressed file in binary mode. If *filename* is a :class:`str` or :class:`bytes` object, open the named file directly. Otherwise, *filename* should be a :term:`file object`, which will be used to read or write the compressed data.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a054e614-e190-4e3d-ab26-95f41a8c77cb
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,809
supabase-export-v2
5fac2ae8fe48b747
is a file object (rather than an actual file name), a mode of ``'w'`` does not truncate the file, and is instead equivalent to ``'a'``. If *mode* is ``'w'`` or ``'a'``, *compresslevel* can be an integer between ``1`` and ``9`` specifying the level of compression: ``1`` produces the least compression, and ``9`` (defau...
trusted_official_docs
CPython Docs
is a file object (rather than an actual file name), a mode of ``'w'`` does not truncate the file, and is instead equivalent to ``'a'``. If *mode* is ``'w'`` or ``'a'``, *compresslevel* can be an integer between ``1`` and ``9`` specifying the level of compression: ``1`` produces the least compression, and ``9`` (defau...
is a file object (rather than an actual file name), a mode of ``'w'`` does not truncate the file, and is instead equivalent to ``'a'``. If *mode* is ``'w'`` or ``'a'``, *compresslevel* can be an integer between ``1`` and ``9`` specifying the level of compression: ``1`` produces the least compression, and ``9`` (defau...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a09fa948-4360-4e2b-9f8e-d0c44917a707
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,826
supabase-export-v2
28fd46027a227e15
uncompressed bytes, while trying to avoid making multiple reads from the underlying stream. Reads up to a buffer's worth of data if size is negative. Returns ``b''`` if the file is at EOF.
trusted_official_docs
CPython Docs
uncompressed bytes, while trying to avoid making multiple reads from the underlying stream. Reads up to a buffer's worth of data if size is negative. Returns ``b''`` if the file is at EOF.
uncompressed bytes, while trying to avoid making multiple reads from the underlying stream. Reads up to a buffer's worth of data if size is negative. Returns ``b''`` if the file is at EOF.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a33cd87c-311e-4020-8167-dc380c466bf9
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,812
supabase-export-v2
dcf43e3663aa61a7
:class:`BZ2File` provides all of the members specified by the :class:`io.BufferedIOBase`, except for :meth:`~io.BufferedIOBase.detach` and :meth:`~io.IOBase.truncate`. Iteration and the :keyword:`with` statement are supported. :class:`BZ2File` also provides the following methods and attributes:
trusted_official_docs
CPython Docs
:class:`BZ2File` provides all of the members specified by the :class:`io.BufferedIOBase`, except for :meth:`~io.BufferedIOBase.detach` and :meth:`~io.IOBase.truncate`. Iteration and the :keyword:`with` statement are supported. :class:`BZ2File` also provides the following methods and attributes:
:class:`BZ2File` provides all of the members specified by the :class:`io.BufferedIOBase`, except for :meth:`~io.BufferedIOBase.detach` and :meth:`~io.IOBase.truncate`. Iteration and the :keyword:`with` statement are supported. :class:`BZ2File` also provides the following methods and attributes:
python, official-docs, cpython, P0
Local_Trusted_Corpus
a445e452-0369-4d73-b25a-6a382c82b1f7
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,842
supabase-export-v2
eff107e7221f2d65
The *compresslevel* parameter became keyword-only. .. versionchanged:: 3.10 This class is thread unsafe in the face of multiple simultaneous readers or writers, just like its equivalent classes in :mod:`gzip` and :mod:`lzma` have always been.
trusted_official_docs
CPython Docs
The *compresslevel* parameter became keyword-only. .. versionchanged:: 3.10 This class is thread unsafe in the face of multiple simultaneous readers or writers, just like its equivalent classes in :mod:`gzip` and :mod:`lzma` have always been.
The *compresslevel* parameter became keyword-only. .. versionchanged:: 3.10 This class is thread unsafe in the face of multiple simultaneous readers or writers, just like its equivalent classes in :mod:`gzip` and :mod:`lzma` have always been.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a854c8bb-5a6e-4c80-964d-679d02fe1f78
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,857
supabase-export-v2
2b6792463a4b25e1
.. method:: decompress(data, max_length=-1) Decompress *data* (a :term:`bytes-like object`), returning uncompressed data as bytes. Some of *data* may be buffered internally, for use in later calls to :meth:`decompress`. The returned data should be concatenated with the output of any previous calls to :meth:`decompr...
trusted_official_docs
CPython Docs
.. method:: decompress(data, max_length=-1) Decompress *data* (a :term:`bytes-like object`), returning uncompressed data as bytes. Some of *data* may be buffered internally, for use in later calls to :meth:`decompress`. The returned data should be concatenated with the output of any previous calls to :meth:`decompr...
.. method:: decompress(data, max_length=-1) Decompress *data* (a :term:`bytes-like object`), returning uncompressed data as bytes. Some of *data* may be buffered internally, for use in later calls to :meth:`decompress`. The returned data should be concatenated with the output of any previous calls to :meth:`decompr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a8cab3da-4b79-462e-889c-6562c59121fe
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,841
supabase-export-v2
fcad916acb0fceb8
*buffering* parameter has been removed. It was ignored and deprecated since Python 3.0. Pass an open file object to control how the file is opened. The *compresslevel* parameter became keyword-only.
trusted_official_docs
CPython Docs
*buffering* parameter has been removed. It was ignored and deprecated since Python 3.0. Pass an open file object to control how the file is opened. The *compresslevel* parameter became keyword-only.
*buffering* parameter has been removed. It was ignored and deprecated since Python 3.0. Pass an open file object to control how the file is opened. The *compresslevel* parameter became keyword-only.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ad18cb6f-d6f9-4218-ac9a-f72abd6f8698
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,890
supabase-export-v2
61a67d76afd6af27
data to file ... unused = f.write(data) ... >>> with bz2.open("myfile.bz2", "rb") as f: ... # Decompress data from file ... content = f.read() ... >>> content == data # Check equality to original object after round-trip True
trusted_official_docs
CPython Docs
data to file ... unused = f.write(data) ... >>> with bz2.open("myfile.bz2", "rb") as f: ... # Decompress data from file ... content = f.read() ... >>> content == data # Check equality to original object after round-trip True
data to file ... unused = f.write(data) ... >>> with bz2.open("myfile.bz2", "rb") as f: ... # Decompress data from file ... content = f.read() ... >>> content == data # Check equality to original object after round-trip True
python, official-docs, cpython, P0
Local_Trusted_Corpus
b31f1693-35ec-45d0-b94a-bc51fa3e13b9
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,807
supabase-export-v2
dd1f8e9a0b557f00
:class:`bytes` object, open the named file directly. Otherwise, *filename* should be a :term:`file object`, which will be used to read or write the compressed data. The *mode* argument can be either ``'r'`` for reading (default), ``'w'`` for overwriting, ``'x'`` for exclusive creation, or ``'a'`` for appending. These ...
trusted_official_docs
CPython Docs
:class:`bytes` object, open the named file directly. Otherwise, *filename* should be a :term:`file object`, which will be used to read or write the compressed data. The *mode* argument can be either ``'r'`` for reading (default), ``'w'`` for overwriting, ``'x'`` for exclusive creation, or ``'a'`` for appending. These ...
:class:`bytes` object, open the named file directly. Otherwise, *filename* should be a :term:`file object`, which will be used to read or write the compressed data. The *mode* argument can be either ``'r'`` for reading (default), ``'w'`` for overwriting, ``'x'`` for exclusive creation, or ``'a'`` for appending. These ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b7a55676-86db-4191-a46e-a6d6fdd86b07
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,814
supabase-export-v2
4dfebc6aafc90621
.. method:: peek([n]) Return buffered data without advancing the file position. At least one byte of data will be returned (unless at EOF). The exact number of bytes returned is unspecified.
trusted_official_docs
CPython Docs
.. method:: peek([n]) Return buffered data without advancing the file position. At least one byte of data will be returned (unless at EOF). The exact number of bytes returned is unspecified.
.. method:: peek([n]) Return buffered data without advancing the file position. At least one byte of data will be returned (unless at EOF). The exact number of bytes returned is unspecified.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c81c701f-ac5c-4b80-bc7c-4e16354caf15
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,836
supabase-export-v2
052b6a8165d056ae
.. versionchanged:: 3.3 Support was added for *filename* being a :term:`file object` instead of an actual filename. The ``'a'`` (append) mode was added, along with support for reading multi-stream files.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.3 Support was added for *filename* being a :term:`file object` instead of an actual filename. The ``'a'`` (append) mode was added, along with support for reading multi-stream files.
.. versionchanged:: 3.3 Support was added for *filename* being a :term:`file object` instead of an actual filename. The ``'a'`` (append) mode was added, along with support for reading multi-stream files.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d3e5b280-aa56-4049-9ca7-758f526cb7d5
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,810
supabase-export-v2
8fb77993f3bbb199
can be an integer between ``1`` and ``9`` specifying the level of compression: ``1`` produces the least compression, and ``9`` (default) produces the most compression. If *mode* is ``'r'``, the input file may be the concatenation of multiple compressed streams.
trusted_official_docs
CPython Docs
can be an integer between ``1`` and ``9`` specifying the level of compression: ``1`` produces the least compression, and ``9`` (default) produces the most compression. If *mode* is ``'r'``, the input file may be the concatenation of multiple compressed streams.
can be an integer between ``1`` and ``9`` specifying the level of compression: ``1`` produces the least compression, and ``9`` (default) produces the most compression. If *mode* is ``'r'``, the input file may be the concatenation of multiple compressed streams.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d85b2463-fecc-4b25-aff3-46ed3bc52f09
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,808
supabase-export-v2
778d1465d8182b64
reading (default), ``'w'`` for overwriting, ``'x'`` for exclusive creation, or ``'a'`` for appending. These can equivalently be given as ``'rb'``, ``'wb'``, ``'xb'`` and ``'ab'`` respectively. If *filename* is a file object (rather than an actual file name), a mode of ``'w'`` does not truncate the file, and is instead...
trusted_official_docs
CPython Docs
reading (default), ``'w'`` for overwriting, ``'x'`` for exclusive creation, or ``'a'`` for appending. These can equivalently be given as ``'rb'``, ``'wb'``, ``'xb'`` and ``'ab'`` respectively. If *filename* is a file object (rather than an actual file name), a mode of ``'w'`` does not truncate the file, and is instead...
reading (default), ``'w'`` for overwriting, ``'x'`` for exclusive creation, or ``'a'`` for appending. These can equivalently be given as ``'rb'``, ``'wb'``, ``'xb'`` and ``'ab'`` respectively. If *filename* is a file object (rather than an actual file name), a mode of ``'w'`` does not truncate the file, and is instead...
python, official-docs, cpython, P0
Local_Trusted_Corpus
eb856c48-172e-4a89-b5b7-2433008dd386
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,886
supabase-export-v2
fe177f159b3ba8c8
Using :class:`BZ2Compressor` for incremental compression: >>> import bz2 >>> def gen_data(chunks=10, chunksize=1000): ... """Yield incremental blocks of chunksize bytes.""" ... for _ in range(chunks): ... yield b"z" * chunksize ... >>> comp = bz2.BZ2Compressor() >>> out = b"" >>> for chunk in gen_data(): ... # ...
trusted_official_docs
CPython Docs
Using :class:`BZ2Compressor` for incremental compression: >>> import bz2 >>> def gen_data(chunks=10, chunksize=1000): ... """Yield incremental blocks of chunksize bytes.""" ... for _ in range(chunks): ... yield b"z" * chunksize ... >>> comp = bz2.BZ2Compressor() >>> out = b"" >>> for chunk in gen_data(): ... # ...
Using :class:`BZ2Compressor` for incremental compression: >>> import bz2 >>> def gen_data(chunks=10, chunksize=1000): ... """Yield incremental blocks of chunksize bytes.""" ... for _ in range(chunks): ... yield b"z" * chunksize ... >>> comp = bz2.BZ2Compressor() >>> out = b"" >>> for chunk in gen_data(): ... # ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f21f78e3-4d51-4f01-96a9-96e01dc87065
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,889
supabase-export-v2
d14b586a2e71fee3
Writing and reading a bzip2-compressed file in binary mode: >>> import bz2 >>> data = b"""\ ... Donec rhoncus quis sapien sit amet molestie. Fusce scelerisque vel augue ... nec ullamcorper. Nam rutrum pretium placerat. Aliquam vel tristique lorem, ... sit amet cursus ante. In interdum laoreet mi, sit amet ultrices ...
trusted_official_docs
CPython Docs
Writing and reading a bzip2-compressed file in binary mode: >>> import bz2 >>> data = b"""\ ... Donec rhoncus quis sapien sit amet molestie. Fusce scelerisque vel augue ... nec ullamcorper. Nam rutrum pretium placerat. Aliquam vel tristique lorem, ... sit amet cursus ante. In interdum laoreet mi, sit amet ultrices ...
Writing and reading a bzip2-compressed file in binary mode: >>> import bz2 >>> data = b"""\ ... Donec rhoncus quis sapien sit amet molestie. Fusce scelerisque vel augue ... nec ullamcorper. Nam rutrum pretium placerat. Aliquam vel tristique lorem, ... sit amet cursus ante. In interdum laoreet mi, sit amet ultrices ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f82ebc76-e12c-41f0-b980-07c280accd7d
CPython Docs
file://datasets/cpython/Doc/library/bz2.rst
unknown
ba6e9295-4bc5-4978-902f-011bf6f11be5
37,797
supabase-export-v2
d70d35a414064f9c
:class:`BZ2File`, the *filename* argument can be an actual filename (a :class:`str` or :class:`bytes` object), or an existing file object to read from or write to. The *mode* argument can be any of ``'r'``, ``'rb'``, ``'w'``, ``'wb'``, ``'x'``, ``'xb'``, ``'a'`` or ``'ab'`` for binary mode, or ``'rt'``, ``'wt'``, ``'...
trusted_official_docs
CPython Docs
:class:`BZ2File`, the *filename* argument can be an actual filename (a :class:`str` or :class:`bytes` object), or an existing file object to read from or write to. The *mode* argument can be any of ``'r'``, ``'rb'``, ``'w'``, ``'wb'``, ``'x'``, ``'xb'``, ``'a'`` or ``'ab'`` for binary mode, or ``'rt'``, ``'wt'``, ``'...
:class:`BZ2File`, the *filename* argument can be an actual filename (a :class:`str` or :class:`bytes` object), or an existing file object to read from or write to. The *mode* argument can be any of ``'r'``, ``'rb'``, ``'w'``, ``'wb'``, ``'x'``, ``'xb'``, ``'a'`` or ``'ab'`` for binary mode, or ``'rt'``, ``'wt'``, ``'...
python, official-docs, cpython, P0
Local_Trusted_Corpus
04bcc973-c71c-488b-a418-60caf8b80622
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,968
supabase-export-v2
76b58ed7d12f16b1
example creates a Future object, creates and schedules an asynchronous Task to set result for the Future, and waits until the Future has a result:: async def set_after(fut, delay, value): # Sleep for *delay* seconds. await asyncio.sleep(delay)
trusted_official_docs
CPython Docs
example creates a Future object, creates and schedules an asynchronous Task to set result for the Future, and waits until the Future has a result:: async def set_after(fut, delay, value): # Sleep for *delay* seconds. await asyncio.sleep(delay)
example creates a Future object, creates and schedules an asynchronous Task to set result for the Future, and waits until the Future has a result:: async def set_after(fut, delay, value): # Sleep for *delay* seconds. await asyncio.sleep(delay)
python, official-docs, cpython, P0
Local_Trusted_Corpus
186f5767-e238-4c18-9e5f-1e7dfe071390
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,947
supabase-export-v2
8a21c85f803a00b2
If the Future is already *done* when this method is called, the callback is scheduled with :meth:`loop.call_soon`. An optional keyword-only *context* argument allows specifying a custom :class:`contextvars.Context` for the *callback* to run in. The current context is used when no *context* is provided.
trusted_official_docs
CPython Docs
If the Future is already *done* when this method is called, the callback is scheduled with :meth:`loop.call_soon`. An optional keyword-only *context* argument allows specifying a custom :class:`contextvars.Context` for the *callback* to run in. The current context is used when no *context* is provided.
If the Future is already *done* when this method is called, the callback is scheduled with :meth:`loop.call_soon`. An optional keyword-only *context* argument allows specifying a custom :class:`contextvars.Context` for the *callback* to run in. The current context is used when no *context* is provided.
python, official-docs, cpython, P0
Local_Trusted_Corpus
19fed14e-e8f9-4fbf-90f9-78d2771110a2
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,972
supabase-export-v2
2169f7f8a9a224b2
# Create a new Future object. fut = loop.create_future() # Run "set_after()" coroutine in a parallel Task. # We are using the low-level "loop.create_task()" API here because # we already have a reference to the event loop at hand. # Otherwise we could have just used "asyncio.create_task()". loop.create_task( set_afte...
trusted_official_docs
CPython Docs
# Create a new Future object. fut = loop.create_future() # Run "set_after()" coroutine in a parallel Task. # We are using the low-level "loop.create_task()" API here because # we already have a reference to the event loop at hand. # Otherwise we could have just used "asyncio.create_task()". loop.create_task( set_afte...
# Create a new Future object. fut = loop.create_future() # Run "set_after()" coroutine in a parallel Task. # We are using the low-level "loop.create_task()" API here because # we already have a reference to the event loop at hand. # Otherwise we could have just used "asyncio.create_task()". loop.create_task( set_afte...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1b7b1265-903e-4fb5-bf63-535aa3a893bb
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,911
supabase-export-v2
504dd6a24f2c7419
.. versionchanged:: 3.5.1 The function accepts any :term:`awaitable` object. .. deprecated:: 3.10 Deprecation warning is emitted if *obj* is not a Future-like object and *loop* is not specified and there is no running event loop.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.5.1 The function accepts any :term:`awaitable` object. .. deprecated:: 3.10 Deprecation warning is emitted if *obj* is not a Future-like object and *loop* is not specified and there is no running event loop.
.. versionchanged:: 3.5.1 The function accepts any :term:`awaitable` object. .. deprecated:: 3.10 Deprecation warning is emitted if *obj* is not a Future-like object and *loop* is not specified and there is no running event loop.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2f86f2e3-d301-422c-b152-b3ef15eacb4e
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,928
supabase-export-v2
99ac34437fb3407a
If the Future is *done* and has an exception set by the :meth:`set_exception` method, this method raises the exception. If the Future has been *cancelled*, this method raises a :exc:`CancelledError` exception.
trusted_official_docs
CPython Docs
If the Future is *done* and has an exception set by the :meth:`set_exception` method, this method raises the exception. If the Future has been *cancelled*, this method raises a :exc:`CancelledError` exception.
If the Future is *done* and has an exception set by the :meth:`set_exception` method, this method raises the exception. If the Future has been *cancelled*, this method raises a :exc:`CancelledError` exception.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4002772e-d9d1-41f0-a441-3992edd7080d
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,909
supabase-export-v2
5efac99c76d1b36e
Save a reference to the result of this function, to avoid a task disappearing mid-execution. See also the :func:`create_task` function which is the preferred way for creating new tasks or use :class:`asyncio.TaskGroup` which keeps reference to the task internally.
trusted_official_docs
CPython Docs
Save a reference to the result of this function, to avoid a task disappearing mid-execution. See also the :func:`create_task` function which is the preferred way for creating new tasks or use :class:`asyncio.TaskGroup` which keeps reference to the task internally.
Save a reference to the result of this function, to avoid a task disappearing mid-execution. See also the :func:`create_task` function which is the preferred way for creating new tasks or use :class:`asyncio.TaskGroup` which keeps reference to the task internally.
python, official-docs, cpython, P0
Local_Trusted_Corpus
51afaec0-1304-445f-90da-12d841008e48
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,905
supabase-export-v2
6c4ea5cb56fdaae3
:class:`Task` object wrapping *obj*, if *obj* is a coroutine (:func:`iscoroutine` is used for the test); in this case the coroutine will be scheduled by ``ensure_future()``. * a :class:`Task` object that would await on *obj*, if *obj* is an awaitable (:func:`inspect.isawaitable` is used for the test.)
trusted_official_docs
CPython Docs
:class:`Task` object wrapping *obj*, if *obj* is a coroutine (:func:`iscoroutine` is used for the test); in this case the coroutine will be scheduled by ``ensure_future()``. * a :class:`Task` object that would await on *obj*, if *obj* is an awaitable (:func:`inspect.isawaitable` is used for the test.)
:class:`Task` object wrapping *obj*, if *obj* is a coroutine (:func:`iscoroutine` is used for the test); in this case the coroutine will be scheduled by ``ensure_future()``. * a :class:`Task` object that would await on *obj*, if *obj* is an awaitable (:func:`inspect.isawaitable` is used for the test.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
5cff3e2e-d580-44e8-b861-ec841285cb48
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,904
supabase-export-v2
b333e940b29f655c
* *obj* argument as is, if *obj* is a :class:`Future`, a :class:`Task`, or a Future-like object (:func:`isfuture` is used for the test.) * a :class:`Task` object wrapping *obj*, if *obj* is a coroutine (:func:`iscoroutine` is used for the test); in this case the coroutine will be scheduled by ``ensure_future()``.
trusted_official_docs
CPython Docs
* *obj* argument as is, if *obj* is a :class:`Future`, a :class:`Task`, or a Future-like object (:func:`isfuture` is used for the test.) * a :class:`Task` object wrapping *obj*, if *obj* is a coroutine (:func:`iscoroutine` is used for the test); in this case the coroutine will be scheduled by ``ensure_future()``.
* *obj* argument as is, if *obj* is a :class:`Future`, a :class:`Task`, or a Future-like object (:func:`isfuture` is used for the test.) * a :class:`Task` object wrapping *obj*, if *obj* is a coroutine (:func:`iscoroutine` is used for the test); in this case the coroutine will be scheduled by ``ensure_future()``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5ef1d6cd-7d80-441c-9f50-8dd34812f4c5
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,912
supabase-export-v2
d65356cafdb6886e
deprecated:: 3.10 Deprecation warning is emitted if *obj* is not a Future-like object and *loop* is not specified and there is no running event loop. .. function:: wrap_future(future, *, loop=None)
trusted_official_docs
CPython Docs
deprecated:: 3.10 Deprecation warning is emitted if *obj* is not a Future-like object and *loop* is not specified and there is no running event loop. .. function:: wrap_future(future, *, loop=None)
deprecated:: 3.10 Deprecation warning is emitted if *obj* is not a Future-like object and *loop* is not specified and there is no running event loop. .. function:: wrap_future(future, *, loop=None)
python, official-docs, cpython, P0
Local_Trusted_Corpus
5ef34f19-9b89-434c-a2ad-c5fa8c76eafe
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,927
supabase-export-v2
4982e727755f5480
If the Future is *done* and has a result set by the :meth:`set_result` method, the result value is returned. If the Future is *done* and has an exception set by the :meth:`set_exception` method, this method raises the exception.
trusted_official_docs
CPython Docs
If the Future is *done* and has a result set by the :meth:`set_result` method, the result value is returned. If the Future is *done* and has an exception set by the :meth:`set_exception` method, this method raises the exception.
If the Future is *done* and has a result set by the :meth:`set_result` method, the result value is returned. If the Future is *done* and has an exception set by the :meth:`set_exception` method, this method raises the exception.
python, official-docs, cpython, P0
Local_Trusted_Corpus
617e1027-f7a7-49cf-8921-7ad261f8257c
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,914
supabase-export-v2
795b7f0c864612bb
Wrap a :class:`concurrent.futures.Future` object in a :class:`asyncio.Future` object. .. deprecated:: 3.10 Deprecation warning is emitted if *future* is not a Future-like object and *loop* is not specified and there is no running event loop.
trusted_official_docs
CPython Docs
Wrap a :class:`concurrent.futures.Future` object in a :class:`asyncio.Future` object. .. deprecated:: 3.10 Deprecation warning is emitted if *future* is not a Future-like object and *loop* is not specified and there is no running event loop.
Wrap a :class:`concurrent.futures.Future` object in a :class:`asyncio.Future` object. .. deprecated:: 3.10 Deprecation warning is emitted if *future* is not a Future-like object and *loop* is not specified and there is no running event loop.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6369e7bb-d10c-4509-8e12-4f8a3a040399
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,910
supabase-export-v2
268596ca4b171e7a
See also the :func:`create_task` function which is the preferred way for creating new tasks or use :class:`asyncio.TaskGroup` which keeps reference to the task internally. .. versionchanged:: 3.5.1 The function accepts any :term:`awaitable` object.
trusted_official_docs
CPython Docs
See also the :func:`create_task` function which is the preferred way for creating new tasks or use :class:`asyncio.TaskGroup` which keeps reference to the task internally. .. versionchanged:: 3.5.1 The function accepts any :term:`awaitable` object.
See also the :func:`create_task` function which is the preferred way for creating new tasks or use :class:`asyncio.TaskGroup` which keeps reference to the task internally. .. versionchanged:: 3.5.1 The function accepts any :term:`awaitable` object.
python, official-docs, cpython, P0
Local_Trusted_Corpus
677088d1-4361-4c08-bfe6-ecfe0ea29eec
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,922
supabase-export-v2
c1cc2372ed92c4b5
to create a Future object is to call :meth:`loop.create_future`. This way alternative event loop implementations can inject their own optimized implementations of a Future object. .. versionchanged:: 3.7 Added support for the :mod:`contextvars` module.
trusted_official_docs
CPython Docs
to create a Future object is to call :meth:`loop.create_future`. This way alternative event loop implementations can inject their own optimized implementations of a Future object. .. versionchanged:: 3.7 Added support for the :mod:`contextvars` module.
to create a Future object is to call :meth:`loop.create_future`. This way alternative event loop implementations can inject their own optimized implementations of a Future object. .. versionchanged:: 3.7 Added support for the :mod:`contextvars` module.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7c35fcb3-9e0f-439e-9487-445193742307
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,919
supabase-export-v2
839b7fb2e370c3ae
A Future represents an eventual result of an asynchronous operation. Not thread-safe. Future is an :term:`awaitable` object. Coroutines can await on Future objects until they either have a result or an exception set, or until they are cancelled. A Future can be awaited multiple times and the result is same.
trusted_official_docs
CPython Docs
A Future represents an eventual result of an asynchronous operation. Not thread-safe. Future is an :term:`awaitable` object. Coroutines can await on Future objects until they either have a result or an exception set, or until they are cancelled. A Future can be awaited multiple times and the result is same.
A Future represents an eventual result of an asynchronous operation. Not thread-safe. Future is an :term:`awaitable` object. Coroutines can await on Future objects until they either have a result or an exception set, or until they are cancelled. A Future can be awaited multiple times and the result is same.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7de3f639-f502-43eb-a47b-3a0014ec04f0
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,948
supabase-export-v2
06340142b03b93d2
optional keyword-only *context* argument allows specifying a custom :class:`contextvars.Context` for the *callback* to run in. The current context is used when no *context* is provided. :func:`functools.partial` can be used to pass parameters to the callback, e.g.::
trusted_official_docs
CPython Docs
optional keyword-only *context* argument allows specifying a custom :class:`contextvars.Context` for the *callback* to run in. The current context is used when no *context* is provided. :func:`functools.partial` can be used to pass parameters to the callback, e.g.::
optional keyword-only *context* argument allows specifying a custom :class:`contextvars.Context` for the *callback* to run in. The current context is used when no *context* is provided. :func:`functools.partial` can be used to pass parameters to the callback, e.g.::
python, official-docs, cpython, P0
Local_Trusted_Corpus
9186f869-067c-456b-98b1-1914ed9ff4c5
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,938
supabase-export-v2
3739c52183958e8b
Return ``True`` if the Future is *done*. A Future is *done* if it was *cancelled* or if it has a result or an exception set with :meth:`set_result` or :meth:`set_exception` calls.
trusted_official_docs
CPython Docs
Return ``True`` if the Future is *done*. A Future is *done* if it was *cancelled* or if it has a result or an exception set with :meth:`set_result` or :meth:`set_exception` calls.
Return ``True`` if the Future is *done*. A Future is *done* if it was *cancelled* or if it has a result or an exception set with :meth:`set_result` or :meth:`set_exception` calls.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c2a30ded-d016-466a-8b62-7de4f6328d65
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,906
supabase-export-v2
4977830968df7d36
* a :class:`Task` object that would await on *obj*, if *obj* is an awaitable (:func:`inspect.isawaitable` is used for the test.) If *obj* is neither of the above a :exc:`TypeError` is raised.
trusted_official_docs
CPython Docs
* a :class:`Task` object that would await on *obj*, if *obj* is an awaitable (:func:`inspect.isawaitable` is used for the test.) If *obj* is neither of the above a :exc:`TypeError` is raised.
* a :class:`Task` object that would await on *obj*, if *obj* is an awaitable (:func:`inspect.isawaitable` is used for the test.) If *obj* is neither of the above a :exc:`TypeError` is raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ded888d2-bac5-49c6-9c20-98b94f02bc59
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,920
supabase-export-v2
6c693b0e1b946774
either have a result or an exception set, or until they are cancelled. A Future can be awaited multiple times and the result is same. Typically Futures are used to enable low-level callback-based code (e.g. in protocols implemented using asyncio :ref:`transports <asyncio-transports-protocols>`) to interoperate with ...
trusted_official_docs
CPython Docs
either have a result or an exception set, or until they are cancelled. A Future can be awaited multiple times and the result is same. Typically Futures are used to enable low-level callback-based code (e.g. in protocols implemented using asyncio :ref:`transports <asyncio-transports-protocols>`) to interoperate with ...
either have a result or an exception set, or until they are cancelled. A Future can be awaited multiple times and the result is same. Typically Futures are used to enable low-level callback-based code (e.g. in protocols implemented using asyncio :ref:`transports <asyncio-transports-protocols>`) to interoperate with ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e02af1a3-00f0-486b-bcd6-dfdea90b161a
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,957
supabase-export-v2
55428d04c9b0150d
If the Future is already *done* or *cancelled*, return ``False``. Otherwise, change the Future's state to *cancelled*, schedule the callbacks, and return ``True``. The optional string argument *msg* is passed as the argument to the :exc:`CancelledError` exception raised when a cancelled Future is awaited.
trusted_official_docs
CPython Docs
If the Future is already *done* or *cancelled*, return ``False``. Otherwise, change the Future's state to *cancelled*, schedule the callbacks, and return ``True``. The optional string argument *msg* is passed as the argument to the :exc:`CancelledError` exception raised when a cancelled Future is awaited.
If the Future is already *done* or *cancelled*, return ``False``. Otherwise, change the Future's state to *cancelled*, schedule the callbacks, and return ``True``. The optional string argument *msg* is passed as the argument to the :exc:`CancelledError` exception raised when a cancelled Future is awaited.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ee8ff99a-ca12-4ca4-93d9-0d897527c914
CPython Docs
file://datasets/cpython/Doc/library/asyncio-future.rst
unknown
9046812a-a4ed-416e-bf8a-38c60046138a
37,921
supabase-export-v2
f4527320f8428cc1
Typically Futures are used to enable low-level callback-based code (e.g. in protocols implemented using asyncio :ref:`transports <asyncio-transports-protocols>`) to interoperate with high-level async/await code. The rule of thumb is to never expose Future objects in user-facing APIs, and the recommended way to create ...
trusted_official_docs
CPython Docs
Typically Futures are used to enable low-level callback-based code (e.g. in protocols implemented using asyncio :ref:`transports <asyncio-transports-protocols>`) to interoperate with high-level async/await code. The rule of thumb is to never expose Future objects in user-facing APIs, and the recommended way to create ...
Typically Futures are used to enable low-level callback-based code (e.g. in protocols implemented using asyncio :ref:`transports <asyncio-transports-protocols>`) to interoperate with high-level async/await code. The rule of thumb is to never expose Future objects in user-facing APIs, and the recommended way to create ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
04c5f8ad-d2cf-463b-b9a2-fc073ab89bed
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,094
supabase-export-v2
2eb9f8d114eaf5f5
:const:`MF_HC4`, :const:`MF_BT2`, :const:`MF_BT3`, or :const:`MF_BT4`. * ``depth``: Maximum search depth used by match finder. 0 (default) means to select automatically based on other filter options. The delta filter stores the differences between bytes, producing more repetitive input for the compressor in certain cir...
trusted_official_docs
CPython Docs
:const:`MF_HC4`, :const:`MF_BT2`, :const:`MF_BT3`, or :const:`MF_BT4`. * ``depth``: Maximum search depth used by match finder. 0 (default) means to select automatically based on other filter options. The delta filter stores the differences between bytes, producing more repetitive input for the compressor in certain cir...
:const:`MF_HC4`, :const:`MF_BT2`, :const:`MF_BT3`, or :const:`MF_BT4`. * ``depth``: Maximum search depth used by match finder. 0 (default) means to select automatically based on other filter options. The delta filter stores the differences between bytes, producing more repetitive input for the compressor in certain cir...
python, official-docs, cpython, P0
Local_Trusted_Corpus
07afff62-1134-4f96-b414-fa3d5b4cb702
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,034
supabase-export-v2
b192dace6b83fa2f
check to include in the compressed data. This check is used when decompressing, to ensure that the data has not been corrupted. Possible values are: * :const:`CHECK_NONE`: No integrity check. This is the default (and the only acceptable value) for :const:`FORMAT_ALONE` and :const:`FORMAT_RAW`.
trusted_official_docs
CPython Docs
check to include in the compressed data. This check is used when decompressing, to ensure that the data has not been corrupted. Possible values are: * :const:`CHECK_NONE`: No integrity check. This is the default (and the only acceptable value) for :const:`FORMAT_ALONE` and :const:`FORMAT_RAW`.
check to include in the compressed data. This check is used when decompressing, to ensure that the data has not been corrupted. Possible values are: * :const:`CHECK_NONE`: No integrity check. This is the default (and the only acceptable value) for :const:`FORMAT_ALONE` and :const:`FORMAT_RAW`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0b32a39b-f3d2-4edd-a3b5-20829ffe1f3c
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,106
supabase-export-v2
84cf998c3b3c5d0a
import lzma with open("file.xz", "wb") as f: f.write(b"This data will not be compressed\n") with lzma.open(f, "w") as lzf: lzf.write(b"This *will* be compressed\n") f.write(b"Not compressed\n") Creating a compressed file using a custom filter chain::
trusted_official_docs
CPython Docs
import lzma with open("file.xz", "wb") as f: f.write(b"This data will not be compressed\n") with lzma.open(f, "w") as lzf: lzf.write(b"This *will* be compressed\n") f.write(b"Not compressed\n") Creating a compressed file using a custom filter chain::
import lzma with open("file.xz", "wb") as f: f.write(b"This data will not be compressed\n") with lzma.open(f, "w") as lzf: lzf.write(b"This *will* be compressed\n") f.write(b"Not compressed\n") Creating a compressed file using a custom filter chain::
python, official-docs, cpython, P0
Local_Trusted_Corpus
0cff218c-f626-41f0-8da0-e41fb6d40bcc
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,007
supabase-export-v2
d7939f17bc74d69c
:class:`str`, :class:`bytes` or :term:`path-like <path-like object>` object). When wrapping an existing file object, the wrapped file will not be closed when the :class:`LZMAFile` is closed. The *mode* argument can be either ``"r"`` for reading (default), ``"w"`` for overwriting, ``"x"`` for exclusive creation, or ``"...
trusted_official_docs
CPython Docs
:class:`str`, :class:`bytes` or :term:`path-like <path-like object>` object). When wrapping an existing file object, the wrapped file will not be closed when the :class:`LZMAFile` is closed. The *mode* argument can be either ``"r"`` for reading (default), ``"w"`` for overwriting, ``"x"`` for exclusive creation, or ``"...
:class:`str`, :class:`bytes` or :term:`path-like <path-like object>` object). When wrapping an existing file object, the wrapped file will not be closed when the :class:`LZMAFile` is closed. The *mode* argument can be either ``"r"`` for reading (default), ``"w"`` for overwriting, ``"x"`` for exclusive creation, or ``"...
python, official-docs, cpython, P0
Local_Trusted_Corpus
10186e13-6757-478c-9b75-2258c0d4bb3f
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,008
supabase-export-v2
cd13a1b9df29bcdf
reading (default), ``"w"`` for overwriting, ``"x"`` for exclusive creation, or ``"a"`` for appending. These can equivalently be given as ``"rb"``, ``"wb"``, ``"xb"`` and ``"ab"`` respectively. If *filename* is a file object (rather than an actual file name), a mode of ``"w"`` does not truncate the file, and is instead...
trusted_official_docs
CPython Docs
reading (default), ``"w"`` for overwriting, ``"x"`` for exclusive creation, or ``"a"`` for appending. These can equivalently be given as ``"rb"``, ``"wb"``, ``"xb"`` and ``"ab"`` respectively. If *filename* is a file object (rather than an actual file name), a mode of ``"w"`` does not truncate the file, and is instead...
reading (default), ``"w"`` for overwriting, ``"x"`` for exclusive creation, or ``"a"`` for appending. These can equivalently be given as ``"rb"``, ``"wb"``, ``"xb"`` and ``"ab"`` respectively. If *filename* is a file object (rather than an actual file name), a mode of ``"w"`` does not truncate the file, and is instead...
python, official-docs, cpython, P0
Local_Trusted_Corpus
16b9e24f-e8f7-4130-90f0-eb6c7326e60b
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
37,988
supabase-export-v2
03184f4c835e14d3
-------------- This module provides classes and convenience functions for compressing and decompressing data using the LZMA compression algorithm. Also included is a file interface supporting the ``.xz`` and legacy ``.lzma`` file formats used by the :program:`xz` utility, as well as raw compressed streams.
trusted_official_docs
CPython Docs
-------------- This module provides classes and convenience functions for compressing and decompressing data using the LZMA compression algorithm. Also included is a file interface supporting the ``.xz`` and legacy ``.lzma`` file formats used by the :program:`xz` utility, as well as raw compressed streams.
-------------- This module provides classes and convenience functions for compressing and decompressing data using the LZMA compression algorithm. Also included is a file interface supporting the ``.xz`` and legacy ``.lzma`` file formats used by the :program:`xz` utility, as well as raw compressed streams.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1f015e63-a7da-47c1-9fb7-35254ebf5cd2
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,085
supabase-export-v2
909ffac4db2924ee
Specifying custom filter chains ------------------------------- A filter chain specifier is a sequence of dictionaries, where each dictionary contains the ID and options for a single filter. Each dictionary must contain the key ``"id"``, and may contain additional keys to specify filter-dependent options. Valid filter ...
trusted_official_docs
CPython Docs
Specifying custom filter chains ------------------------------- A filter chain specifier is a sequence of dictionaries, where each dictionary contains the ID and options for a single filter. Each dictionary must contain the key ``"id"``, and may contain additional keys to specify filter-dependent options. Valid filter ...
Specifying custom filter chains ------------------------------- A filter chain specifier is a sequence of dictionaries, where each dictionary contains the ID and options for a single filter. Each dictionary must contain the key ``"id"``, and may contain additional keys to specify filter-dependent options. Valid filter ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
362ffafd-f6ad-4cc2-b77e-940244f36da9
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,040
supabase-export-v2
722124cead0681b4
can be specified either as a preset compression level (with the *preset* argument), or in detail as a custom filter chain (with the *filters* argument). The *preset* argument (if provided) should be an integer between ``0`` and ``9`` (inclusive), optionally OR-ed with the constant :const:`PRESET_EXTREME`. If neither ...
trusted_official_docs
CPython Docs
can be specified either as a preset compression level (with the *preset* argument), or in detail as a custom filter chain (with the *filters* argument). The *preset* argument (if provided) should be an integer between ``0`` and ``9`` (inclusive), optionally OR-ed with the constant :const:`PRESET_EXTREME`. If neither ...
can be specified either as a preset compression level (with the *preset* argument), or in detail as a custom filter chain (with the *filters* argument). The *preset* argument (if provided) should be an integer between ``0`` and ``9`` (inclusive), optionally OR-ed with the constant :const:`PRESET_EXTREME`. If neither ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3db802be-3e2e-4602-8357-af942bf53e45
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,016
supabase-export-v2
2a89caf208fc473d
one byte of data will be returned, unless EOF has been reached. The exact number of bytes returned is unspecified (the *size* argument is ignored). .. note:: While calling :meth:`peek` does not change the file position of the :class:`LZMAFile`, it may change the position of the underlying file object (e.g. if the :cl...
trusted_official_docs
CPython Docs
one byte of data will be returned, unless EOF has been reached. The exact number of bytes returned is unspecified (the *size* argument is ignored). .. note:: While calling :meth:`peek` does not change the file position of the :class:`LZMAFile`, it may change the position of the underlying file object (e.g. if the :cl...
one byte of data will be returned, unless EOF has been reached. The exact number of bytes returned is unspecified (the *size* argument is ignored). .. note:: While calling :meth:`peek` does not change the file position of the :class:`LZMAFile`, it may change the position of the underlying file object (e.g. if the :cl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3e569c45-187d-486a-bb0f-6e0d55192cb3
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,105
supabase-export-v2
b8fd2635e2b84d86
Writing compressed data to an already-open file:: import lzma with open("file.xz", "wb") as f: f.write(b"This data will not be compressed\n") with lzma.open(f, "w") as lzf: lzf.write(b"This *will* be compressed\n") f.write(b"Not compressed\n")
trusted_official_docs
CPython Docs
Writing compressed data to an already-open file:: import lzma with open("file.xz", "wb") as f: f.write(b"This data will not be compressed\n") with lzma.open(f, "w") as lzf: lzf.write(b"This *will* be compressed\n") f.write(b"Not compressed\n")
Writing compressed data to an already-open file:: import lzma with open("file.xz", "wb") as f: f.write(b"This data will not be compressed\n") with lzma.open(f, "w") as lzf: lzf.write(b"This *will* be compressed\n") f.write(b"Not compressed\n")
python, official-docs, cpython, P0
Local_Trusted_Corpus
417b3f61-1234-43c2-ae64-bb50ca3c9e96
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
37,998
supabase-export-v2
b87e269cc695abec
``"r"``, ``"rb"``, ``"w"``, ``"wb"``, ``"x"``, ``"xb"``, ``"a"`` or ``"ab"`` for binary mode, or ``"rt"``, ``"wt"``, ``"xt"``, or ``"at"`` for text mode. The default is ``"rb"``. When opening a file for reading, the *format* and *filters* arguments have the same meanings as for :class:`LZMADecompressor`. In this case,...
trusted_official_docs
CPython Docs
``"r"``, ``"rb"``, ``"w"``, ``"wb"``, ``"x"``, ``"xb"``, ``"a"`` or ``"ab"`` for binary mode, or ``"rt"``, ``"wt"``, ``"xt"``, or ``"at"`` for text mode. The default is ``"rb"``. When opening a file for reading, the *format* and *filters* arguments have the same meanings as for :class:`LZMADecompressor`. In this case,...
``"r"``, ``"rb"``, ``"w"``, ``"wb"``, ``"x"``, ``"xb"``, ``"a"`` or ``"ab"`` for binary mode, or ``"rt"``, ``"wt"``, ``"xt"``, or ``"at"`` for text mode. The default is ``"rb"``. When opening a file for reading, the *format* and *filters* arguments have the same meanings as for :class:`LZMADecompressor`. In this case,...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4cca2fbf-e7ab-4652-aacc-a517a546cf9c
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,107
supabase-export-v2
84a13acaa0153f8d
Creating a compressed file using a custom filter chain:: import lzma my_filters = [ {"id": lzma.FILTER_DELTA, "dist": 5}, {"id": lzma.FILTER_LZMA2, "preset": 7 | lzma.PRESET_EXTREME}, ] with lzma.open("file.xz", "w", filters=my_filters) as f: f.write(b"blah blah blah")
trusted_official_docs
CPython Docs
Creating a compressed file using a custom filter chain:: import lzma my_filters = [ {"id": lzma.FILTER_DELTA, "dist": 5}, {"id": lzma.FILTER_LZMA2, "preset": 7 | lzma.PRESET_EXTREME}, ] with lzma.open("file.xz", "w", filters=my_filters) as f: f.write(b"blah blah blah")
Creating a compressed file using a custom filter chain:: import lzma my_filters = [ {"id": lzma.FILTER_DELTA, "dist": 5}, {"id": lzma.FILTER_LZMA2, "preset": 7 | lzma.PRESET_EXTREME}, ] with lzma.open("file.xz", "w", filters=my_filters) as f: f.write(b"blah blah blah")
python, official-docs, cpython, P0
Local_Trusted_Corpus
525cd67e-f28c-4cac-915e-c44e97275d99
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,031
supabase-export-v2
2c3372aeb9321789
* :const:`FORMAT_XZ`: The ``.xz`` container format. This is the default format. * :const:`FORMAT_ALONE`: The legacy ``.lzma`` container format. This format is more limited than ``.xz`` -- it does not support integrity checks or multiple filters.
trusted_official_docs
CPython Docs
* :const:`FORMAT_XZ`: The ``.xz`` container format. This is the default format. * :const:`FORMAT_ALONE`: The legacy ``.lzma`` container format. This format is more limited than ``.xz`` -- it does not support integrity checks or multiple filters.
* :const:`FORMAT_XZ`: The ``.xz`` container format. This is the default format. * :const:`FORMAT_ALONE`: The legacy ``.lzma`` container format. This format is more limited than ``.xz`` -- it does not support integrity checks or multiple filters.
python, official-docs, cpython, P0
Local_Trusted_Corpus
54daf5aa-9320-4f99-afd2-c1973788e6a7
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
37,989
supabase-export-v2
8d9d672ee303048e
Also included is a file interface supporting the ``.xz`` and legacy ``.lzma`` file formats used by the :program:`xz` utility, as well as raw compressed streams. The interface provided by this module is very similar to that of the :mod:`bz2` module. Note that :class:`LZMAFile` and :class:`bz2.BZ2File` are *not* thread-s...
trusted_official_docs
CPython Docs
Also included is a file interface supporting the ``.xz`` and legacy ``.lzma`` file formats used by the :program:`xz` utility, as well as raw compressed streams. The interface provided by this module is very similar to that of the :mod:`bz2` module. Note that :class:`LZMAFile` and :class:`bz2.BZ2File` are *not* thread-s...
Also included is a file interface supporting the ``.xz`` and legacy ``.lzma`` file formats used by the :program:`xz` utility, as well as raw compressed streams. The interface provided by this module is very similar to that of the :mod:`bz2` module. Note that :class:`LZMAFile` and :class:`bz2.BZ2File` are *not* thread-s...
python, official-docs, cpython, P0
Local_Trusted_Corpus
66726fc2-7c9d-4c95-b17c-2d02b414b753
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,009
supabase-export-v2
cd232148e2455dd8
is a file object (rather than an actual file name), a mode of ``"w"`` does not truncate the file, and is instead equivalent to ``"a"``. When opening a file for reading, the input file may be the concatenation of multiple separate compressed streams. These are transparently decoded as a single logical stream.
trusted_official_docs
CPython Docs
is a file object (rather than an actual file name), a mode of ``"w"`` does not truncate the file, and is instead equivalent to ``"a"``. When opening a file for reading, the input file may be the concatenation of multiple separate compressed streams. These are transparently decoded as a single logical stream.
is a file object (rather than an actual file name), a mode of ``"w"`` does not truncate the file, and is instead equivalent to ``"a"``. When opening a file for reading, the input file may be the concatenation of multiple separate compressed streams. These are transparently decoded as a single logical stream.
python, official-docs, cpython, P0
Local_Trusted_Corpus
69cf3fa3-9f78-42db-8c4b-340d694a0efe
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
37,996
supabase-export-v2
7ad092ed24a11ad9
Open an LZMA-compressed file in binary or text mode, returning a :term:`file object`. The *filename* argument can be either an actual file name (given as a :class:`str`, :class:`bytes` or :term:`path-like <path-like object>` object), in which case the named file is opened, or it can be an existing file object to rea...
trusted_official_docs
CPython Docs
Open an LZMA-compressed file in binary or text mode, returning a :term:`file object`. The *filename* argument can be either an actual file name (given as a :class:`str`, :class:`bytes` or :term:`path-like <path-like object>` object), in which case the named file is opened, or it can be an existing file object to rea...
Open an LZMA-compressed file in binary or text mode, returning a :term:`file object`. The *filename* argument can be either an actual file name (given as a :class:`str`, :class:`bytes` or :term:`path-like <path-like object>` object), in which case the named file is opened, or it can be an existing file object to rea...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6bde066c-07fd-4952-a6e2-67e28689690d
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,055
supabase-export-v2
a10633552fd83b06
decompressed. This argument is required if *format* is :const:`FORMAT_RAW`, but should not be used for other formats. See :ref:`filter-chain-specs` for more information about filter chains. .. note:: This class does not transparently handle inputs containing multiple compressed streams, unlike :func:`decompress` and ...
trusted_official_docs
CPython Docs
decompressed. This argument is required if *format* is :const:`FORMAT_RAW`, but should not be used for other formats. See :ref:`filter-chain-specs` for more information about filter chains. .. note:: This class does not transparently handle inputs containing multiple compressed streams, unlike :func:`decompress` and ...
decompressed. This argument is required if *format* is :const:`FORMAT_RAW`, but should not be used for other formats. See :ref:`filter-chain-specs` for more information about filter chains. .. note:: This class does not transparently handle inputs containing multiple compressed streams, unlike :func:`decompress` and ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
717e83ff-1b14-4a47-a5bb-e3f52e2cb31a
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,092
supabase-export-v2
2014acae3d309e63
and cannot be empty. The last filter in the chain must be a compression filter, and any other filters must be delta or BCJ filters. Compression filters support the following options (specified as additional entries in the dictionary representing the filter):
trusted_official_docs
CPython Docs
and cannot be empty. The last filter in the chain must be a compression filter, and any other filters must be delta or BCJ filters. Compression filters support the following options (specified as additional entries in the dictionary representing the filter):
and cannot be empty. The last filter in the chain must be a compression filter, and any other filters must be delta or BCJ filters. Compression filters support the following options (specified as additional entries in the dictionary representing the filter):
python, official-docs, cpython, P0
Local_Trusted_Corpus
76494556-df12-44e4-8926-06d4f60f25f1
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,012
supabase-export-v2
f1511fdee9fdf21a
When opening a file for writing, the *format*, *check*, *preset* and *filters* arguments have the same meanings as for :class:`LZMACompressor`. :class:`LZMAFile` supports all the members specified by :class:`io.BufferedIOBase`, except for :meth:`~io.BufferedIOBase.detach` and :meth:`~io.IOBase.truncate`. Iteration an...
trusted_official_docs
CPython Docs
When opening a file for writing, the *format*, *check*, *preset* and *filters* arguments have the same meanings as for :class:`LZMACompressor`. :class:`LZMAFile` supports all the members specified by :class:`io.BufferedIOBase`, except for :meth:`~io.BufferedIOBase.detach` and :meth:`~io.IOBase.truncate`. Iteration an...
When opening a file for writing, the *format*, *check*, *preset* and *filters* arguments have the same meanings as for :class:`LZMACompressor`. :class:`LZMAFile` supports all the members specified by :class:`io.BufferedIOBase`, except for :meth:`~io.BufferedIOBase.detach` and :meth:`~io.IOBase.truncate`. Iteration an...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7e50d0c4-118f-482b-a30b-469aefc21d3f
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,002
supabase-export-v2
9a0352ec9b54851d
For text mode, a :class:`LZMAFile` object is created, and wrapped in an :class:`io.TextIOWrapper` instance with the specified encoding, error handling behavior, and line ending(s). .. versionchanged:: 3.4 Added support for the ``"x"``, ``"xb"`` and ``"xt"`` modes.
trusted_official_docs
CPython Docs
For text mode, a :class:`LZMAFile` object is created, and wrapped in an :class:`io.TextIOWrapper` instance with the specified encoding, error handling behavior, and line ending(s). .. versionchanged:: 3.4 Added support for the ``"x"``, ``"xb"`` and ``"xt"`` modes.
For text mode, a :class:`LZMAFile` object is created, and wrapped in an :class:`io.TextIOWrapper` instance with the specified encoding, error handling behavior, and line ending(s). .. versionchanged:: 3.4 Added support for the ``"x"``, ``"xb"`` and ``"xt"`` modes.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8373fa21-4b26-474b-bd84-fca6dd0d0f18
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,000
supabase-export-v2
3abb8a27d91ac2af
When opening a file for writing, the *format*, *check*, *preset* and *filters* arguments have the same meanings as for :class:`LZMACompressor`. For binary mode, this function is equivalent to the :class:`LZMAFile` constructor: ``LZMAFile(filename, mode, ...)``. In this case, the *encoding*, *errors* and *newline* arg...
trusted_official_docs
CPython Docs
When opening a file for writing, the *format*, *check*, *preset* and *filters* arguments have the same meanings as for :class:`LZMACompressor`. For binary mode, this function is equivalent to the :class:`LZMAFile` constructor: ``LZMAFile(filename, mode, ...)``. In this case, the *encoding*, *errors* and *newline* arg...
When opening a file for writing, the *format*, *check*, *preset* and *filters* arguments have the same meanings as for :class:`LZMACompressor`. For binary mode, this function is equivalent to the :class:`LZMAFile` constructor: ``LZMAFile(filename, mode, ...)``. In this case, the *encoding*, *errors* and *newline* arg...
python, official-docs, cpython, P0
Local_Trusted_Corpus
87833eb7-2436-4c8b-aa0b-f66fbd96211d
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,033
supabase-export-v2
ca76e671aa36e34c
you always specify a custom filter chain (for both compression and decompression). Additionally, data compressed in this manner cannot be decompressed using :const:`FORMAT_AUTO` (see :class:`LZMADecompressor`). The *check* argument specifies the type of integrity check to include in the compressed data. This check is ...
trusted_official_docs
CPython Docs
you always specify a custom filter chain (for both compression and decompression). Additionally, data compressed in this manner cannot be decompressed using :const:`FORMAT_AUTO` (see :class:`LZMADecompressor`). The *check* argument specifies the type of integrity check to include in the compressed data. This check is ...
you always specify a custom filter chain (for both compression and decompression). Additionally, data compressed in this manner cannot be decompressed using :const:`FORMAT_AUTO` (see :class:`LZMADecompressor`). The *check* argument specifies the type of integrity check to include in the compressed data. This check is ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
882bf9ae-1f32-401a-a03f-6638cb2c639c
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,043
supabase-export-v2
c1e82f98a8f3a71a
overhead for an :class:`LZMACompressor` object can be as high as 800 MiB. For this reason, it is generally best to stick with the default preset. The *filters* argument (if provided) should be a filter chain specifier. See :ref:`filter-chain-specs` for details.
trusted_official_docs
CPython Docs
overhead for an :class:`LZMACompressor` object can be as high as 800 MiB. For this reason, it is generally best to stick with the default preset. The *filters* argument (if provided) should be a filter chain specifier. See :ref:`filter-chain-specs` for details.
overhead for an :class:`LZMACompressor` object can be as high as 800 MiB. For this reason, it is generally best to stick with the default preset. The *filters* argument (if provided) should be a filter chain specifier. See :ref:`filter-chain-specs` for details.
python, official-docs, cpython, P0
Local_Trusted_Corpus
98640dcd-af7c-4cad-8ed8-08db71c362c0
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,042
supabase-export-v2
6d7ed3aadee3ba51
.. note:: In addition to being more CPU-intensive, compression with higher presets also requires much more memory (and produces output that needs more memory to decompress). With preset ``9`` for example, the overhead for an :class:`LZMACompressor` object can be as high as 800 MiB. For this reason, it is generally ...
trusted_official_docs
CPython Docs
.. note:: In addition to being more CPU-intensive, compression with higher presets also requires much more memory (and produces output that needs more memory to decompress). With preset ``9`` for example, the overhead for an :class:`LZMACompressor` object can be as high as 800 MiB. For this reason, it is generally ...
.. note:: In addition to being more CPU-intensive, compression with higher presets also requires much more memory (and produces output that needs more memory to decompress). With preset ``9`` for example, the overhead for an :class:`LZMACompressor` object can be as high as 800 MiB. For this reason, it is generally ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
98fcfd09-1d62-4fa8-a542-8e1a4d958d9d
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,093
supabase-export-v2
f1d7b46c8c389b46
Compression filters support the following options (specified as additional entries in the dictionary representing the filter): * ``preset``: A compression preset to use as a source of default values for options that are not specified explicitly. * ``dict_size``: Dictionary size in bytes. This should be between 4 KiB a...
trusted_official_docs
CPython Docs
Compression filters support the following options (specified as additional entries in the dictionary representing the filter): * ``preset``: A compression preset to use as a source of default values for options that are not specified explicitly. * ``dict_size``: Dictionary size in bytes. This should be between 4 KiB a...
Compression filters support the following options (specified as additional entries in the dictionary representing the filter): * ``preset``: A compression preset to use as a source of default values for options that are not specified explicitly. * ``dict_size``: Dictionary size in bytes. This should be between 4 KiB a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9bb71e74-8e58-40d1-9dec-8e2bc1ab5c49
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,104
supabase-export-v2
6c0658f630dd9c6a
= lzc.compress(b"Another piece of data\n") out3 = lzc.compress(b"Even more data\n") out4 = lzc.flush() # Concatenate all the partial results: result = b"".join([out1, out2, out3, out4]) Writing compressed data to an already-open file::
trusted_official_docs
CPython Docs
= lzc.compress(b"Another piece of data\n") out3 = lzc.compress(b"Even more data\n") out4 = lzc.flush() # Concatenate all the partial results: result = b"".join([out1, out2, out3, out4]) Writing compressed data to an already-open file::
= lzc.compress(b"Another piece of data\n") out3 = lzc.compress(b"Even more data\n") out4 = lzc.flush() # Concatenate all the partial results: result = b"".join([out1, out2, out3, out4]) Writing compressed data to an already-open file::
python, official-docs, cpython, P0
Local_Trusted_Corpus
9bd5be8d-73ac-490d-9460-7fcd72918054
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,052
supabase-export-v2
aa5ae3222f396b5e
For a more convenient way of decompressing an entire compressed stream at once, see :func:`decompress`. The *format* argument specifies the container format that should be used. The default is :const:`FORMAT_AUTO`, which can decompress both ``.xz`` and ``.lzma`` files. Other possible values are :const:`FORMAT_XZ`, :...
trusted_official_docs
CPython Docs
For a more convenient way of decompressing an entire compressed stream at once, see :func:`decompress`. The *format* argument specifies the container format that should be used. The default is :const:`FORMAT_AUTO`, which can decompress both ``.xz`` and ``.lzma`` files. Other possible values are :const:`FORMAT_XZ`, :...
For a more convenient way of decompressing an entire compressed stream at once, see :func:`decompress`. The *format* argument specifies the container format that should be used. The default is :const:`FORMAT_AUTO`, which can decompress both ``.xz`` and ``.lzma`` files. Other possible values are :const:`FORMAT_XZ`, :...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9d8e9b4f-e1b0-4f6d-8da7-2359f2fb03da
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,103
supabase-export-v2
1a120a62bdb71262
Incremental compression:: import lzma lzc = lzma.LZMACompressor() out1 = lzc.compress(b"Some data\n") out2 = lzc.compress(b"Another piece of data\n") out3 = lzc.compress(b"Even more data\n") out4 = lzc.flush() # Concatenate all the partial results: result = b"".join([out1, out2, out3, out4])
trusted_official_docs
CPython Docs
Incremental compression:: import lzma lzc = lzma.LZMACompressor() out1 = lzc.compress(b"Some data\n") out2 = lzc.compress(b"Another piece of data\n") out3 = lzc.compress(b"Even more data\n") out4 = lzc.flush() # Concatenate all the partial results: result = b"".join([out1, out2, out3, out4])
Incremental compression:: import lzma lzc = lzma.LZMACompressor() out1 = lzc.compress(b"Some data\n") out2 = lzc.compress(b"Another piece of data\n") out3 = lzc.compress(b"Even more data\n") out4 = lzc.flush() # Concatenate all the partial results: result = b"".join([out1, out2, out3, out4])
python, official-docs, cpython, P0
Local_Trusted_Corpus
a2e576e4-6910-4fd3-949c-69b9974b49ee
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,053
supabase-export-v2
f2a27a4a6d3bb9ef
format that should be used. The default is :const:`FORMAT_AUTO`, which can decompress both ``.xz`` and ``.lzma`` files. Other possible values are :const:`FORMAT_XZ`, :const:`FORMAT_ALONE`, and :const:`FORMAT_RAW`. The *memlimit* argument specifies a limit (in bytes) on the amount of memory that the decompressor can us...
trusted_official_docs
CPython Docs
format that should be used. The default is :const:`FORMAT_AUTO`, which can decompress both ``.xz`` and ``.lzma`` files. Other possible values are :const:`FORMAT_XZ`, :const:`FORMAT_ALONE`, and :const:`FORMAT_RAW`. The *memlimit* argument specifies a limit (in bytes) on the amount of memory that the decompressor can us...
format that should be used. The default is :const:`FORMAT_AUTO`, which can decompress both ``.xz`` and ``.lzma`` files. Other possible values are :const:`FORMAT_XZ`, :const:`FORMAT_ALONE`, and :const:`FORMAT_RAW`. The *memlimit* argument specifies a limit (in bytes) on the amount of memory that the decompressor can us...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a3e09596-e7f4-4e75-b9d1-cdf7d2bd928a
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
37,999
supabase-export-v2
aa70d305c35e504b
reading, the *format* and *filters* arguments have the same meanings as for :class:`LZMADecompressor`. In this case, the *check* and *preset* arguments should not be used. When opening a file for writing, the *format*, *check*, *preset* and *filters* arguments have the same meanings as for :class:`LZMACompressor`.
trusted_official_docs
CPython Docs
reading, the *format* and *filters* arguments have the same meanings as for :class:`LZMADecompressor`. In this case, the *check* and *preset* arguments should not be used. When opening a file for writing, the *format*, *check*, *preset* and *filters* arguments have the same meanings as for :class:`LZMACompressor`.
reading, the *format* and *filters* arguments have the same meanings as for :class:`LZMADecompressor`. In this case, the *check* and *preset* arguments should not be used. When opening a file for writing, the *format*, *check*, *preset* and *filters* arguments have the same meanings as for :class:`LZMACompressor`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b84570dc-2072-4f2f-b332-54d8e6745ed5
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,077
supabase-export-v2
790bd12d052895ff
Decompress *data* (a :class:`bytes` object), returning the uncompressed data as a :class:`bytes` object. If *data* is the concatenation of multiple distinct compressed streams, decompress all of these streams, and return the concatenation of the results.
trusted_official_docs
CPython Docs
Decompress *data* (a :class:`bytes` object), returning the uncompressed data as a :class:`bytes` object. If *data* is the concatenation of multiple distinct compressed streams, decompress all of these streams, and return the concatenation of the results.
Decompress *data* (a :class:`bytes` object), returning the uncompressed data as a :class:`bytes` object. If *data* is the concatenation of multiple distinct compressed streams, decompress all of these streams, and return the concatenation of the results.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b95e4444-1bdd-4c6a-b564-719a4589ed42
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,095
supabase-export-v2
bd0462dc242341d1
It supports one option, ``dist``. This indicates the distance between bytes to be subtracted. The default is 1, i.e. take the differences between adjacent bytes. The BCJ filters are intended to be applied to machine code. They convert relative branches, calls and jumps in the code to use absolute addressing, with the a...
trusted_official_docs
CPython Docs
It supports one option, ``dist``. This indicates the distance between bytes to be subtracted. The default is 1, i.e. take the differences between adjacent bytes. The BCJ filters are intended to be applied to machine code. They convert relative branches, calls and jumps in the code to use absolute addressing, with the a...
It supports one option, ``dist``. This indicates the distance between bytes to be subtracted. The default is 1, i.e. take the differences between adjacent bytes. The BCJ filters are intended to be applied to machine code. They convert relative branches, calls and jumps in the code to use absolute addressing, with the a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c072161c-5ab1-4004-9055-600000d26000
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,078
supabase-export-v2
8cdf51ad74b82bdc
If *data* is the concatenation of multiple distinct compressed streams, decompress all of these streams, and return the concatenation of the results. See :class:`LZMADecompressor` above for a description of the *format*, *memlimit* and *filters* arguments.
trusted_official_docs
CPython Docs
If *data* is the concatenation of multiple distinct compressed streams, decompress all of these streams, and return the concatenation of the results. See :class:`LZMADecompressor` above for a description of the *format*, *memlimit* and *filters* arguments.
If *data* is the concatenation of multiple distinct compressed streams, decompress all of these streams, and return the concatenation of the results. See :class:`LZMADecompressor` above for a description of the *format*, *memlimit* and *filters* arguments.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c85b6af3-ec6c-41f9-8c1e-828334d06137
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,063
supabase-export-v2
93eb3821c288487f
.. attribute:: check The ID of the integrity check used by the input stream. This may be :const:`CHECK_UNKNOWN` until enough of the input has been decoded to determine what integrity check it uses.
trusted_official_docs
CPython Docs
.. attribute:: check The ID of the integrity check used by the input stream. This may be :const:`CHECK_UNKNOWN` until enough of the input has been decoded to determine what integrity check it uses.
.. attribute:: check The ID of the integrity check used by the input stream. This may be :const:`CHECK_UNKNOWN` until enough of the input has been decoded to determine what integrity check it uses.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c8fc35a0-cd1a-4993-a3c1-b67630f54cdd
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,039
supabase-export-v2
acec7819acd008df
If the specified check is not supported, an :class:`LZMAError` is raised. The compression settings can be specified either as a preset compression level (with the *preset* argument), or in detail as a custom filter chain (with the *filters* argument).
trusted_official_docs
CPython Docs
If the specified check is not supported, an :class:`LZMAError` is raised. The compression settings can be specified either as a preset compression level (with the *preset* argument), or in detail as a custom filter chain (with the *filters* argument).
If the specified check is not supported, an :class:`LZMAError` is raised. The compression settings can be specified either as a preset compression level (with the *preset* argument), or in detail as a custom filter chain (with the *filters* argument).
python, official-docs, cpython, P0
Local_Trusted_Corpus
c94a2de7-9cc0-460f-995c-127f23776fa8
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,082
supabase-export-v2
f15635cd91cc7527
Return ``True`` if the given integrity check is supported on this system. :const:`CHECK_NONE` and :const:`CHECK_CRC32` are always supported. :const:`CHECK_CRC64` and :const:`CHECK_SHA256` may be unavailable if you are using a version of :program:`liblzma` that was compiled with a limited feature set.
trusted_official_docs
CPython Docs
Return ``True`` if the given integrity check is supported on this system. :const:`CHECK_NONE` and :const:`CHECK_CRC32` are always supported. :const:`CHECK_CRC64` and :const:`CHECK_SHA256` may be unavailable if you are using a version of :program:`liblzma` that was compiled with a limited feature set.
Return ``True`` if the given integrity check is supported on this system. :const:`CHECK_NONE` and :const:`CHECK_CRC32` are always supported. :const:`CHECK_CRC64` and :const:`CHECK_SHA256` may be unavailable if you are using a version of :program:`liblzma` that was compiled with a limited feature set.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d46c70df-8007-449f-85fc-536f3520194b
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,001
supabase-export-v2
0373180c23625b7d
mode, this function is equivalent to the :class:`LZMAFile` constructor: ``LZMAFile(filename, mode, ...)``. In this case, the *encoding*, *errors* and *newline* arguments must not be provided. For text mode, a :class:`LZMAFile` object is created, and wrapped in an :class:`io.TextIOWrapper` instance with the specified e...
trusted_official_docs
CPython Docs
mode, this function is equivalent to the :class:`LZMAFile` constructor: ``LZMAFile(filename, mode, ...)``. In this case, the *encoding*, *errors* and *newline* arguments must not be provided. For text mode, a :class:`LZMAFile` object is created, and wrapped in an :class:`io.TextIOWrapper` instance with the specified e...
mode, this function is equivalent to the :class:`LZMAFile` constructor: ``LZMAFile(filename, mode, ...)``. In this case, the *encoding*, *errors* and *newline* arguments must not be provided. For text mode, a :class:`LZMAFile` object is created, and wrapped in an :class:`io.TextIOWrapper` instance with the specified e...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d667b4e7-d363-4911-aba0-a4de7d483294
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,045
supabase-export-v2
e7cfe7d7b8a090df
.. method:: compress(data) Compress *data* (a :class:`bytes` object), returning a :class:`bytes` object containing compressed data for at least part of the input. Some of *data* may be buffered internally, for use in later calls to :meth:`compress` and :meth:`flush`. The returned data should be concatenated with th...
trusted_official_docs
CPython Docs
.. method:: compress(data) Compress *data* (a :class:`bytes` object), returning a :class:`bytes` object containing compressed data for at least part of the input. Some of *data* may be buffered internally, for use in later calls to :meth:`compress` and :meth:`flush`. The returned data should be concatenated with th...
.. method:: compress(data) Compress *data* (a :class:`bytes` object), returning a :class:`bytes` object containing compressed data for at least part of the input. Some of *data* may be buffered internally, for use in later calls to :meth:`compress` and :meth:`flush`. The returned data should be concatenated with th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d7cb6bb8-5b6c-4235-92a2-ef5407f2f47d
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
37,997
supabase-export-v2
807be5ae0dbaef86
<path-like object>` object), in which case the named file is opened, or it can be an existing file object to read from or write to. The *mode* argument can be any of ``"r"``, ``"rb"``, ``"w"``, ``"wb"``, ``"x"``, ``"xb"``, ``"a"`` or ``"ab"`` for binary mode, or ``"rt"``, ``"wt"``, ``"xt"``, or ``"at"`` for text mode...
trusted_official_docs
CPython Docs
<path-like object>` object), in which case the named file is opened, or it can be an existing file object to read from or write to. The *mode* argument can be any of ``"r"``, ``"rb"``, ``"w"``, ``"wb"``, ``"x"``, ``"xb"``, ``"a"`` or ``"ab"`` for binary mode, or ``"rt"``, ``"wt"``, ``"xt"``, or ``"at"`` for text mode...
<path-like object>` object), in which case the named file is opened, or it can be an existing file object to read from or write to. The *mode* argument can be any of ``"r"``, ``"rb"``, ``"w"``, ``"wb"``, ``"x"``, ``"xb"``, ``"a"`` or ``"ab"`` for binary mode, or ``"rt"``, ``"wt"``, ``"xt"``, or ``"at"`` for text mode...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ec9826a1-ad05-45c5-9874-db91390bf14c
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,010
supabase-export-v2
b238b7bbc9335b80
a file for reading, the input file may be the concatenation of multiple separate compressed streams. These are transparently decoded as a single logical stream. When opening a file for reading, the *format* and *filters* arguments have the same meanings as for :class:`LZMADecompressor`. In this case, the *check* and ...
trusted_official_docs
CPython Docs
a file for reading, the input file may be the concatenation of multiple separate compressed streams. These are transparently decoded as a single logical stream. When opening a file for reading, the *format* and *filters* arguments have the same meanings as for :class:`LZMADecompressor`. In this case, the *check* and ...
a file for reading, the input file may be the concatenation of multiple separate compressed streams. These are transparently decoded as a single logical stream. When opening a file for reading, the *format* and *filters* arguments have the same meanings as for :class:`LZMADecompressor`. In this case, the *check* and ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ef8dfe4c-f2e3-46e1-9b1b-ea6116c00254
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,091
supabase-export-v2
ee902c468a7e4fbf
* :const:`FILTER_X86` * :const:`FILTER_IA64` * :const:`FILTER_ARM` * :const:`FILTER_ARMTHUMB` * :const:`FILTER_POWERPC` * :const:`FILTER_SPARC` A filter chain can consist of up to 4 filters, and cannot be empty. The last filter in the chain must be a compression filter, and any other filters must be delta or BCJ filter...
trusted_official_docs
CPython Docs
* :const:`FILTER_X86` * :const:`FILTER_IA64` * :const:`FILTER_ARM` * :const:`FILTER_ARMTHUMB` * :const:`FILTER_POWERPC` * :const:`FILTER_SPARC` A filter chain can consist of up to 4 filters, and cannot be empty. The last filter in the chain must be a compression filter, and any other filters must be delta or BCJ filter...
* :const:`FILTER_X86` * :const:`FILTER_IA64` * :const:`FILTER_ARM` * :const:`FILTER_ARMTHUMB` * :const:`FILTER_POWERPC` * :const:`FILTER_SPARC` A filter chain can consist of up to 4 filters, and cannot be empty. The last filter in the chain must be a compression filter, and any other filters must be delta or BCJ filter...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f7f58b2d-e76f-418d-b67d-451d3751228a
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,006
supabase-export-v2
860264839005504f
Open an LZMA-compressed file in binary mode. An :class:`LZMAFile` can wrap an already-open :term:`file object`, or operate directly on a named file. The *filename* argument specifies either the file object to wrap, or the name of the file to open (as a :class:`str`, :class:`bytes` or :term:`path-like <path-like obje...
trusted_official_docs
CPython Docs
Open an LZMA-compressed file in binary mode. An :class:`LZMAFile` can wrap an already-open :term:`file object`, or operate directly on a named file. The *filename* argument specifies either the file object to wrap, or the name of the file to open (as a :class:`str`, :class:`bytes` or :term:`path-like <path-like obje...
Open an LZMA-compressed file in binary mode. An :class:`LZMAFile` can wrap an already-open :term:`file object`, or operate directly on a named file. The *filename* argument specifies either the file object to wrap, or the name of the file to open (as a :class:`str`, :class:`bytes` or :term:`path-like <path-like obje...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f7f73867-86ba-4357-9c17-8cfbaf1bd21e
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,032
supabase-export-v2
b4357d15b5961a2f
* :const:`FORMAT_ALONE`: The legacy ``.lzma`` container format. This format is more limited than ``.xz`` -- it does not support integrity checks or multiple filters. * :const:`FORMAT_RAW`: A raw data stream, not using any container format. This format specifier does not support integrity checks, and requires that you ...
trusted_official_docs
CPython Docs
* :const:`FORMAT_ALONE`: The legacy ``.lzma`` container format. This format is more limited than ``.xz`` -- it does not support integrity checks or multiple filters. * :const:`FORMAT_RAW`: A raw data stream, not using any container format. This format specifier does not support integrity checks, and requires that you ...
* :const:`FORMAT_ALONE`: The legacy ``.lzma`` container format. This format is more limited than ``.xz`` -- it does not support integrity checks or multiple filters. * :const:`FORMAT_RAW`: A raw data stream, not using any container format. This format specifier does not support integrity checks, and requires that you ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fe0b0904-5eff-47bd-b93d-3f74cbe7f4d5
CPython Docs
file://datasets/cpython/Doc/library/lzma.rst
unknown
24f64e2f-a603-4e32-87db-8ca407d9c8df
38,054
supabase-export-v2
8b080bf656782802
When this argument is used, decompression will fail with an :class:`LZMAError` if it is not possible to decompress the input within the given memory limit. The *filters* argument specifies the filter chain that was used to create the stream being decompressed. This argument is required if *format* is :const:`FORMAT_R...
trusted_official_docs
CPython Docs
When this argument is used, decompression will fail with an :class:`LZMAError` if it is not possible to decompress the input within the given memory limit. The *filters* argument specifies the filter chain that was used to create the stream being decompressed. This argument is required if *format* is :const:`FORMAT_R...
When this argument is used, decompression will fail with an :class:`LZMAError` if it is not possible to decompress the input within the given memory limit. The *filters* argument specifies the filter chain that was used to create the stream being decompressed. This argument is required if *format* is :const:`FORMAT_R...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1baf184e-69c9-4c2b-8515-797bcecad848
CPython Docs
file://datasets/cpython/Doc/library/bdb.rst
unknown
f3c3e3e8-7784-4211-ae88-c8fd31ad14af
38,228
supabase-export-v2
78219ea4951758d7
Set the :attr:`!quitting` attribute to ``True``. This raises :exc:`BdbQuit` in the next call to one of the :meth:`!dispatch_\*` methods. Derived classes and clients can call the following methods to manipulate breakpoints. These methods return a string containing an error message if something went wrong, or ``None`` ...
trusted_official_docs
CPython Docs
Set the :attr:`!quitting` attribute to ``True``. This raises :exc:`BdbQuit` in the next call to one of the :meth:`!dispatch_\*` methods. Derived classes and clients can call the following methods to manipulate breakpoints. These methods return a string containing an error message if something went wrong, or ``None`` ...
Set the :attr:`!quitting` attribute to ``True``. This raises :exc:`BdbQuit` in the next call to one of the :meth:`!dispatch_\*` methods. Derived classes and clients can call the following methods to manipulate breakpoints. These methods return a string containing an error message if something went wrong, or ``None`` ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1bdea3db-6353-4ae8-905f-1b5549607f79
CPython Docs
file://datasets/cpython/Doc/library/bdb.rst
unknown
f3c3e3e8-7784-4211-ae88-c8fd31ad14af
38,160
supabase-export-v2
e02a84e3959d68df
the exact interfaces for both backends, but there are some differences. The debugger developers are encouraged to use the ``'monitoring'`` backend to achieve better performance. .. versionchanged:: 3.1 Added the *skip* parameter.
trusted_official_docs
CPython Docs
the exact interfaces for both backends, but there are some differences. The debugger developers are encouraged to use the ``'monitoring'`` backend to achieve better performance. .. versionchanged:: 3.1 Added the *skip* parameter.
the exact interfaces for both backends, but there are some differences. The debugger developers are encouraged to use the ``'monitoring'`` backend to achieve better performance. .. versionchanged:: 3.1 Added the *skip* parameter.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1e234087-c757-4415-b0a9-9627ade96014
CPython Docs
file://datasets/cpython/Doc/library/bdb.rst
unknown
f3c3e3e8-7784-4211-ae88-c8fd31ad14af
38,229
supabase-export-v2
73d176ecab866c6c
the following methods to manipulate breakpoints. These methods return a string containing an error message if something went wrong, or ``None`` if all is well. .. method:: set_break(filename, lineno, temporary=False, cond=None, funcname=None)
trusted_official_docs
CPython Docs
the following methods to manipulate breakpoints. These methods return a string containing an error message if something went wrong, or ``None`` if all is well. .. method:: set_break(filename, lineno, temporary=False, cond=None, funcname=None)
the following methods to manipulate breakpoints. These methods return a string containing an error message if something went wrong, or ``None`` if all is well. .. method:: set_break(filename, lineno, temporary=False, cond=None, funcname=None)
python, official-docs, cpython, P0
Local_Trusted_Corpus
22a8fc35-a56f-469f-ab6f-12d856324afb
CPython Docs
file://datasets/cpython/Doc/library/bdb.rst
unknown
f3c3e3e8-7784-4211-ae88-c8fd31ad14af
38,222
supabase-export-v2
7ae15f563f443743
Start debugging from *frame*. If *frame* is not specified, debugging starts from caller's frame. .. versionchanged:: 3.13 :func:`set_trace` will enter the debugger immediately, rather than on the next line of code to be executed.
trusted_official_docs
CPython Docs
Start debugging from *frame*. If *frame* is not specified, debugging starts from caller's frame. .. versionchanged:: 3.13 :func:`set_trace` will enter the debugger immediately, rather than on the next line of code to be executed.
Start debugging from *frame*. If *frame* is not specified, debugging starts from caller's frame. .. versionchanged:: 3.13 :func:`set_trace` will enter the debugger immediately, rather than on the next line of code to be executed.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2d99cd3c-72ab-4e79-87da-42a51116062c
CPython Docs
file://datasets/cpython/Doc/library/bdb.rst
unknown
f3c3e3e8-7784-4211-ae88-c8fd31ad14af
38,240
supabase-export-v2
06bb99f8632fc6bb
.. method:: get_bpbynumber(arg) Return a breakpoint specified by the given number. If *arg* is a string, it will be converted to a number. If *arg* is a non-numeric string, if the given breakpoint never existed or has been deleted, a :exc:`ValueError` is raised.
trusted_official_docs
CPython Docs
.. method:: get_bpbynumber(arg) Return a breakpoint specified by the given number. If *arg* is a string, it will be converted to a number. If *arg* is a non-numeric string, if the given breakpoint never existed or has been deleted, a :exc:`ValueError` is raised.
.. method:: get_bpbynumber(arg) Return a breakpoint specified by the given number. If *arg* is a string, it will be converted to a number. If *arg* is a non-numeric string, if the given breakpoint never existed or has been deleted, a :exc:`ValueError` is raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2e17dda7-b876-4805-b347-0a7b71a3ce74
CPython Docs
file://datasets/cpython/Doc/library/bdb.rst
unknown
f3c3e3e8-7784-4211-ae88-c8fd31ad14af
38,195
supabase-export-v2
3d29273af83ba42d
Return ``True`` if there is an effective breakpoint for this line. Check whether a line or function breakpoint exists and is in effect. Delete temporary breakpoints based on information from :func:`effective`.
trusted_official_docs
CPython Docs
Return ``True`` if there is an effective breakpoint for this line. Check whether a line or function breakpoint exists and is in effect. Delete temporary breakpoints based on information from :func:`effective`.
Return ``True`` if there is an effective breakpoint for this line. Check whether a line or function breakpoint exists and is in effect. Delete temporary breakpoints based on information from :func:`effective`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
307b996a-77e9-4cce-ae01-c74755b417d7
CPython Docs
file://datasets/cpython/Doc/library/bdb.rst
unknown
f3c3e3e8-7784-4211-ae88-c8fd31ad14af
38,261
supabase-export-v2
28aae0b608b77072
The most recently called frame is last in the list. The size is the number of frames below the frame where the debugger was invoked. .. method:: format_stack_entry(frame_lineno, lprefix=': ')
trusted_official_docs
CPython Docs
The most recently called frame is last in the list. The size is the number of frames below the frame where the debugger was invoked. .. method:: format_stack_entry(frame_lineno, lprefix=': ')
The most recently called frame is last in the list. The size is the number of frames below the frame where the debugger was invoked. .. method:: format_stack_entry(frame_lineno, lprefix=': ')
python, official-docs, cpython, P0
Local_Trusted_Corpus
3a094437-cca1-4314-a630-d0d2d693edc6
CPython Docs
file://datasets/cpython/Doc/library/bdb.rst
unknown
f3c3e3e8-7784-4211-ae88-c8fd31ad14af
38,159
supabase-export-v2
b6d7a245a2cd6b68
matches one of these patterns. Whether a frame is considered to originate in a certain module is determined by the ``__name__`` in the frame globals. The *backend* argument specifies the backend to use for :class:`Bdb`. It can be either ``'settrace'`` or ``'monitoring'``. ``'settrace'`` uses :func:`sys.settrace` whic...
trusted_official_docs
CPython Docs
matches one of these patterns. Whether a frame is considered to originate in a certain module is determined by the ``__name__`` in the frame globals. The *backend* argument specifies the backend to use for :class:`Bdb`. It can be either ``'settrace'`` or ``'monitoring'``. ``'settrace'`` uses :func:`sys.settrace` whic...
matches one of these patterns. Whether a frame is considered to originate in a certain module is determined by the ``__name__`` in the frame globals. The *backend* argument specifies the backend to use for :class:`Bdb`. It can be either ``'settrace'`` or ``'monitoring'``. ``'settrace'`` uses :func:`sys.settrace` whic...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4a6f55d1-b7c8-4a16-8817-3faa2cb303b0
CPython Docs
file://datasets/cpython/Doc/library/bdb.rst
unknown
f3c3e3e8-7784-4211-ae88-c8fd31ad14af
38,277
supabase-export-v2
62d25c15a7e75e03
:attr:`function name <bdb.Breakpoint.funcname>`, we have to check we are in the right *frame* (the right function) and if we are on its first executable line. .. function:: effective(file, line, frame)
trusted_official_docs
CPython Docs
:attr:`function name <bdb.Breakpoint.funcname>`, we have to check we are in the right *frame* (the right function) and if we are on its first executable line. .. function:: effective(file, line, frame)
:attr:`function name <bdb.Breakpoint.funcname>`, we have to check we are in the right *frame* (the right function) and if we are on its first executable line. .. function:: effective(file, line, frame)
python, official-docs, cpython, P0
Local_Trusted_Corpus
4b49c09c-4a60-4c7d-9bef-0fe67d7096c8
CPython Docs
file://datasets/cpython/Doc/library/bdb.rst
unknown
f3c3e3e8-7784-4211-ae88-c8fd31ad14af
38,175
supabase-export-v2
94790f17e411b1ad
This function is installed as the trace function of debugged frames. Its return value is the new trace function (in most cases, that is, itself). The default implementation decides how to dispatch a frame, depending on the type of event (passed as a string) that is about to be executed. *event* can be one of the follo...
trusted_official_docs
CPython Docs
This function is installed as the trace function of debugged frames. Its return value is the new trace function (in most cases, that is, itself). The default implementation decides how to dispatch a frame, depending on the type of event (passed as a string) that is about to be executed. *event* can be one of the follo...
This function is installed as the trace function of debugged frames. Its return value is the new trace function (in most cases, that is, itself). The default implementation decides how to dispatch a frame, depending on the type of event (passed as a string) that is about to be executed. *event* can be one of the follo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
555f9b1d-3d3e-4e7b-9c57-62c084bc4915
CPython Docs
file://datasets/cpython/Doc/library/bdb.rst
unknown
f3c3e3e8-7784-4211-ae88-c8fd31ad14af
38,158
supabase-export-v2
b115f706f7678e6a
class takes care of the details of the trace facility; a derived class should implement user interaction. The standard debugger class (:class:`pdb.Pdb`) is an example. The *skip* argument, if given, must be an iterable of glob-style module name patterns. The debugger will not step into frames that originate in a modu...
trusted_official_docs
CPython Docs
class takes care of the details of the trace facility; a derived class should implement user interaction. The standard debugger class (:class:`pdb.Pdb`) is an example. The *skip* argument, if given, must be an iterable of glob-style module name patterns. The debugger will not step into frames that originate in a modu...
class takes care of the details of the trace facility; a derived class should implement user interaction. The standard debugger class (:class:`pdb.Pdb`) is an example. The *skip* argument, if given, must be an iterable of glob-style module name patterns. The debugger will not step into frames that originate in a modu...
python, official-docs, cpython, P0
Local_Trusted_Corpus