Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: To make a method or attribute private (http://www.velocityreviews.com/forums/t956597-re-to-make-a-method-or-attribute-private.html)

Steven D'Aprano 01-17-2013 02:38 AM

Re: To make a method or attribute private
 
On Thu, 17 Jan 2013 08:34:22 +0800, iMath wrote:

> <div><div>To make a method or attribute private (inaccessible from the
> outside), simply start its&nbsp;</div><div>name with two
> underscores</div><div><br></div><div>----《Beginning Python From Novice
> to Professional》</div><div><br></div><div>but there is another saying
> goes:</div><div>Beginning a variable name with a single underscore
> indicates that the variable should be treated as
> ‘private’.</div><div><br></div><div> ...


Please do not send HTML emails to this newsgroup.


--
Steven


All times are GMT. The time now is 03:15 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.