Back to questions
QuestionMediumPythonInterview · Navio

Dataclasses, frozen fields and descriptors

How does @dataclass reduce boilerplate, what does frozen=True do, and how do descriptors or properties relate to attribute access?

Answer as you would in an interview

Answer aloud or write down a few key points. The text field is optional; the review opens after your attempt.

Loading
Dataclasses, frozen fields and descriptors — interview question — ML Mentor