2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 05:42:30 +00:00

class_::enable_pickling() in publicized interface; tested with everything incl. VC6 and 7.0

[SVN r22254]
This commit is contained in:
Ralf W. Grosse-Kunstleve
2004-02-13 05:32:38 +00:00
parent 4a7686cd33
commit ae1584ff3c
9 changed files with 147 additions and 7 deletions

View File

@@ -599,7 +599,7 @@ namespace objects
this->setattr("__init__", object(f));
}
void class_base::enable_pickling(bool getstate_manages_dict)
void class_base::enable_pickling_(bool getstate_manages_dict)
{
setattr("__reduce__", object(make_instance_reduce_function()));
setattr("__safe_for_unpickling__", object(true));