Y
Hacker News
new
|
ask
|
show
|
jobs
by
mikepurvis
2621 days ago
Python typically goes with `cls`, particularly in conjunction with the `@classmethod` decorator.
1 comments
qwsxyh
2621 days ago
Python code uses both.
link
mikepurvis
2621 days ago
Um, not really. PEP8 explicitly says to use `cls`:
https://www.python.org/dev/peps/pep-0008/#function-and-metho...
link
qwsxyh
2621 days ago
https://github.com/python/cpython/search?utf8=%E2%9C%93&q=kl...
link