inspect.getsourcefile()

inspect.getsourcefile(object)

Return the name of the Python source file in which an object was defined. This will fail with a TypeError if the object is a built-in module, class, or function.

doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.