types.
Classes can use the same interfaces to control copying that they use
-to control pickling: they can define methods called
-\method{__getinitargs__()}, \method{__getstate__()} and
-\method{__setstate__()}. See the description of module
+to control pickling. See the description of module
\refmodule{pickle}\refstmodindex{pickle} for information on these
methods. The \module{copy} module does not use the
\refmodule[copyreg]{copy_reg} registration module.
-\withsubitem{(copy protocol)}{\ttindex{__getinitargs__()}
- \ttindex{__getstate__()}\ttindex{__setstate__()}}
In order for a class to define its own copy implementation, it can
define special methods \method{__copy__()} and