News for hackers. Stuff that matters.
Re:Glom – Restructured Data for Python by mhashemi on Thursday May 10, 2018 @12:13AM (#17036329)
I wouldn't recommend dynamically generating strings. Strings are just a shorthand for Path objects, use Path instead: http://glom.readthedocs.io/en/latest/api.html#specifier-type...
Re:Glom – Restructured Data for Python by jkaptur on Thursday May 10, 2018 @12:42AM (#17036437)
I definitely wouldn't recommend it either. Sorry not to be clear.

In my experience, it's almost impossible to dissuade people from generating strings if the API affords it. We can't even stop people from generating SQL by concatenation!

Musing: does Python have a way (Mypy?) to declare that a method can accept only constant expressions?