Replacing PyString_FromString method in python 3

前端 未结 1 1223
情书的邮戳
情书的邮戳 2021-01-17 09:36

TLDR; PyString_FromString doesn\'t work in Python3.5 so I need an alternative.

I am following an example for including python 3 within a C++ project fro

相关标签:
1条回答
  • 2021-01-17 10:07

    PyUnicode_FromString()

    if (!(pValue = PyUnicode_FromString("A string instead of a number")))
      return NULL;
    
    0 讨论(0)
提交回复
热议问题