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

Joonas Liik liik.joonas at gmail.com
Sat Jul 11 13:53:51 CEST 2015


On 11 July 2015 at 12:54, M.-A. Lemburg <mal at egenix.com> wrote:
>
> with self:
>      x = 5
>      y = 6
>

sounds a lot like JavaScript: the bad parts and has the exact same shortcomings.
consider:

var somename = ""
with (someobject){
  somename // is this a member of someobject or a reference to the
local variable??
}


More information about the Python-ideas mailing list