[issue24008] inspect.getsource is failing for sys.excepthook

2015-04-19 Thread Anand Reddy Pandikunta
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

[issue24008] inspect.getsource is failing for sys.excepthook

2015-04-19 Thread Claudiu Popa
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