[Python-ideas] datetime: Support infinity
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.
> Python-ideas mailing list
> Python-ideas at python.org
> Code of Conduct: http://python.org/psf/codeofconduct/
Christopher Barker, Ph.D.
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...
More information about the Python-ideas