Re: [cx-oracle-users] finding the module from a connection
Brought to you by:
atuining
From: Anthony T. <ant...@gm...> - 2006-07-31 13:38:19
|
Yes, that is the correct place. And apparently you also discovered that this is not a problem with cx_Oracle 4.2.... :-) On 7/29/06, Mario Frasca <mf...@zo...> wrote: > On 2006-0728 08:06:07, Mario Frasca wrote: > > open database connection cx. [...] > > of the module by taking cx.__class__.__module__ > > > > for a cx_Oracle database connection I get the string '__builtin__' > > > > any hints? > > I found the problem... to solve it I had to modify the sources, not > much, but still... > > http://docs.python.org/ext/dnt-type-methods.html states: > char *tp_name; /* For printing, in format "<module>.<name>" */ > > but > mario@loki:~/cx_Oracle-4.1$ grep tp_name Connection.c > "OracleConnection", // tp_name > > modifying it to "cx_Oracle.OracleConnection" solves the problem. > > I filed a bug report on the sourceforge cx_Oracle project, hope that is > the correct place. > > regards, thanks, > > Mario Frasca > > > -- > il melo fa la mela > il pero fa la pera > il fico fa eccezione > Peppe Barra > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > |