WeSearch

YAML? That's Norway Problem

·15 min read · 0 reactions · 0 comments · 13 views
#yaml#programming#data serialization
⚡ TL;DR · AI summary

The article discusses the 'Norway problem' in YAML, where the country code 'NO' is incorrectly parsed as false. This issue arises from YAML's design, which interprets certain strings as booleans based on their natural language meaning. The article also explores the history of YAML and provides solutions to avoid this parsing error.

Key facts
Original article
LAB174
Read full at LAB174 →
Opening excerpt (first ~120 words) tap to expand

< Back to LAB174.com YAML? That’s Norway problem 2026-01-12 Abstract A deep dive into YAML’s Norway problem: why the country code NO gets parsed as false, its history from YAML v1.0 to v1.2, and why popular libraries still exhibit this behavior in 2026. What is yaml Yaml is a well-known data serialization language designed for human readability. It’s a popular choice for configuration files and metadata. Here’s a simple example: # project.yaml title: Nonoverse description: Beautiful puzzle game about nonograms. link: https://lab174.com/nonoverse countries: - DE - FR - PL - RO Let’s verify that the above example parses correctly. We’ll use Python1 with PyYaml2 version 6.0.3 (the latest version as of this writing).

Excerpt limited to ~120 words for fair-use compliance. The full article is at LAB174.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from LAB174