[PATCH] sort with key and reverse keywors in Python2.4
Aaron Bentley
aaron.bentley at utoronto.ca
Thu Jun 2 14:08:11 BST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mario Pernici wrote:
| This patch to changeset.py uses in my_sort() Python2.4's sort
| with key and reverse keywords, falling back to Python2.3's sort
| otherwise.
Is there a compelling reason to use Python 2.4's sort facilities? I
recognize that they're nicer, but in general, I think it's better to
have one codepath, instead of two. The code's cleaner that way, and
it's easier to test.
Of course, there are always exceptions if there's a good enough reason.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCnwS70F+nu1YWqI0RAn9ZAJ906vPjPY6Q4YIP1VoyI2Ve27RDDQCfeAXW
RzLuByTT+LqTv1YanS9gmbQ=
=fZ9t
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list