{"url":"https://gom.hatenablog.com/entry/20090812/1250089816","title":"Python3.0\u3067\u5909\u308f\u3063\u305f\u4e8b2\u3064","image_url":null,"categories":["python"],"author_name":"gom68","provider_name":"Hatena Blog","description":"Decorator\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u66f8\u3044\u3066\u3044\u308b\u6642\u306b\u3001Python2.6\u3068 3.1 \u306e\u4e21\u65b9\u3067\u3084\u3063\u3066\u307f\u305f\u3002 \u305d\u306e\u6642\u306b\u306f\u307e\u3063\u305f\u5909\u66f4\u70b9\u30922\u3064\u30e1\u30e2\u3002 print \u304c\u69cb\u6587\u304b\u3089\u95a2\u6570\u306b\u5909\u66f4\u3055\u308c\u3066\u3044\u308b #python 3.1 print 'hoge' #=> Error! print('hoge') #=> hoge func_X \u306e\u95a2\u6570\u304c __X__\u306b\u5909\u66f4\u3055\u308c\u3066\u3044\u308b unc_X\u3068\u306f\u95a2\u6570\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306einspect\u3092\u884c\u3046\u95a2\u6570\u306e\u96c6\u307e\u308a\u3002 func_X\u3068\u540d\u3065\u3051\u3089\u308c\u3066\u3044\u305f\u95a2\u6570\u306e\u5c5e\u6027\u306f\u3001__X__\u3068\u3044\u3046\u30d5\u30a9\u30fc\u30e0\u306b\u6539\u79f0\u3055\u308c\u307e\u3057\u305f\u3002\u53e4\u3044func_X\u5f62\u5f0f\u306e\u540d\u524d\u306f\u95a2\u6570\u306e\u5c5e\u6027\u306e\u540d\u524d\u7a7a\u9593\u306f\u3001\u30e6\u30fc\u30b6\u304c\u5b9a\u7fa9\u3059\u308b\u5c5e\u6027(\u540d)\u3068\u3057\u3066\u89e3\u653e\u3055\u308c\u307e\u3057\u305f\u2026","height":"190","blog_title":"gom68\u306e\u65e5\u8a18","type":"rich","blog_url":"https://gom.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/gom68/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgom.hatenablog.com%2Fentry%2F20090812%2F1250089816\" title=\"Python3.0\u3067\u5909\u308f\u3063\u305f\u4e8b2\u3064 - gom68\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>","width":"100%","published":"2009-08-12 00:10:16","provider_url":"https://hatena.blog","version":"1.0"}