January 16th, 2018

py.CheckIO: Variations of Data Classes

Programing, Python, by admin.

Hi Planet Python!

This is the first article in our blog this year and the last one of the Python Data Types series (before we were talking about arrays and dicts). We went through the available data classes in Python, such as collections.namedtuple, typing.NamedTuple, types.SimpleNamespace, and finally @dataclass decorator that was added to Python 3.7 (which py.CheckiO already supports).

PS: As always article is presented with code examples from CheckiO Players.

Back Top

Leave a Reply