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
Regression due to PyDict_Next optimization #634
Comments
jasone commented The attached patch fixes iteration by using a local temporary variable, rather than using the iterator counter. I think the real problem is that some tree tranform is removing the node that initializes the iterator counter (perhaps it's viewed as a redundant global variable initialization), but finding that problem is beyond my understanding of Cython at this point. |
scoder changed owner from |
scoder changed owner from Yes, it looks like a problem with the initialisation. The same temp node gets reused here, but it's only initialised once. I applied your work-around by now, but the real problem is elsewhere in the temp code. |
@dagss commented I have now changed I recommend closing as "fixed", but waiting for review. |
@dagss commented See http://trac.cython.org/ticket/124 for relevant patches. |
scoder changed resolution to Yes, that's the right thing to do. |
@robertwb changed resolution from |
@robertwb changed owner to |
@robertwb changed resolution to |
These changesets introduce a code generation bug that causes repeated dictionary iteration to fail (using Python 2.6 on 32- and 64-bit Ubuntu 8.04):
The attached test case demonstrates the problem.
At 2008-11-19T21:38:59Z jasone added attachment foo.pyx
At 2008-11-20T18:30:58Z jasone added attachment PyDict_Next
Migrated from http://trac.cython.org/ticket/123
The text was updated successfully, but these errors were encountered: