Closed iliapolo closed 6 years ago
Well, I just realised that in Python 3, unicode was renamed to str. So is it just a compatibility issue with Python 2.7?
@iliapolo probably, I'll take a look. Given the looming EOL for Python 2.7 (<2 years), I've been coding Python 3 first, and probably just missed this.
This should be resolved in v3.0.1
There seem to be various issues when I put a complex unicode key inside the flatdict.
For example:
The same thing works if the key is a string object
I tracked the issue to this line where you force the key to be an 'str' object for it to have a delimiter.
Any special reason for that?
Its a problem for me because I populate the flatdict with objects returned by the
json.loads
function, which uses unicode for keys.Environment
Python 2.7.14 on macOS HighSierra 10.13.3
I'll be happy to contribute and fix this issue once we discuss it.
Thanks 👍