Message207713
> * 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:05 | larry | set | recipients:
+ larry, nadeem.vawda, meador.inge, serhiy.storchaka |
2014-01-08 23:56:05 | larry | set | messageid: <1389225365.76.0.699357842618.issue20193@psf.upfronthosting.co.za> |
2014-01-08 23:56:05 | larry | link | issue20193 messages |
2014-01-08 23:56:05 | larry | create | |
|