[TxMt] Re: Better Python bundle?

Jan-Ole Esleben esleben at gmail.com
Fri Jan 28 14:42:34 UTC 2005


You can use them anywhere; they're like HERE documents in Perl.

print """first line
second line
third line"""

Etc.

Actually, Doc strings are just plain strings (you can use
single-quoted strings too). They do not interfere with the code
because they simply evaluate to themselves.

Ole

On Fri, 28 Jan 2005 15:12:03 +0100, Ollivier Robert
<roberto+textmate at keltia.freenix.fr> wrote:
> According to Allan Odgaard:
> > I actually did not know about triple quoted strings. What are these
> > good for (in PYthon, that is)?
> 
> "docstrings" which enables to give a label to a given method.
> --
> Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto at keltia.freenix.fr
> Darwin snuadh.freenix.org Kernel Version 7.7.0: Sun Nov  7 16:06:51 PST 2004
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>



More information about the textmate mailing list