summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2021-12-08 15:02:42 +0000
committerTomasz Kramkowski <tk@the-tk.com>2021-12-08 15:02:42 +0000
commit3e6359f7bc2f0425cbe35f1abea0002ffbbd089e (patch)
tree8ec1926dfee8e91627d163804a64b425bfa3304a
parent49872237e7f8a9b06986a73b3dacbf02041e7b33 (diff)
downloadaoc2021-3e6359f7bc2f0425cbe35f1abea0002ffbbd089e.tar.gz
aoc2021-3e6359f7bc2f0425cbe35f1abea0002ffbbd089e.tar.xz
aoc2021-3e6359f7bc2f0425cbe35f1abea0002ffbbd089e.zip
day 8: do not stringify the enum value
-rw-r--r--8.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/8.py b/8.py
index 1a55334..77c9072 100644
--- a/8.py
+++ b/8.py
@@ -5,7 +5,7 @@ from enum import IntEnum
fset = frozenset
-Seg = IntEnum('Seg', [(n, str(i)) for i, n in enumerate('ABCDEFG')])
+Seg = IntEnum('Seg', [(n, i) for i, n in enumerate('ABCDEFG')])
dig = [
fset((Seg.A, Seg.B, Seg.C, Seg.E, Seg.F, Seg.G)),