title: YAML and tuples as dict key
body: <p>Let</p>
  
  <pre><code>d = {3: u'blah', u'b': u'foo', (12,2,3) : u'bonjour'}
  </code></pre>
  
  <p>be a dictionary. If I use </p>
  
  <pre><code>g = yaml.dump(d)
  h = yaml.load(g)
  print g, h
  </code></pre>
  
  <p>it's very good, but I get lots of <code>!!python/unicode</code> everywhere, so that's not good for readability.</p>
  
  <p>On the other hand, if I use :</p>
  
  <pre><code>g = yaml.safe_dump(d)
  h = yaml.load(g)
  print g, h
  </code></pre>
  
  <p>there are no-more the <code>!!python/unicode</code> but also not the <code>!!python/tuple</code> anymore, so the <strong><code>load</code> doesn't work because the tuple isn't understood correctly.</strong></p>
  
  <p><strong>How to get the right balance with YAML ?</strong></p>
  
  <ul>
  <li>no <code>!!python/unicode</code> everywhere,</li>
  <li>having tuples as dict key working ! (so probably <code>!!python/typle</code> has to be kept)</li>
  </ul>