Phillip J. Eby wrote: > However, there is another class of use cases which use setdefault for > its limited atomic properties - the initialization of non-mutated > data structures that are shared among threads.
Isn't it rather dangerous to rely on any built-in Python operations to be atomic? They might happen to be, but I don't think there's any guarantee they will stay that way. -- Greg _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
