Maybe I just don't know to comment out whole blocks using editor commands. Probably the trick Marc mentions in the following post will do the job.
I use it to test pieces of a modules which usually is imported from another. For testing different parts, I usually have different __main__ sections in the file ....
Cheers,
Riko
Aaron Bingham wrote:
Riko Wichmann wrote:
Dear all,
is there a way in Python to comment out blocks of code without putting a # in front of each line? Somethings like C's
/* block of code here is commented out */
No. Why do you want this? Any good programmer's editor will have a comment/uncomment feature to make it easy to comment out whole blocks of code at a time using the hash character ('#').
Aaron
-- http://mail.python.org/mailman/listinfo/python-list