<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>itasuke</author_name>
  <author_url>https://blog.hatena.ne.jp/itasuke/</author_url>
  <blog_title>かせきのうさぎさん</blog_title>
  <blog_url>https://itasuke.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>時々しかやらないから方法をいつも忘れるな。モジュール compileall か py_compile を使うと .pyファイルをコンパイルして .pycファイルを作成できる。これらのモジュールは直接実行できるようになっているので、例えば foo.py をコンパイルするにはこうする。 python -m compileall foo.py もしくは python -m py_compile foo.py カレントディレクトリ以下にあるファイルを全部コンパイルするならこう。 python -m compileall . 参考 31.11. compileall ― Byte-compile Pyt…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fitasuke.hatenadiary.org%2Fentry%2F20110314%2Fpyc_compile&quot; title=&quot; .pycファイルを作成する方法メモ - かせきのうさぎさん&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-03-14 00:00:00</published>
  <title> .pycファイルを作成する方法メモ</title>
  <type>rich</type>
  <url>https://itasuke.hatenadiary.org/entry/20110314/pyc_compile</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
