DEV Community

Discussion on: Let's Talk Python - Some of the Unknown 👤

Collapse
 
siddharth2016 profile image
Siddharth Chandra

Glad you found it interesting 😊

And the disaster that's blessing in disguise is to use this for logging within a function. Capture some kind of information everytime a function is called.

There are sure some more interesting ways to log our findings or errors, like using decorator, singleton object or mutable objects in functions and simply using conditionals.