[DB-SIG] WHat's the status of DB modules and datetime.py support?

Guido van Rossum guido at python.org
Tue Dec 30 16:41:03 EST 2003


> We're trying to find a Python DB module for Postgres that includes 
> native support for 2.3's datetime.py date types - so dates come out of 
> the database as datetime objects and datetime objects are converted to 
> postgres date times on insert/update transparently.
> 
> We haven't found one yet. Is there any movement within the Python DB 
> community towards 2.3's datetime.py? It seems like a great way of 
> dealing with dates, but the current batch of DB modules all appear to 
> use their own convention. Is this something that the DB API standard 
> should cover?

I guess 2.3 hasn't been out long enough to get the various db api
authors to make the switch.  Perhaps a DB-API standard update should
be issued (e.g. DB-API 2.1) that requires using this for Python 2.3?

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the DB-SIG mailing list