This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients larry, meador.inge, nadeem.vawda, serhiy.storchaka
Date 2014-01-08.23:56:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> * I have experimented in zlib_decompressobj, and I got good compact
>   code, but wrong docstring ("decompressobj(wbits=None, zdict=None)").
>  Needed a way to specify optional parameters without default Python
>  values. Correct signature should be something like
>  "decompressobj([wbits], [zdict])".

"decompressobj([wbits], [zdict])" isn't valid Python.  "decompressobj(wbits=None, zdict=None)" is; both wbits and zdict are positional-or-keyword parameters with defaults.  If you were writing decompressobj() in Python, and you wanted to simulate its argument parsing as closely as possible, you'd write what Argument Clinic generated.

You shouldn't use a default of "None" for wbits, though (and Argument Clinic shouldn't have let you).  How about_zlib.MAX_WBITS ?
Date User Action Args
2014-01-08 23:56:05larrysetrecipients: + larry, nadeem.vawda, meador.inge, serhiy.storchaka
2014-01-08 23:56:05larrysetmessageid: <>
2014-01-08 23:56:05larrylinkissue20193 messages
2014-01-08 23:56:05larrycreate