Re: A list of open points in the documentation
Federico Di Gregorio <fog-NGVKUo/i/[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
On 10/02/2010 11:36, Daniele Varrazzo wrote: > On Wed, Feb 10, 2010 at 8:03 AM, Federico Di Gregorio <fog-NGVKUo/i/[email protected]> wrote: >> > On 10/02/2010 05:38, Daniele Varrazzo wrote: > Hi fog, thank you for the answers. > >>> >> 4. in order to use the tuple adapter to the IN syntax, >>> >> psycopg2.extensions has to be imported. Is this a bug (it has already >>> >> bitten me once) to be fixed or a "feature" to document? >> > >> > It is a feature. Almost all extensions to the DBAPI (except ones in the >> > C code) are enabled by importing psycopg2.extensions. > Works for me. I just wanted to point out that is pretty > counter-intuitive that, when you import the extensions module, the > SQL_IN gets immediately *registered* as a secondary effect, so the > module import effectively changes the behaviour of psycopg. All the > other exceptions are just imported and sit there waiting to be used. > > But documentation is just for counter-intuitive points, isn't it? I > will add a note about that. You're right but, again, changing it now would be bad for users depending on it. A note in the docs is fine. >>> >> 6. The binary adapter is not imported in the psycopg2.extensions >>> >> module while all the other adapters seem there. Shall i add it too? >> > >> > I don't understand what you mean here? > "Binary", the adapter for binary buffers, is not imported in > psycopg2.extensions and only available from psycopg2._psycopg. All the > other adapters are imported instead. So, shall I commit this patch? Yes, please. Thank you very much, federico -- Federico Di Gregorio fog-NGVKUo/i/[email protected] Everything will be OK at the end. If it's not OK, it's not the end. -- Unknown _______________________________________________ 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/ iEYEARECAAYFAktykmkACgkQvcCgrgZGjeuBsQCfYU/k0V/agx7bkb/2x25FsLtF 0bIAoKhOjwUZ/hrsj5dMOVSa0gpnBeMe =l6Ne -----END PGP SIGNATURE-----