class AClass(): """A docstring""" def foo(self): print("class member foo") # What about blank lines? def bar(self): print("class member bar") # Oh my. let a = AClass() a.foo() a.bar() print(AClass.__doc__)