Controlling copying and pickling of objects written in C

Adam Bregenzer adam_no_spam at no_s.p.a.m.bregenzer.net
Sun Apr 13 00:57:42 EDT 2008


I am writing an extension and have "hidden" data included in the object's 
C structure that is not visible to python.  I am unsure what would happen 
to that data if the python object were copied or pickled and would prefer 
to raise an exception whenever code tries to copy/deep copy/pickle or 
marshal the object since it would not make sense.  Where would I look to 
control that?

Thanks,
Adam



More information about the Python-list mailing list