Re: improving async support in psycopg
Federico Di Gregorio <fog-NGVKUo/i/[email protected]> Wed, 31 Mar 2010 15:03:40 +0200
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
On 31/03/2010 13:29, Daniele Varrazzo wrote: >> From the discussion it seems that Federico would prefer to shift the >> > responsability of safely using async features to the framerworks instead of >> > instrumenting more psycopg methods. [snippety snip] > My plan at this point is to stop calling what I'm doing "async" :) and > let you build the async path as is best for the frameworks you know > about. What I am really touching is the "sync" code path, adding a > "stackless friendly hook". I've currently implemented the hook call > and the connection, which I think was the trickiest part: as soon as i > can I shall implement the PQexec replacement, refactor the conn_setup > to use it and check that all the tests pass using an user supplied > hook (my target is to keep the full DBAPI semantics). > > Thank you very much, have a nice day. Hi Daniele, thank you very much for sharing this. I agree that the async implementation and the stackless friendly hook are aiming at two different targets and I'd like to have both in a future psycopg implementation. I'll concentrate on async because quite some people asked for it and Jan's code is a very good start. But please, if you see any change that will make more difficult to write the stackless friendly hook in the future, just stand up and we'll find a different way. federico -- Federico Di Gregorio <mailto:fog-NGVKUo/i/[email protected]> <jid:[email protected]> DISCLAIMER. If I receive a message from you, you are agreeing that: 1. I am by definition, "the intended recipient". 2. All information in the email is mine to do with as I see fit and make such financial profit, political mileage, or good joke as it lends itself to. In particular, I may quote it on USENET or the WWW. 3. I may take the contents as representing the views of your company. 4. This overrides any disclaimer or statement of confidentiality that may be included on your message. _______________________________________________ Psycopg mailing list Psycopg-IAPFreCvJWPBWskQ1e/[email protected] http://lists.initd.org/mailman/listinfo/psycopg
signature.asc
(application/pgp-signature, 262 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkuzSDMACgkQvcCgrgZGjetD1ACfTErm3fted8aplLS5E7KncS6L 1LsAoLUcUsXp/1fSGAfveiBLE6GV8Qp4 =x9fk -----END PGP SIGNATURE-----