Here is an example of each:
from inspect import stack  class Foo:     def __init__(self):         print __file__         print self.__class__.__name__         print stack()[0][3]  f = Foo() 
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With