классы, дескрипторы, дандер-методыclasses, descriptors, dunder methods
В отличие от Rust/Go, в Python есть настоящие классы и наследование (включая множественное, с MRO по C3-линеаризации) — но ряд механизмов устроен нестандартно: перегрузки методов по сигнатуре нет вообще, различие Unlike Rust/Go, Python has real classes and inheritance (including multiple inheritance, with MRO via C3 linearization) — but several mechanisms work differently from the classic OOP languages: there's no method overloading by signature at all, the __new__ и vs __init__ путают почти всех, а свойства (property) — полноценная языковая фича, а не заглушка. Раздел раскладывает 14 базовых концепций ООП плюс полиморфизм на реальную семантику Python — из них не попали в список события и константы, у которых в Python нет обеспеченного языком аналога. Каркас: 17 карточек, страницы ещё не написаны. Дополняет python/language/, где декораторы/dataclasses/метаклассы уже описаны на уровне фич языка — здесь тот же материал разложен по рамке классического ООП. split trips up almost everyone, and properties are a first-class language feature rather than a stand-in. This section maps the 14 baseline OOP concepts plus polymorphism onto Python's real semantics — 2 of the baseline concepts, events and constants, are missing since Python has no language-enforced analog for either. Skeleton: 17 cards, pages not yet written. Complements python/language/, which already covers decorators/dataclasses/metaclasses at the language-feature level — this section reframes the same material through the classic-OOP lens.
статусstatus
Это каркас: 2 подраздела и 17 карточек зафиксированы, страницы ещё не написаны. К 14 базовым концепциям ООП добавлен полиморфизм (утиная типизация, ABC/Protocol); событий и констант в списке нет — в Python нет для них обеспеченного языком аналога (только соглашения). Метка interview отмечает самые частые темы на собеседованиях: различие __new__/__init__, свойства, дандер-методы, MRO/множественное наследование, полиморфизм через duck typing, грабля с изменяемым значением по умолчанию.This is a skeleton: 2 subsections and 17 cards are locked in, pages not yet written. Polymorphism (duck typing, ABC/Protocol) was added to the 14 baseline OOP concepts; events and constants are missing from the list since Python has no language-enforced analog for either (only conventions). The interview tag marks the most common interview topics: the __new__/__init__ split, properties, dunder methods, MRO/multiple inheritance, duck-typing polymorphism, the mutable-default-argument gotcha.