{"height":"190","width":"100%","provider_url":"https://hatena.blog","categories":["Python 3"],"description":"ctypes 1.1.0\u306eStructure\u7cfb\u30af\u30e9\u30b9\u3067__slot__\u3092\u6307\u5b9a\uff08\u6d88\u8cbb\u30e1\u30e2\u30ea\u306e\u7bc0\u7d04\uff09\u3059\u308b\u3068\u304d\u3001_fields_\u306e\u4e2d\u8eab\u306f\u8003\u616e\u3057\u306a\u304f\u3066\u5927\u4e08\u592b\u305d\u3046\u3067\u3059\u3002\u3068\u308a\u3042\u3048\u305a\u3064\u3051\u3066\u304a\u304f\u3068\u30e1\u30e2\u30ea\u7bc0\u7d04\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002 from ctypes import Structure, c_int32 class Dummy1(Structure): _fields_ = ((\"x\", c_int32),) class Dummy2(Structure): _fields_ = ((\"x\", c_int32),) __slots__ = () dummy1 = Dummy1() dummy2 = Dummy\u2026","author_name":"potisan","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2025%2F04%2F08%2F211054\" title=\"Python ctypes 1.1.0 Structure\u7cfb\u30af\u30e9\u30b9\u306e__slot__\u6307\u5b9a\u306f_fields_\u306e\u4e2d\u8eab\u306f\u8003\u616e\u3057\u306a\u304f\u3066\u5927\u4e08\u592b\u305d\u3046 - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/potisan/","url":"https://potisan-programming-memo.hatenablog.jp/entry/2025/04/08/211054","provider_name":"Hatena Blog","published":"2025-04-08 21:10:54","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","type":"rich","version":"1.0","image_url":null,"blog_url":"https://potisan-programming-memo.hatenablog.jp/","title":"Python ctypes 1.1.0 Structure\u7cfb\u30af\u30e9\u30b9\u306e__slot__\u6307\u5b9a\u306f_fields_\u306e\u4e2d\u8eab\u306f\u8003\u616e\u3057\u306a\u304f\u3066\u5927\u4e08\u592b\u305d\u3046"}