spyne icon indicating copy to clipboard operation
spyne copied to clipboard

use inspect.signature for decorators

Open costela opened this issue 8 years ago • 1 comments

fixes #538

costela avatar Aug 12 '17 10:08 costela

This PR is not ideal. I originally overlooked the fact that inspect.signature is only available in py3 and py2's counterpart - inspect.getargspec - doesn't work with decorators.

I personally would still find it nice to have this working at least with py3, but this is of course not the perfect solution.

Another option would be using the decorator module, but this seems like overkill (especially since spyne's dependencies are so few; would be a shame to add one just for a fringe feature)

Any thoughts?

costela avatar Aug 12 '17 13:08 costela