New submission from Anand Reddy Pandikunta:
inspect.getsource(sys.excepthook)
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/local/lib/python2.7/inspect.py, line 701, in getsource
lines, lnum = getsourcelines(object)
File
Claudiu Popa added the comment:
That's actually expected, since sys.excepthook is a builtin, so there's no
source code to be retrieved (the same holds for other builtins, such as next,
range etc).
--
nosy: +Claudiu.Popa
resolution: - not a bug
stage: - resolved
status: open - closed