[Python-Dev] PEP 8 and optional underscores (original) (raw)
Benjamin Peterson musiccomposition at gmail.com
Fri Jun 13 19🔞08 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 ]
On Fri, Jun 13, 2008 at 12:14 PM, Guido van Rossum <guido at python.org> wrote:
On Fri, Jun 13, 2008 at 9:42 AM, Benjamin Peterson <musiccomposition at gmail.com> wrote:
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. Oh, is it? Where's the PEP with the API redesign? Did I miss some kind of decision-making process, weighing compatibility concerns against other issues?
meaning that it only has one underscore. They methods still live.
-- Cheers, Benjamin Peterson "There's no place like 127.0.0.1."
- 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 ]