how do I know to what module an object belongs?

Michal Wallace (sabren) sabren at
Fri Apr 14 06:54:59 EDT 2000

On 14 Apr 2000, Michael Hudson wrote:

> Presumably dbc is not a Python class, but an extension type.


> See what type(dbc).__name__ says; maybe you can special case for that?
> Otherwise, I think you're hosed.  I'm not sure it's a good idea;
> it sounds rather fragile to me.

it gives "mxODBC Connection". Huh. :/

I wound up just writing a wrapper module around ODBC.Windows, and
it seemed to do the job. Not the best answer, but it worked. 


- Michal

More information about the Python-list mailing list