<h1>Differences between D:YAML and the YAML specification<aclass="headerlink"href="#differences-between-d-yaml-and-the-yaml-specification"title="Permalink to this headline">¶</a></h1>
<p>There are some differences between D:YAML and the YAML 1.1 specification. Some
are caused by difficulty of implementation of some features, such as multiple
Unicode encodings within single stream, and some by unnecessary restrictions or
<h2>List of known differences:<aclass="headerlink"href="#list-of-known-differences"title="Permalink to this headline">¶</a></h2>
<p>Differences that can cause valid YAML documents not to load:</p>
<ul>
<li><pclass="first">No support for byte order marks and multiple Unicode encodings in a stream.</p>
</li>
<li><pclass="first">Plain scalars in flow context cannot contain <ttclass="docutils literal"><spanclass="pre">,</span></tt>, <ttclass="docutils literal"><spanclass="pre">:</span></tt> and <ttclass="docutils literal"><spanclass="pre">?</span></tt>.
This might change with <ttclass="docutils literal"><spanclass="pre">:</span></tt> in the future.
See <aclass="reference external"href="http://pyyaml.org/wiki/YAMLColonInFlowContext">http://pyyaml.org/wiki/YAMLColonInFlowContext</a> for details.</p>
</li>
<li><pclass="first">The specification does not restrict characters for anchors and
aliases. This may lead to problems, for instance, the document:</p>
<li><pclass="first">Indentation rules for quoted scalars are loosed: They don’t need to adhere
indentation as <ttclass="docutils literal"><spanclass="pre">"</span></tt> and <ttclass="docutils literal"><spanclass="pre">'</span></tt> clearly mark the beginning and the end of them.</p>
</li>
<li><pclass="first">We allow <ttclass="docutils literal"><spanclass="pre">_</span></tt> in tag handles.</p>
</li>
<li><pclass="first">Right now, two mappings with the same contents but different orderings are
considered unequal, even if they are unordered mappings. This is because all
mappings are ordered in the D:YAML implementation. This should change in
future, once D associative arrays work with variant types or a map class or