[Python-ideas] datetime: Support infinity

random832 at fastmail.us random832 at fastmail.us
Thu Jan 29 20:29:23 CET 2015

On Thu, Jan 29, 2015, at 14:19, Yawar Amin wrote:
> Hi Chris, sorry for the top-posting; replying from my phone.
> My test implementation works for me on Python 2.7, see http://repl.it/9Wz
> Notice especially the last few assertions, where normal datetime objects
> are on the LHS.

How'd you do that? Does python always know to use the derived class's
operators when working with a base class and a derived class?

More information about the Python-ideas mailing list