Author ncoghlan
Recipients
Date 2006-09-06.10:51:39
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Every call to inspect.findsource() in Python 2.5 is
calling both os.path.abspath() and os.path.normpath(),
even if the file name is already absolute and
normalized, and the relevant entry is in the module
name cache.

This patch changes getmodule() to first check the
modulesbyfile cache earlier, so these calls are skipped
when the module name for the file is already known.
History
Date User Action Args
2007-08-23 15:54:35adminlinkissue1553314 messages
2007-08-23 15:54:35admincreate