Sean Davis wrote: > That is good to know. Without testing it, does that mean that a > db._pgdbCns__cnx is a pg connection object, or is it something else > altogether?
Yes, it's a pg connection object. Both pg and pgdb resort to the same underlying _pg module actually providing these connection objects. > Thanks for the hint. I'm relatively new to python and pygresql, after coming > from perl. Is there a place where the _pgdbCns__cnx is documented, or is it > just a question of looking at the source? No, this is an undocumented feature. Actually it is a private attribute, so it seems D'Arcy wanted to discourage using it, probably because mixed use of both interfaces may lead to problems. The official way would be to open a separate connection using the pg module. However, I don't see a problem using the inserttable method that way. Should we consider a semi-official method of accessing the underlying _pg connection or even taking over all or some of its methods to the pgdb connection? D'Arcy, what do you think? -- Christoph _______________________________________________ PyGreSQL mailing list [email protected] http://mailman.vex.net/mailman/listinfo/pygresql
