[issue3684] traceback.format_exception_only() misplaces the caret for certain SyntaxErrors

2009-06-04 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, committed as r73206. -- nosy: +georg.brandl resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3684

[issue3684] traceback.format_exception_only() misplaces the caret for certain SyntaxErrors

2009-06-04 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: Any plans for a unit test for this change? -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3684 ___

[issue3684] traceback.format_exception_only() misplaces the caret for certain SyntaxErrors

2009-06-04 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Good point. Added a test in r73232. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3684 ___ ___

[issue3684] traceback.format_exception_only() misplaces the caret for certain SyntaxErrors

2008-08-25 Thread Brodie Rao
New submission from Brodie Rao [EMAIL PROTECTED]: + File stdin, line 1 + ^ SyntaxError: invalid syntax import sys import traceback traceback.print_exception(sys.last_type, sys.last_value, None) File stdin, line 1 + ^ SyntaxError: invalid syntax sys.last_value