> print "b has", b.count(25, cmp=le, key=attrgetter("age")), \
> "elements with age <= 25."
> [deleted]
> b has 2 elements with age <= 30.Oops, I mixed up when copying and pasting at different times... :p The output was of course b has 1 elements with age <= 25. Ping -- http://mail.python.org/mailman/listinfo/python-list
