From: Stefan Behnel Date: Sun, 7 Nov 2010 17:30:55 +0000 (+0100) Subject: reminder comment: need to disable C-API mapping for dict.keys/values/items() in ... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4a843a3641a1e2821703a889983ce9444a192496;p=cython.git reminder comment: need to disable C-API mapping for dict.keys/values/items() in -3 mode to let them return a dict view in Py3 --- diff --git a/Cython/Compiler/Builtin.py b/Cython/Compiler/Builtin.py index a5503d1c..c67175bd 100644 --- a/Cython/Compiler/Builtin.py +++ b/Cython/Compiler/Builtin.py @@ -442,9 +442,9 @@ builtin_types_table = [ BuiltinMethod("append", "TO", "i", "PyList_Append"), ]), - ("dict", "PyDict_Type", [BuiltinMethod("items", "T", "O", "PyDict_Items"), - BuiltinMethod("keys", "T", "O", "PyDict_Keys"), - BuiltinMethod("values","T", "O", "PyDict_Values"), + ("dict", "PyDict_Type", [BuiltinMethod("items", "T", "O", "PyDict_Items"), # FIXME: Py3 mode? + BuiltinMethod("keys", "T", "O", "PyDict_Keys"), # FIXME: Py3 mode? + BuiltinMethod("values","T", "O", "PyDict_Values"), # FIXME: Py3 mode? BuiltinMethod("copy", "T", "T", "PyDict_Copy")]), ("slice", "PySlice_Type", []),