{"published":"2009-07-10 00:45:00","url":"https://memo.sugyan.com/entry/20090710/1247154300","provider_name":"Hatena Blog","type":"rich","blog_url":"https://memo.sugyan.com/","blog_title":"\u3059\u304e\u3083\u30fc\u3093\u30e1\u30e2","author_name":"sugyan","height":"190","author_url":"https://blog.hatena.ne.jp/sugyan/","description":"\u95a2\u6570\u306f\u3001func_code\u3068\u3044\u3046attribute\u306bcode object\u306a\u308b\u3082\u306e\u304c\u5165\u3063\u3066\u3044\u308b\u305d\u3046\u306a\u3002 \u3053\u308c\u304c\u5b9f\u969b\u306b\u884c\u3046\u51e6\u7406\u3092\u6301\u3063\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u547c\u3073\u51fa\u3057\u305f\u3068\u304d\u306e\u51e6\u7406\u3092\u3053\u3053\u3067\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 >>> def hoge(): ... print 'hoge' ... >>> def fuga(): ... print 'fuga' ... >>> hoge() hoge >>> fuga() fuga >>> hoge.func_code = fuga.func_code >>> hoge() fuga >>> \u306a\u308b\u307b\u3069\u306d\u30fc\u3002\u3053\u3093\u306a\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u304b\u3002 \u3060\u3093\u3060\u3093Python\u304c\u9762\u767d\u304f\u306a\u3063\u3066\u304d\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo.sugyan.com%2Fentry%2F20090710%2F1247154300\" title=\"\u95a2\u6570\u306e\u547c\u3073\u51fa\u3057\u6642\u306e\u51e6\u7406\u3092\u5165\u308c\u66ff\u3048\u308b - \u3059\u304e\u3083\u30fc\u3093\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u95a2\u6570\u306e\u547c\u3073\u51fa\u3057\u6642\u306e\u51e6\u7406\u3092\u5165\u308c\u66ff\u3048\u308b","version":"1.0","provider_url":"https://hatena.blog","categories":["Python"],"width":"100%","image_url":null}