Yury Selivanov added the comment:

Attached is an experimental patch (issue20489_01.patch) that implements the 
idea of encoding full function name in its 'sig=' spec.

Test file:

   import zlib
   import inspect

   print(zlib.compressobj().flush.__text_signature__)
   print(inspect.signature(zlib.compressobj().flush))

Output:

   zlib.Compress.flush($self, mode=Z_FINISH)
   (mode=4)

And 'help(zlib.compressobj())' also works as expected.

If you like this approach I can fine-tune the patch.

----------
keywords: +patch
Added file: http://bugs.python.org/file33889/issue20489_01.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20489>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to