[issue47208] Support libffi implementations that cannot support invocations with 1024 arguments

2022-04-04 Thread Hood Chatham
Hood Chatham added the comment: Ideally the library should be able to define a different macro, e.g., CTYPES_CUSTOM_MAX_ARGCOUNT. This way the libffi port can define CTYPES_CUSTOM_MAX_ARGCOUNT and it will be compatible with older Python versions without causing Warning: "CTYPES_MAX_ARGCOUNT

[issue47208] Support libffi implementations that cannot support invocations with 1024 arguments

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

[issue47208] Support libffi implementations that cannot support invocations with 1024 arguments

2022-04-04 Thread Christian Heimes
Christian Heimes added the comment: GH-32297 adds #ifndef CTYPES_MAX_ARGCOUNT and exposes the constant in the _ctypes extension module, so the test case can use the constant. It allows you to override CTYPES_MAX_ARGCOUNT until libffi upstream agrees on FFI_MAX_CLOSURE_ARGS. --

[issue47208] Support libffi implementations that cannot support invocations with 1024 arguments

2022-04-04 Thread Christian Heimes
Christian Heimes added the comment: New changeset d1b1c885d8f276a0b1ff2e327270916396a8b842 by Christian Heimes in branch 'main': bpo-47208: Allow vendors to override CTYPES_MAX_ARGCOUNT (GH-32297) https://github.com/python/cpython/commit/d1b1c885d8f276a0b1ff2e327270916396a8b842 --

[issue47208] Support libffi implementations that cannot support invocations with 1024 arguments

2022-04-04 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +30356 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32297 ___ Python tracker

[issue47208] Support libffi implementations that cannot support invocations with 1024 arguments

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

[issue47208] Support libffi implementations that cannot support invocations with 1024 arguments

2022-04-03 Thread Hood Chatham
New submission from Hood Chatham : ctypes defines `CTYPES_MAX_ARGCOUNT` to be 1024: https://github.com/python/cpython/blob/6db2db91b96aaa1270c200ec931a2250fe2799c7/Modules/_ctypes/ctypes.h#L21 If a function call is attempted with more than 1024 arguments, it will fail. The libffi emscripten