private

James Kew james.kew at btinternet.com
Mon Jul 1 17:00:07 EDT 2002


"Christopher A. Craig" <list-python at ccraig.org> wrote in message
news:mailman.1025554562.6875.python-list at python.org...
> "James Kew" <james.kew at btinternet.com> writes:
>
> > Yes, of course one can circumvent private in C++. But for me the main
value
> > of the public and private specifiers is that they _document_ to the
client
> > of the class what it should access and what it should not.
>
> I would think docstrings, comments, and naming conventions sufficient
> to provide a method for documenting what a class ought to be accessing.

I think that's a journey I'm only just beginning.

Is there any good newbie documentation for docstrings? After reading the
Tutorial, Library Reference, and most of Dive Into Python as shipped with
the ActiveState distribution they're still very much a mystery to me...

James






More information about the Python-list mailing list