[Python-Dev] PEP 8 and optional underscores (original) (raw)
Raymond Hettinger python at rcn.com
Fri Jun 13 18:40:16 CEST 2008
- Previous message: [Python-Dev] PEP 8 and optional underscores
- Next message: [Python-Dev] PEP 8 and optional underscores
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] PEP 8 and optional underscores
- Next message: [Python-Dev] PEP 8 and optional underscores
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]