-
Notifications
You must be signed in to change notification settings - Fork 193
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 still exist with resizing an array previously declared in a tuple. #1572
Comments
OK my bad. Adding a print('fr[0]', fr[0].shape) in test() fixes the issue. Argh. I was trying to isolate a real issue I'm seeing along these lines. My real issue is the same, i.e. impossible to resize a member of a tuple after it's been created. |
Question:
different than
The former lists all the optimizations available (from the init.py file in the optimizations directory). So I would imagine all of these are on by default, but I get different results in both cases. The former works, the latter does not. |
The list of optimization used is defined in pythran/pythran.cfg. order matters! |
yes |
As a side note: the code above is not valid Python:
|
Yes, of course, I'm aware of that! I'm bending the rules because pythran allows me to do it (and it's really the only way I can create and use a tuple from the C++ created by pythran!). |
Introduce an explicit cast on rvalues to deal with combiner applied on non-reference nodes. Fix #1572
Cool. I'm going to check it this pm |
Well, it's still not working for me:
Later in my code, during run time, I get this assertion:
The code, again, is too complex to post here. But maybe that will give you an idea for what's going on? |
@jeanlaroche can you double check if this is fixed or not in the latest release? |
@serge-sans-paille Nope. I get exactly the same assert with the latest release. I might be able to make a pruned-down example if that's useful. |
I'm going to close this, and open a new bug that has a smaller example. |
Pythran still misbehaves with the code below:
self[0] is initializes as a (1,1) array, then when an attempt is made to give it a shape of (100,100) this fails.
The text was updated successfully, but these errors were encountered: