This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hoodchatham
Recipients hoodchatham
Date 2022-04-04.00:27:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
ctypes defines `CTYPES_MAX_ARGCOUNT` to be 1024:

If a function call is attempted with more than 1024 arguments, it will fail. The libffi emscripten port can only support function calls with at most 122 arguments due to limitations in Emscripten / Wasm:

I propose to allow the libffi port to define FFI_MAX_CLOSURE_ARGS and if this is defined then use this number instead for `CTYPES_MAX_ARGCOUNT`.

The test `test_callback_too_many_args` should also be updated to respect the value of `CTYPES_MAX_ARGCOUNT` rather than hardcoding 1024 into the test.
Date User Action Args
2022-04-04 00:27:44hoodchathamsetrecipients: + hoodchatham
2022-04-04 00:27:44hoodchathamsetmessageid: <>
2022-04-04 00:27:44hoodchathamlinkissue47208 messages
2022-04-04 00:27:44hoodchathamcreate