Christoph Zwerschke schrieb:
> One thing that needs attention here is that your patch uses nested 
> scopes, so it may break in Py 2.1. We may need to add from __future__ 
> import nested_scopes. Currently I'm not able to test with Py < 2.3 
> anyway, so I'm not sure.

I've just further simplified the type casting. Actually, we do not need 
to check for the DB API types like STRING or BINARY in the type cache, 
since it sees the internal Postgres types (your patch wouldn't work with 
the DB API types anyway, since they are not hashable). So I simply use a 
static dictionary for the type casters now, with the Postgres type names 
as keys. This makes the type casting even faster.

-- Christoph
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to