Dynamically generated methods with a non-generic signature - Adrin Jalali
HTML-код
- Опубликовано: 29 окт 2024
- [EuroPython 2023 - Forum Hall on 2023-07-19]
ep2023.europyt...
In other words, Descriptors + PEP-362 (function signature object) and a seasoning of PEP-487 (simpler customization of class creation via `__init_subclass__`).
There are different ways to have generated methods and attributes attached to all classes in a library, and this talk presents the way we’re doing it in scikit-learn. Here you’ll understand the use-case, and see the details and challenges presented by it, and how we approached them.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License creativecommons...