Skip to content

Generating callbacks for a c library #1631

Answered by EmilyBourne
adam-urbanczyk asked this question in Q&A
Discussion options

You must be logged in to vote

We have not implemented proper callback-functions as documented here:
https://docs.python.org/3/library/ctypes.html#callback-functions

This is something that I would quite like to do as it would allow us to expose functions which take functions as arguments (currently they are translated but not wrapped. I hadn't realised that there was a standard way to do this.

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@EmilyBourne
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@EmilyBourne
Comment options

Comment options

You must be logged in to vote
4 replies
@adam-urbanczyk
Comment options

@EmilyBourne
Comment options

@EmilyBourne
Comment options

@adam-urbanczyk
Comment options

Answer selected by adam-urbanczyk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants