[Python-Dev] __signature__ for PySide ready

Christian Tismer tismer at stackless.com
Fri Aug 18 04:41:05 EDT 2017

Hi friends,

in the last months, I have developed signature support for
PySide. The module creates the same signatures as are known
for plain Python functions.

As a non-trivial addition, the module also handles multiple
signatures as a list. I consider this extension to PySide
as quite essential and actually more important as for Python
itself, because type info is rather crucial for PySide.

Initially, I wrote this as a pure Python 3 extension.
Then I was "asked" to port this to Python 2 too, which was
quite hairy to do. I'm not sure if I should have done that.

Before I publish this module, I want to ask:

Is it a bad idea to support signatures in Python 2 as well?
Do I introduce a feature that should not exist in Python 2?
Or is it fine to do so?

Please let me know your opinion, I am happy with any result.

Cheers -- Chris

Christian Tismer             :^)   tismer at stackless.com
Software Consulting          :     http://www.stackless.com/
Karl-Liebknecht-Str. 121     :     https://github.com/PySide
14482 Potsdam                :     GPG key -> 0xFB7BEE0E
phone +49 173 24 18 776  fax +49 (30) 700143-0023

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-dev/attachments/20170818/3de01ce4/attachment.sig>

More information about the Python-Dev mailing list