-
Notifications
You must be signed in to change notification settings - Fork 156
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
get_variables
order
#1182
Comments
Yes, there was no guarantee on the sorting order, and a recent change removes a previously enforced sorting which greatly improves performance. @bowenszhu is there a sorted version of this function? |
@ChrisRackauckas Currently, we have |
I think that was being discussed with @0x0f0f0f ? I think that's a good idea. |
@bowenszhu Can't users already control this? We discussed (It took us 3 years) to avoid keyword arguments because they make implementing What about we just change I guess the latter, with |
A change in I am a bit surprised that nobody else seems to be needing this feature. We use |
Can't we just do |
A recent change about sorting in SymbolicUtils changed the behavior of
get_variables
here. Is there a contract about the order in which the variables are returned? The documentation does not say anything about that, but I have the impression that they were sorted before, so for me this was a breaking change. More confusingly, the function now returns a different result when receiving a parsed expression object or an expression for parsing:Old behavior
New behavior
Could you please confirm that this is expected behavior, and clarify how I can obtain a consistent order of the variables?
The text was updated successfully, but these errors were encountered: