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.
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/
Also it
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.
Have a look
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
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 version
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 data
Amit Kumar Saha dao.in 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
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 for
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.
--
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 language-independent data
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 storage.
Also tying your
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
12 matches
Mail list logo