Getting rid of "self."

Michael Hobbs mike at hobbshouse.org
Fri Jan 7 11:40:30 EST 2005


Nick Coghlan <ncoghlan at iinet.net.au> wrote:
> 
> Wait for Python 3k when this will work:
> 
> class c:
>   def __init__(self):
>     with self:
>       .x = 1
>       .y = 2
>       .hi = "Hi there!"

Python is looking more like JavaScript every day...




More information about the Python-list mailing list