A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2008-June/080343.html below:

[Python-Dev] PEP 8 and optional underscores

[Python-Dev] PEP 8 and optional underscores [Python-Dev] PEP 8 and optional underscoresRaymond Hettinger python at rcn.com
Fri Jun 13 18:40:16 CEST 2008
>    Nick>      def getName(self):
>    Nick>          assert self.__initialized, "Thread.__init__() not called"
>    Nick>          return self.__name

Why is __name private to begin with?  Any reason for the getters and setters?  Why isn't this just an attribute?


Raymond
More information about the Python-Dev 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