diff options
author | Jeff Epler <jepler@gmail.com> | 2025-05-30 07:54:08 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-06-10 15:21:18 +1000 |
commit | 5eb97552591c6d2681b3e452b4b7d8445354b138 (patch) | |
tree | 46067fb0e25f7158d586fd6dfe3d9534a2649801 /tests/io/file-stdio.py | |
parent | 745bec9ce3cc4c95d8e80fcc8f64ffecde1d91bc (diff) | |
download | micropython-5eb97552591c6d2681b3e452b4b7d8445354b138.tar.gz micropython-5eb97552591c6d2681b3e452b4b7d8445354b138.zip |
py/parsenum: Reduce code size in check for inf/nan.
By avoiding two different checks of the string length, code size is reduced
without changing behavior: Some invalid float/complex strings like "ix"
will get handled just like "xx" in the main number literal parsing code
instead.
The optimizer alone couldn't remove the reundant comparisons because it
couldn't make a transformation that let an invalid string like "ix" pass
into the generic number parsing code.
Signed-off-by: Jeff Epler <jepler@gmail.com>
Diffstat (limited to 'tests/io/file-stdio.py')
0 files changed, 0 insertions, 0 deletions