{"image_url":null,"categories":["\u6280\u8853"],"blog_title":"\u898b\u7fd2\u3044\u30a8\u30f3\u30b8\u30cb\u30a2\u899a\u66f8","version":"1.0","title":"TypeError: unorderable types\u3067\u30cf\u30de\u3063\u305f\u306e\u3067Python\u306e\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u65b9\u3092\u8abf\u3079\u3066\u307f\u305f","provider_name":"Hatena Blog","published":"2017-03-31 23:19:45","type":"rich","width":"100%","description":"TypeError at /hoge/ unorderable types: method() < method() class A: def get_a(self): return self.count class B: def get_b(self): return self.count a = A() b = B() if a.get_a < b.get_b: # unorderable types: method() < method() ... \u30a8\u30e9\u30fc\u306e\u539f\u56e0\u306f\u3001\u305f\u3060\u5358\u306b\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u6642\u306b\u62ec\u5f27\u304c\u306a\u304b\u3063\u305f\u3060\u3051\u3002 if a.get_a() < b.get_b(): \u3053\u3093\u306a\u5358\u7d14\u306a\u30df\u30b9\u3067\u6642\u9593\u2026","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/JDengineer/","author_name":"JDengineer","height":"190","url":"https://jd-engineer.hateblo.jp/entry/2017/03/31/231945","blog_url":"https://jd-engineer.hateblo.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjd-engineer.hateblo.jp%2Fentry%2F2017%2F03%2F31%2F231945\" title=\"TypeError: unorderable types\u3067\u30cf\u30de\u3063\u305f\u306e\u3067Python\u306e\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u65b9\u3092\u8abf\u3079\u3066\u307f\u305f - \u898b\u7fd2\u3044\u30a8\u30f3\u30b8\u30cb\u30a2\u899a\u66f8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}