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:
parent
f5df5b6019
commit
996935cc16
|
@ -202,6 +202,9 @@ Implementation
|
||||||
input. 8-bit string input is subject to the standard procedure for
|
input. 8-bit string input is subject to the standard procedure for
|
||||||
encoding detection as described above.
|
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
|
SUZUKI Hisao is working on a patch; see [2] for details. A patch
|
||||||
implementing only phase 1 is available at [1].
|
implementing only phase 1 is available at [1].
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue