[Python-ideas] datetime: Support infinity

Ethan Furman ethan at stoneleaf.us
Thu Jan 29 20:31:53 CET 2015


On 01/29/2015 11:23 AM, random832 at fastmail.us wrote:
> On Thu, Jan 29, 2015, at 14:14, Ethan Furman wrote:
>> On 01/29/2015 11:09 AM, Chris Barker wrote:
>>> On Thu, Jan 29, 2015 at 10:10 AM, random832 wrote:
>>>>
>>>> Python 2 raises exception from __lt__,
>>>
>>> yeah, that's what I got -- we're on 2 for now. You'd think there wold
>>> be a way to do it -- but I don't see a "reflected" versions of the
>>> comparison operators.
>>
>> Raising an exception was a bug.  The comparison operators are their own
>> reflection.
> 
> Or, more precisely, they are *each other's* reflection (__gt__ being the
> reflection of __lt__).

Yes, much better phrasing, thank you.

--
~Ethan~

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150129/d6e02e10/attachment.sig>


More information about the Python-ideas mailing list