{"description":"Python\u3067\u81ea\u4f5c\u306e\u30c7\u30b3\u30ec\u30fc\u30bf(decorator)\u8a18\u8ff0\u65b9\u6cd5\u306b\u3064\u3044\u3066\u30e1\u30e2\u3002functools\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5229\u7528\u3059\u308b\u3068\u3001\u30c7\u30b3\u30ec\u30fc\u30bf\u5f0f\u9069\u7528\u5f8c\u306b\u3082\u5143\u95a2\u6570\u306e__name__\u3084__doc__\u3092\u7c21\u5358\u306b\u5f15\u304d\u7d99\u3052\u308b\u3002\uff08\u6c4e\u7528\u30c7\u30b3\u30ec\u30fc\u30bf\u3067\u306a\u3051\u308c\u3070\u4e0d\u8981\u304b\u3082\u3057\u308c\u306a\u3044\uff09 \u5f15\u6570\u7121\u3057\u30c7\u30b3\u30ec\u30fc\u30bf @my_deco def func(a, b, c): \"\"\"target function\"\"\" print(\"a={} b={} c={}\".format(a, b, c)) # func = my_deco(func)\u3068\u7b49\u4fa1 func(1, 2, c=3) print(\"{}:{}\".format(func.__name__, \u2026","url":"https://yohhoy.hatenadiary.jp/entry/20150313/p1","width":"100%","categories":["Python"],"image_url":null,"blog_url":"https://yohhoy.hatenadiary.jp/","title":"\u81ea\u4f5c\u30c7\u30b3\u30ec\u30fc\u30bf\u306e\u66f8\u304d\u65b9","provider_name":"Hatena Blog","published":"2015-03-13 00:00:00","provider_url":"https://hatena.blog","blog_title":"yohhoy\u306e\u65e5\u8a18","height":"190","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20150313%2Fp1\" title=\"\u81ea\u4f5c\u30c7\u30b3\u30ec\u30fc\u30bf\u306e\u66f8\u304d\u65b9 - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"yohhoy","author_url":"https://blog.hatena.ne.jp/yohhoy/","version":"1.0"}