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 <rep...@bugs.python.org> <http://bugs.python.org/issue16355> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com