[Python-checkins] CVS: python/dist/src/Doc/lib libfuncs.tex,1.85,1.86

Guido van Rossum gvanrossum@users.sourceforge.net
Sat, 29 Sep 2001 07:28:57 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv7181

Modified Files:
	libfuncs.tex 
Log Message:
Fix two typos in the text about compile(), and add two caveats from
recent user feedback: you must end the input with \n and you must use
\n, not \r\n to represent line endings.


Index: libfuncs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v
retrieving revision 1.85
retrieving revision 1.86
diff -C2 -d -r1.85 -r1.86
*** libfuncs.tex	2001/09/20 19:55:29	1.85
--- libfuncs.tex	2001/09/29 14:28:52	1.86
***************
*** 124,128 ****
    executed by an \keyword{exec} statement or evaluated by a call to
    \function{eval()}.  The \var{filename} argument should
!   give the file from which the code was read; pass same recognizable value
    if it wasn't read from a file (\code{'<string>'} is commonly used).
    The \var{kind} argument specifies what kind of code must be
--- 124,128 ----
    executed by an \keyword{exec} statement or evaluated by a call to
    \function{eval()}.  The \var{filename} argument should
!   give the file from which the code was read; pass some recognizable value
    if it wasn't read from a file (\code{'<string>'} is commonly used).
    The \var{kind} argument specifies what kind of code must be
***************
*** 133,137 ****
    that evaluate to something else than \code{None} will printed).
  
!   The optional arguments \var{flags} and \optional{dont_inherit}
    (which are new in Python 2.2) control which future statements (see
    \pep{236}) affect the compilation of \var{string}.  If neither is
--- 133,144 ----
    that evaluate to something else than \code{None} will printed).
  
!   When compiling multi-line statements, two caveats apply: line
!   endings must be represented by a single newline character
!   (\code{'\e n'}), and the input must be terminated by at least one
!   newline character.  If line endings are represented by
!   \code{'\e r\e n'}, use the string \method{replace()} method to
!   change them into \code{'\e n'}.
! 
!   The optional arguments \var{flags} and \var{dont_inherit}
    (which are new in Python 2.2) control which future statements (see
    \pep{236}) affect the compilation of \var{string}.  If neither is