How can I decorate all functions imported from a file?
问题 I have created many functions that are divided into different files, now I would like to apply the same decorator for all of them without modifying the files and without applying the decorators one by one. I have tried to use this explanation written by delnan, but I got no success for imported functions. About the decorator, it must update a list every time a function within a class is executexecuted with the function arguments and values, just like this other question I asked. Any