From f7b9466dff0bc7904e4ab7ac6f9ea46908f5e5cd Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sun, 13 Dec 2015 14:13:32 +0000 Subject: [PATCH] Python 3.3 builtin missing field initializers added Add in ht_qualname and ht_cached_keys for Python 3.3 and later --- Source/Modules/python.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 98302d2d8..75d8ffafa 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -4164,9 +4164,15 @@ public: Printv(f, "#endif\n", NIL); Printf(f, " },\n"); - // PyObject *ht_name, *ht_slots + // PyObject *ht_name, *ht_slots, *ht_qualname; printSlot(f, getSlot(n, "feature:python:ht_name"), "ht_name", "PyObject*"); printSlot(f, getSlot(n, "feature:python:ht_slots"), "ht_slots", "PyObject*"); + Printv(f, "#if PY_VERSION_HEX >= 0x03030000\n", NIL); + printSlot(f, getSlot(n, "feature:python:ht_qualname"), "ht_qualname", "PyObject*"); + + // struct _dictkeysobject *ht_cached_keys; + printSlot(f, getSlot(n, "feature:python:ht_cached_keys"), "ht_cached_keys", "struct _dictkeysobject*"); + Printv(f, "#endif\n", NIL); Printf(f, "};\n\n"); String *clientdata = NewString("");