Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Получение интроспекции на функцию. Модуль inspect.
- import inspect
- def function(x, y = 10)
- return x**2
- val = inspect.getfullargspec(function)
- val1 = inspect.signature(function)
- print(f'{val}')
- print(f'signature {val1}')
Advertisement
Add Comment
Please, Sign In to add comment