immutableIf all you need is an immutable data container without any behavior then namedtuple might be a better alternative Python Classes, namedtuples and __slots__ - maurodec.comData types are needed in pretty much every program that needs to store and manipulate data. These types usually have little to no behavior and simply exist to keep track of information in a structured and orderly way. Recently, PEP 557 (Data Classes) was accepted, however, it won’t appear until Python 3.7.https://maurodec.com/blog/classes-namedtuples-slots/