Re: Behavior of add(obj1...) and remove(obj1...)

2008-07-11 Thread Rajesh Dhawan
On Jul 10, 5:37 pm, "Beetle B." <[EMAIL PROTECTED]> wrote: > Hi, > > If I do some_object.users.add(user), it won't complain if the user was > already in some_object. > > Likewise, if I do some_object.users.remove(user), it won't complain if > the user was never there. > > Can I rely on this beha

Behavior of add(obj1...) and remove(obj1...)

2008-07-10 Thread Beetle B.
Hi, If I do some_object.users.add(user), it won't complain if the user was already in some_object. Likewise, if I do some_object.users.remove(user), it won't complain if the user was never there. Can I rely on this behavior in the future? I currently do explicit checks: I create a list of all