• Michael Seifert's avatar
    Python: Escape enum member names if they correspond to a Python keyword (#4772) · a96f2bd6
    Michael Seifert authored
    * Python: Generated enum member names are now escaped if they correspond to a Python keyword.
    
    * Keyword list in Python generator is now a const char* instead of an std::string array.
    
    * Moved static functions and keyword list of Python generator into the PythonGenerator class.
    
    * Python generator escapes keyword identifiers in all definitions.
    a96f2bd6
idl_gen_python.cpp 25.5 KB