how to comment out a block of code

Christian von Essen christian at mvonessen.de
Wed Jan 26 15:20:25 EST 2005


A bit of a hack of course, but you can enclose the code that should be
commented out with ''' and ''' or """ and """ (not sure about the name of
this tripple-quoting)
OTOH, some (or even most if not all) Python editors support blockquoting
by pushing a button or using shortcuts. SPE and IDLE for example.




More information about the Python-list mailing list