-
Notifications
You must be signed in to change notification settings - Fork 856
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
Artihmetic expression as values #582
Comments
Is the underlying motivation the same as #427? |
@pradyunsg no as it could also be used for time e.g.
|
A time duration/timedelta type is proposed in #514. Unit conversion suffixes and timedelta types would be pretty good additions to the standard, I think. Arbitrary arithmetic expressions, not so much. |
Why is that better than a comment? time = 43200 # 12 hours |
Because a comment can become inconsistent... |
because you need to recalculate the whole instead of just changing one term |
While I can see the value that this could have in certain situations, I don't think this is a super valuable addition. Broadly, I don't think a configuration file format should have operator logic happening within it. I think this is further demonstated by the lack of activity on this issue, compared to the rest of the issue tracker. :) None the less, thanks for proposal and your patience on this! |
What about having arithmetic expression as a value, e.g.:
which would simplify setting values which even derive from arithmetic expressions and as you just need to edit one multiplicand to change the wished result.
The text was updated successfully, but these errors were encountered: