Jay Taylor's notes
back to listing indexPython: get string representation of PyObject?
[web search]
I've got a C python extension, and I would like to print out some diagnostics. I'm receiving a string as a PyObject*. What's the canonical way to obtain a string rep of this object, such that it usable as a const char *? update: clarified to emphasize access as const char *.
|
||||
Use
This method is OK for any
|
|||||||||||||||||||||||||||
|
Try Docs:
|
|||||||||||||||
|
Your Answer
asked |
5 years ago |
viewed |
7183 times |
active |
Related
Technology | Life / Arts | Culture / Recreation | Science | Other | ||
---|---|---|---|---|---|---|