3 ms·
if an object has not been excessively tampered with, the objects's __module__ attribute will give you where it was created. The inspect module doc page is of g
by lloeki 14y ago
if an object has not been excessively tampered with, the objects's __module__ attribute will give you where it was created.
The inspect module doc page is of great help: http://docs.python.org/library/inspect.html http://docs.python.org/library/inspect.html