[Python-Dev] __module__ of newly-created extension classes

Gustavo Niemeyer niemeyer@conectiva.com
Thu, 30 May 2002 13:26:02 -0300


Hi David!

> When creating new-style classes from within an extension module, the
> current behavior results in the __module__ attribute being set to the name
> of the Python module which first imports the extension module.
[...]

I'm not sure I understood your problem. If I got it correctly, you will
get the right behavior by setting tp_name to something like
"module.TypeName".

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]