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

Nadeem Vawda report at bugs.python.org
Wed Jan 22 21:58:18 CET 2014


Nadeem Vawda added the comment:

The bz2 patch looks good to me, aside from a nit with the docstring for
BZ2Compressor.__init__.

The lzma patch produces a bunch of test failures for me. It looks like
the __init__ methods for LZMACompressor and LZMADecompressor aren't
accepting keyword args:

    ☿ ./python -c 'import lzma; lzma.LZMACompressor(format=lzma.FORMAT_XZ)'                                                                                                                                                                                                                
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    TypeError: __init__ does not take keyword arguments

    ☿ ./python -c 'import lzma; lzma.LZMADecompressor(format=lzma.FORMAT_AUTO)'                                                                                                                                                                                                            
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    TypeError: __init__ does not take keyword arguments

----------

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


More information about the Python-bugs-list mailing list