From 097c839b7bbf03dd2ee50c9ccabde147e6bf285e Mon Sep 17 00:00:00 2001 From: Gnomino Date: Sun, 11 Oct 2015 13:47:44 +0200 Subject: Changed way of creating classes --- fr-fr/python3-fr.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fr-fr') diff --git a/fr-fr/python3-fr.html.markdown b/fr-fr/python3-fr.html.markdown index b687143c..22256efc 100644 --- a/fr-fr/python3-fr.html.markdown +++ b/fr-fr/python3-fr.html.markdown @@ -570,8 +570,8 @@ filter(lambda x: x > 5, [3, 4, 5, 6, 7]) # => [6, 7] #################################################### -# On hérite de object pour créer une classe -class Human(object): +# On utilise l'opérateur "classe" pour définir une classe +class Human: # Un attribut de la classe. Il est partagé par toutes les instances de la classe. species = "H. sapiens" -- cgit v1.2.3