lundi 31 décembre 2018

In Python, how do I create aliases? I want to rename "elif" as "elseif"

In C, one can use #define to make a developer's life easier. In C, it is possible to do this: #define el else. This would allow a developer to write either else or el depending on their preferences, and the compiler would replace all the "el"s with "else" during pre-compilation..

Is there anything similar in python? Is there something in python that will allow me to create aliases for my own convenience?

Aucun commentaire:

Enregistrer un commentaire