|
Home > Archive > Apache Mod-Python > March 2006 > PythonImport that works for any interpreter.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
PythonImport that works for any interpreter.
|
|
| Graham Dumpleton 2006-03-31, 12:03 am |
| In:
http://issues.apache.org/jira/browse/MODPYTHON-117
I describe the idea of having a means of using PythonImport to define a
module to be imported into any interpreter that may be created. For some
cases where there are a lot of virtual hosts, this may be simpler than
having to list a directive for every virtual host explicitly.
Is there any interest in such a feature?
If of interest, for a simple implementation, the only issue is one of
ordering when for an interpreter there are both imports for all
interpreters and an interpreter specific imports. Does one import the
module specified to be imported in all interpreters first before the
interpreter specific ones or vice versa.
My feeling has been that the modules to be imported in all intrepreters
should be done first.
Feedback?
Am I wasting my time implementing this one?
Graham
| |
| Jim Gallacher 2006-03-31, 12:03 am |
| Graham Dumpleton wrote:
> In:
>
> http://issues.apache.org/jira/browse/MODPYTHON-117
>
> I describe the idea of having a means of using PythonImport to define a
> module to be imported into any interpreter that may be created. For some
> cases where there are a lot of virtual hosts, this may be simpler than
> having to list a directive for every virtual host explicitly.
>
> Is there any interest in such a feature?
>
> If of interest, for a simple implementation, the only issue is one of
> ordering when for an interpreter there are both imports for all
> interpreters and an interpreter specific imports. Does one import the
> module specified to be imported in all interpreters first before the
> interpreter specific ones or vice versa.
>
> My feeling has been that the modules to be imported in all intrepreters
> should be done first.
>
> Feedback?
>
> Am I wasting my time implementing this one?
That's entirely up to you. It's not a feature that I need, so don't do
it on my account. ;)
Jim
|
|
|
|
|