[Python-checkins] python/dist/src/Doc/whatsnew whatsnew23.tex,1.119,1.120

akuchling@users.sourceforge.net akuchling@users.sourceforge.net
Mon, 17 Feb 2003 16:43:26 -0800


Update of /cvsroot/python/python/dist/src/Doc/whatsnew
In directory sc8-pr-cvs1:/tmp/cvs-serv23111

Modified Files:
	whatsnew23.tex 
Log Message:
[Bug #683416] Make PEP263 coverage a bit more explicit, and add it to the 
    porting section


Index: whatsnew23.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew23.tex,v
retrieving revision 1.119
retrieving revision 1.120
diff -C2 -d -r1.119 -r1.120
*** whatsnew23.tex	11 Feb 2003 14:30:39 -0000	1.119
--- whatsnew23.tex	18 Feb 2003 00:43:24 -0000	1.120
***************
*** 286,296 ****
  
  Without such an encoding declaration, the default encoding used is
! ISO-8859-1, also known as Latin1.
  
! 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.
  
  \begin{seealso}
--- 286,299 ----
  
  Without such an encoding declaration, the default encoding used is
! 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, 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,2082 ****
--- 2082,2090 ----
  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