Learn Python OOP in French: 59 Flashcards on Classes, Héritage and Méthodes Magiques
Study Python object-oriented programming in French with deck EO1367: 59 flashcards on classes, self, super(), MRO, dunder methods, @property and metaclasses.

Studying. But it's also a video game. 🎮
Flashcards, quizzes and games that make you actually remember.
Posted by
Related reading
Learn Python OOP in German: 59 Flashcards on Klassen, Vererbung and Magische Methoden
Study Python OOP with German explanations: 59 real flashcards on Klassen, Vererbung, MRO, Kapselung and dunder methods, plus 4 cards to fix and überschreiben vs überladen.
Master Python OOP in Spanish: 59 Flashcards on Clases, Herencia and Métodos Mágicos
Learn Python object-oriented programming with Spanish explanations: 59 real flashcards on clases, herencia, MRO, métodos mágicos and the Spanish terms to know.
Learn Python OOP: 59 Flashcards from __init__ and self to Dunder Methods and Metaclasses
Master Python OOP with 59 flashcards: classes, self, super() and MRO, @property, dunder methods, __slots__, dataclasses, ABCs and metaclasses, with study tips.
Deck EO1367 – Python : fondamentaux de la POO is the French edition of our English Python OOP deck: the same 59 concepts, with the Python term on the front and a French explanation on the back. Use it if you study informatique in French, read French tutorials, or need to explain classes to French-speaking teammates.
Study this deck: Python : fondamentaux de la POO
1 / 10Class in Python
Tap the card for the answer · swipe right if you knew it, left if not
Sample cards (real French backs)
| Front | Back |
|---|---|
| Instance | Un objet créé à partir d'une classe. Chaque instance possède ses propres données mais partage les méthodes. |
| Class attributes | Variables partagées par toutes les instances, définies directement dans le corps de la classe. |
| Method overriding | La classe enfant redéfinit une méthode de la classe parente… On peut appeler la version parente avec super(). |
| MRO | Ordre dans lequel Python recherche les méthodes… Utilise la linéarisation C3. |
| Name mangling | __attribute devient _ClassName__attribute. Ce n'est pas un mécanisme de sécurité, juste une convention. |
__repr__ | Représentation destinée aux développeurs, non ambiguë… Sert de repli pour __str__. |
__enter__ and __exit__ | Méthodes de gestionnaire de contexte pour l'instruction with. |
__del__ | Destructeur appelé lorsque l'objet est récupéré par le ramasse-miettes… utiliser plutôt des gestionnaires de contexte. |
| Dataclass | @dataclass génère automatiquement __init__, __repr__, __eq__. Réduit le code répétitif. |
What the deck covers
Classes, instances, self, __init__, instance vs class attributes, instance/class/static methods (@classmethod, @staticmethod), inheritance, super(), multiple inheritance and MRO, polymorphism, encapsulation, private attributes, @property getters and setters, dunder methods (__str__, __len__, __getitem__, __setitem__, __eq__, __add__, __call__, __iter__, __next__, __bool__, __hash__), duck typing, isinstance(), issubclass(), getattr()/setattr()/delattr(), __dict__, __class__, ABCs, __new__, singletons, composition over inheritance, method chaining, descriptors, __slots__, __getattr__ vs __getattribute__ and metaclasses.
The French vocabulary to lock in
- redéfinition = overriding. Don't confuse it with surcharge, which means overloading. Many French tutorials use the two interchangeably, and the deck uses the right word.
- méthode magique (or méthode spéciale) = dunder method; ramasse-miettes = garbage collector; gestionnaire de contexte = context manager; interface fluide = fluent interface; code répétitif = boilerplate.
- Several English terms stay untranslated in French code reviews: name mangling, duck typing, slots.
Tips specific to this deck
- Fix the capitals when you review. Some fronts were sentence-cased automatically (
Self,Super(),Isinstance(),Getattr(),Type()). Python is case-sensitive, so read them asself,super(),isinstance(). TypingSelfin a method signature does not do the same thing. - Add nuance to three backs. An
ABCsubclass can only not be instantiated if it still has an unimplemented@abstractmethod. Defining__eq__without__hash__sets__hash__toNone, so your objects can't go into aset. The singleton on card 50 storescls.instance, which subclasses inherit throughhasattr, so a subclass returns the parent's instance. Use acls.__dict__check if you subclass it.
If you'd rather revise the same material in German, see our Python built-ins Eingebaute Funktionen edition.
Ready to learn faster? 🚀
Join FLIP IT for free and turn studying into a game.