N
Norman Elton
I'm marshal'ing an object that contains a UDP socket. Of course,
Marshal.dump complains bitterly. Is there a way to automagically
clean-up any un-marshal-able attributes prior to calling Marshal.dump?
Ideally, I could define an attribute, say, pre_marshal_dump and
post_marshal_dump, that are called before and after serializing the
object.
I know I can use marshal_dump and marshal_load, but then I've got to do
all the serialization myself. The Marshal class does a good job of this,
I just want to clean things up a bit before the Marshal code takes over.
Any ideas?
Thanks!
Norman
Marshal.dump complains bitterly. Is there a way to automagically
clean-up any un-marshal-able attributes prior to calling Marshal.dump?
Ideally, I could define an attribute, say, pre_marshal_dump and
post_marshal_dump, that are called before and after serializing the
object.
I know I can use marshal_dump and marshal_load, but then I've got to do
all the serialization myself. The Marshal class does a good job of this,
I just want to clean things up a bit before the Marshal code takes over.
Any ideas?
Thanks!
Norman