After 43e8de6, the GMPy_RemoveIgnoredASCII() strips white spaces as well as underscores. This breaks MPC-compatible string input parsing, e.g.:
>>> gmpy2.mpc('(1 2)')
mpc('12.0+0.0j')
Not sure if it worth to support this feature forever (i.e. maybe we could deprecate this to simplify parsing). But this behaviour was documented in the sphinx docs before, the mpc.rst of the last stable release (2.1.5) says "In addition to the standard Python string representation of a complex number: "1+2j", the string representation used by the MPC library: "(1 2)" is also supported".
After 43e8de6, the
GMPy_RemoveIgnoredASCII()
strips white spaces as well as underscores. This breaks MPC-compatible string input parsing, e.g.:Not sure if it worth to support this feature forever (i.e. maybe we could deprecate this to simplify parsing). But this behaviour was documented in the sphinx docs before, the mpc.rst of the last stable release (2.1.5) says "In addition to the standard Python string representation of a complex number: "1+2j", the string representation used by the MPC library: "(1 2)" is also supported".