Skip to content

Conversation

@jasperges
Copy link
Contributor

@jasperges jasperges commented Oct 28, 2019

This resolves #461

What's changed?
Use inspect.getfullargspec for Python 3. Also see issue #461.

Copy link
Collaborator

@BigRoy BigRoy left a comment

Choose a reason for hiding this comment

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

Nice and simple. Looks good to me.

Be aware that the returned result between getargspec and getfullargspec does vary. However, since it seems we're solely using the first returned index (which is the same for both functions) and you've likely tested this in Python 3 as you described I guess it's fine for our use cases here. Just wanted to highlight this to anyone else seeing this PR.

@jasperges
Copy link
Contributor Author

Just to be sure: yes, I did test it :). Because I work mainly with Blender, everything I do is tested in Python 3.7.

@mottosso
Copy link
Contributor

Looks good, short and sweet!

@mottosso mottosso merged commit 3b1336d into getavalon:master Oct 30, 2019
@jasperges jasperges deleted the fix-461-getargspec branch October 30, 2019 15:51
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.

inspect.getargspec is deprecated since Python 3.0

3 participants