Consider the following config file:

[section]
some_var = 1

[other_section]
other_var = ${section:some_var}

My idea would be to have an optional additional argument to perform some 
implied arithmetic e.g. 

[other_section]
other_var = ${section:some_var:int} + 1

Thoughts?

Paul
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/BO2G723AKRY3D7Q55MYF26UG7F6K7NB7/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to