Antoine Pitrou added the comment:

> Now that you mention it - wouldn't that suffer from not actually
> knowing the FQMN? There's that hack in the dynlib loader that stores
> the package context in a global variable so that the module creation
> function can figure it out. That might be a reason not to register the 
> module automatically.

That's possible (although I would expect a module to know in which package it's 
supposed to live).
Another solution would have been to pass the module object to the init 
function, instead of letting the init function create it, but it's a bit too 
late (or too early :-)) to change the extension module init signature again.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16392>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to