Re: Trouble using pinckle

2008-07-03 Thread Bruno Desthuilliers
Pierre-Alain Dorange a écrit : Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: I try the staticmethod, it works fine. Very helpful. But i don't like it very much, it seems 'complicated' (python was supposed to be simple). Try doing the same thing in C++ !-) OK ;-) I just ask myself what was

Re: Trouble using pinckle

2008-07-03 Thread Pierre-Alain Dorange
Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > > I try the staticmethod, it works fine. Very helpful. > > > > But i don't like it very much, it seems 'complicated' (python was > > supposed to be simple). > > Try doing the same thing in C++ !-) OK ;-) I just ask myself what was the best metho

Re: Trouble using pinckle

2008-07-02 Thread [EMAIL PROTECTED]
On 2 juil, 18:40, Cédric Lucantis <[EMAIL PROTECTED]> wrote: > > > I'll also try the dictionnary method. > > > My final idea was that a dictionnary would be perhaps simple in the > > > future to save/load as XML and a parser. > > XML ? What a strange idea ? > > Why is it so strange ? It was kind o

Re: Trouble using pinckle

2008-07-02 Thread Cédric Lucantis
> > I'll also try the dictionnary method. > > My final idea was that a dictionnary would be perhaps simple in the > > future to save/load as XML and a parser. > XML ? What a strange idea ? Why is it so strange ? Many softs have their config in xml, and the xml.* modules are not that hard to use.

Re: Trouble using pinckle

2008-07-02 Thread Bruno Desthuilliers
Pierre-Alain Dorange a écrit : Cédric Lucantis <[EMAIL PROTECTED]> wrote: Here self is only a local variable and its meaning is only a convention. So assigning it to a new value won't change the object itself (and is not a good idea as it may be confusing for the reader). Thanks, i was thinki

Re: Trouble using pinckle

2008-07-02 Thread Pierre-Alain Dorange
Cédric Lucantis <[EMAIL PROTECTED]> wrote: > Here self is only a local variable and its meaning is only a convention. So > assigning it to a new value won't change the object itself (and is not a good > idea as it may be confusing for the reader). Thanks, i was thinking about something like that.

Re: Trouble using pinckle

2008-07-02 Thread Cédric Lucantis
Le Wednesday 02 July 2008 16:09:07 Pierre-Alain Dorange, vous avez écrit : > Hello, > > I'm new to python and i'm deelopping a small game with pygame. > I got lot of fun with python. > > Trying to implement a config file to save user score and config. > Reading doc and some tutorial about file hand

Trouble using pinckle

2008-07-02 Thread Pierre-Alain Dorange
Hello, I'm new to python and i'm deelopping a small game with pygame. I got lot of fun with python. Trying to implement a config file to save user score and config. Reading doc and some tutorial about file handling i read about pickle, and yes it's very easy to implement. But i thought i miss som