Leaklens

sympy__sympy-16766

PythonCodePrinter doesn't support Indexed

Verdict: the fix is stated in the issue (Tier A).

We should add following method to `PythonCodePrinter`: ``` def _print_Indexed(self, expr): base, *index = expr.args return "{}[{}]".format(str(base), ", ".join([self._print(ind) for ind in index])) ```

The text states the fix: “We should add following method to `PythonCodePrinter`: ``` def _print_Indexed(self, expr): base, *index = expr.args return "{}[{}]".format(str(base), ", ".join([self._pr…”

All SWE-bench Verified tasks · more sympy/sympy tasks · How the check works