Commit 6828ee72 authored by Jim Fulton's avatar Jim Fulton

Enabled support for user-defined __get/set/delattr__ functions

with standard Python semantics by using the new PERSISTENCE_FLAGS
class flags macro.
parent 2f678a47
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
static char intSet_module_documentation[] = static char intSet_module_documentation[] =
"" ""
"\n$Id: intSet.c,v 1.18 1999/08/05 13:32:01 jim Exp $" "\n$Id: intSet.c,v 1.19 2000/05/16 17:41:16 jim Exp $"
; ;
#include <limits.h> #include <limits.h>
...@@ -602,7 +602,7 @@ static PyExtensionClass intSetType = { ...@@ -602,7 +602,7 @@ static PyExtensionClass intSetType = {
0L,0L, 0L,0L,
"A set of integers", "A set of integers",
METHOD_CHAIN(intSet_methods), METHOD_CHAIN(intSet_methods),
EXTENSIONCLASS_BASICNEW_FLAG | PERSISTENT_TYPE_FLAG, PERSISTENCE_FLAGS,
}; };
static struct PyMethodDef module_methods[] = { static struct PyMethodDef module_methods[] = {
...@@ -613,7 +613,7 @@ void ...@@ -613,7 +613,7 @@ void
initintSet() initintSet()
{ {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.18 $"; char *rev="$Revision: 1.19 $";
UNLESS(ExtensionClassImported) return; UNLESS(ExtensionClassImported) return;
......
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