Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e9802a3

Browse files
committed
- Print correct exception even if source file changed since shell was
restarted. IDLEfork Patch 869012 Noam Raphael Modified Files: NEWS.txt run.py
1 parent 44a31e1 commit e9802a3

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

Lib/idlelib/NEWS.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
What's New in IDLE 1.0+?
1+
What's New in IDLE 1.1a0?
22
===================================
33

4-
*Release date: XX-XXX-2003*
4+
*Release date: XX-XXX-2004*
5+
6+
- Print correct exception even if source file changed since shell was
7+
restarted. IDLEfork Patch 869012 Noam Raphael
58

69
- Keybindings with the Shift modifier now work correctly. So do bindings which
710
use the Space key. Limit unmodified user keybindings to the function keys.

Lib/idlelib/run.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ def manage_socket(address):
109109
server.handle_request() # A single request only
110110

111111
def print_exception():
112+
import linecache
113+
linecache.checkcache()
112114
flush_stdout()
113115
efile = sys.stderr
114116
typ, val, tb = excinfo = sys.exc_info()

0 commit comments

Comments
 (0)