(self)
return textwrap.dedent("""
    @util.CachedProperty
    def {0.name}(self):
      \"\"\"{0.docstring}\"\"\"
      return util.buf_to_npy(self._ptr.contents.{0.name}, {0.shape!s})"""  # pylint: disable=missing-format-attribute
                           .format(self))
Populates a Python class with a getter method for self (no setter).
Populates a Python class with a getter method for self (no setter).
Populates a Python class with a getter method for self ( no setter ) .
def getters_setters(self):
    """Populates a Python class with a getter method for self (no setter)."""
    return textwrap.dedent("""
    @util.CachedProperty
    def {0.name}(self):
      \"\"\"{0.docstring}\"\"\"
      return util.buf_to_npy(self._ptr.contents.{0.name}, {0.shape!s})"""  # pylint: disable=missing-format-attribute
                           .format(self))
def getters_setters ( self ) : return textwrap . dedent ( """
    @util.CachedProperty
    def {0.name}(self):
      \"\"\"{0.docstring}\"\"\"
      return util.buf_to_npy(self._ptr.contents.{0.name}, {0.shape!s})""" # pylint: disable=missing-format-attribute . format ( self ) )