[issue20193] Derby: Convert the zlib, _bz2 and _lzma modules to use Argument Clinic

Serhiy Storchaka report at bugs.python.org
Sat Jan 25 11:17:35 CET 2014


Serhiy Storchaka added the comment:

Thank you Nadeem. In committed patch fixed the docstring for
BZ2Compressor.__init__, and renamed module name "bz2" in clinic declaration is renamed to "_bz2".

Here is updated patch for the _lzma module which addresses Nadeem's comment and renames the "lzma" module name to "_lzma".

Unfortunately this patch is incompatible with current Argument Clinic because it uses "unspecified" default value. Default value of the "check" parameter in LZMACompressor.__init__ depends on the value of other parameter.

"""For FORMAT_XZ, the default is CHECK_CRC64.  FORMAT_ALONE and FORMAT_RAW do not suport integrity checks; for these formats, check must be omitted, or be CHECK_NONE."""

----------
Added file: http://bugs.python.org/file33697/lzma_clinic.patch

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


More information about the Python-bugs-list mailing list