Revision: 3871
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3871&view=rev
Author:   dsdale
Date:     2007-09-21 08:33:18 -0700 (Fri, 21 Sep 2007)

Log Message:
-----------
changed cbooks reversed to agree with the python builtin

Modified Paths:
--------------
    trunk/matplotlib/API_CHANGES
    trunk/matplotlib/CHANGELOG
    trunk/matplotlib/lib/matplotlib/cbook.py

Modified: trunk/matplotlib/API_CHANGES
===================================================================
--- trunk/matplotlib/API_CHANGES        2007-09-20 18:02:51 UTC (rev 3870)
+++ trunk/matplotlib/API_CHANGES        2007-09-21 15:33:18 UTC (rev 3871)
@@ -1,3 +1,8 @@
+    Changed cbook.reversed so it yields a tuple rather than a 
+    (index, tuple). This agrees with the python reversed builtin,
+    and cbook only defines reversed if python doesnt provide the 
+    builtin.
+
     Made skiprows=1 the default on csv2rec
 
     The gd and paint backends have been deleted.

Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG  2007-09-20 18:02:51 UTC (rev 3870)
+++ trunk/matplotlib/CHANGELOG  2007-09-21 15:33:18 UTC (rev 3871)
@@ -1,3 +1,6 @@
+2007-09-21 Changed cbook.reversed to yield the same result as the 
+           python reversed builtin - DSD
+
 2007-09-13 The usetex support in the pdf backend is more usable now,
            so I am enabling it. - JKS
 

Modified: trunk/matplotlib/lib/matplotlib/cbook.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/cbook.py    2007-09-20 18:02:51 UTC (rev 
3870)
+++ trunk/matplotlib/lib/matplotlib/cbook.py    2007-09-21 15:33:18 UTC (rev 
3871)
@@ -482,7 +482,7 @@
         enumerate() is new in Python 2.3
         """
         for i in range(len(seq)-1,-1,-1):
-            yield i, seq[i]
+            yield seq[i]
 
 
 # use itertools.izip if available, else use python version


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to