Thank you Jan.
you are right . an exception whitout a reason not conducive to pragramming.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Am 16.05.2010 14:45, schrieb Yutao Deng:
LOL, try...except is a good idea.
i fix it lick this:
with open("data2.pickle","rb") as file_stream:
c = 0
while True:
try:
i = cPickle.load(file_stream)
print i
c += 1
except:
LOL, try...except is a good idea.
i fix it lick this:
with open("data2.pickle","rb") as file_stream:
c = 0
while True:
try:
i = cPickle.load(file_stream)
print i
c += 1
except:
print "Numer of pickled objects is
Am 16.05.2010 09:10, schrieb Yutao Deng:
Hi all:
I'm trying to learn to use Python wrote a applet to record every day
doing.
and i use the pickle
pickle.dump something to file no problem i think.
but pickle.load whith a problem. can not load all dict do my way that
what i pickle.dump().
My
Hi all:
I'm trying to learn to use Python wrote a applet to record every day doing.
and i use the pickle
pickle.dump something to file no problem i think.
but pickle.load whith a problem. can not load all dict do my way that what i
pickle.dump().
My code:
import cPickle as pickle
pickle_file