should "self" be changed?
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Wed May 27 01:23:37 EDT 2015
On Wednesday 27 May 2015 06:45, Mark Lawrence wrote:
> Apart from breaking all the tools that rely on "self" being spelt "self"
> this looks like an excellent idea.
Tools which rely on self being spelled "self" are already broken. It's a
convention, nothing more, and there are various good reasons for breaking
the convention:
- metaclasses
- classmethods
- custom descriptors
- nested classes
--
Steve
More information about the Python-list
mailing list