Commit 64a5023e authored by Jeremy Hylton's avatar Jeremy Hylton

Replace initialization of persetattro in cPersistenceCAPI.

It appears the initialization was accidentally removed in rev. 1.51.
Add comment about why percachedel is not initialized here.
parent cf55de67
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
static char cPersistence_doc_string[] = static char cPersistence_doc_string[] =
"Defines Persistent mixin class for persistent objects.\n" "Defines Persistent mixin class for persistent objects.\n"
"\n" "\n"
"$Id: cPersistence.c,v 1.64 2002/10/01 15:06:17 jeremy Exp $\n"; "$Id: cPersistence.c,v 1.65 2002/10/16 16:12:48 jeremy Exp $\n";
#include "cPersistence.h" #include "cPersistence.h"
...@@ -837,7 +837,10 @@ truecPersistenceCAPI = { ...@@ -837,7 +837,10 @@ truecPersistenceCAPI = {
deallocated, deallocated,
(intfunctionwithpythonarg)Per_setstate, (intfunctionwithpythonarg)Per_setstate,
(pergetattr)Per_getattr, (pergetattr)Per_getattr,
NULL (persetattr)_setattro,
NULL /* The percachedel slot is initialized in cPickleCache.c when
the module is loaded. It uses a function in a different
shared library. */
}; };
void void
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
static char cPersistence_doc_string[] = static char cPersistence_doc_string[] =
"Defines Persistent mixin class for persistent objects.\n" "Defines Persistent mixin class for persistent objects.\n"
"\n" "\n"
"$Id: cPersistence.c,v 1.64 2002/10/01 15:06:17 jeremy Exp $\n"; "$Id: cPersistence.c,v 1.65 2002/10/16 16:12:48 jeremy Exp $\n";
#include "cPersistence.h" #include "cPersistence.h"
...@@ -837,7 +837,10 @@ truecPersistenceCAPI = { ...@@ -837,7 +837,10 @@ truecPersistenceCAPI = {
deallocated, deallocated,
(intfunctionwithpythonarg)Per_setstate, (intfunctionwithpythonarg)Per_setstate,
(pergetattr)Per_getattr, (pergetattr)Per_getattr,
NULL (persetattr)_setattro,
NULL /* The percachedel slot is initialized in cPickleCache.c when
the module is loaded. It uses a function in a different
shared library. */
}; };
void void
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
static char cPersistence_doc_string[] = static char cPersistence_doc_string[] =
"Defines Persistent mixin class for persistent objects.\n" "Defines Persistent mixin class for persistent objects.\n"
"\n" "\n"
"$Id: cPersistence.c,v 1.64 2002/10/01 15:06:17 jeremy Exp $\n"; "$Id: cPersistence.c,v 1.65 2002/10/16 16:12:48 jeremy Exp $\n";
#include "cPersistence.h" #include "cPersistence.h"
...@@ -837,7 +837,10 @@ truecPersistenceCAPI = { ...@@ -837,7 +837,10 @@ truecPersistenceCAPI = {
deallocated, deallocated,
(intfunctionwithpythonarg)Per_setstate, (intfunctionwithpythonarg)Per_setstate,
(pergetattr)Per_getattr, (pergetattr)Per_getattr,
NULL (persetattr)_setattro,
NULL /* The percachedel slot is initialized in cPickleCache.c when
the module is loaded. It uses a function in a different
shared library. */
}; };
void void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment