Retrieving modification time of file class was declared in

nathan_kent_bullock at yahoo.ca nathan_kent_bullock at yahoo.ca
Mon Jan 24 23:39:11 EST 2005


Assume I am using a class Foo. I want to find out the modification time
of the file that that class was defined in. How would I go about this?

If I could find out the name of the file that Foo was defined in then
it is easy, I could use os.path.getmtime(), but I can't even figure
that out.

I realize that this wouldn't be a completely accurate way to tell the
last time this class was modified because it could inherit info from
other classes, or use functions from other modules that have been
modified, etc.

Nathan Bullock




More information about the Python-list mailing list