[pywin32-bugs] [ pywin32-Bugs-1444381 ] lines may be mistaken for exception lines
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2006-03-22 10:51:31
|
Bugs item #1444381, was opened at 2006-03-07 07:04 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1444381&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Erik Andersén (erik_andersen) Assigned to: Nobody/Anonymous (nobody) Summary: lines may be mistaken for exception lines Initial Comment: PythonWin 2.4.2 (#67, Oct 30 2005, 16:11:18) [MSC v. 1310 32 bit (Intel)] on win32. Portions Copyright 1994-2004 Mark Hammond (mha...@sk...) - see 'Help/About PythonWin' for further copyright informatio >>> print 'File "<xxx>", line 1324' System will respond with "Cannot open this file" The cause is in winout.HandleSpecialLine. The input line matches the input line, so the interactive shell thinks is is a traceback line and tries to jump to the file <xxx>. Similarly, >>> s = 'File' + ' "<xxx>", line 1324' >>> s 'File "<xxx>", line 1324' >>> 1+1 gives the same error since HandleSpecialLine also tries the preceeding line. The solution is to add if line.startswith('>>>') or line. startswith('...'): return 0 near the beginning of HandleSpecialLine. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2006-03-22 21:51 Message: Logged In: YES user_id=14198 Fixed (but by changing the regex). Will be in 209 Checking in framework/winout.py; new revision: 1.13; previous revision: 1.12 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1444381&group_id=78018 |