On 19 August 2017 at 02:55, Jelle Zijlstra <jelle.zijls...@gmail.com> wrote: > 2017-08-18 18:20 GMT+02:00 Yury Selivanov <yselivanov...@gmail.com>: >> There's a backport of signature API to Python 2. Although last time I >> checked it was fairly outdated. >> > I wrote a backport earlier this year: https://pypi.python.org/pypi/inspect2.
Nice. Yury was probably referring to https://funcsigs.readthedocs.io/, which is a partial backport specifically of inspect.Signature and friends. Either way, the answer to Christian's original question is that "Yes, supporting __signature__ is also useful in Python 2.x", as even though the native inspect module doesn't support it, 3rd party backports do. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com