advent/2020/7/paste

16 lines
885 B
Plaintext

File "/home/usr/git/adventofcode/2020/7/solution.py", line 52, in <module>
print(bagconfigurations(rules, Bag('shiny gold')))
File "/home/usr/git/adventofcode/2020/7/solution.py", line 42, in bagconfigurations
cnt += bagconfigurations(rules, i.bagspec())
File "/home/usr/git/adventofcode/2020/7/solution.py", line 42, in bagconfigurations
cnt += bagconfigurations(rules, i.bagspec())
File "/home/usr/git/adventofcode/2020/7/solution.py", line 42, in bagconfigurations
cnt += bagconfigurations(rules, i.bagspec())
[Previous line repeated 994 more times]
File "/home/usr/git/adventofcode/2020/7/solution.py", line 40, in bagconfigurations
if i.cancontain(bag): cnt += 1
File "/home/usr/git/adventofcode/2020/7/solution.py", line 27, in cancontain
if not i.color == bag.color: continue
RecursionError: maximum recursion depth exceeded in comparison