wish: multiline comments
Ionel Simionescu
ionel at psy.uva.nl
Wed Dec 1 14:09:03 EST 1999
Oleg Broytmann <phd at phd.russ.ru> wrote in message
news:Pine.LNX.4.21.9912011413580.21623-100000 at fep132.fep.ru...
| On Wed, 1 Dec 1999, Stidolph, David wrote:
| > You've got them.
| >
| > """ This is a multi-line comment
| > that runs until the next set
| > of triple quotes."""
| >
| > That was a comment in every sense. The only other thing is that
following a
| > class definition, it places the comment in the __doc__ variable.
|
| I wanna call this "desired side-effect"! :)
I'd call them "anonymous strings".
I knew them as a method to include comments, but still don't know how they
are dealt with by the parser. I avoid using them because I fear they make it
into the pseudo code, cluttering it.
ionel
More information about the Python-list
mailing list