[Python-ideas] Mitigating 'self.' Method Pollution
storchaka at gmail.com
Sat Jul 11 18:39:01 CEST 2015
On 11.07.15 18:10, Steven D'Aprano wrote:
> On Sat, Jul 11, 2015 at 02:53:51PM +0300, Joonas Liik wrote:
>> On 11 July 2015 at 12:54, M.-A. Lemburg <mal at egenix.com> wrote:
>>> with self:
>>> x = 5
>>> y = 6
> It's actually taken from Pascal, where it works quite well due to the
> necessity of explicit declarations of all variables and record fields.
> There's even a Python FAQ about it. So don't worry, Python won't get
> this construct.
To be correct, it should be "without self".
More information about the Python-ideas