mercredi 13 juillet 2016

Comment out a Python code block [duplicate]


This question already has an answer here: Why doesn't Python have multiline comments? 16 answers Is there a mechanism to comment out large blocks of Python code? Right now, the only ways I can see of commenting out code are to either start every line with a #, or to enclose the code in triple quotes: """. The problem with these is that inserting # before every line is cumbersome and """ makes the string I want to use as a comment show up in generated documentation. After reading all comments, the answer seems to be "No".

Aucun commentaire:

Enregistrer un commentaire