Re: Pickle vs XML for file I/O

2006-08-02 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, crystalattice wrote: > One other question though (hope it doesn't sound silly/stupid). Your > suggestion to "pickle a party" using a list has me thinking: can a > list store class instances? Yes of course you can store class instances in lists. > For example, if I wante

Re: Pickle vs XML for file I/O

2006-08-02 Thread crystalattice
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, crystalattice > wrote: > > >> What are the problems you fear when using `shelve` by the way? > >> > > The ideas I got about shelve are mostly due to this thread: > > http://tinyurl.com/lueok. There weren't any other threads > > contradictin

Re: Pickle vs XML for file I/O

2006-08-01 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, crystalattice wrote: >> What are the problems you fear when using `shelve` by the way? >> > The ideas I got about shelve are mostly due to this thread: > http://tinyurl.com/lueok. There weren't any other threads > contradicting the information so I figured it has merit. M

Re: Pickle vs XML for file I/O

2006-08-01 Thread crystalattice
Simon Hibbs wrote: > I've recently gone through a similar evaluation of my options for > persisting data. Object serialization to pickles or XML is a very easy, > quick way of persisting data but it does have drawbacks. I'm not a > professional developer, so if there are errors in my analysis, I'd

Re: Pickle vs XML for file I/O

2006-08-01 Thread crystalattice
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, crystalattice wrote: > > > On Mon, 31 Jul 2006 14:35:39 -1000, Simon Forman <[EMAIL PROTECTED]> > > wrote: > > > >> What kind of trouble were you having with pickle? > > > > It's mostly a combination of things (I hope you can follow my logi

Re: Pickle vs XML for file I/O

2006-08-01 Thread Simon Hibbs
I've recently gone through a similar evaluation of my options for persisting data. Object serialization to pickles or XML is a very easy, quick way of persisting data but it does have drawbacks. I'm not a professional developer, so if there are errors in my analysis, I'd love to be corrected. Sup

Re: Pickle vs XML for file I/O

2006-07-31 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, crystalattice wrote: > On Mon, 31 Jul 2006 14:35:39 -1000, Simon Forman <[EMAIL PROTECTED]> > wrote: > >> What kind of trouble were you having with pickle? > > It's mostly a combination of things (I hope you can follow my logic). > First, to use "good programming prac

Re: Pickle vs XML for file I/O

2006-07-31 Thread John Machin
crystalattice wrote: > > Plus, to modify data in a class I presume the word "instance" is missing here ... > do I have to unpickle the whole thing > first or is there a way to modify the data while it's pickled? Actually, > I think I can answer that last question: a character instance, having

Re: Pickle vs XML for file I/O

2006-07-31 Thread crystalattice
On Mon, 31 Jul 2006 14:35:39 -1000, Simon Forman <[EMAIL PROTECTED]> wrote: > crystalattice wrote: >> I'm creating an RPG for experience and practice. I've finished a >> character creation module and I'm trying to figure out how to get the >> file I/O to work. >> >> I've read through the python

Re: Pickle vs XML for file I/O

2006-07-31 Thread Simon Forman
crystalattice wrote: > I'm creating an RPG for experience and practice. I've finished a > character creation module and I'm trying to figure out how to get the > file I/O to work. > > I've read through the python newsgroup and it appears that shelve > probably isn't the best option for various rea

Pickle vs XML for file I/O

2006-07-31 Thread crystalattice
I'm creating an RPG for experience and practice. I've finished a character creation module and I'm trying to figure out how to get the file I/O to work. I've read through the python newsgroup and it appears that shelve probably isn't the best option for various reasons. This lead me to try messi