simple text parser?

Michael Peuser mpeuser at web.de
Sun Aug 17 12:59:09 CEST 2003


"Brandon J. Van Every" <vanevery at 3DProgrammer.com> schrieb im Newsbeitrag
news:bhnml0$1a25t$1 at ID-203719.news.uni-berlin.de...
> Michael Peuser wrote:
> > This is a little bit confusing.
> > (1) Do you want to dump "internal" data? Of course you cannnot expect
> > those data to be portabel between Python and C#!!!
>
> I don't want portability between Python and C#.  They are completely
> separate projects.

Then do:
import cPickle
# ------
f=open("test","wb")
cPickle.dump(whatever,f,1)
cPickle.dump(morewhatever,f,1)
# .....
f.close()
#....

f=open ("test","rb")
whatever=cPickle.load(f)
morewhatever=cPickle.load(f)
# ......
f.close()






More information about the Python-list mailing list