Closed Dapid closed 1 year ago
From the mailing list:
This fails
#pythran export foobar(int:complex dict) def foobar(pts): for i, p in pts.items(): return p
Also setting the keys to anything else than int, as long as the values are complex.
The error is
/home/david/.virtualenv/py39/lib/python3.9/site-packages/pythran/pythonic/types/dict.hpp:36:22: error: call of overloaded ‘make_tuple(const long int&, const std::complex<double>&)’ is ambiguous 36 | return make_tuple(tmp.first, tmp.second); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
This works, though, so tuples can take complex values:
#pythran export foo(complex, int) def foo(a, b): return (a, b)
From the mailing list:
This fails
Also setting the keys to anything else than int, as long as the values are complex.
The error is
This works, though, so tuples can take complex values: