summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-06-10 11:05:19 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-06-10 11:05:19 (GMT)
commit68c04534182f2c09783b6506701a8bc25c98b4a9 (patch)
tree4e5f2b764eff65a3201dd2e666355c487e88a9b7 /Misc
parentbf7255fffb5dda1b9541892cc40412bb6bbd4409 (diff)
downloadcpython-68c04534182f2c09783b6506701a8bc25c98b4a9.zip
cpython-68c04534182f2c09783b6506701a8bc25c98b4a9.tar.gz
cpython-68c04534182f2c09783b6506701a8bc25c98b4a9.tar.bz2
Add untokenize() function to allow full round-trip tokenization.
Should significantly enhance the utility of the module by supporting the creation of tools that modify the token stream and writeback the modified result.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index f15e873..4763598 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -141,6 +141,11 @@ Extension Modules
Library
-------
+- The tokenize module has a new untokenize() function to support a full
+ roundtrip from lexed tokens back to Python sourcecode. In addition,
+ the generate_tokens() function now accepts a callable argument that
+ terminates by raising StopIteration.
+
- Bug #1196315: fix weakref.WeakValueDictionary constructor.
- Bug #1213894: os.path.realpath didn't resolve symlinks that were the first