Ka-Ping Yee
b910efe8a9
Robustify getcomments() so it doesn't crash on empty files.
2001-04-12 13:17:17 +00:00
Ka-Ping Yee
4d6fc7fae1
Add getmodulename() and getmoduleinfo() routines to inspect filenames.
2001-04-10 11:43:00 +00:00
Ka-Ping Yee
a9c6c8dab5
Extend isclass() to work for extension classes (by looking for __bases__).
2001-03-23 15:29:59 +00:00
Ka-Ping Yee
f170d7fea7
Don't have trace() skip the top frame; return them all.
2001-03-23 05:14:10 +00:00
Tim Peters
30edd2387d
Whitespace normalization.
2001-03-16 08:29:48 +00:00
Ka-Ping Yee
a6e59719ec
Fix findsource() to work for derived classes.
2001-03-10 09:31:55 +00:00
Ka-Ping Yee
4eb0c003f8
Make getsourcefile() succeed even if the filename doesn't end in '.py' --
...
as long as the filename also doesn't end in a suffix that indicates
a binary file (according to the flags in imp.get_suffixes()).
Shrink try...except clauses and replace some of them with explicit checks.
2001-03-02 05:50:34 +00:00
Ka-Ping Yee
c113c24e19
Clarify the purpose of getsourcefile().
...
Add getabsfile() for getting a most-normalized path.
2001-03-02 02:08:53 +00:00
Ka-Ping Yee
7a25765f48
When seeking the module for an object, compare absolute (not relative) paths.
2001-03-02 01:19:39 +00:00
Ka-Ping Yee
8b58b84d72
Add __author__ variable.
...
Robustify: don't rely on modules being present in sys.modules.
2001-03-01 13:56:16 +00:00
Ka-Ping Yee
59ade08079
Add getlineno() routine to account for LINENO optimization.
2001-03-01 03:55:35 +00:00
Tim Peters
85ba673b0a
Whitespace normalization.
2001-02-28 08:26:44 +00:00
Ka-Ping Yee
6397c7c9a9
inspect: a module for getting information out of live Python objects
2001-02-27 14:43:21 +00:00