Bad form to access a *private variable* like _foo?
- From: "seberino@xxxxxxxxxxxxxxx" <seberino@xxxxxxxxxxxxxxx>
- Date: Mon, 5 May 2008 21:32:36 -0700 (PDT)
Bad form to access a *private variable* like _foo?
The reason I'm asking is that TurboGears/SQLObject mobel objects have
an attribute called "_connection" that must be used to manually commit
database stuff....
e.g. MyObject._connection.commit()
It bugs me. I don't know if it is a stylistic faux pas or not.
Is it?
Chris
.
- Follow-Ups:
- Re: Bad form to access a *private variable* like _foo?
- From: Bruno Desthuilliers
- Re: Bad form to access a *private variable* like _foo?
- Prev by Date: Re: How to generate binary python?
- Next by Date: Re: How can we write a class factory that dynamically redefines the __init__ function etc.
- Previous by thread: Re: How to generate binary python?
- Next by thread: Re: Bad form to access a *private variable* like _foo?
- Index(es):
Relevant Pages
|
|