Why doesn't Python have multiline comments?
Multi-line comments are easily breakable. What if you have the following in a simple calculator program?
operation = ''print("Pick an operation: +-*/")# Get user input here
Try to comment that with a multi-line comment:
/*operation = ''print("Pick an operation: +-*/")# Get user input here*/
Oops, your string contains the end comment delimiter.
Triple-quoted text should NOT be considered multi-line comments; by convention, they are docstrings. They should describe what your code does and how to use it, but not for things like commenting out blocks of code.
According to Guido, multiline comments in Python are just contiguous single-line comments (search for "block comments").
To comment blocks of code, I sometimes use the following pattern:
if False: # A bunch of code