From 996935cc1660c9557bc14f5f09c9c725190323f1 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Thu, 23 Mar 2006 05:25:38 +0000 Subject: [PATCH] Clarify what happens when passing a Unicode string to compile(). Based on MvL's comment from 2005-02-09 in SF bug # 1115379. --- pep-0263.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pep-0263.txt b/pep-0263.txt index a61b65648..bd0e158bf 100644 --- a/pep-0263.txt +++ b/pep-0263.txt @@ -202,6 +202,9 @@ Implementation 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].