Steven Bethard wrote:
> class C(object):
> def foo(self):
> """Foo things"""
> ...
>
> class D(object):
> def foo(self):
> """Foo things"""
> ...
>
> It bothers me that I'm basically writing the same docstrings multiple
> times. I guess what I really
Steven Bethard said unto the world upon 2005-02-18 13:58:
I have two classes that implement the same interface, e.g. something like:
class C(object):
def foo(self):
"""Foo things"""
...
def bar(self):
"""Bar things"""
...
def baz(self):
"""Baz thi
I have two classes that implement the same interface, e.g. something like:
class C(object):
def foo(self):
"""Foo things"""
...
def bar(self):
"""Bar things"""
...
def baz(self):
"""Baz things in a C manner"""
...
class D(object):
def