function v. method
Wesley Brooks
wesbrooks at gmail.com
Tue Jul 25 04:16:04 EDT 2006
(Apollogies to fuzzylollipop for replying to them rather than the list!)
Python does have ALREADY have an OFFICAL mechanism for private members,
> prefix your names with _ or __. Both are ommited from autogenerated
> docuementation and both are OFFICALLY not supposed to be used.
>
Could you elaborate on that a little or point me in the right direction to
read up on it? I'm currently re-writing a large lump of my coding and trying
to use best practice. I thought it was considered good practice to make
stuff private (in this case using __ ) that wasn't intened to be accessed
from outside the function/class?
Cheers for your help.
Wesley Brooks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060725/59ac20ed/attachment.html>
More information about the Python-list
mailing list