Dictionaries and Threads

Johannes Stezenbach yawyi at gmx.de
Fri May 26 13:52:32 EDT 2000


Aahz Maruch <aahz at netcom.com> wrote:
>Note very carefully, though, that map() and reduce() are not
>thread-safe.

Why not? The global interpreter lock isn't
released in the code of builtin_map() or
builtin_reduce(), so no other thread can change
the sequence while the map/reduce loop is running.

Johannes




More information about the Python-list mailing list