summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-11-08 10:04:29 (GMT)
committerGeorg Brandl <georg@python.org>2006-11-08 10:04:29 (GMT)
commitfafdc3b97bc4329ded34686fa7dbd1a8e42812ca (patch)
tree5a2a828e53cabc7195012a3e4ced83529a069eb3 /Doc
parent393ac22b730200cc13599de4001b40b9871eae1b (diff)
downloadcpython-fafdc3b97bc4329ded34686fa7dbd1a8e42812ca.zip
cpython-fafdc3b97bc4329ded34686fa7dbd1a8e42812ca.tar.gz
cpython-fafdc3b97bc4329ded34686fa7dbd1a8e42812ca.tar.bz2
Bug #1592533: rename variable in heapq doc example, to avoid shadowing
"sorted".
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libheapq.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/lib/libheapq.tex b/Doc/lib/libheapq.tex
index eaf7051..5f3d8c5 100644
--- a/Doc/lib/libheapq.tex
+++ b/Doc/lib/libheapq.tex
@@ -76,14 +76,14 @@ Example of use:
>>> for item in data:
... heappush(heap, item)
...
->>> sorted = []
+>>> ordered = []
>>> while heap:
-... sorted.append(heappop(heap))
+... ordered.append(heappop(heap))
...
->>> print sorted
+>>> print ordered
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> data.sort()
->>> print data == sorted
+>>> print data == ordered
True
>>>
\end{verbatim}