larray-project / larray

N-dimensional labelled arrays in Python
https://larray.readthedocs.io/
GNU General Public License v3.0
8 stars 6 forks source link

deprecate expression evaluation in _parse_bound #1066

Open gdementen opened 1 year ago

gdementen commented 1 year ago

Right now, I don't see any case where f strings are not better, and this would simplify quite a bit of code. I need to be sure about this before I proceed with the deprecation though.

I don't think the feature is knowingly used by anybody, but there are surely some (many?) accidental usages out there (simply forgetting the f before the f string and not noticing because the code actually works), so we must provide a nice upgrade path/warning message and not remove the feature directly.