Problem with Dynamically unloading a module
Jean-Michel Pichavant
jeanmichel at sequans.com
Thu Dec 24 07:51:57 EST 2009
Steven D'Aprano wrote:
> On Wed, 23 Dec 2009 15:31:53 +0100, Jean-Michel Pichavant wrote:
>
>
>> Steven D'Aprano wrote:
>>
>>> On Wed, 23 Dec 2009 13:37:06 +0100, Jean-Michel Pichavant wrote:
>>>
>>>
>>>
>>>> But believe me, you don't want to mess up with the python import
>>>> mechanism.
>>>>
>>>>
>>>>
>>> Unless you understand how it works.
>>>
>>>
>>>
>>>
>> Let me quote the OP: 'Not an expert in Python' I was just answering the
>> OP question, without refering to something he could do if he was someone
>> else.
>>
>
> But what he *can* do is to learn how importing works. I'm not sure it's
> terribly helpful to tell somebody all the things they can't do instead of
> what they can.
>
>
>
Hacking python imports would not be in the top of the list of things I
would teach to some python newcomer, that was my point.
And to be a little more constructive, let's give the OP a litle bit of help.
How can you unload module in python ?
That I don't know, anyone knows ?
JM
More information about the Python-list
mailing list