Repository with sources and generator of https://larlet.fr/david/ https://larlet.fr/david/
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

index.md 1.1KB

title: Python dataclasses lang: en

Data classes are one of the new features of Python 3.7. With data classes, you do not have to write boilerplate code to get proper initialization, representation, and comparisons for your objects.

*The Ultimate Guide to Data Classes in Python 3.7* (cache)

New product, great occasion to test new features given their pertinence. If you have that opportunity, be aware that cross-references are still not dealt with but their postponed evaluation is accepted. Which means that it is only a matter of time before we can self reference an annotation, like for a classmethod for instance. Anyway, it’s great to have a backport of that feature for Python 3.6!

Note: mypy accepts cross-references as raw chain of characters: -> 'Articles'.