importing pickle modlue execute the code twice ??

Y

ychaouche

Hi !

i am having a strange experience with the pickle module. I use
python2.4 and i really don't understand what is happening on ! take a
look at this :

<code>
import pickle
print "hello"
</code>
<trace>
hello
hello
</trace>


<code>
#import pickle
print "hello"
</code>
<trace>
hello
</trace>

I just don't get it.

Thank you for any advice or help !

Y.Chaouche
 
F

Fredrik Lundh

ychaouche said:
i am having a strange experience with the pickle module. I use
python2.4 and i really don't understand what is happening on !
take a look at this :

<code>
import pickle
print "hello"
</code>
<trace>
hello
hello
</trace>

did you perhaps name your test program "pickle.py" ?

</F>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,269
Messages
2,571,338
Members
48,029
Latest member
Anchorman2022

Latest Threads

Top