<?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>Pythonのreprとevalを使ったらお手軽にシリアライズ・デシリアライズできるんじゃないか？ &gt;&gt;&gt; d = {&quot;x&quot;: 1.0, &quot;y&quot;: 0.5} &gt;&gt;&gt; repr(d) &quot;{'y': 0.5, 'x': 1.0}&quot; &gt;&gt;&gt; eval(repr(d)) {'y': 0.5, 'x': 1.0} という話を聞いて「いやいやNaNとかInfinityとかが通らないでしょ」と思ったわけだけど &gt;&gt;&gt; d = {&quot;x&quot;: 1e999, &quot;y&quot;: 1e999 / 1e999} &gt;&gt;&gt; d {'y': nan, 'x': inf} &gt;&gt;&gt; repr(d) &quot;{'y': nan, 'x': inf…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnishiohirokazu.hatenadiary.org%2Fentry%2F20110606%2F1307334288&quot; title=&quot;repr/evalでお手軽シリアライズ？ - 西尾泰和のはてなダイアリー&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>2011-06-06 13:24:48</published>
  <title>repr/evalでお手軽シリアライズ？</title>
  <type>rich</type>
  <url>https://nishiohirokazu.hatenadiary.org/entry/20110606/1307334288</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
