summaryrefslogtreecommitdiffstats
path: root/Modules/cPickle.c
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2001-11-09 10:06:23 (GMT)
committerMichael W. Hudson <mwh@python.net>2001-11-09 10:06:23 (GMT)
commit03f96bd8f5c7b93c8836ce5219b075c70e240927 (patch)
treea3bbb10f9db4c21c3fe1f1018858e74afe121c62 /Modules/cPickle.c
parent30bd666c353a46cc481d8e4444b70f186a1d791b (diff)
downloadcpython-03f96bd8f5c7b93c8836ce5219b075c70e240927.zip
cpython-03f96bd8f5c7b93c8836ce5219b075c70e240927.tar.gz
cpython-03f96bd8f5c7b93c8836ce5219b075c70e240927.tar.bz2
Fixes to compile cPickle.c & socketmodule.c on cygwin and possibly
other platforms that have funny ideas about whether addresses of functions in dlls are compile-time constants.
Diffstat (limited to 'Modules/cPickle.c')
-rw-r--r--Modules/cPickle.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c
index b2392f9..f8a3c1c 100644
--- a/Modules/cPickle.c
+++ b/Modules/cPickle.c
@@ -2494,8 +2494,8 @@ static PyTypeObject Picklertype = {
0, /* tp_hash */
0, /* tp_call */
0, /* tp_str */
- PyObject_GenericGetAttr, /* tp_getattro */
- PyObject_GenericSetAttr, /* tp_setattro */
+ 0, /* set below */ /* tp_getattro */
+ 0, /* set below */ /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
Picklertype__doc__, /* tp_doc */
@@ -4668,6 +4668,8 @@ initcPickle(void) {
PyObject *compatible_formats;
Picklertype.ob_type = &PyType_Type;
+ Picklertype.tp_getattro = PyObject_GenericGetAttr;
+ Picklertype.tp_setattro = PyObject_GenericSetAttr;
Unpicklertype.ob_type = &PyType_Type;
PdataType.ob_type = &PyType_Type;