22nd August 2022
Computer Science⚑
GNULinux⚑
Debian⚑
-
New: Find what package a file belongs to.
dpkg -S /path/to/file
Programming⚑
Debugging⚑
-
New: Debugging with inspect.
See a function definition at runtime
from somewhere import somefunction from inspect import getsource print(getsource(somefunction))
Get function signature at runtime
from somewhere import somefunction from inspect import signature print(signature(somefunction))