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 serhiy.storchaka
Recipients berker.peksag, larry, serhiy.storchaka
Date 2014-01-22.13:05:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390395906.62.0.702778275737.issue20293@psf.upfronthosting.co.za>
In-reply-to
Content
Seems this is related issue:

>>> import zlib, inspect
>>> zlib.compressobj.__text_signature__
'(level=Z_DEFAULT_COMPRESSION, method=DEFLATED, wbits=MAX_WBITS, memLevel=DEF_MEM_LEVEL, strategy=Z_DEFAULT_STRATEGY, zdict=None)'
>>> str(inspect.signature(zlib.compressobj))
'(level=-1, method=8, wbits=15, memLevel=8, strategy=0, zdict=None)'

help(zlib.compress) shows the '(bytes, level=-1)' signature.

inspect.signature() evaluates default values and instead of expected named constant it outputs numeric value which is often implementation detail.
History
Date User Action Args
2014-01-22 13:05:06serhiy.storchakasetrecipients: + serhiy.storchaka, larry, berker.peksag
2014-01-22 13:05:06serhiy.storchakasetmessageid: <1390395906.62.0.702778275737.issue20293@psf.upfronthosting.co.za>
2014-01-22 13:05:06serhiy.storchakalinkissue20293 messages
2014-01-22 13:05:06serhiy.storchakacreate