Skip to content

Conversation

takluyver
Copy link
Contributor

getargspec() can fail with a ValueError (which is uncaught) on Python 3 if a function has annotations or keyword only arguments. getfullargspec() handles these cases. formatargspec() optionally takes the extra three arguments, so no further change is needed.

@takluyver
Copy link
Contributor Author

Ping - it would be good to get this in. Thanks.

@juliantaylor
Copy link
Contributor

looks fine, thanks

juliantaylor added a commit that referenced this pull request Mar 24, 2014
BUG: Use getfullargspec() on Python 3
@juliantaylor juliantaylor merged commit 56a1b39 into numpy:master Mar 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants