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.

classification
Title: Support replacing global function pointers in a shared library
Type: behavior Stage:
Components: ctypes Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Unai Martinez
Priority: normal Keywords:

Created on 2020-07-20 15:21 by Unai Martinez, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg374013 - (view) Author: Unai Martinez (Unai Martinez) Date: 2020-07-20 15:21
As discussed in https://stackoverflow.com/questions/62947076/replace-a-function-pointer-in-a-shared-library-with-ctypes, it seems currently not possible to replace an existing global variable in a shared library which contains a function pointer, with a callback defined in Python (through ctypes). However, it is possible to replace global variables of other types, such as `int`.
History
Date User Action Args
2022-04-11 14:59:33adminsetgithub: 85520
2020-07-20 15:21:21Unai Martinezcreate