edX.orgのオンラインCS188.1xクラスで使用されているコード(インストラクターによって作成されたコード)を確認しているときに、コメントとして使用するために一組の二重引用符(strの周りで使用する場合など)が繰り返し使用されていることに気付きました。
私はこれを前に見たことがなく、PEP8で私が見つけたとは述べられていませんが、確かにうまく機能しているようです。誰かが私を啓発できますか?
次に例を示します。
class SomeClass():
"""
Some docstring info, using standard 'triple double quotes'
"""
def __init__(self):
"This is the comment style to which I'm referring."
some.code = foo # Here's a normal inline comment
def bar(self, item):
"Here is another example of the comment style"
return wtf