spyne
spyne copied to clipboard
use inspect.signature for decorators
fixes #538
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?