def _shared_solvers(self, others):
solvers_by_id = { id(s): s for s in self._solver_list }<EOL>common_solvers = set(solvers_by_id.keys())<EOL>other_sets = [ { id(s) for s in cs._solver_list } for cs in others ]<EOL>for o in other_sets: common_solvers &= o<EOL>return [ solvers_by_id[s] for s in common_solvers ]<EOL>
Returns a sequence of the solvers that self and others share.