PyDict_Copy() can be used for dict.copy()
authorStefan Behnel <scoder@users.berlios.de>
Wed, 19 Nov 2008 07:37:21 +0000 (08:37 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 19 Nov 2008 07:37:21 +0000 (08:37 +0100)
Cython/Compiler/Builtin.py

index 10c7bbec58004a24a1f56dacf3b4235a58ff0368..f08de2175402bab70afc4a40b4ea5436b711a5b9 100644 (file)
@@ -106,7 +106,8 @@ builtin_types_table = [
 
     ("dict",    "PyDict_Type",     [("items", "O",   "O", "PyDict_Items"),
                                     ("keys",  "O",   "O", "PyDict_Keys"),
-                                    ("values","O",   "O", "PyDict_Values")]),
+                                    ("values","O",   "O", "PyDict_Values"),
+                                    ("copy",  "O",   "O", "PyDict_Copy")]),
 
     ("slice",   "PySlice_Type",    []),
     ("file",    "PyFile_Type",     []),