summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/whatsnew23.tex
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2003-02-18 00:43:24 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2003-02-18 00:43:24 (GMT)
commitacddabc6ecf60c755e9b9aa562bd758c7f858a9d (patch)
tree9e43b996233be1ac99ae8afb98454cc353eaa7c4 /Doc/whatsnew/whatsnew23.tex
parent2ff51a87b39ba77526e9cae62315cc7c8663f7ed (diff)
downloadcpython-acddabc6ecf60c755e9b9aa562bd758c7f858a9d.zip
cpython-acddabc6ecf60c755e9b9aa562bd758c7f858a9d.tar.gz
cpython-acddabc6ecf60c755e9b9aa562bd758c7f858a9d.tar.bz2
[Bug #683416] Make PEP263 coverage a bit more explicit, and add it to the
porting section
Diffstat (limited to 'Doc/whatsnew/whatsnew23.tex')
-rw-r--r--Doc/whatsnew/whatsnew23.tex20
1 files changed, 14 insertions, 6 deletions
diff --git a/Doc/whatsnew/whatsnew23.tex b/Doc/whatsnew/whatsnew23.tex
index 8235ebd..4b7c520 100644
--- a/Doc/whatsnew/whatsnew23.tex
+++ b/Doc/whatsnew/whatsnew23.tex
@@ -285,13 +285,16 @@ file. For example, a UTF-8 file can be declared with:
\end{verbatim}
Without such an encoding declaration, the default encoding used is
-ISO-8859-1, also known as Latin1.
+7-bit ASCII. Executing or importing modules containing string
+literals with 8-bit characters and no encoding declaration will result
+in a \exception{DeprecationWarning} being signalled by Python 2.3; in
+2.4 this will be a syntax error.
-The encoding declaration only affects Unicode string literals; the
-text in the source code will be converted to Unicode using the
-specified encoding. Note that Python identifiers are still restricted
-to ASCII characters, so you can't have variable names that use
-characters outside of the usual alphanumerics.
+The encoding declaration only affects Unicode string literals, which
+will be converted to Unicode using the specified encoding. Note that
+Python identifiers are still restricted to ASCII characters, so you
+can't have variable names that use characters outside of the usual
+alphanumerics.
\begin{seealso}
@@ -2079,6 +2082,11 @@ if \var{X} is more than one character long.
integer instead of raising an \exception{OverflowError} when a string
or floating-point number is too large to fit into an integer.
+\item If you have Unicode strings that contain 8-bit characters, you
+must declare the file's encoding (UTF-8, Latin-1, or whatever) by
+adding a comment to the top of the file. See
+section~\ref{section-encodings} for more information.
+
\item Calling Tcl methods through \module{_tkinter} no longer
returns only strings. Instead, if Tcl returns other objects those
objects are converted to their Python equivalent, if one exists, or