Skip to content
  • Pino Toscano's avatar
    scripting: remove char* hacks · 56956099
    Pino Toscano authored
    The Python C API has been using const char * arguments for the APIs
    we use, so there is (hopefully) no more need to use temporary strings.
    Also, docs and examples show that static strings are fine.
    
    Hence, remove the hacks used when calling PyImport_AppendInittab,
    PyRun_SimpleString, and PyImport_AddModule, and directly pass static
    C strings.
    56956099