I'd like to decorate every function in a module (curses in my case) with a logger, but haven't done something like this before. Can you tell me where to read some documentation.
I'd like something like:
import curses as mycurses
import curses_wrapper as curses
where curses_wrapper is my module, and should catch all calls to whatevermodulefunctions, log it, and call the "real" curses function afterwards.
For the curious: I am using PyCharm on windows, and would like to debug a curses program. Since PyCharm cannot provide me a terminal, I cannot really debug the program.