Damien George
61ce260ff7
py/parsenum: Fix parsing of complex "j" and also "nanj", "infj".
...
Prior to this commit, complex("j") would return 0j, and complex("nanj")
would return nan+0j. This commit makes sure "j" is tested for after
parsing the number (nan, inf or a decimal), and also supports the case of
"j" on its own.
Signed-off-by: Damien George <damien@micropython.org>
2022-06-23 11:46:47 +10:00
..
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2021-06-18 14:16:07 +10:00
2021-06-18 14:16:07 +10:00
2020-04-18 22:36:49 +10:00
2020-08-29 15:18:01 +10:00
2020-03-30 13:21:58 +11:00
2022-06-23 11:46:47 +10:00
2020-08-29 14:12:20 +10:00
2020-08-29 14:12:20 +10:00
2022-02-02 16:49:55 +11:00
2022-02-02 16:49:55 +11:00
2022-02-02 16:49:55 +11:00
2022-02-02 16:49:55 +11:00
2021-05-26 16:33:18 +10:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2022-02-02 16:49:55 +11:00
2022-02-02 16:49:55 +11:00
2022-02-02 16:49:55 +11:00
2022-02-02 16:49:55 +11:00
2020-03-30 13:23:05 +11:00
2014-07-05 06:14:29 +01:00
2022-01-23 09:28:33 +11:00
2022-01-23 09:28:33 +11:00
2020-03-30 13:21:58 +11:00
2020-09-11 10:04:57 +10:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-08-29 15:18:01 +10:00
2020-08-29 15:18:01 +10:00
2020-03-30 13:21:58 +11:00
2019-08-17 23:23:17 +10:00
2020-03-30 13:21:58 +11:00
2018-06-12 12:17:43 +10:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2017-06-13 13:36:56 +10:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2020-03-30 13:21:58 +11:00
2014-04-17 16:21:43 +01:00