Ed Leafe wrote:
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?

I don't really know. I know that it is referred to as marking it private, and that a double-underscore really does hide it from all but the current namespace.

--
Paul McNett
http://paulmcnett.com
http://dabodev.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to