[Python-ideas] ConfigParser: typed ExtendedInterpolation

2022-02-08 Thread Paul Korir
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] argparse: mutually inclusive arguments

2021-02-24 Thread Paul Korir
Hi All, I've been using the argparse library for a long time and one use case that repeatedly shows us is the need to have two arguments appear together i.e either both appear or none of them appear. I'll refer to these as *mutually inclusive* in contrast to the existing *mutual exclusive* feature