{"provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/pknight/","blog_title":"(void*)P\u306a\u3044\u3068","published":"2017-03-03 13:49:07","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpknight.hatenablog.com%2Fentry%2F20170303%2F1488516547\" title=\"\u30c7\u30b3\u30ec\u30fc\u30bf - (void*)P\u306a\u3044\u3068\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","width":"100%","height":"190","version":"1.0","author_name":"pknight","provider_name":"Hatena Blog","image_url":null,"title":"\u30c7\u30b3\u30ec\u30fc\u30bf","categories":["Python3"],"blog_url":"https://pknight.hatenablog.com/","description":"\u5165\u9580Python3 4.9 \u30c7\u30b3\u30ec\u30fc\u30bf\u3068\u3044\u3046\u540d\u524d\u304c\u3064\u3044\u3066\u307e\u3059\u304c\u3001\u5185\u5bb9\u306f\u51c4\u304f\u5358\u7d14\u3067\u3059\u3002\u307e\u305a\u306f\u7269\u51c4\u304f\u30b7\u30f3\u30d7\u30eb\u306b\u5b9f\u88c5\u3057\u3066\u307f\u305f\u30c7\u30b3\u30ec\u30fc\u30bf\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002 def bar(func): return \"bar\" @bar def foo(): pass print(foo) $ py main.py barfoo\u95a2\u6570\u5b9a\u7fa9\u306e\u524d\u306b@bar\u3068\u66f8\u304f\u3060\u3051\u3067\u3059\u3002foo\u304c\u95a2\u6570\u3067\u306f\u306a\u304f\u3001\"bar\"\u3068\u3044\u3046\u6587\u5b57\u5217\u306b\u5909\u308f\u3063\u3066\u3044\u307e\u3059\u3002\u3058\u3064\u306f\u3053\u308c\u4ee5\u4e0b\u306e\u51e6\u7406\u3068\u307e\u3063\u305f\u304f\u540c\u3058\u3053\u3068\u3092\u3057\u3066\u3044\u307e\u3059\u3002 def bar(func): return \"bar\" def foo(): pass foo = bar(foo) # @bar\u3068\u307e\u3063\u305f\u304f\u2026","url":"https://pknight.hatenablog.com/entry/20170303/1488516547"}