You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm now seeing "TypeError: 'gcc.WrapperMeta' object is not iterable" with Python 3.8 and GCC 10. My current hunch is that it's an issue with Python 3.8's typeobject change (tp_vectorcall_offset), but that's a hunch right now.
The error "TypeError: 'gcc.WrapperMeta' object is not iterable" is caused by generate-gimple-c.py with the tp_flag Py_TPFLAGS_DEFAULT in series of generated classes pytype = PyGccWrapperTypeObject(identifier = 'PyGcc%s_TypeObj' . When changes it to Py_TPFLAGS_BASETYPE . The error will disappear, although this will lead to a crash.
The reason is clear, in py38 some logic changed in PyType_Ready function.
Activity
davidmalcolm commentedon Sep 19, 2020
Possibly fixed by b6cb6bb.
I'm now seeing "TypeError: 'gcc.WrapperMeta' object is not iterable" with Python 3.8 and GCC 10. My current hunch is that it's an issue with Python 3.8's typeobject change (tp_vectorcall_offset), but that's a hunch right now.
nzinfo commentedon Oct 4, 2021
The error "TypeError: 'gcc.WrapperMeta' object is not iterable" is caused by generate-gimple-c.py with the tp_flag
Py_TPFLAGS_DEFAULTin series of generated classespytype = PyGccWrapperTypeObject(identifier = 'PyGcc%s_TypeObj'. When changes it to Py_TPFLAGS_BASETYPE . The error will disappear, although this will lead to a crash.The reason is clear, in py38 some logic changed in
PyType_Readyfunction.jmikedupont2 commentedon Dec 31, 2021
My solution was to strip out the entire metaclass #192
It seems there is another patch possible #188