[issue20293] pydoc fails with the "unspecified" default value
Serhiy Storchaka
report at bugs.python.org
Wed Jan 22 14:05:06 CET 2014
Serhiy Storchaka added the comment:
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.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20293>
_______________________________________
More information about the Python-bugs-list
mailing list