Commenting out multiple lines ?

Don O'Donnell donod at home.com
Thu May 17 19:33:27 EDT 2001


Tom wrote:
> 
> I miss C style comments for multiple lines like /* */
> 
> How can that be done without doing
> 
> #line 1
> #line 2
> #line 3
> #line 4
> 
> in Python ?

In Windows, using PythonWin, select block of text, then:

Alt+3		to comment block
Shift+Alt+3	to uncomment block

See Menu:  Help/PythonWin Reference/Keyboard Bindings 
for this and other useful stuff.

Cheers,
-Don



More information about the Python-list mailing list