How can we read Python dictionary using C++?


There are many C++/Python bindings. It boils down to what you use to communicate between C++ and python to read python dictionaries in c++. Most of these libraries(like Boost) handle the parsing themselves. You could use an intermediate data transfer format like JSON or XML to pass data between the 2 languages and then serialize and deserialize data using the respective libraries in these languages for these formats.

Samual Sam
Samual Sam

Learning faster. Every day.

Updated on: 30-Jul-2019

316 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements