A
Amit Kumar Saha
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 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".
Thanks,
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 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".
Thanks,