commenting out blocks of code
john peter
neuzhoundxx at yahoo.com
Fri Feb 17 18:18:46 EST 2006
in java, i can prevent a block of code from executing
by bracketing the block with comment indicators, as shown
below:
/*
statement1 will not execute;
statement2 will not execute;
*/
statement3 will execute
is there a similar mechanism in python, other than prefixing
the '#' character to the start of each statement i do not
want to execute (which gets old very quickly if one needs to
comment and uncomment several statements a couple of
times while "playing around with code" say during initial design)?
---------------------------------
Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060217/7f704c49/attachment.html>
More information about the Python-list
mailing list