On Fri, Jun 13, 2008 at 11:40 AM, Raymond Hettinger <python at rcn.com> wrote: >> 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? In 3.x, it's just an attribute. -- Cheers, Benjamin Peterson "There's no place like 127.0.0.1."
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