[Python-Dev] datetime nanosecond support

martin at v.loewis.de martin at v.loewis.de
Wed Jul 25 19:02:09 CEST 2012


> 1. For the reasons presented, I think it's worth attempting to define
> a common API that is based on datetime, but is tailored towards high
> precision time operations (at least using a different internal
> representation, perhaps supporting TAI).

IIUC, the concern is about the DB-API, which does sort-of mandate that
the datetime module is used to represent SQL time types. So not basing
this off datetime isn't really an option.

Providing a subtype should work, though.

Regards,
Martin




More information about the Python-Dev mailing list