title: TypeError: get() takes no keyword arguments
body: <p>I'm new at Python, and I'm trying to basically make a hash table that checks if a key points to a value in the table, and if not, initializes it to an empty array. The offending part of my code is the line:</p>
  <pre><code>converted_comments[submission.id] = converted_comments.get(submission.id, default=0)
  </code></pre>
  <p>I get the error:</p>
  <pre><code>TypeError: get() takes no keyword arguments
  </code></pre>
  <p>But in the documentation (and various pieces of example code), I can see that it does take a default argument:</p>
  <p><a href="https://docs.python.org/2/library/stdtypes.html#dict.get" rel="noreferrer">https://docs.python.org/2/library/stdtypes.html#dict.get</a>
  <a href="http://www.tutorialspoint.com/python/dictionary_get.htm" rel="noreferrer">http://www.tutorialspoint.com/python/dictionary_get.htm</a></p>
  <blockquote>
  <p>Following is the syntax for get() method:</p>
  <p>dict.get(key, default=None)</p>
  </blockquote>
  <p>There's nothing about this on The Stack, so I assume it's a beginner mistake?</p>