Is it safe to shre a reg exp object among threads?

Fredrik Lundh fredrik at pythonware.com
Thu Jun 29 17:21:41 EDT 2006


overly.crazy.steve at gmail.com wrote:

> Let's say I construct a regular expression object r by:
> 
> r = re.compile("some pattern")
> 
> Is it safe to let multiple threads to use r concurrently (use r.search
> on different strings, etc.)?

yes.

</F>




More information about the Python-list mailing list