<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>virtual-surfer</author_name>
  <author_url>https://blog.hatena.ne.jp/virtual-surfer/</author_url>
  <blog_title>仮想サーファーの日常</blog_title>
  <blog_url>https://www.virtual-surfer.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>プログラムのエラー解決</anon>
  </categories>
  <description>TypeError: unhashable type: 'list' 上記のようなエラーが出た時の対処法。 自分で定義したオブジェクトを辞書のkeyに設定しようとすると、ハッシュ化できないからエラーになる。 intやstrのようなハッシュ化可能なオブジェクトをkeyに設定する必要がある。 test.py list = ['a', 'b', 'c'] dictionary = {} dictionary[list] = 'test' 上のファイルを実行すると... $ python test.py TypeError: unhashable type: 'list' 辞書のkeyがlist型だと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.virtual-surfer.com%2Fentry%2F2018%2F09%2F08%2F100413&quot; title=&quot;【Pythonエラー解決】「TypeError: unhashable type: xxx」 - 仮想サーファーの日常&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/v/virtual-surfer/20180908/20180908100352.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-09-08 10:04:13</published>
  <title>【Pythonエラー解決】「TypeError: unhashable type: xxx」</title>
  <type>rich</type>
  <url>https://www.virtual-surfer.com/entry/2018/09/08/100413</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
