[Python-Dev] PEP 8 updates/clarifications

Phillip J. Eby pje at telecommunity.com
Mon Dec 12 21:40:47 CET 2005


At 02:25 PM 12/12/2005 -0600, Ian Bicking wrote:
>That looks good to me.  Well, I actually try not to use cls as the first
>argument to metaclass's __new__ method, because there's so many classes
>being tossed about at that point that I try to be more explicit.  But I
>don't consider that a common enough issue to be worth mentioning in PEP 8.

I usually use 'meta' as the first argument of a metaclass __new__ or a 
metaclass classmethod, to avoid this particular bit of confusion.



More information about the Python-Dev mailing list