| 1 | initial version |
The error seems to be that one of the "pairs" has more than two elements.
To debug, you could try replacing
f,g = pairs.pop()
with
fg = pairs.pop()
try:
f, g = fg
except ValueError:
print(f'Error assigning "pair": f, g = {fg}')
raise
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.