summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorTrent Nelson <trent.nelson@snakebite.org>2008-03-18 22:41:35 (GMT)
committerTrent Nelson <trent.nelson@snakebite.org>2008-03-18 22:41:35 (GMT)
commit428de65ca99492436130165bfbaeb56d6d1daec7 (patch)
treed6c11516a28d8ca658e1f35ac6d7cc802958e336 /Misc
parent112367a980481d54f8c21802ee2538a3485fdd41 (diff)
downloadcpython-428de65ca99492436130165bfbaeb56d6d1daec7.zip
cpython-428de65ca99492436130165bfbaeb56d6d1daec7.tar.gz
cpython-428de65ca99492436130165bfbaeb56d6d1daec7.tar.bz2
- Issue #719888: Updated tokenize to use a bytes API. generate_tokens has been
renamed tokenize and now works with bytes rather than strings. A new detect_encoding function has been added for determining source file encoding according to PEP-0263. Token sequences returned by tokenize always start with an ENCODING token which specifies the encoding used to decode the file. This token is used to encode the output of untokenize back to bytes. Credit goes to Michael "I'm-going-to-name-my-first-child-unittest" Foord from Resolver Systems for this work.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS2
-rw-r--r--Misc/NEWS7
2 files changed, 8 insertions, 1 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 1ae773f..9465d8b 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -752,3 +752,5 @@ Artur Zaprzala
Mike Zarnstorff
Siebren van der Zee
Uwe Zessin
+Trent Nelson
+Michael Foord
diff --git a/Misc/NEWS b/Misc/NEWS
index db686cd..279da30 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -41,6 +41,12 @@ Library
- Issue #1202: zlib.crc32 and zlib.adler32 now return an unsigned value.
+- Issue #719888: Updated tokenize to use a bytes API. generate_tokens has been
+ renamed tokenize and now works with bytes rather than strings. A new
+ detect_encoding function has been added for determining source file encoding
+ according to PEP-0263. Token sequences returned by tokenize always start
+ with an ENCODING token which specifies the encoding used to decode the file.
+ This token is used to encode the output of untokenize back to bytes.
What's New in Python 3.0a3?
===========================
@@ -175,7 +181,6 @@ Library
- Issue #1578: Problems in win_getpass.
-
Build
-----