Skip to content

SIP: fix PyString/Unicode vs. std::string conversion

Alejandro Homs Puron requested to merge fix_sip_str into master

Some C++ strings where still returned as PyUnicode objects in Python 2.7.

Note: the mapping std::list<const char *>, used in CtConfig, requires persistent storage of strings. Conversion from PyUnicode objects requires a temporary PyString object. A global (static) set of std::string copies is kept for implementing the required persistence.

Merge request reports

Loading