Dear Python developers,

PEP 8 says:

"Always use self for the first argument to instance methods.

Always use cls for the first argument to class methods.”

But what about metaclasses?
PEP 3115 seems to suggest `cls`, and so do many Python books, however tools 
such as flake8 don’t seem to like it.
Is there a consensus opinion, and should PEP 8 be updated?

Kind regards,

Pim Schellart
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to