Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement inspect.signature for Python <=3.2 #157

Open
xZise opened this issue Jul 18, 2015 · 3 comments
Open

Implement inspect.signature for Python <=3.2 #157

xZise opened this issue Jul 18, 2015 · 3 comments

Comments

@xZise
Copy link
Contributor

xZise commented Jul 18, 2015

With Python 3.6 inspect.getargspec will be removed and instead inspect.signature should be used. So it would be useful to have a backport to versions before 3.3 for that (even though it was deprecated since 3.0, it wasn't replaced by inspect.signature until version 3.3).

@xZise
Copy link
Contributor Author

xZise commented Jul 22, 2015

Okay while I don't get a DeprecationWarning in Python 3.4.3 I now get one since 3.5.0b1 so I'd appreciate if this could get backported before 3.5 is released.

@xZise
Copy link
Contributor Author

xZise commented Sep 21, 2015

Okay I've already worked on a lightweight backport for pywikibot-core: https://gerrit.wikimedia.org/r/#/c/229683/1/pywikibot/tools/__init__.py,cm

If you can give suggestions/directions I might be able to provide a pull request.

@lawrenceakka
Copy link

There is also https://funcsigs.readthedocs.org/en/latest/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants