Topic

Data Classes in Python 3.7: Why and How do They Compare to Existing Solutions? By: Brian Stempin By: Yiu Ming Huynh
Date: July 12, 2018, 6 p.m.
Python prides itself on being a language where “There should be one – and preferably only one – obvious way to do it” (PEP 20). One place where this isn’t really true is when it comes to the question of how to store data. There are several options: dictionaries, tuples, named tuples, vanilla Python classes, and Python classes decorated with the attrs library. PEP 557 adds a new way: Data classes. In this talk we will compare and contrast each approach, give listeners a way to figure out which one is best for their particular project, and share some performance metrics for those who are concerned with speed and memory footprints.
0 talk