3 ms·
I'd like to hear more about: - the broken mix of pythonisms - the arbitrary-feeling restrictions - the oddly missing pieces Because I can't find any.
by jjawssd 9y ago
I'd like to hear more about:
- the broken mix of pythonisms
- the arbitrary-feeling restrictions
- the oddly missing pieces
Because I can't find any.
- nrser 9y agoCheck this fiasco out for starters: https://github.com/pallets/jinja/issues/659 https://github.com/pallets/jinja/issues/659 > It was never documented that you can override variables from higher scopes But you could, and people did... because that's what people do: they try stuff that seems reasonable and if it works they use it. And then someone "fixed" it in a minor release and things started breaking. BTW the error message is KeyError: 'undefined variable: 0' Fun way to spend an afternoon, I can assure you. I used Jinja2 happily for years on a web app, but that thing pretty much just styled a page for flash to sit in and drew some forms and menus. I use it now via Ansible and have come to despise it through and through.
- FatalBaboon 9y agoThe other day I was debugging an Ops issue only to find that it originated in a python-based executable. I soon found out it was a feature unfinished and buggy. There is a github issue that documents it, it has been around for no less than 10 years. 5 people offered PRs that got rejected for style and they are still discussing how to fix the bug in the most pythonist way. I'll try to find it again. I obviously ditched the
- jjawssd 9y agoFastest solution: fork the code and merge the PRs into your own branch yourself.