[Python-Dev] capability-mediated modules (was: python-dev Summary for 2003-03-01 through 2003-03-15) (original) (raw)
Samuele Pedroni pedronis@bluewin.ch
Thu, 20 Mar 2003 13:41:07 +0100
- Previous message: [Python-Dev] capability-mediated modules (was: python-dev Summary for 2003-03-01 through 2003-03-15)
- Next message: [Python-Dev] capability-mediated modules (was: python-dev Summary for 2003-03-01 through 2003-03-15)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Making it explicit would make me happy. Can you pass parameters to an import?
not directly,
an extension like
import module(parmmod=....,...)
would not seem totally unreasonable.
The problem is that normally modules are uniquely globally identified singletons, but the very notion of parametrization implies instantiation and that breaks the singleton part. When to instatiate a new module and when not?
a potential problem is not simply module specific global state but that the e.g. classes exported from two instances of the same module would be distinct and so not interoperable.
regards.