[issue13431] Pass context information into the extension module init function

Stefan Behnel report at bugs.python.org
Sun Nov 20 17:29:15 CET 2011


Stefan Behnel <scoder at users.sourceforge.net> added the comment:

The problem with having that information "internally" is that it's currently stored in local variables in the call chain from the dynamic library loader. Passing that information on into a callable function, without passing it as an argument into the init function, means, that it needs to get stored away in some global place, with all the drawbacks that this induces. That's what Martin was referring to.

I agree with Martin that the idea of adding a parameter to the module init function is not worth pursuing before Python 4, so I'm closing this bug.

----------
resolution:  -> postponed
status: open -> closed
title: Pass context information into the extension module init	function -> Pass context information into the extension module init function

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13431>
_______________________________________


More information about the Python-bugs-list mailing list