[issue47197] ctypes mishandles `void` return type

2022-04-03 Thread Christian Heimes
Change by Christian Heimes : -- components: +Tests type: -> behavior versions: +Python 3.11 ___ Python tracker ___ ___

[issue47197] ctypes mishandles `void` return type

2022-04-03 Thread Hood Chatham
Change by Hood Chatham : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing

[issue47197] ctypes mishandles `void` return type

2022-04-01 Thread Hood Chatham
Change by Hood Chatham : -- keywords: +patch nosy: +hoodmane nosy_count: 2.0 -> 3.0 pull_requests: +30317 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32246 ___ Python tracker

[issue47197] ctypes mishandles `void` return type

2022-04-01 Thread Hood Chatham
New submission from Hood Chatham : On wasm targets, `test_code` fails. It's because of a bad function pointer cast. The problematic code is as follows: ```py import ctypes py = ctypes.pythonapi freefunc = ctypes.CFUNCTYPE(None, ctypes.c_voidp) RequestCodeExtraIndex =