]> granicus.if.org Git - python/commit
Fix getcomments() so that it doesn't fail with TypeErrors.
authorJeremy Hylton <jeremy@alum.mit.edu>
Thu, 28 Mar 2002 23:01:56 +0000 (23:01 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Thu, 28 Mar 2002 23:01:56 +0000 (23:01 +0000)
commitb4c17c899284eae9923495c0879af8aa0e91dfd6
treed162fa072e143ed2c8e5ec4a1313774d1815aea1
parente9fba9188ea1b9674a6a262774dc9abf1221d24e
Fix getcomments() so that it doesn't fail with TypeErrors.

It appears that getcomments() can get called for classes defined in
C.  Since these don't have source code, it can't do anything useful.
A function buried many levels deep was raising a TypeError that was
not caught.

Who knows why this broke...
Lib/inspect.py