importing pickle modlue execute the code twice ??

2005-10-24 Thread 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 :


import pickle
print "hello"


hello
hello




#import pickle
print "hello"


hello


I just don't get it.

Thank you for any advice or help !

Y.Chaouche

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: importing pickle modlue execute the code twice ??

2005-10-24 Thread Fredrik Lundh
"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 :
>
> 
> import pickle
> print "hello"
> 
> 
> hello
> hello
> 

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

 



-- 
http://mail.python.org/mailman/listinfo/python-list


Re: importing pickle modlue execute the code twice ??

2005-11-01 Thread ychaouche
How stupid I am. Indeed i did ! I didn't pay attention to that.. Thanks
!

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

-- 
http://mail.python.org/mailman/listinfo/python-list