テーマ: parsing
-
YAML 1.1 vs 1.2 implicit typing: the Norway problem, octal numbers and which parsers use which
YAML 1.1's boolean type treats yes, no, on and off as booleans and a leading zero as octal; YAML 1.2's Core Schema narrows booleans to true/false and requires an explicit 0o prefix for octal — and PyYAML, js-yaml and gopkg.in/yaml.v3 each land in a different place between the two.
-
Python の locale 変更:リクエスト固有の数値解析をプロセス全体の状態に持ち込まない
人向けの数値表記の慣習を機械間交換と分け、リクエストごとの setlocale 変更を避けます。
機械可読: JSON