Amir Dekel wrote:
Mike Meyer wrote:
Doing a second import will find the module in sys.modules and not
bother looking in the file system. The solution is to reload(module)
instead of import module.
What if I import using "from module import class"? It seems to me that I
can't use reload the
Amir Dekel <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> Doing a second import will find the module in sys.modules and not
>> bother looking in the file system. The solution is to reload(module)
>> instead of import module.
>> What if I import using "from module import class"? It see
Mike Meyer wrote:
Doing a second import will find the module in sys.modules and not
bother looking in the file system. The solution is to reload(module)
instead of import module.
What if I import using "from module import class"? It seems to me that I
can't use reload then, or I just could
[Format recovered from top posting.]
"James Martin" <[EMAIL PROTECTED]> writes:
>
>
> "Amir Dekel" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Hello everyone,
>> First, I have to say that Python is one of the coolest programing
>> languages I have seen.
>> And now for the prob
Try deleting the Compiled Python File that was created during import --
extension pyc. Then import again.
It seems to me (I'm a novice too) that, when you import a module, Python
automatically compiles it. Then when you import it later, the compiled
version is imported if it exists.
"Amir Dek
DogWalker wrote:
"Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> said:
In <[EMAIL PROTECTED]>, Amir Dekel wrote:
When I import a module I have wrote, and then I find bugs, it seems that
I can't import it again after a fix it. It always shows the same
problem. I try del module but it doesn't work
"Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> said:
>In <[EMAIL PROTECTED]>, Amir Dekel wrote:
>
>> When I import a module I have wrote, and then I find bugs, it seems that
>> I can't import it again after a fix it. It always shows the same
>> problem. I try del module but it doesn't work.
>> (
In <[EMAIL PROTECTED]>, Amir Dekel wrote:
> When I import a module I have wrote, and then I find bugs, it seems that
> I can't import it again after a fix it. It always shows the same
> problem. I try del module but it doesn't work.
> (I use Python 2.4 with the ActivePython pack (PythonWin IDE)
On Wed, 15 Dec 2004, Amir Dekel wrote:
> Hello everyone,
>
> First, I have to say that Python is one of the coolest programing languages I
> have seen.
> And now for the problem (must be a silly one):
> When I import a module I have wrote, and then I find bugs, it seems that I
> can't import it ag