Skip to content
Discussion options

You must be logged in to vote

With ctypes you're restricted to the constructs which exist in the C language, and you likely need to add a wrapper around them as Python code if you want to create an experience in Python which feels like native Python experience.

With PyO3 you are building "extension modules" which implement Python language functionality via exactly the same mechanism that fundamental modules like datetime are implemented. So you can create a much richer interface for Python users directly from Rust.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@RaulTrombin
Comment options

@davidhewitt
Comment options

Answer selected by RaulTrombin
@RaulTrombin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants