From 25605a21140af33eacc455631083e70f3f28c2b7 Mon Sep 17 00:00:00 2001 From: Stefan Israelsson Tampe Date: Thu, 6 Dec 2018 20:41:22 +0100 Subject: better guilemod --- modules/language/python/module/f.py | 45 +++---------------------------------- 1 file changed, 3 insertions(+), 42 deletions(-) (limited to 'modules/language/python/module/f.py') diff --git a/modules/language/python/module/f.py b/modules/language/python/module/f.py index 6de30e7..ea0d50f 100644 --- a/modules/language/python/module/f.py +++ b/modules/language/python/module/f.py @@ -1,45 +1,6 @@ module(f) -from enum import Enum, unique, auto, IntEnum +def g(x): + return x -class Color (Enum): - RED = 1 - GREEN = 2 - BLUE = 3 - -class Shape(Enum): - SQUARE = 2 - DIAMOND = 1 - CIRCLE = 3 - ALIAS_FOR_SQUARE = 2 - -class Color2 (Enum): - RED = auto() - GREEN = auto() - BLUE = auto() - -@unique -class Misstake(Enum): - ONE = 1 - TWO = 2 - THREE = 3 - FOUR = 4 - -class AutoName(Enum): - def _generate_next_value_(name, start, count, last_values): - return name - - -class Ordinal(AutoName): - NORTH = auto() - SOUTH = auto() - EAST = auto() - WEST = auto() - -class Num(IntEnum): - One = 1 - Two = 2 - Three = 3 - - -__all__ = ['Color','Shape','Color2','Misstake','Ordinal','Num'] +__all__ = ['g'] -- cgit v1.2.3