On Sunday 16 January 2005 09:16 am, gabriele renzi wrote:
| 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).

Thanks. I think this is kind of funny in that I just spoke of REM and was 
obliged ;)

There some good in such a thing --an app could use this as part of a help 
system.

T.