Is it posible to use docstring for plain variable? For example I have module called t
t
def f(): \"\"\"f\"\"\" l = lambda x: x \"\"\"l\"\"\"
Properties can have docstrings! This covers the most common use case of documenting instance variables.
class A: def __init__(self): self._x = 22 @property def x(self): "document x" return self._x @x.setter def x(self, value): self._x = value A.x.__doc__