I was just wondering what is the difference between two ways of writing Python Docstrings (__doc__
):
three single quotes:
\'\'\
Choose whatever style you want. Personally I use single quotes everywhere I can in Python.
The documentation states:
"String literals can be enclosed in matching single quotes (') or double quotes (")."
It doesn't matter which one you decide to use. What does matter, is that you stick with your decision. It is good practice to choose a style and stick with it.