My Advent of Code solutions in Python. kevinyap.ca/2019/12/going-fast-in-advent-of-code/
advent-of-code python
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Handle optional capture groups in `parse_line`

+3
+3
2023/utils.py
··· 20 20 ret.append(int(match)) 21 21 except ValueError: 22 22 ret.append(match) 23 + except TypeError: 24 + # None match 25 + pass 23 26 24 27 return ret 25 28