title: Python difference between yaml.load and yaml.safe_load
body: <p>I am seeing that PyYaml, truncates zero's while loading from yaml file, if one uses:
  <code>yaml.safe_load(stream)</code>.</p>
  <p>It can be fixed, if one uses <code>yaml.load(stream, Loader=yaml.BaseLoader)</code>, but is that advisable?</p>
  <p>It works with <code>yaml.load</code> and zeros are not truncated.</p>
  <p>I want to understand that would it be safe to switch to <code>yaml.load</code> instead of <code>yaml.safe_load</code>?</p>
  <p>Example:</p>
  <p>Test yaml content:</p>
  <pre><code>$cat test.yml
  number: 5.10
  </code></pre>
  <p>Code:</p>
  <pre><code>$python -c 'import yaml, sys; content = yaml.safe_load(sys.stdin); 
  print(content) ' &lt; test.yml
  {'number': 5.1}
  </code></pre>
  <p>&lt;&lt; It truncates the 0 at the end. But that is due to floating point value &gt;&gt;</p>
  <p>whereas what I want is the exact number as is.</p>
  <pre><code>$python -c 'import yaml, sys; content = yaml.load(sys.stdin, 
  Loader=yaml.BaseLoader); print(content) ' &lt; test.yml
  {u'number': u'5.10'}
  </code></pre>
  <p>Is that the correct approach to change it to yaml.load ?</p>