Re: Pickling a class instead of an instance

2005-01-13 Thread harold fellermann
have a look at the thread "copying classes?" some days ago. what goes for copying goes for pickling also, because the modules use the same interface. - harold - On 13.01.2005, at 13:32, Sebastien Boisgerault wrote: Hi, It seems to me that it's not possible with the pickle module to serialize a clas

Pickling a class instead of an instance

2005-01-13 Thread Sebastien Boisgerault
Hi, It seems to me that it's not possible with the pickle module to serialize a class rather than an instance, as in >> from pickle import * >> >> class C(object): >> "... doc ..." >> a = 1 >> >> pickstr = dumps(C) I mean, it does *something*, there is no error indeed, but from the str