<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nishiohirokazu</author_name>
  <author_url>https://blog.hatena.ne.jp/nishiohirokazu/</author_url>
  <blog_title>西尾泰和のはてなダイアリー</blog_title>
  <blog_url>https://nishiohirokazu.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>文字列の比較で疑問から引用: d1 = 'a a' d2 = 'a a'id(d1) # =&gt; 27605856 id(d2) # =&gt; 27606080えっなんで？ 文字列は変更不可能なオブジェクトなので普通はisじゃなくて==で比較をするんだけどね。空白で区切られた同一内容の文字列を2つ、対話的環境で個別に作成してからisで比較するとFalseになるようだ。 Python 2.6.1 (r261:67515, Jan 25 2009, 00:21:48) [GCC 4.0.1 (Apple Inc. build 5490)] on darwin &gt;&gt;&gt; a = &quot;a a&quot; &gt;&gt;&gt; b = …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnishiohirokazu.hatenadiary.org%2Fentry%2F20091214%2F1260774215&quot; title=&quot;Pythonで2つの文字列がa == bだけどもnot(a is b)であるようなケース - 西尾泰和のはてなダイアリー&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>2009-12-14 16:03:35</published>
  <title>Pythonで2つの文字列がa == bだけどもnot(a is b)であるようなケース</title>
  <type>rich</type>
  <url>https://nishiohirokazu.hatenadiary.org/entry/20091214/1260774215</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
