Why does python not have a mechanism for data hiding?

sturlamolden sturlamolden at yahoo.no
Thu Jun 5 10:26:59 EDT 2008


On Jun 5, 3:26 pm, Fuzzyman <fuzzy... at gmail.com> wrote:

> So, you are stating that no API programmer using Python *ever* has a
> valid or genuine reason for wanting (even if he can't have it) genuine
> 'hiding' of internal state or members from consumers of his (or
> her...) API?
>
> Michael Foordhttp://www.ironpythoninaction.com/

If you are an API programmer, the __all__ attribute of a package or
module provides all the internal data hiding you need.





More information about the Python-list mailing list