<div dir="ltr">I think it should be `cls` and flake8 etc. should be fixed.<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 29, 2018 at 11:34 AM, Pim Schellart <span dir="ltr"><<a href="mailto:p.schellart@princeton.edu" target="_blank">p.schellart@princeton.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Python developers,<br>
<br>
PEP 8 says:<br>
<br>
"Always use self for the first argument to instance methods.<br>
<br>
Always use cls for the first argument to class methods.”<br>
<br>
But what about metaclasses?<br>
PEP 3115 seems to suggest `cls`, and so do many Python books, however tools such as flake8 don’t seem to like it.<br>
Is there a consensus opinion, and should PEP 8 be updated?<br>
<br>
Kind regards,<br>
<br>
Pim Schellart<br>
______________________________<wbr>_________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/guido%40python.org" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/options/python-dev/guido%<wbr>40python.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="m_5852610238233447862gmail_signature" data-smartmail="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div>
</div></div>