<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dekuo-03</author_name>
  <author_url>https://blog.hatena.ne.jp/dekuo-03/</author_url>
  <blog_title>工作と競馬2</blog_title>
  <blog_url>https://dekuo-03.hatenablog.jp/</blog_url>
  <categories>
    <anon>技術メモ#Python</anon>
  </categories>
  <description>概要 最近、Python2から3に乗り換えた。多少の違いがあるとのことだったが、多少ではなく結構違いがあってハマったのでメモしておく。必要があれば今後も追記。 詳細 base64.b64encode bytes, str, unicodeの扱いが変わったことによる差だろうからじっくり考えればわかるのだけど、変わらないだろうと思ったところが変わっているのでハマった。 Python2系のとき b64encodeはunicode文字列をそのまま入れてOK import base64 x = u&quot;hogehoge&quot; y = base64.b64encode(x) Python3系のとき b64enco…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdekuo-03.hatenablog.jp%2Fentry%2F2019%2F03%2F21%2F123213&quot; title=&quot;Python2と3での違いでハマったところをメモ - 工作と競馬2&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>2019-03-21 12:32:13</published>
  <title>Python2と3での違いでハマったところをメモ</title>
  <type>rich</type>
  <url>https://dekuo-03.hatenablog.jp/entry/2019/03/21/123213</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
