3 ms·
Python typically goes with `cls`, particularly in conjunction with the `@classmethod` decorator.
by mikepurvis 8y ago
Python typically goes with `cls`, particularly in conjunction with the `@classmethod` decorator.
- qwsxyh 8y agoPython code uses both.
- mikepurvis 8y agoUm, not really. PEP8 explicitly says to use `cls`: https://www.python.org/dev/peps/pep-0008/#function-and-method-arguments https://www.python.org/dev/peps/pep-0008/#function-and-metho...
- qwsxyh 8y agohttps://github.com/python/cpython/search?utf8=%E2%9C%93&q=klass&type= https://github.com/python/cpython/search?utf8=%E2%9C%93&q=kl...