[issue14736] Add {encode, decode}_filter_properties() functions to lzma module

Nadeem Vawda report at bugs.python.org
Sun May 6 12:34:48 CEST 2012


Nadeem Vawda <nadeem.vawda at gmail.com> added the comment:

> The functionality looks a bit cryptic to me. What is the use case?

Serializing filter specifiers for custom file formats. The particular
case that prompted adding the code is zipfile (issue 14366).

I've added a note to the docs and docstrings explaining this.


> I wonder if Py_LONG_LONG is always defined (although it certainly is on major platforms).

I expect it will always be defined on platforms that support liblzma -
the API uses uint64_t in quite a few places, via the lzma_vli typedef.

In any case, _lzmamodule.c checks for PY_LONG_LONG explicitly at
compile-time and gives a useful error message if it is undefined.

----------
Added file: http://bugs.python.org/file25480/lzma-properties.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14736>
_______________________________________


More information about the Python-bugs-list mailing list