jamadden / mrab-regex-hg

Automatically exported from code.google.com/p/mrab-regex-hg
0 stars 2 forks source link

Problem with shared iterators #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Issue 1366311 talks about releasing the GIL in the "re" module, but points to a 
problem which could occur with scanner objects which are shared across threads.

Unfortunately this module has just that problem. :-(

I'm currently attempting to fix it, but it's proving to be surprisingly 
difficult. When the iterator terminates in a thread, it's being collected, 
which causes a failure later when another thread tries to use it.

Revision 4dc5f7f181 didn't fix it.

Original issue reported on code.google.com by re...@mrabarnett.plus.com on 14 Mar 2011 at 9:18

GoogleCodeExporter commented 9 years ago
Now works for Python 3, but has broken iterators for Python 2.

Further investigation needed...

Original comment by re...@mrabarnett.plus.com on 15 Mar 2011 at 3:40

GoogleCodeExporter commented 9 years ago
Fixed for both Python 3 and Python 2.

Original comment by re...@mrabarnett.plus.com on 15 Mar 2011 at 5:38