[Python-ideas] Mitigating 'self.' Method Pollution
greg.ewing at canterbury.ac.nz
Sun Jul 12 02:43:07 CEST 2015
M.-A. Lemburg wrote:
> the global definition is usually written as first
> statement in a function/method).
The same thing applies to the proposed declaration.
However, globals are usually given longish and
descriptive names, making it easy to spot them and
know what they refer to. Both locals and instance
attributes, on the other hand, often have very
short and cryptic names, so having them both appear
with no prefix would be very confusing.
More information about the Python-ideas