Vladimir

18%
Flag icon
The default_factory parameter lets you provide a function, class, or any other callable, which will be invoked with zero arguments to build a default value each time an instance of the data class is created.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview