Thread Previous • Date Previous • Date Next • Thread Next |
You can also call it __contains__ (https://docs.python.org/2/reference/datamodel.html#object.__contains__), and do things like "if (0,1) in ..." v.------------------------------------------------------------ revno: 3709 committer: Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx> timestamp: Thu 2015-07-30 18:08:08 +0200 message: add function has() to O.interactions to check if (id1,id2) exists + fix doc of O.interactions
Thread Previous • Date Previous • Date Next • Thread Next |