{"author_name":"CortYuming","blog_url":"https://cortyuming.hateblo.jp/","provider_url":"https://hatena.blog","width":"100%","version":"1.0","type":"rich","categories":["Python"],"url":"https://cortyuming.hateblo.jp/entry/20131101/p1","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcortyuming.hateblo.jp%2Fentry%2F20131101%2Fp1\" title=\" Python \u3067\u30c7\u30b6\u30d1\u30bf -- \u30b7\u30f3\u30b0\u30eb\u30c8\u30f3/Singleton - \u724c\u8a9e\u5099\u5fd8\u9332 -pygo\" 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":"\u724c\u8a9e\u5099\u5fd8\u9332 -pygo","provider_name":"Hatena Blog","published":"2013-11-01 00:00:01","image_url":null,"description":"(Python2.7) Singleton pattern \u5143\u30cd\u30bf \u30b7\u30f3\u30b0\u30eb\u30c8\u30f3 Ruby 2.0.0 \u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u901f\u653b\u7fd2\u5f97[Singleton][Design Pattern] - \u9152\u3068\u6cea\u3068Ruby\u3068Rails\u3068 singleton_module.py class Singleton(object): def __init__(self): self.counter = 0 get_singleton = Singleton() main.py from singleton_module import get_singleton obj1 = get_singleton obj1.cou\u2026","author_url":"https://blog.hatena.ne.jp/CortYuming/","title":" Python \u3067\u30c7\u30b6\u30d1\u30bf -- \u30b7\u30f3\u30b0\u30eb\u30c8\u30f3/Singleton","height":"190"}