Hi,
Am Fri, 09 Sep 2005 04:15:13 +0200 schrieb Ed Leafe <[EMAIL PROTECTED]>:
On Sep 8, 2005, at 7:12 PM, Paul McNett wrote:
I'm not really clear on the whole "_" prefix thing. I was under
the impression that a single underscore prefix meant that the att
isn't supposed to be accessed from outside the class. Is that
incorrect?
I've been interpreting it for Dabo as "users shouldn't access it".
But what is the standard among Python programmers?
My understanding, is that a single underscore is equivalent to the
protected keyword of C++,
class methods and sub class methods are allowed access. Two underscores is
equivalent to the private
keyword, which means only class methods are allowed access.
adi
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev