<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuich0</author_name>
  <author_url>https://blog.hatena.ne.jp/yuich0/</author_url>
  <blog_title>yuicho@brain:~# tail -f /dev/memory</blog_title>
  <blog_url>https://yuicho.hateblo.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>プログラミング系</anon>
  </categories>
  <description>dictを使い回してappendするような時はコピーしないとバグる元になる。 どゆこと？ 例えばこんな感じ &gt;&gt;&gt; _tmp = dict() &gt;&gt;&gt; _list = list() &gt;&gt;&gt; &gt;&gt;&gt; _tmp['a'] = 'hoge' &gt;&gt;&gt; _list.append(_dict) &gt;&gt;&gt; &gt;&gt;&gt; _tmp['b'] = 'huga' &gt;&gt;&gt; _list.append(_dict) &gt;&gt;&gt; &gt;&gt;&gt; _list [{'a': 'hoge', 'b': 'huga'}, {'a': 'hoge', 'b': 'huga'}] &gt;&gt;&gt; この時 _list は [{'a': 'hoge'}, {'a'…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyuicho.hateblo.jp%2Fentry%2F20210211%2F1612996417&quot; title=&quot;Python の append がバグった時のメモ - yuicho@brain:~# tail -f /dev/memory&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-02-11 07:33:37</published>
  <title>Python の append がバグった時のメモ</title>
  <type>rich</type>
  <url>https://yuicho.hateblo.jp/entry/20210211/1612996417</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
