Closed olivierdeckers closed 10 years ago
I tried out using inspect
per the link above, but the problem there is that it skips over any methods that have extra decorators on it (like permissions, etc.). I found a solution for my needs-- I changed it to rule.arguments
and it works as expected.
I'm merging @ehamiter's fix. I hope this fixes your issue.
The list of arguments is obtained using func.func_code.co_varnames in autodoc.py:101
This results in a list that contains more names than the function has arguments. I think you should use the inspect module to abstract away implementation issues, see http://stackoverflow.com/questions/10120974/where-is-the-default-parameter-in-python-function