News for hackers. Stuff that matters.
Re:Python 3.7 released by pseudalopex on Wednesday June 27, 2018 @11:56PM (#17413959)
Data classes are just regular classes with some methods generated for you. For now you still have to specify __slots__ manually to save memory.
Re:Python 3.7 released by mrfusion on Thursday June 28, 2018 @10:00AM (#17416901)
So what’s the point of specifying the types?
Re:Python 3.7 released by eesmith on Thursday June 28, 2018 @10:25AM (#17417100)
Over the last few years Python has gained a type annotation system. The primary goals are to improve testing, improve documentation (the type information is more likely to stay synchronized than docstring annotations), and improve user-feedback in environments like an IDE or Jupyter notebook.

These are called "type hints" because they are not enforced by the Python runtime.