<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>methane</author_name>
  <author_url>https://blog.hatena.ne.jp/methane/</author_url>
  <blog_title>methaneのブログ</blog_title>
  <blog_url>https://methane.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>bzr</anon>
  </categories>
  <description>builtin の compile() 関数に encoding オプションをつけた IPythonやIDLEといったPython製Pythonインタラクティブシェルは、compile()関数を使ってユーザーが入力したコード片をコンパイルするんだけど、そのコード片をutf-8のコンテキストでコンパイルしていた。 例えば、 compile(&quot;u'\x82\xa0'&quot;, &quot;&quot;, &quot;single&quot;) した結果を exec すると、 u&quot;あ&quot; ではなく u&quot;\u0082\u00a0&quot; という扱いになってしまう。逆に compile(u&quot;'あ'&quot;, &quot;&quot;, &quot;single&quot;) だと、出てくるバイト列は …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F20091004%2F1254641400&quot; title=&quot; 今週の成果 - methaneのブログ&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-10-04 16:30:00</published>
  <title> 今週の成果</title>
  <type>rich</type>
  <url>https://methane.hatenablog.jp/entry/20091004/1254641400</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
