[Python] self implicito

Luca Bacchi bacchilu a gmail.com
Mer 3 Ott 2012 11:33:25 CEST


L'incapsulamento è meglio dell'ereditarietà... E non avresti tutti
quei self, se proprio non ti piacciono (a me piacciono).

2012/10/3 Nicola Larosa <nico a teknico.net>:
> Antonio Lima wrote:
>> Ma se vuoi davvero renderlo implicito, l'approccio più elegante e
>> semplice IMHO è quello che prevede l'uso della selfless metaclass.
>> http://www.voidspace.org.uk/python/articles/metaclasses.shtml#the-selfless-metaclass
>
> Mii, mo' giene dico quattro a Michael!
>
> --
> Nicola Larosa - http://www.tekNico.net/
>
> Hive-aversion to politically incorrect speech is but one aspect of
> a larger phenomenon. A rather large cohort of people have acquired
> the habit of perceiving the world as they wish it would be rather
> than accept reality as it exists. This is not a good survival
> strategy either for the individual or the species.
>  - TomA on Eric Raymond's blog, April 2012
> _______________________________________________
> Python mailing list
> Python a lists.python.it
> http://lists.python.it/mailman/listinfo/python


Maggiori informazioni sulla lista Python