{"blog_title":"Keep on moving","image_url":null,"categories":["python"],"author_url":"https://blog.hatena.ne.jp/Ehren/","description":"\u3053\u3093\u306b\u3061\u306fPython\u754c\u306e\u30ec\u30a2\u30ad\u30e3\u30e9\u3067\u3059\u3002 dataclass\u304b\u3089\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c attrs\u3067\u3042\u3063\u305f\u6a5f\u80fd\u304c\u53d6\u308a\u8fbc\u307e\u308c\u307e\u3057\u305f\u3002 \u4ee5\u524d\u66f8\u3044\u305f\u8a18\u4e8b\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3057\u3066\u304a\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002 TL;DR dataclass\u306bkw_only\u3068 slots\u304c\u5165\u3063\u305f attrs\u306e\u3064\u304b\u3044\u3069\u3053\u308d \u30dc\u30a4\u30e9\u30fc\u30d7\u30ec\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u907f\u3051\u305f\u3044.(\u7279\u306bdataclass\u306b\u306a\u3044\u6a5f\u80fd\u3092\u5229\u7528\u3057\u305f\u3044) \u4ecaPython3.9 \u4ee5\u4e0b\u3092\u4f7f\u3063\u3066\u3044\u308b\u3057\u3001\u4eca\u5f8cdataclass\u3092\u4f7f\u3044\u305f\u3044. \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u304d\u3061\u3093\u3068\u8aad\u3080\u3068\u8272\u3005\u66f8\u3044\u3066\u3042\u308b docs.python.org kw_only https://docs.python.org/ja/3.10/glo\u2026","width":"100%","height":"190","type":"rich","blog_url":"https://masahito.hatenablog.com/","provider_url":"https://hatena.blog","url":"https://masahito.hatenablog.com/entry/2022/10/08/171535","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmasahito.hatenablog.com%2Fentry%2F2022%2F10%2F08%2F171535\" title=\"DataClass 3.10\u3067\u306e\u6a5f\u80fd\u8ffd\u52a0(kw_only, slots) - Keep on moving\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","author_name":"Ehren","provider_name":"Hatena Blog","published":"2022-10-08 17:15:35","title":"DataClass 3.10\u3067\u306e\u6a5f\u80fd\u8ffd\u52a0(kw_only, slots)"}