Reputation: 9501
I am trying to go through the json module and return just the functions. and then I would like to use inspect module to return inspect.formatargspec(*inspect.getfullargspec(func)) on each function from json.
This is what I was thinking, this obviously fails because func
is a string.
import inspect
import json as m
for func in dir(m):
if inspect.isfunction(func):
print(func)
Upvotes: 1
Views: 267