class PdbRecord:

    def __init__(self, text):
        if not isinstance(text, str):
            raise TypeError("PdbRecord needs str, not '%s'" % str(text))
        if len(text) > 80:
            raise ValueError("'%s' is longer than 80 characters" % str(text))
        self._text = text


    def text(self, text=None):
        if text is None:
            return self._text
        else:
            if not isinstance(text, str):
                raise TypeError("PdbRecord needs str, not '%s'" % str(text))
            if len(text) > 80:
                raise ValueError("'%s' is longer than 80 characters" % str(text))
            self._text = text

@@ -9,16 +9,391 @@
 bRecord:
+%0A    %22%22%22A PdbRecord represents a single line in a PDB file. As such, it follows%0A    the same constraints that the PDB file formats impose on the lines in the%0A    actual files - namely that it cannot be more than 80 characters.%0A%0A    :param str text: The string contents of the line in the PDB file.%0A    :raises ValueError: if a string longer than 80 characters is supplied.%22%22%22
 %0A%0A    de
@@ -691,16 +691,292 @@
 =None):%0A
+        %22%22%22The full string of the record. If a string is passed as an argument,%0A        the text will be updated.%0A%0A        :param str text: If given, the record's text will be updated to this.%0A        :raises ValueError: if a string longer than 80 characters is supplied.%22%22%22%0A%0A
         

Add docstrings to PdbRecord