[Python-checkins] r56052 - sandbox/trunk/pep0/pep0/pep.py

brett.cannon python-checkins at python.org
Wed Jun 20 18:56:41 CEST 2007


Author: brett.cannon
Date: Wed Jun 20 18:56:39 2007
New Revision: 56052

Modified:
   sandbox/trunk/pep0/pep0/pep.py
Log:
Add a note that quick hack for sorting with 'van' or 'von' is weak and should
go back to the original algorithm of dumping the first word in a last name if
it starts with a lowercase letter.


Modified: sandbox/trunk/pep0/pep0/pep.py
==============================================================================
--- sandbox/trunk/pep0/pep0/pep.py	(original)
+++ sandbox/trunk/pep0/pep0/pep.py	Wed Jun 20 18:56:39 2007
@@ -55,6 +55,7 @@
 
     @property
     def sort_by(self):
+        # XXX Change back to splitting off front word if lowercase.
         if self.last.startswith('von ') or self.last.startswith('van '):
             return self.last.split(' ', 1)[1]
         return self.last


More information about the Python-checkins mailing list