I want to build the intersection of two python sets, but i need to have a custom equality to do this. Is there a way to specify "equaliy" directly when doing the intersection? For example due to a lambda-expressions?
I know there is way by overriding eq, but i have to do several intersections on the same classes with different "equalities".
Thanks!
Aucun commentaire:
Enregistrer un commentaire