Replies: 2 comments 3 replies
-
You should be able to directly compare the result of What do you mean by "initialize NoneType"?
|
Beta Was this translation helpful? Give feedback.
3 replies
-
By the way, from what you're doing sounds like https://github.com/davidhewitt/pythonize might be useful? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to serialize a python dict into a json in rust.
what's the best way to detect python types?
currently I'm doing python_var.get_type().name().unwrap(), with a string comparison. it seems to be inefficient?
is there a better way doing this? Thanks!
Another question, how to initialize python's NoneType? there is no document covering that?
And how can I convert from PyDict to PyAny?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions