Skip to content

Commit

Permalink
solve issue Floats don't work in the python implementation. #646
Browse files Browse the repository at this point in the history
  • Loading branch information
jero98772 authored and kanaka committed Aug 6, 2024
1 parent 062fb6f commit e2d2504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impls/python/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def read_atom(reader):
string_re = re.compile(r'"(?:[\\].|[^\\"])*"')
token = reader.next()
if re.match(int_re, token): return int(token)
elif re.match(float_re, token): return int(token)
elif re.match(float_re, token): return float(token)
elif re.match(string_re, token):return _s2u(_unescape(token[1:-1]))
elif token[0] == '"': raise Exception("expected '\"', got EOF")
elif token[0] == ':': return _keyword(token[1:])
Expand Down

0 comments on commit e2d2504

Please sign in to comment.