[Python-ideas] bool(datetime.time(0, 0)) vs missing data

Alexander Belopolsky alexander.belopolsky at gmail.com
Wed May 9 20:36:32 CEST 2012


On Wed, May 9, 2012 at 1:10 PM, Devin Jeanpierre <jeanpierreda at gmail.com> wrote:
> Times are not a group -- there's no addition or multiplication
> operator among times. They only add against timedeltas, ...

No, they don't.  There is really very little that you can do with
detached time objects.  While they have the tzinfo, with any timezone
that observes DST it is useless.  That's the main reason I am so
skeptical about any ideas about improving the time type.  Users should
just learn to avoid using it and use full datetime instead.



More information about the Python-ideas mailing list