From 4a843a3641a1e2821703a889983ce9444a192496 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 7 Nov 2010 18:30:55 +0100 Subject: [PATCH] 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 --- Cython/Compiler/Builtin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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", []), -- 2.26.2