eclipse-cyclonedds / cyclonedds-python

Other
54 stars 44 forks source link

Error in IDL generator with structs inheritance which identifiers are Python keywords #173

Open Bit-Seq opened 1 year ago

Bit-Seq commented 1 year ago

Hello,

I have detected an error in IDL generator with structs inheritance which identifiers are Python keywords.

module module_test {
    struct and {
        char var;
    };
    struct child : and {
        char var2;
    };
};

This problem is related to the solution we gave on #105. This case couldn't be tested because bug #162 wasn't fixed by then. So, we couldn't test and verify structs inheritance with keywords. As soon as #172 will be solved I will be able to test this error, but I have locally solved this issue. I will share a PR with it.

Best regards.