Clarify what happens when passing a Unicode string to compile().

Based on MvL's comment from 2005-02-09 in SF bug # 1115379.
This commit is contained in:
Neal Norwitz 2006-03-23 05:25:38 +00:00
parent f5df5b6019
commit 996935cc16
1 changed files with 3 additions and 0 deletions

View File

@ -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].