2 ms·
Current PyYAML: >>> import yaml >>> yaml.safe_load("country: NO") {'country': False} Other people did not stop having this problem. It might be that th
by minitech 9mo ago
Current PyYAML:
>>> import yaml
>>> yaml.safe_load("country: NO")
{'country': False}
Other people did not stop having this problem.
It might be that there’s some setting that fixes this or some better library that everyone should be switching to, but YAML has nothing that I want and has been a repeated source of footguns, so I haven’t found it worth looking into. (I am vaguely aware that different tools do configure YAML parsing with different defaults, which is actually worse. It’s another layer of complexity on an already unnecessarily complex base language.)
- Y-bar 9mo agoThe ancient rule of ”use software that is updated with bugfixes” certainly applies here.