Style question: metaclass self vs cls?

Ian Kelly ian.g.kelly at gmail.com
Tue Jul 17 12:35:00 EDT 2012


On Tue, Jul 17, 2012 at 12:10 AM, alex23 <wuwei23 at gmail.com> wrote:
> On Jul 17, 1:29 am, Steven D'Aprano <steve
> +comp.lang.pyt... at pearwood.info> 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