I have a question about docstrings in simple email python scripts.
message = """\
From: %s
To: %s
Subject: %s
%s
""" % (FROM, ", ".join(TO), SUBJECT, TEXT)
I see docstrings like this often in email scripts. My question is, what is the docstring doing? I thought docstrings were used only for help
commands and such. I apologize if this is a stupid question.
Thank you!
It's because it's useful to write the string in multiple lines, from the
docs
: