Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with shared iterators #4

Closed
mrabarnett opened this issue Mar 14, 2011 · 2 comments
Closed

Problem with shared iterators #4

mrabarnett opened this issue Mar 14, 2011 · 2 comments
Labels
bug Something isn't working minor

Comments

@mrabarnett
Copy link
Owner

Original report by Anonymous.


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.

@mrabarnett
Copy link
Owner Author

Original comment by Anonymous.


Now works for Python 3, but has broken iterators for Python 2.

Further investigation needed...

@mrabarnett
Copy link
Owner Author

Original comment by Anonymous.


Fixed for both Python 3 and Python 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor
Projects
None yet
Development

No branches or pull requests

1 participant