On Dec 16, 9:36 am, Tim Wintle <tim.win...@teamrubber.com> wrote: > should be: > def run(t): > with lock: > shared_container.append(t.name) > > (or lock.acquire() and lock.release() as you mentioned)
Thanks Tim. The with statement is closer to the C++ code (IMO) more so than the explicit acquire() and release() so I'll use that approach. I appreciate your advice. Brad -- http://mail.python.org/mailman/listinfo/python-list