<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shomah4a</author_name>
  <author_url>https://blog.hatena.ne.jp/shomah4a/</author_url>
  <blog_title>プログラマのネタ帳</blog_title>
  <blog_url>https://shomah4a.hatenadiary.org/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>twitter 上で Python の += の挙動がキモイよねという話が一部で盛り上がっていた。 発端は多分このつぶやきで、私はこれには大いに賛同する。 そう思う理由としては += したら参照が書き換わるから副作用なんかないだろ そもそも x += y は x = x + y と同じ意味だろ という二つの感覚から来ていて、 += で副作用が発生するなんて全く思っていなかったという部分がある。 まあ実際は x += y は x = x.__iadd__(y) の糖衣構文なので、 += したら参照を張り替えるし、副作用も起こりうる __iadd__ が定義されていない場合は x = x + y …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshomah4a.hatenadiary.org%2Fentry%2F20120420%2F1334928621&quot; title=&quot; 嫌い! - プログラマのネタ帳&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>2012-04-20 22:30:21</published>
  <title> 嫌い!</title>
  <type>rich</type>
  <url>https://shomah4a.hatenadiary.org/entry/20120420/1334928621</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
