34th Week of 2022
Computer Science⚑
GNULinux⚑
(../computer_science/gnu_linux/debian.md)⚑
-
New: Find what package a file belongs to.
dpkg -S /path/to/file
Programming⚑
(../python_debugging.md)⚑
-
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))