[Python-checkins] r43241 - peps/trunk/pep-0263.txt
neal.norwitz
python-checkins at python.org
Thu Mar 23 06:25:41 CET 2006
Author: neal.norwitz
Date: Thu Mar 23 06:25:38 2006
New Revision: 43241
Modified:
peps/trunk/pep-0263.txt
Log:
Clarify what happens when passing a Unicode string to compile().
Based on MvL's comment from 2005-02-09 in SF bug # 1115379.
Modified: peps/trunk/pep-0263.txt
==============================================================================
--- peps/trunk/pep-0263.txt (original)
+++ peps/trunk/pep-0263.txt Thu Mar 23 06:25:38 2006
@@ -202,6 +202,9 @@
input. 8-bit string input is subject to the standard procedure for
encoding detection as described above.
+ If a Unicode string with a coding declaration is passed to compile(),
+ a SyntaxError will be raised.
+
SUZUKI Hisao is working on a patch; see [2] for details. A patch
implementing only phase 1 is available at [1].
More information about the Python-checkins
mailing list