March 2003
Intermediate to advanced
656 pages
39h 30m
English
getfile, getsourcefile
getfile(obj)Returns the name of the file that defined
obj, and raises
TypeError when unable to determine the file. For
example, getfile raises
TypeError if obj is
built-in. getfile returns the name of a binary or
source file. getsourcefile returns the name of a
source file, and raises TypeError when it can
determine only a binary file, not the corresponding source file.