David a écrit :
>> I would like to know if "Pickling" the class object is the only way of
>> writing it to disk for persistent storage. Also, do we have a concept
>> similar to "array of objects" in Python? The number of objects is only
>> known at "run-time".
>
> Have a look at YAML.
>
> http://
In message <[EMAIL PROTECTED]>, Amit Kumar
Saha wrote:
> I appreciate the XML related comment, but as of now I am ready-to-roll
> with Python specific pickling. XML will be used in a later version of my
> code!
Will you need to maintain backward compatibility with data written by the
current vers
Amit Kumar Saha wrote:
> Actually, language independence is really not a consideration here. I am
> happy at having it tied to Python :-)
>
> BTW, do we have something like array of objects here?
In numpy, one can have a multi-dimensional array of objects. It would
be good to have this notion
On Sun, 2007-09-23 at 18:34 +0200, David wrote:
> > I would like to know if "Pickling" the class object is the only way of
> > writing it to disk for persistent storage. Also, do we have a concept
> > similar to "array of objects" in Python? The number of objects is only
> > known at "run-time".
>
> I would like to know if "Pickling" the class object is the only way of
> writing it to disk for persistent storage. Also, do we have a concept
> similar to "array of objects" in Python? The number of objects is only
> known at "run-time".
Have a look at YAML.
http://freshmeat.net/projects/syck/
On Sat, 22 Sep 2007 17:13:14 +0530, Amit Kumar Saha wrote:
> BTW, do we have something like array of objects here?
Like someone already said: lists.
Ciao,
Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/listinfo/python-list
In message <[EMAIL PROTECTED]>, Amit Kumar
Saha wrote:
>> > From: Lawrence D'Oliveiro <[EMAIL PROTECTED]>
>
>> > In message <[EMAIL PROTECTED]>,
>> > Amit Kumar Saha wrote:
>> >
>> > > I would like to know if "Pickling" the class object is the only
>> > way of writing it to disk for persistent st
> > From: Lawrence D'Oliveiro <[EMAIL PROTECTED]>
> > In message <[EMAIL PROTECTED]>,
> > Amit Kumar
> > Saha wrote:
> >
> > > I would like to know if "Pickling" the class object is the only
> > way of
> > > writing it to disk for persistent storage.
> >
> > Wouldn't it be better to use a languag
On 22/09/2007 7:16 PM, Bjoern Schliessmann wrote:
> Amit Kumar Saha wrote:
>> I have a Python class with data members, say:
>>
>> class Foo:
>> def __init__(self):
>>
>> self.a=7
>> self.b[]={1,3,4}
> ^^
> This is invalid syntax.
So are the braces.
--
http://m
Amit Kumar Saha wrote:
> I have a Python class with data members, say:
>
> class Foo:
> def __init__(self):
>
> self.a=7
> self.b[]={1,3,4}
^^
This is invalid syntax.
> I would like to know if "Pickling" the class object is the only
> way of writing it to disk
"Amit Kumar Saha" wrote:
> I would like to know if "Pickling" the class object is the only way of
> writing it to disk for persistent storage.
look at marshall and shelve
>...Also, do we have a
concept
> similar to "array of objects" in P
In message <[EMAIL PROTECTED]>, Amit Kumar
Saha wrote:
> I would like to know if "Pickling" the class object is the only way of
> writing it to disk for persistent storage.
Wouldn't it be better to use a language-independent data representation that
wasn't tied to Python? Also tying your external
Hello,
I have a Python class with data members, say:
class Foo:
def __init__(self):
self.a=7
self.b[]={1,3,4}
#couple of more lists, tuples, etc
I would like to know if "Pickling" the class object is the only way of
writing
13 matches
Mail list logo