From 748827507a5261d8a60eb43fabc785b52ad84df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 30 Jan 2019 07:47:02 +0100 Subject: [PATCH] Cutlery --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8684755..0bf5fc1 100644 --- a/README.md +++ b/README.md @@ -540,7 +540,7 @@ point = Point(0, 0) ```python from enum import Enum Direction = Enum('Direction', 'n e s w') -Cutlery = Enum('Cutlery', {'knife': 1, 'fork': 2, 'spoon': 3}) +Cutlery = Enum('Cutlery', {'fork': 1, 'knife': 2, 'spoon': 3}) ``` ```python @@ -800,9 +800,9 @@ random_member = random.choice(list()) ### Inline ```python -Cutlery = Enum('Cutlery', ['knife', 'fork', 'spoon']) -Cutlery = Enum('Cutlery', 'knife fork spoon') -Cutlery = Enum('Cutlery', {'knife': 1, 'fork': 2, 'spoon': 3}) +Cutlery = Enum('Cutlery', ['fork', 'knife', 'spoon']) +Cutlery = Enum('Cutlery', 'fork knife spoon') +Cutlery = Enum('Cutlery', {'fork': 1, 'knife': 2, 'spoon': 3}) ``` #### Functions can not be values, so they must be wrapped: