[Python-ideas] [Python-Dev] datetime module enhancements

Steven Bethard steven.bethard at gmail.com
Mon Mar 12 20:07:19 CET 2007

On 3/12/07, Collin Winter <collinw at gmail.com> wrote:
> Posted as #1679204 (http://python.org/sf/1679204). In addition to
> date.__contains__, I had to add a datetime.__contains__ that throws a
> TypeError (since datetime inherits from date).

Very cool.  Thanks!

> While writing the patch, I had the idea of making "time in date"
> always return True, but I'm not sure that would be useful.

Yeah, I'd hold off on that one until someone indicates that they need
it.  Seems like there would be a number of places where True might be
wrong for a particular bit of code.

I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
        --- Bucky Katt, Get Fuzzy

More information about the Python-ideas mailing list