parameters: (self)
return_statement: return self.buf
docstring: Retrieve the entire contents of the "file" at any time before
          the StringIO object's close() method is called.
  
          The StringIO object can accept either Unicode or 8-bit strings,
          but mixing the two may take some care. If both are used, 8-bit
          strings that cannot be interpreted as 7-bit ASCII (that use the
          8th bit) will cause a UnicodeError to be raised when getvalue()
          is called.
docstring_summary: Retrieve the entire contents of the "file" at any time before
          the StringIO object's close() method is called.
docstring_tokens: Retrieve the entire contents of the file at any time before the StringIO object s close () method is called .
function: def getvalue(self):
          """
          Retrieve the entire contents of the "file" at any time before
          the StringIO object's close() method is called.
  
          The StringIO object can accept either Unicode or 8-bit strings,
          but mixing the two may take some care. If both are used, 8-bit
          strings that cannot be interpreted as 7-bit ASCII (that use the
          8th bit) will cause a UnicodeError to be raised when getvalue()
          is called.
          """
          _complain_ifclosed(self.closed)
          if self.buflist:
              self.buf += ''.join(self.buflist)
              self.buflist = []
          return self.buf
function_tokens: def getvalue ( self ) : _complain_ifclosed ( self . closed ) if self . buflist : self . buf += '' . join ( self . buflist ) self . buflist = [ ] return self . buf