Some unexpect result
yujiang opened this issue · 3 comments
yujiang commented
print(lua.decode("{[10] = 1}"))
[10
--should be {10:1}
print(lua.decode("{nil}"))
['nil']
--should be {None}
print(lua.decode("{'10'}"))
["'"]
--should be ["10"]
SirAnthony commented
In the second case it must be an empty tuple, not {None} which is incorrect for python dict syntax. In other cases I agree.
SirAnthony commented
Fixed in 7bb006f.
yujiang commented
I have tested it today.
Thank you for the fix and it help me much.
2012/3/16 SirAnthony
reply@reply.github.com:
In the second case it must be an empty tuple, not {None} which is incorrect for python dict syntax. In other cases I'm agree.
Reply to this email directly or view it on GitHub:
#1 (comment)