I'd like to be able to assign aliases to class names, and somehow define the aliases within the class body. So, for example, rather than doing this:
class C(object):
pass
C1 = C
I'd like to be able to do this:
class C(object):
__aliases__ = ['C1']
or something of the sort.
My objective is to make the information about the aliases contained within the class definition so that auto-completion works in the right environments and any kind of introspection will reveal the class' aliases (so, for example, documentation can be made to include these aliases.)
I'm guessing I can play games with jumping to the containing frame or whatever, but I'd just like to avoid any ugly trickery if that's possible.
The question is, is this possible?