issue 147: force-compute nested structs before parent structs#148
issue 147: force-compute nested structs before parent structs#148arigo merged 1 commit intopython-cffi:mainfrom
Conversation
… mainly in out-of-line ABI mode.
|
Any idea how to port this to PyPy? The code there is different: there is no explicit |
|
The PyPy logic is different, so maybe there isn't anything to fix. Does the original test case in #147 work on a translated PyPy? |
|
Found the same logic in complete_struct_or_union() in newtype.py, but also found comments in the class W_CTypeStructOrUnion that make me think that PyPy, unlike CFFI on CPython, doesn't use |
|
The test fails on py3.10. I tried various incantations to try to cause the struct to be evaluated when |
|
Here's a blind attempt at writing an untranslated test (completely untested): |
|
Yup, thanks @arigo that worked. The test and fix are in this commit |
Occurs mainly in out-of-line ABI mode.