class Doc(object): """ This is a class docstring. Traditionally triple-quoted strings are used because they can span multiple lines and you can include quotation marks without escaping. """ def method(self, num): """This is a method docstring.""" pass