From a3ebf2cb877da9fe394b53ee194fa44d4f425619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 7 Jan 2019 18:09:05 +0100 Subject: [PATCH] Inline --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 4b5afdc..fbc35d3 100644 --- a/README.md +++ b/README.md @@ -523,7 +523,7 @@ Direction = Enum('Direction', 'n e s w') Cutlery = Enum('Cutlery', {'knife': 1, 'fork': 2, 'spoon': 3}) # Warning: Objects will share the objects that are initialized in the dictionary! -Creature = type('Creature', (), {'position': Point(0, 0), 'direction': Direction.n}) +Creature = type('Creature', (), {'p': Point(0, 0), 'd': Direction.n}) creature = Creature() ``` @@ -633,7 +633,6 @@ class (Enum): = = , = auto() # Can be used for automatic indexing. - ... @classmethod def get_member_names(cls):