10000 Merged revisions 3870-3872 via svnmerge from · matplotlib/matplotlib@96db4f2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 96db4f2

Browse files
committed
Merged revisions 3870-3872 via svnmerge from
http://matplotlib.svn.sf.net/svnroot/matplotlib/trunk/matplotlib ........ r3871 | dsdale | 2007-09-21 11:33:18 -0400 (Fri, 21 Sep 2007) | 2 lines changed cbooks reversed to agree with the python builtin ........ svn path=/branches/transforms/; revision=3873
1 parent 16199c9 commit 96db4f2

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

API_CHANGES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Changed cbook.reversed so it yields a tuple rather than a
2+
(index, tuple). This agrees with the python reversed builtin,
3+
and cbook only defines reversed if python doesnt provide the
4+
builtin.
5+
16
Made skiprows=1 the default on csv2rec
27

38
The gd and paint backends have been deleted.

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2007-09-21 Changed cbook.reversed to yield the same result as the
2+
python reversed builtin - DSD
3+
14
2007-09-13 The usetex support in the pdf backend is more usable now,
25
so I am enabling it. - JKS
36

lib/matplotlib/cbook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def reversed(seq):
482482
enumerate() is new in Python 2.3
483483
"""
484484
for i in range(len(seq)-1,-1,-1):
485-
yield i, seq[i]
485+
yield seq[i]
486486

487487

488488
# use itertools.izip if available, else use python version

0 commit comments

Comments
 (0)
0