Are range iterators thread safe?

Ben Finney ben+python at benfinney.id.au
Thu Oct 20 07:23:42 EDT 2011


Stefan Behnel <stefan_ml at behnel.de> writes:

> Steven D'Aprano, 20.10.2011 10:04:
> > Using Python 3, are range_iterator objects thread-safe?
> The GIL ensures it's thread safe.

The GIL applies only to CPython. What is the answer for other Python
implementations which don't have a GIL?

-- 
 \       Eccles: “I just saw the Earth through the clouds!”  Lew: “Did |
  `\      it look round?”  Eccles: “Yes, but I don't think it saw me.” |
_o__)                            —The Goon Show, _Wings Over Dagenham_ |
Ben Finney



More information about the Python-list mailing list