def instances(self):
        """Iterate over the defined Instancees."""
        definstance = lib.EnvGetNextInstance(self._env, ffi.NULL)

        while definstance != ffi.NULL:
            yield Instance(self._env, definstance)

            definstance = lib.EnvGetNextInstance(self._env, definstance)
Iterate over the defined Instancees.