[Tutor] OO newbie

Brian van den Broek bvande at po-box.mcgill.ca
Fri Apr 8 06:07:23 CEST 2005


Brian van den Broek said unto the world upon 2005-04-08 00:00:

<SNIP>

>  >>> class Shy:
>     '''My silly example'''
>     def _shy_method(self):
>     '''I am a shy docstring'''
>         print "I'm a shy method"
>     def public_method(self):
>     '''I am a public docstring'''
>         print "I'm a public method"
>     def __mangled_method(self):
>     '''I'm a very shy docstring'''
>         print "I'm quite shy and a bit of a challenge to call as"
>         print "I've been mangled!"

<SNIP>

Something went goofy with the indentation -- that should have the the 
method doscstrings indented to align with the print statements.

Sorry about that,

Brian vdB



More information about the Tutor mailing list