← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-pkg/yade/git-trunk] Rev 3709: add function has() to O.interactions to check if (id1, id2) exists + fix doc of O.interactions

 


------------------------------------------------------------
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
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.




Follow ups

References