{"provider_name":"Hatena Blog","title":" .pyc\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u30e1\u30e2","author_name":"itasuke","blog_url":"https://itasuke.hatenadiary.org/","categories":["Python"],"type":"rich","author_url":"https://blog.hatena.ne.jp/itasuke/","height":"190","provider_url":"https://hatena.blog","width":"100%","image_url":null,"published":"2011-03-14 00:00:00","version":"1.0","url":"https://itasuke.hatenadiary.org/entry/20110314/pyc_compile","blog_title":"\u304b\u305b\u304d\u306e\u3046\u3055\u304e\u3055\u3093","description":"\u6642\u3005\u3057\u304b\u3084\u3089\u306a\u3044\u304b\u3089\u65b9\u6cd5\u3092\u3044\u3064\u3082\u5fd8\u308c\u308b\u306a\u3002\u30e2\u30b8\u30e5\u30fc\u30eb compileall \u304b py_compile \u3092\u4f7f\u3046\u3068 .py\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066 .pyc\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3067\u304d\u308b\u3002\u3053\u308c\u3089\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u76f4\u63a5\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u4f8b\u3048\u3070 foo.py \u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u306b\u306f\u3053\u3046\u3059\u308b\u3002 python -m compileall foo.py \u3082\u3057\u304f\u306f python -m py_compile foo.py \u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u5168\u90e8\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u306a\u3089\u3053\u3046\u3002 python -m compileall . \u53c2\u8003 31.11. compileall \u2015 Byte-compile Pyt\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fitasuke.hatenadiary.org%2Fentry%2F20110314%2Fpyc_compile\" title=\" .pyc\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u30e1\u30e2 - \u304b\u305b\u304d\u306e\u3046\u3055\u304e\u3055\u3093\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}