A Pythonic way to alias methods?
An alias method allows accesses to the original method via a different name. You can define your own alias method by adding the statement a = b to your class definition. This creates an alias method a() for the original method b().
评论
?
参与讨论