Skip to content

Get dictionary from python #2735

Discussion options

You must be logged in to vote

It depends. If you want to keep working with it as a Python object, you can already use its methods from PyAny, and you can get to PyDict using result?.downcast::<PyDict>()?.

If you want to convert everything to Rust, i.e. a HashMap, use extract ().

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@robertosante
Comment options

@birkenfeld
Comment options

Answer selected by robertosante
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants