In article <[EMAIL PROTECTED]>, "Enrico" <[EMAIL PROTECTED]> wrote:
> "Joseph Garvin" <[EMAIL PROTECTED]> ha scritto nel messaggio > news:[EMAIL PROTECTED] > > --This code won't run because it's in a comment block > > --[[ > > print(10) > > --]] > > > > --This code will, because the first two dashes make the rest a comment, > > breaking the block > > ---[[ > > print(10) > > --]] > > > > So you can change whether or not code is commented out just by adding a > > dash. This is much nicer than in C or Python having to get rid of """ or > > /* and */. Of course, the IDE can compensate. But it's still neat :) > > python: > > """ > print 10 > """ > > and > > #""" > print 10 > #""" It seems to me that this trick works in Python,too. """ print 10 #""" and #""" print 10 #""" You only have to change the first triple quote. -- Doug Schwarz dmschwarz&urgrad,rochester,edu Make obvious changes to get real email address. -- http://mail.python.org/mailman/listinfo/python-list