Skip to content

Conversation

ogrisel
Copy link
Contributor

@ogrisel ogrisel commented Sep 23, 2015

And the code is much nicer with the new signature API.

else:
argspec = inspect.getargspec(func)
argspec = inspect.formatargspec(*argspec)
argspec = argspec.replace('*', '\*')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does inspect.signature deal with this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hum, probably not indeed. This is for rst escaping right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I amended my commit to fix this and added a check in the tests.

@ogrisel ogrisel force-pushed the python-3.5-getfullargspec-deprecated branch from 7f7a6d8 to b9c4c90 Compare September 23, 2015 18:30
@ogrisel
Copy link
Contributor Author

ogrisel commented Sep 28, 2015

The tests pass including the newly introduced check on the escaping of the star character.

pv added a commit that referenced this pull request Oct 25, 2015
MAINT: inspect.getfullargspec is deprecated in Py3.5
@pv pv merged commit ede5cd6 into numpy:master Oct 25, 2015
@rgommers rgommers added this to the v0.6 milestone Jan 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants