summaryrefslogtreecommitdiffstats
path: root/Python/marshal.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-08-16 03:47:52 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-08-16 03:47:52 (GMT)
commitbeb3101b051e415cb18ba844e0187a8caa7ac3fd (patch)
tree999f1f843ca5b7b67f668fc3ac970e239dd3a4ec /Python/marshal.c
parente2eca0b709451e6956d7c84658e9c29037be7c0c (diff)
downloadcpython-beb3101b051e415cb18ba844e0187a8caa7ac3fd.zip
cpython-beb3101b051e415cb18ba844e0187a8caa7ac3fd.tar.gz
cpython-beb3101b051e415cb18ba844e0187a8caa7ac3fd.tar.bz2
Add a C API for sets and frozensets.
Diffstat (limited to 'Python/marshal.c')
-rw-r--r--Python/marshal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index 3eb7b1e..20d637d 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -773,11 +773,9 @@ r_object(RFILE *p)
if (v == NULL)
return v;
if (type == TYPE_SET)
- v3 = PyObject_CallFunctionObjArgs(
- (PyObject *)&PySet_Type, v, NULL);
+ v3 = PySet_New(v);
else
- v3 = PyObject_CallFunctionObjArgs(
- (PyObject *)&PyFrozenSet_Type, v, NULL);
+ v3 = PyFrozenSet_New(v);
Py_DECREF(v);
return v3;