Understanding the pythonic way: why a.x = 1 is better than a.setX(1) ?

Marco Bizzarri marco.bizzarri at gmail.com
Thu Sep 4 07:08:59 EDT 2008


On Thu, Sep 4, 2008 at 1:00 PM, Diez B. Roggisch <deets at nospam.web.de> wrote:
> Marco Bizzarri wrote:
>
>> Let's say I've a class a, where I can write:
>
> Anticipating this obviously premature posting:
>
> http://dirtsimple.org/2004/12/python-is-not-java.html
>
> Diez
> --
> http://mail.python.org/mailman/listinfo/python-list
>

Ehi, Diez, that was fast :-) !

Thanks for the link, I saw it in the past days and I read it; and I
appreciated it a lot  (actually, it was a door to a new world in
Python, for me). But I'm asking something I feel is a little
different, as you can read in my message, once it is full.

Regards
Marco

-- 
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/



More information about the Python-list mailing list