Are generator functions thread-safe?

Robert Oschler Oschler at earthlink.net
Mon Sep 16 07:30:27 CEST 2002


I know that a call to a generator function actually returns an independent
iterator object (mea culpa if I'm wrong on this), but are there any hidden
gotchas that would cause the use of the same generator function from
multiple threads, to result in a sharing (especially local storage) or
memory collision issue?

thx






More information about the Python-list mailing list