You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returns true because in Python you can actually parse these strings into floats (i.e. float('+inf') is infinity. This is not valid according to the spec. The parser should keep "+inf" and similar values as a string.
I'm also wondering whether string numerical values like '1.23' get converted into numbers although they should be strings...
A process such as
returns true because in Python you can actually parse these strings into floats (i.e.
float('+inf')
is infinity. This is not valid according to the spec. The parser should keep "+inf" and similar values as a string.I'm also wondering whether string numerical values like '1.23' get converted into numbers although they should be strings...
I guess it may help to create a custom float class that doesn't allow passing in these string values: https://stackoverflow.com/questions/25022079/extend-python-build-in-class-float
The text was updated successfully, but these errors were encountered: