{"title":"\u30a8\u30ad\u30b9\u30d1\u30fc\u30c8Python\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30c7\u30b3\u30ec\u30fc\u30bf","blog_title":"by shigemk2","url":"https://www.shigemk2.com/entry/20130720/1374330972","blog_url":"https://www.shigemk2.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20130720%2F1374330972\" title=\"\u30a8\u30ad\u30b9\u30d1\u30fc\u30c8Python\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30c7\u30b3\u30ec\u30fc\u30bf - by shigemk2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","author_name":"shigemk2","image_url":null,"categories":["\u8aad\u66f8\u30ce\u30fc\u30c8"],"provider_url":"https://hatena.blog","width":"100%","version":"1.0","author_url":"https://blog.hatena.ne.jp/shigemk2/","description":"# before 2.3 class WhatFor(object): def it(cls): print ('work with %s' % cls) it = classmethod(it) # make it classmethod def uncommon(): print ('I could be a global function') uncommon = staticmethod(uncommon) # make it staticmethod whatfor = WhatFor() whatfor.it() # work with <class '__main__.WhatF\u2026","published":"2013-07-20 23:36:12","type":"rich","provider_name":"Hatena Blog"}