Assembly of Python External C++ procedure returning the value of string type

Posted by dba477 on Jul 23, 2021 8:40 PM EDT
https://dbaxps.blogspot.com/; By Boris Derzhavets
Mail this story
Print this story

Writing C++ procedure below we get a final answer as C++ string , then via sequence of operations which convert string to the pointer (say c) to "const char" and finally return required value via pointer to PyObject provided by PyUnicode_FromString(c) to Python Runtime module.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Developer, Fedora, Python

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.