[Python-ideas] datetime: Support infinity
Chris Barker
chris.barker at noaa.gov
Thu Jan 29 20:39:41 CET 2015
On Thu, Jan 29, 2015 at 11:36 AM, Ethan Furman <ethan at stoneleaf.us> wrote:
> > 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?
>
> I can't find the reference, but yes.
>
> So the broken datetime behavior would only be noticed by a non-datetime
> derived class.
>
got it - that's why my version didn't work.
So this is a good reason to derive from datetime. but I'd make sure to
override everything that doesn't make sense.
-Chris
> --
> ~Ethan~
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150129/a9b91277/attachment.html>
More information about the Python-ideas
mailing list