A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/352747.html below:

Will python never intend to support private, protected and public?

Will python never intend to support private, protected and public? Will python never intend to support private, protected and public?Paul Rubin http
Wed Sep 28 17:32:13 EDT 2005
Gregor Horvath <g.horvath at gmx.at> writes:
> > to be able to share private variables with other classes under certain
> > circumstances, it's better to use something like C++'s "friend"
> > declaration, where you can export the variables to a specific other class.
> 
> That assumes that you always know for sure that the given variable
> will always be used as a private/friend variable in the lifecycle of
> the software.

Obviously if you find you need to use it in another place later, you
update the declaration.  The idea is for you (or an automatic tool) to
be able to find all the uses of some instance variable.  In Python
(because of things like setattr), that can't be done.

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4