diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-12-07 03:46:27 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-12-07 03:46:27 (GMT) |
commit | 0eb7f86320c13648f41e6a39b47b01d774ea117f (patch) | |
tree | 874eddae1c3a45c6fe75f3d434641765cbf3841c /Objects/descrobject.c | |
parent | b5d793309e6c0752420f10081d1812bced53539b (diff) | |
download | cpython-0eb7f86320c13648f41e6a39b47b01d774ea117f.zip cpython-0eb7f86320c13648f41e6a39b47b01d774ea117f.tar.gz cpython-0eb7f86320c13648f41e6a39b47b01d774ea117f.tar.bz2 |
return views from dict proxy items/values/keys #10630
Diffstat (limited to 'Objects/descrobject.c')
-rw-r--r-- | Objects/descrobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c index 11418d1..de065b4 100644 --- a/Objects/descrobject.c +++ b/Objects/descrobject.c @@ -710,19 +710,19 @@ proxy_get(proxyobject *pp, PyObject *args) static PyObject * proxy_keys(proxyobject *pp) { - return PyMapping_Keys(pp->dict); + return PyObject_CallMethod(pp->dict, "keys", NULL); } static PyObject * proxy_values(proxyobject *pp) { - return PyMapping_Values(pp->dict); + return PyObject_CallMethod(pp->dict, "values", NULL); } static PyObject * proxy_items(proxyobject *pp) { - return PyMapping_Items(pp->dict); + return PyObject_CallMethod(pp->dict, "items", NULL); } static PyObject * |