On Thu, Jan 29, 2015 at 11:36 AM, Ethan Furman email@example.com 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 Pythonfirstname.lastname@example.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