Why does python not have a mechanism for data hiding?

Giuseppe Ottaviano giuott at gmail.com
Tue Jun 3 07:55:05 EDT 2008


>
> Hmm, difficult to react to this. On the one hand I have had people
> argue that block delimiting in python is explicit too. So in that
> case python doesn't differ from those other languages.
>
> On the other hand if we accept that blocks are delimited implicitely
> in python then it seems python doesn't follow its own zen:
>
>  Explicit is better than implicit

So also duck typing is against python's philosophy? :)



More information about the Python-list mailing list