[Python-checkins] python/dist/src/Lib UserList.py, 1.21,
1.22 pyclbr.py, 1.31, 1.32
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Wed Dec 17 15:43:34 EST 2003
- Previous message: [Python-checkins]
python/dist/src/Doc/whatsnew whatsnew24.tex, 1.19, 1.20
- Next message: [Python-checkins] python/dist/src/Lib/test test_builtin.py, 1.26,
1.27 test_descrtut.py, 1.18, 1.19 test_itertools.py, 1.26,
1.27 test_operator.py, 1.12, 1.13 test_set.py, 1.7,
1.8 test_sort.py, 1.10, 1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv9388/Lib
Modified Files:
UserList.py pyclbr.py
Log Message:
Guido grants a Christmas wish:
sorted() becomes a regular function instead of a classmethod.
Index: UserList.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/UserList.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** UserList.py 29 Oct 2003 06:54:42 -0000 1.21
--- UserList.py 17 Dec 2003 20:43:32 -0000 1.22
***************
*** 79,87 ****
def reverse(self): self.data.reverse()
def sort(self, *args, **kwds): self.data.sort(*args, **kwds)
- def sorted(cls, iterable, *args, **kwds):
- s = cls(iterable)
- s.sort(*args, **kwds)
- return s
- sorted = classmethod(sorted)
def extend(self, other):
if isinstance(other, UserList):
--- 79,82 ----
Index: pyclbr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pyclbr.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** pyclbr.py 1 Dec 2003 20:12:14 -0000 1.31
--- pyclbr.py 17 Dec 2003 20:43:32 -0000 1.32
***************
*** 328,332 ****
if isinstance(obj, Class):
print "class", obj.name, obj.super, obj.lineno
! methods = list.sorted(obj.methods.iteritems(), key=itemgetter(1))
for name, lineno in methods:
if name != "__path__":
--- 328,332 ----
if isinstance(obj, Class):
print "class", obj.name, obj.super, obj.lineno
! methods = sorted(obj.methods.iteritems(), key=itemgetter(1))
for name, lineno in methods:
if name != "__path__":
- Previous message: [Python-checkins]
python/dist/src/Doc/whatsnew whatsnew24.tex, 1.19, 1.20
- Next message: [Python-checkins] python/dist/src/Lib/test test_builtin.py, 1.26,
1.27 test_descrtut.py, 1.18, 1.19 test_itertools.py, 1.26,
1.27 test_operator.py, 1.12, 1.13 test_set.py, 1.7,
1.8 test_sort.py, 1.10, 1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-checkins
mailing list