Specifically two related issues: - Nan's should be lowercased (similar to #3034) - Signs for nan should be included (always `+`), an issue really if the real part of the complex number is != 0. For example, in Python: ```python >>> complex(0, float('nan')) nanj >>> complex(float('nan'), float('nan')) (nan+nanj) >>> complex(float('nan'), -float('nan')) (nan+nanj) >>> complex(-float('nan'), float('nan')) (nan+nanj) ``` while in RustPython: ```python >>>>> complex(0, float('nan')) NaNj >>>>> complex(float('nan'), float('nan')) (NaNNaNj) >>>>> complex(float('nan'), -float('nan')) (NaNNaNj) >>>>> complex(-float('nan'), float('nan')) (NaNNaNj) ```
Activity
mdegis commentedon Oct 1, 2021
I think I can work on this 👍