By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,965 Members | 1,779 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,965 IT Pros & Developers. It's quick & easy.

importing pickle modlue execute the code twice ??

P: n/a
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

Oct 24 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"ychaouche" wrote:
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>

Oct 24 '05 #2

P: n/a
How stupid I am. Indeed i did ! I didn't pay attention to that.. Thanks
!
did you perhaps name your test program "pickle.py" ?

</F>


Nov 1 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.