diff options
author | Raymond Hettinger <python@rcn.com> | 2005-08-16 03:47:52 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-08-16 03:47:52 +0000 |
commit | c24bad388de92cc10a6dd722f0a1edc6cbed0fd8 (patch) | |
tree | a52fd952e5d778ec1f2bf3f378083feafdae1c84 /Python/marshal.c | |
parent | cde454db45802d04228b4168caf57cac47727f47 (diff) | |
download | cpython-c24bad388de92cc10a6dd722f0a1edc6cbed0fd8.tar.gz |
Add a C API for sets and frozensets.
Diffstat (limited to 'Python/marshal.c')
-rw-r--r-- | Python/marshal.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Python/marshal.c b/Python/marshal.c index 3eb7b1ec7a..20d637d2b2 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; |