{"height":"190","author_url":"https://blog.hatena.ne.jp/kwatch/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkwatch.hatenadiary.org%2Fentry%2F20081018%2F1224296996\" title=\" \u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066\u52d5\u7684\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3059\u308b - k\u306a\u3093\u3068\u304b\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>","blog_title":"k\u306a\u3093\u3068\u304b\u306e\u65e5\u8a18","published":"2008-10-18 11:29:56","version":"1.0","author_name":"kwatch","provider_name":"Hatena Blog","width":"100%","blog_url":"https://kwatch.hatenadiary.org/","type":"rich","provider_url":"https://hatena.blog","url":"https://kwatch.hatenadiary.org/entry/20081018/1224296996","description":"Python \u3067\u3001\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066\u3042\u3068\u304b\u3089\u52d5\u7684\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f\u3001new \u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3046\u3002 import new class Foo(object): pass obj = Foo() obj.f1(\"abc\") #=> AttributeError: 'Foo' object has no attribute 'f1' def f1(self, arg): print repr(arg) Foo.f1 = new.instancemethod(f1, None, Foo) obj.f1(\"abc\") #=> 'abc' new \u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3053\u306e\u4ed6\u306b\u3082\u3001 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u30af\u30e9\u30b9\u2026","image_url":null,"title":" \u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066\u52d5\u7684\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3059\u308b","categories":["pyhon"]}