<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>niyarin-man</author_name>
  <author_url>https://blog.hatena.ne.jp/niyarin-man/</author_url>
  <blog_title>Niyarin's code</blog_title>
  <blog_url>https://niyarin-code.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Pythonのバイトコードのpycの最初の4バイトにはマジックナンバーがあって、どのバージョンで作成されたのか分かるようになっている。 各バージョンのマジックナンバーはLib/importlib/_bootstrap_external.pyを見れば分かる。 マジックナンバーは、各バージョンごとに用意されている2バイトの数値+168627479になっている。 pycからバージョンを調べる まず、中身をみる。 $ od -tx1 a.pyc 0000000 17 0d 0d 0a b2 cb 3e 59 1f 00 00 00 e3 00 00 00 0000020 00 00 00 00 00 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fniyarin-code.hatenablog.com%2Fentry%2F2017%2F06%2F13%2F044117&quot; title=&quot;pycのマジックナンバーについて調べました。 - Niyarin&amp;#39;s code&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>2017-06-13 04:41:17</published>
  <title>pycのマジックナンバーについて調べました。</title>
  <type>rich</type>
  <url>https://niyarin-code.hatenablog.com/entry/2017/06/13/044117</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
