[Python-checkins] CVS: python/dist/src/Doc/lib liblinecache.tex,1.4,1.5 liblocale.tex,1.21,1.22 libmd5.tex,1.18,1.19 libparser.tex,1.36,1.37 libpyexpat.tex,1.11,1.12 librotor.tex,1.17,1.18 libstruct.tex,1.25,1.26

Ka-Ping Yee ping@users.sourceforge.net
Wed, 24 Jan 2001 09:19:09 -0800


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

Modified Files:
	liblinecache.tex liblocale.tex libmd5.tex libparser.tex 
	libpyexpat.tex librotor.tex libstruct.tex 
Log Message:
Show '\011', '\012', and '\015' as '\t', '\n', '\r' in strings.
Switch from octal escapes to hex escapes for other nonprintable characters.


Index: liblinecache.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liblinecache.tex,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** liblinecache.tex	2000/12/01 15:25:23	1.4
--- liblinecache.tex	2001/01/24 17:19:05	1.5
***************
*** 42,45 ****
  >>> import linecache
  >>> linecache.getline('/etc/passwd', 4)
! 'sys:x:3:3:sys:/dev:/bin/sh\012'
  \end{verbatim}
--- 42,45 ----
  >>> import linecache
  >>> linecache.getline('/etc/passwd', 4)
! 'sys:x:3:3:sys:/dev:/bin/sh\n'
  \end{verbatim}

Index: liblocale.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liblocale.tex,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** liblocale.tex	2000/11/30 07:13:58	1.21
--- liblocale.tex	2001/01/24 17:19:06	1.22
***************
*** 266,270 ****
  >>> loc = locale.setlocale(locale.LC_ALL) # get current locale
  >>> locale.setlocale(locale.LC_ALL, 'de') # use German locale
! >>> locale.strcoll('f\344n', 'foo') # compare a string containing an umlaut 
  >>> locale.setlocale(locale.LC_ALL, '') # use user's preferred locale
  >>> locale.setlocale(locale.LC_ALL, 'C') # use default (C) locale
--- 266,270 ----
  >>> loc = locale.setlocale(locale.LC_ALL) # get current locale
  >>> locale.setlocale(locale.LC_ALL, 'de') # use German locale
! >>> locale.strcoll('f\xe4n', 'foo') # compare a string containing an umlaut 
  >>> locale.setlocale(locale.LC_ALL, '') # use user's preferred locale
  >>> locale.setlocale(locale.LC_ALL, 'C') # use default (C) locale

Index: libmd5.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libmd5.tex,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** libmd5.tex	2000/09/18 15:34:57	1.18
--- libmd5.tex	2001/01/24 17:19:06	1.19
***************
*** 26,30 ****
  >>> m.update(" the spammish repetition")
  >>> m.digest()
! '\273d\234\203\335\036\245\311\331\336\311\241\215\360\377\351'
  \end{verbatim}
  
--- 26,30 ----
  >>> m.update(" the spammish repetition")
  >>> m.digest()
! '\xbbd\x9c\x83\xdd\x1e\xa5\xc9\xd9\xde\xc9\xa1\x8d\xf0\xff\xe9'
  \end{verbatim}
  
***************
*** 33,37 ****
  \begin{verbatim}
  >>> md5.new("Nobody inspects the spammish repetition").digest()
! '\273d\234\203\335\036\245\311\331\336\311\241\215\360\377\351'
  \end{verbatim}
  
--- 33,37 ----
  \begin{verbatim}
  >>> md5.new("Nobody inspects the spammish repetition").digest()
! '\xbbd\x9c\x83\xdd\x1e\xa5\xc9\xd9\xde\xc9\xa1\x8d\xf0\xff\xe9'
  \end{verbatim}
  

Index: libparser.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libparser.tex,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -r1.36 -r1.37
*** libparser.tex	2000/07/16 19:01:09	1.36
--- libparser.tex	2001/01/24 17:19:06	1.37
***************
*** 433,437 ****
                  (298,
                   (299,
!                   (300, (3, '"""Some documentation.\012"""'))))))))))))))))),
     (4, ''))),
   (4, ''),
--- 433,437 ----
                  (298,
                   (299,
!                   (300, (3, '"""Some documentation.\n"""'))))))))))))))))),
     (4, ''))),
   (4, ''),
***************
*** 538,542 ****
  1
  >>> vars
! {'docstring': '"""Some documentation.\012"""'}
  \end{verbatim}
  
--- 538,542 ----
  1
  >>> vars
! {'docstring': '"""Some documentation.\n"""'}
  \end{verbatim}
  

Index: libpyexpat.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libpyexpat.tex,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** libpyexpat.tex	2001/01/04 05:48:08	1.11
--- libpyexpat.tex	2001/01/24 17:19:07	1.12
***************
*** 273,281 ****
  Character data: 'Text goes here'
  End element: child1
! Character data: '\012'
  Start element: child2 {'name': 'fred'}
  Character data: 'More text'
  End element: child2
! Character data: '\012'
  End element: parent
  \end{verbatim}
--- 273,281 ----
  Character data: 'Text goes here'
  End element: child1
! Character data: '\n'
  Start element: child2 {'name': 'fred'}
  Character data: 'More text'
  End element: child2
! Character data: '\n'
  End element: parent
  \end{verbatim}

Index: librotor.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/librotor.tex,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** librotor.tex	2000/11/14 21:43:01	1.17
--- librotor.tex	2001/01/24 17:19:07	1.18
***************
*** 69,83 ****
  >>> rt = rotor.newrotor('key', 12)
  >>> rt.encrypt('bar')
! '\2534\363'
  >>> rt.encryptmore('bar')
! '\357\375$'
  >>> rt.encrypt('bar')
! '\2534\363'
! >>> rt.decrypt('\2534\363')
  'bar'
! >>> rt.decryptmore('\357\375$')
  'bar'
! >>> rt.decrypt('\357\375$')
! 'l(\315'
  >>> del rt
  \end{verbatim}
--- 69,83 ----
  >>> rt = rotor.newrotor('key', 12)
  >>> rt.encrypt('bar')
! '\xab4\xf3'
  >>> rt.encryptmore('bar')
! '\xef\xfd$'
  >>> rt.encrypt('bar')
! '\xab4\xf3'
! >>> rt.decrypt('\xab4\xf3')
  'bar'
! >>> rt.decryptmore('\xef\xfd$')
  'bar'
! >>> rt.decrypt('\xef\xfd$')
! 'l(\xcd'
  >>> del rt
  \end{verbatim}

Index: libstruct.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstruct.tex,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** libstruct.tex	2000/04/03 20:13:54	1.25
--- libstruct.tex	2001/01/24 17:19:07	1.26
***************
*** 169,174 ****
  >>> from struct import *
  >>> pack('hhl', 1, 2, 3)
! '\000\001\000\002\000\000\000\003'
! >>> unpack('hhl', '\000\001\000\002\000\000\000\003')
  (1, 2, 3)
  >>> calcsize('hhl')
--- 169,174 ----
  >>> from struct import *
  >>> pack('hhl', 1, 2, 3)
! '\x00\x01\x00\x02\x00\x00\x00\x03'
! >>> unpack('hhl', '\x00\x01\x00\x02\x00\x00\x00\x03')
  (1, 2, 3)
  >>> calcsize('hhl')