[Python-ideas] Mitigating 'self.' Method Pollution

Ronald Oussoren ronaldoussoren at mac.com
Fri Jul 24 16:47:45 CEST 2015


> On 24 Jul 2015, at 16:22, Sven R. Kunze <srkunze at mail.de> wrote:
> 
> My stance on this: that's the responsibility of the Python interpreter not the one of the Python programmer.

It’s just one of the tricks you can micro-optimise code when needed. The important bit is *when needed*, this trick (and simular ones) should IMHO only be used when benchmarking shows that you have a problem that is solved by it and not proactively because these tricks tend to make code less readable.

Ronald



More information about the Python-ideas mailing list