Hi
You can replace many if/else statement testing enums with dictionaries to reduce the number of lines.
or directly "enum.tostring().tolower()"
mrj
//Edit
I just saw this.
You can replace many if/else statement testing enums with dictionaries to reduce the number of lines.
or directly "enum.tostring().tolower()"
mrj
//Edit
I just saw this.
morpheus_xx already mentioned itIf you apply this to the other arguments as well, the number of code lines will be significantly reduced.
Last edited: