<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>s-shin</author_name>
  <author_url>https://blog.hatena.ne.jp/s-shin/</author_url>
  <blog_title>$ cat /var/log/shin</blog_title>
  <blog_url>https://shin.hateblo.jp/</blog_url>
  <categories>
    <anon>Programming</anon>
    <anon>Python</anon>
  </categories>
  <description>Python2.xのsuperのお話です*1。まさかの今の今まで知らなかったので戒めとして記録しておきます。 結論 結論から言えば「2回以上継承されうるクラスでは*2、super関数で親クラスを参照する場合は、super(self.__class__, self)ではなく、ちゃんとsuper(クラス名, self)と表記しなければならない。」ということです。 そもそもsuper関数とは？ super関数は、ドキュメントによればメソッドの呼び出しを type の親または兄弟クラスに委譲する、プロキシオブジェクトを返す関数です。イメージとしては、子クラスのインスタンスがbindされている親クラスの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshin.hateblo.jp%2Fentry%2F2013%2F11%2F01%2F211716&quot; title=&quot;super(self.__class__, self) は危険 (Python 2.x) - $ cat /var/log/shin&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>2013-11-01 21:17:16</published>
  <title>super(self.__class__, self) は危険 (Python 2.x)</title>
  <type>rich</type>
  <url>https://shin.hateblo.jp/entry/2013/11/01/211716</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
