trans. (T. Onoma) ha scritto:
> Could you briefly explain what are Docstrings?
strings attached to a function/method/object in python world, i.e.
def foo(a,b):
"""this method sums a and b.
stuff in triple quotes is almosty like here documents"""
return a+b
You can access them via reflection (they're the __doc__ attribute).