summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2016-01-11 15:51:27 -0500
committerBarry Warsaw <barry@python.org>2016-01-11 15:51:27 -0500
commit3d220cc4d7be841e97d2b43bde6534081b06c001 (patch)
treeedbac65212082ab4b2704c5ea76a16c8a31dbdf8 /Objects
parentec71f1779fc4d3509e8f16197a99a6ed3706a591 (diff)
parent09880c89e9736efe590243876d777e52b1d6abf2 (diff)
downloadcpython-git-3d220cc4d7be841e97d2b43bde6534081b06c001.tar.gz
As per further discussion, re-enable the typeobject.c guard for picklability.
upstreams such as Cython will have to adjust.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index f92f1e9cfe..db15cf6768 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -3872,14 +3872,6 @@ _PyObject_GetState(PyObject *obj, int required)
}
assert(slotnames == Py_None || PyList_Check(slotnames));
-#if 0
- /* 2016-01-11 barry - This clause breaks at least three packages which
- rely on Cython: kivy, pysam, and s3ql. Cython may be doing
- something funny under the hood, but as this is clearly a regression
- and the rationale for this prohibition is suspect, I am commenting
- this out. Perhaps it should just be removed. See issue #22995 for
- details.
- */
if (required) {
Py_ssize_t basicsize = PyBaseObject_Type.tp_basicsize;
if (obj->ob_type->tp_dictoffset)
@@ -3897,7 +3889,6 @@ _PyObject_GetState(PyObject *obj, int required)
return NULL;
}
}
-#endif
if (slotnames != Py_None && Py_SIZE(slotnames) > 0) {
PyObject *slots;