<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pknight</author_name>
  <author_url>https://blog.hatena.ne.jp/pknight/</author_url>
  <blog_title>(void*)Pないと</blog_title>
  <blog_url>https://pknight.hatenablog.com/</blog_url>
  <categories>
    <anon>Python3</anon>
  </categories>
  <description>Pythonでの演算子のオーバーロードは特殊メソッドで実現できます。全部網羅してるわけではないですが、いくつか列挙してみます。 比較演算子系のオーバーロード 特殊メソッド名 例 __lt__(self, other) self __le__(self, other) self __eq__(self, other) self == ohter __ne__(self, other) self != other __gt__(self, other) self &gt; other __ge__(self, other) self &gt;= other 特殊メソッドが呼ばれているかprintを入れて確認し…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpknight.hatenablog.com%2Fentry%2F20170321%2F1490061276&quot; title=&quot;Pythonでの演算子のオーバーロード - (void*)Pないと&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>2017-03-21 10:54:36</published>
  <title>Pythonでの演算子のオーバーロード</title>
  <type>rich</type>
  <url>https://pknight.hatenablog.com/entry/20170321/1490061276</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
