I've submitted patches and benchmarks for this here: http://bugs.python.org/issue14320 On Fri, Mar 16, 2012 at 10:19 AM, Cameron Simpson <cs at zip.com.au> wrote: > On 15Mar2012 02:26, Matt Joiner <anacrolix at gmail.com> wrote: > | This is an example only. > [... racy stuff ...] >> Then please provide a realistic nonracy example. >> And also, what's your use case for "Adding an element that is already > present often constitutes an error in my code"? And how is it not > addressed by: >> b.update( (a,) ) >> Cheers, > -- > Cameron Simpson <cs at zip.com.au> DoD#743 > http://www.cskk.ezoshosting.com/cs/ >> Always code as if the guy who ends up maintaining your code will be a violent > psychopath who knows where you live. > - Martin Golding, DoD #0236, martin at plaza.ds.adp.com