[Python-checkins] python/dist/src/Doc/lib libcollections.tex, 1.2, 1.3

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Fri Feb 6 21:45:23 EST 2004


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18663/Doc/lib

Modified Files:
	libcollections.tex 
Log Message:
* Fix ref counting in extend() and extendleft().
* Let deques support reversed().



Index: libcollections.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libcollections.tex,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** libcollections.tex	6 Feb 2004 19:04:56 -0000	1.2
--- libcollections.tex	7 Feb 2004 02:45:21 -0000	1.3
***************
*** 61,65 ****
  In addition to the above, deques support iteration, membership testing
  using the \keyword{in} operator, \samp{len(d)}, \samp{copy.copy(d)},
! \samp{copy.deepcopy(d)}, and pickling.
  
  Example:
--- 61,65 ----
  In addition to the above, deques support iteration, membership testing
  using the \keyword{in} operator, \samp{len(d)}, \samp{copy.copy(d)},
! \samp{copy.deepcopy(d)}, \samp{reversed(d)} and pickling.
  
  Example:
***************
*** 85,88 ****
--- 85,90 ----
  >>> list(d)                 # list the contents of the deque
  ['g', 'h', 'i']
+ >>> list(reversed(d))       # list the contents of a deque in reverse
+ ['i', 'h', 'g']
  >>> 'h' in d                # search the deque
  True




More information about the Python-checkins mailing list