Add method TimeRange.__lt__().
commit08ef98cc564c3e271b6ca2c9fcf40a601715dbf6
authormhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Sun, 4 Apr 2010 15:35:01 +0000 (4 15:35 +0000)
committermhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Sun, 4 Apr 2010 15:35:01 +0000 (4 15:35 +0000)
tree1ce868b859a3dcb4b21c19a4ab3cf494d150320e
parent0546c266ab97b1f332774a9ee1966e57d8c4bcf2
Add method TimeRange.__lt__().

Patch by: Brian Harring <ferringb@tigris.org>

The __lt__() addition may look superfluous, but it's
intentional--python sorting relies on __lt__() (just __lt__()); as
such for heavily sorted instances a __lt__() was added (TimeRange in
this case) for a slight reduction via avoiding cmp() invocation--cmp()
requires a nasty search of the various scopes/namespaces and requires
native python code interpretting the results; using '<' offloads that
into the interpreter itself which can do things far far faster then
native python equivalents.

git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@5102 be7e6eca-30d4-0310-a8e5-ac0d63af7087
cvs2svn_lib/time_range.py