[Python-checkins] r51303 - python/trunk/Lib/idlelib/CodeContext.py python/trunk/Lib/idlelib/NEWS.txt

kurt.kaiser python-checkins at python.org
Wed Aug 16 05:15:28 CEST 2006


Author: kurt.kaiser
Date: Wed Aug 16 05:15:26 2006
New Revision: 51303
Modified:
 python/trunk/Lib/idlelib/CodeContext.py
 python/trunk/Lib/idlelib/NEWS.txt
Log:
The 'with' statement is now a Code Context block opener
Modified: python/trunk/Lib/idlelib/CodeContext.py
==============================================================================
--- python/trunk/Lib/idlelib/CodeContext.py	(original)
+++ python/trunk/Lib/idlelib/CodeContext.py	Wed Aug 16 05:15:26 2006
@@ -15,7 +15,7 @@
 from sys import maxint as INFINITY
 
 BLOCKOPENERS = set(["class", "def", "elif", "else", "except", "finally", "for",
- "if", "try", "while"])
+ "if", "try", "while", "with"])
 UPDATEINTERVAL = 100 # millisec
 FONTUPDATEINTERVAL = 1000 # millisec
 
Modified: python/trunk/Lib/idlelib/NEWS.txt
==============================================================================
--- python/trunk/Lib/idlelib/NEWS.txt	(original)
+++ python/trunk/Lib/idlelib/NEWS.txt	Wed Aug 16 05:15:26 2006
@@ -3,6 +3,8 @@
 
 *Release date: XX-AUG-2006*
 
+- The 'with' statement is now a Code Context block opener
+
 - Retrieval of previous shell command was not always preserving indentation
 (since 1.2a1) Patch 1528468 Tal Einat.
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /