is python Object oriented??
Thorsten Kampe
thorsten at thorstenkampe.de
Tue Feb 3 05:11:04 EST 2009
* Marco Mariani (Tue, 03 Feb 2009 10:42:06 +0100)
> Thorsten Kampe wrote:
> > This scenario is highly "supposing" and doesn't look like a
> > real-world- case to me. But anyway: the obvious solution in my
> > humble opinion would be to do something like "public_attribute =
> > _private_attribute". But that would be too simple, too
> > "unjavaesque", right?!
>
> Yes, the use of @property is.. cheating!! Shame on you! :)
"Decorators", right? Never used that, but I read about it...
Thorsten
More information about the Python-list
mailing list