def instances(self):
definstance = lib.EnvGetNextInstance(self._env, ffi.NULL)<EOL>while definstance != ffi.NULL:<EOL><INDENT>yield Instance(self._env, definstance)<EOL>definstance = lib.EnvGetNextInstance(self._env, definstance)<EOL><DEDENT>
Iterate over the defined Instancees.