Files
Pyarmor-Static-Unpack-1shot/tests/tokenized/nan_inf.txt
John Richards 870ecdc430 Handle NaN and infinity values
Right now, NaN/infinity values will produce "nan" and "inf", but
Python doesn't allow those in source code. This change will wrap
those values in float(''), which is allowed.

Tests for Python 2.7 and 3.8 have been added as well.

Fixes #136
2020-10-15 21:04:57 -04:00

9 lines
213 B
Plaintext

a = float ( '-nan' ) <EOL>
b = float ( '-nan' ) <EOL>
c = float ( 'inf' ) <EOL>
d = float ( '-inf' ) <EOL>
e = float ( 'nan' ) <EOL>
f = float ( '-nan' ) <EOL>
g = float ( 'inf' ) <EOL>
h = float ( '-inf' ) <EOL>