* Fix ref counting in extend() and extendleft().
* Let deques support reversed().
diff --git a/Doc/lib/libcollections.tex b/Doc/lib/libcollections.tex
index ebb2079..55ab431 100644
--- a/Doc/lib/libcollections.tex
+++ b/Doc/lib/libcollections.tex
@@ -60,7 +60,7 @@
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.
+\samp{copy.deepcopy(d)}, \samp{reversed(d)} and pickling.
Example:
@@ -84,6 +84,8 @@
'f'
>>> 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
>>> d.extend('jkl') # extend() will append many elements at once