Noam Raphael wrote:
> I don't think that every type that supports equality
> comparison should support order comparison. I think
> that if there's no meaningful comparison (whether
> equality or order), an exception should be raised.

Just to keep myself sane...

    def date_range(start=None, end=None):
        if start == None:
            start =
        if end == None:
            end =
        return end - start

Are you saying the "if" statements will raise TypeError if start or end are dates? That would be a sad day for Python. Perhaps you're saying that there is a "meaningful comparison" between None and anything else, but please clarify if so.

Robert Brewer
System Architect
Amor Ministries