On 18/07/11 14:54, M.-A. Lemburg wrote: [snip] > We will likely have to introduce a new TEXT() constructor > which maps data objects to text data and then takes care > of the database specific encoding issues. > > There are similar issues with float/decimal and date/time > values. > > It would be great if we could resolve all of these using > a data type mapping facility that defines input and output > mappings in an efficient and flexible way.
At least 2 drivers (psycopg and pysqlite) provide a Python->backend mechanism based on PEP 246, "Object Adaptation". If other implementors are interested I can write a short explanation about how it works and why it was chosen only for the Python->backend path and not for the reverse. federico -- Federico Di Gregorio federico.digrego...@dndg.it Studio Associato Di Nunzio e Di Gregorio http://dndg.it Se sai che hai un ***** di file così, lo manovri subito. -- vodka _______________________________________________ DB-SIG maillist - DB-SIG@python.org http://mail.python.org/mailman/listinfo/db-sig