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


On 3/12/07, Collin Winter <collinw@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). 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. Collin Winter

On 3/12/07, Collin Winter <collinw@gmail.com> wrote:
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. Steve -- 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

On 3/12/07, Collin Winter <collinw@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). 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. Collin Winter

On 3/12/07, Collin Winter <collinw@gmail.com> wrote:
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. Steve -- 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
participants (3)
-
Christian Heimes
-
Collin Winter
-
Steven Bethard