{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxaro.hatenablog.jp%2Fentry%2F2016%2F02%2F17%2F231526\" title=\"Python Puzzler \u300cPuzzle 2: __iter__ VS. __getitem__\u300d - \u4f55\u304b\u3092\u66f8\u304d\u7559\u3081\u308b\u4f55\u304b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2016-02-17 23:15:26","author_url":"https://blog.hatena.ne.jp/XaroCydeykn/","width":"100%","author_name":"XaroCydeykn","height":"190","blog_title":"\u4f55\u304b\u3092\u66f8\u304d\u7559\u3081\u308b\u4f55\u304b","blog_url":"https://xaro.hatenablog.jp/","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","version":"1.0","url":"https://xaro.hatenablog.jp/entry/2016/02/17/231526","categories":["Python","Python Puzzler"],"description":"Puzzle 2: __iter__ VS. __getitem__ \u30a4\u30c6\u30e9\u30d6\u30eb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u306f__iter__()\u307e\u305f\u306f__getitem__()\u304c\u5b9a\u7fa9\u3055\u308c\u305f\u30af\u30e9\u30b9\u306e\u3053\u3068\u3067\u3042\u308b\u3002 \u6b21\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u534a\u89d2\u82f1\u5927\u6587\u5b57\u3092\u305f\u3069\u308b\u30a4\u30c6\u30ec\u30fc\u30bf\u3092\u63d0\u4f9b\u3059\u308b\u30a4\u30c6\u30e9\u30d6\u30eb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30af\u30e9\u30b9\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3002 \u4ee5\u4e0b\u3092\u5b9f\u884c\u3059\u308b\u3068\u3069\u306e\u3088\u3046\u306a\u51fa\u529b\u304c\u8fd4\u3055\u308c\u308b\u304b\u3002 import string class UpperCase(object): def __init__(self, first=None): self.index = -1 if first is None else string.ascii_uppercase.\u2026","title":"Python Puzzler \u300cPuzzle 2: __iter__ VS. __getitem__\u300d","image_url":null,"type":"rich"}