[CMF-checkins] CVS: Products/CMFDefault/skins/zpt_control -
reverseList.py:1.4
Yvo Schubbe
y.2004_ at wcm-solutions.de
Tue Aug 3 08:48:52 EDT 2004
Update of /cvs-repository/Products/CMFDefault/skins/zpt_control
In directory cvs.zope.org:/tmp/cvs-serv27889/CMFDefault/skins/zpt_control
Modified Files:
reverseList.py
Log Message:
- replaced reverseList by [::-1] and marked reverseList as deprecated
- some other cleanup
=== Products/CMFDefault/skins/zpt_control/reverseList.py 1.3 => 1.4 ===
--- Products/CMFDefault/skins/zpt_control/reverseList.py:1.3 Tue Jun 11 09:17:21 2002
+++ Products/CMFDefault/skins/zpt_control/reverseList.py Tue Aug 3 08:48:52 2004
@@ -1,8 +1,7 @@
-## Script (Python) "reverseList.py $Revision$"
##parameters=aList
##title=Reverse A List or Tuple and Return it
##
+# this script is deprecated; please use aList[::-1]
myList=list(aList)[:]
myList.reverse()
return myList
-
More information about the CMF-checkins
mailing list