2021-01-04 13:59:11 +03:00
|
|
|
class AClass():
|
|
|
|
|
|
|
|
"""A docstring"""
|
|
|
|
|
|
|
|
def foo(self):
|
2021-01-04 17:33:43 +03:00
|
|
|
print("class member foo")
|
2021-01-04 13:59:11 +03:00
|
|
|
|
|
|
|
# What about blank lines?
|
|
|
|
|
|
|
|
def bar(self):
|
2021-01-04 17:33:43 +03:00
|
|
|
print("class member bar")
|
2021-01-04 13:59:11 +03:00
|
|
|
|
|
|
|
# Oh my.
|
|
|
|
|
|
|
|
let a = AClass()
|
|
|
|
a.foo()
|
|
|
|
a.bar()
|
2021-01-04 17:33:43 +03:00
|
|
|
print(AClass.__doc__)
|