Page MenuHomePhabricator

Javascript and Python implementations can't return list of lists of rational numbers
Open, MediumPublicBUG REPORT

Description

Steps to replicate the issue:

What happens?:
Both javascript and python implementations fail the testcase:

JS error: "bigint are forbidden in JSON.stringify"
Python error: "Could not serialize input Python object: Fraction(1, 1)"

What should have happened instead?:
Both implementations shouldn't have failed.

Event Timeline

Jdforrester-WMF edited projects, added: function-evaluator; removed: WikiLambda.

Similar thing is happening with Z35298. Seems that nested lists in general don't work in Python implementations (unsure about JavaScript).