[Python-Dev] cls for metaclass?
Guido van Rossum
guido at python.org
Mon Jan 29 14:53:50 EST 2018
I think it should be `cls` and flake8 etc. should be fixed.
On Mon, Jan 29, 2018 at 11:34 AM, Pim Schellart <p.schellart at princeton.edu>
> 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 at python.org
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/guido%
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev