def get_parts_by_class(self, cls):
		"""
		Return all parts of this package that are instances of cls
		(where cls is passed directly to isinstance, so can be a class
		or sequence of classes).
		"""
		return (part for part in self.parts.values() if isinstance(part, cls))