Why is cls sometimes used instead of self as an argument in Python classes?
cls
self
For example:
class Person: def __init__(sel
It's used in case of a class method. Check this reference for further details.
EDIT: As clarified by Adrien, it's a convention. You can actually use anything but cls and self are used (PEP8).