[docs] [issue16355] inspect.getcomments() does not work in the interactive shell

Phil Connell report at bugs.python.org
Thu Apr 18 23:03:27 CEST 2013


Phil Connell added the comment:

Here's a patch that updates getcomments to match the behaviour of getsource, raising OSError if the source file can't be found and TypeError when passed a built-in.

Since this is a backwards-incompatible change, presumably it can only be applied to 3.4.

This is ready for review.

----------
keywords: +patch
nosy: +pconnell
Added file: http://bugs.python.org/file29926/issue16355.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16355>
_______________________________________


More information about the docs mailing list