On Jan 11, 5:43 pm, [EMAIL PROTECTED] wrote: > On Jan 11, 5:26 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > > > [EMAIL PROTECTED] writes: > > > This function just wants X out of the list. It doesn't matter if this > > > happens before, during, or after something else; so long as it happens. > > > 2. Associate a lock with the list. Anything wanting to access the > > list should acquire the lock, do its stuff, then release the lock. > > This gets confusing after a while. > > To keep it generic, how about: > > listA.op( insert, x ) > listA.op( remove, x )
However, in reality, your rock and hard place are: listA.op( listA.insert, x ) listA.op( listA.remove, x ) or listA.op( 'insert', x ) listA.op( 'remove', x ) -- http://mail.python.org/mailman/listinfo/python-list