Style question: metaclass self vs cls?

Ian Kelly ian.g.kelly at
Tue Jul 17 18:35:00 CEST 2012

On Tue, Jul 17, 2012 at 12:10 AM, alex23 <wuwei23 at> wrote:
> On Jul 17, 1:29 am, Steven D'Aprano <steve
> +comp.lang.pyt... at> wrote:
>> Here's a style question for you: in a metaclass, what should I call the
>> instance parameter of methods, "cls" or "self"?
> Maybe portmanteu it as "clasself"? :)

What is this, 1st edition D&D?  Elf is a race, not a class.

More information about the Python-list mailing list