[issue17526] inspect.findsource raises undocumented error for code objects with empty filename

2013-03-27 Thread Tyler Doyle
Changes by Tyler Doyle : Added file: http://bugs.python.org/file29591/17526_getsource.patch ___ Python tracker <http://bugs.python.org/issue17526> ___ ___ Python-bug

[issue17526] inspect.findsource raises undocumented error for code objects with empty filename

2013-03-27 Thread Tyler Doyle
Changes by Tyler Doyle : Removed file: http://bugs.python.org/file29576/inspect.patch ___ Python tracker <http://bugs.python.org/issue17526> ___ ___ Python-bugs-list m

[issue17526] inspect.findsource raises undocumented error for code objects with empty filename

2013-03-27 Thread Tyler Doyle
Changes by Tyler Doyle : Removed file: http://bugs.python.org/file29577/test_inspect.patch ___ Python tracker <http://bugs.python.org/issue17526> ___ ___ Python-bug

[issue17526] inspect.findsource raises undocumented error for code objects with empty filename

2013-03-25 Thread Tyler Doyle
Tyler Doyle added the comment: Patch and test to accompany. -- Added file: http://bugs.python.org/file29577/test_inspect.patch ___ Python tracker <http://bugs.python.org/issue17

[issue17526] inspect.findsource raises undocumented error for code objects with empty filename

2013-03-25 Thread Tyler Doyle
Changes by Tyler Doyle : -- keywords: +patch Added file: http://bugs.python.org/file29576/inspect.patch ___ Python tracker <http://bugs.python.org/issue17

[issue17526] inspect.findsource raises undocumented error for code objects with empty filename

2013-03-25 Thread Tyler Doyle
Tyler Doyle added the comment: It looks like file is getting set to '' and then indexed on line 553 below, hitting the IndexError before we ever get to IOError. --550--- file = getfile(object) <-- file = '' sourcefile = getsourcefile(object