Re:Why Python 3 Exists
by wiz21 on Thursday December 17, 2015 @02:19PM
(#10753723)
I concur 100%. Most of the problems with unicode are like most problem with floats : tons of people don't get how it works (and the good reasons that make all of that tricky)
[ Parent
| on HN ]
99% encoding problems in Python 2 is because str(), the fundamental type converting function, is not safe.
output = ''.join(str(x) for x in some_list)
Can you spot the danger here? Can you imagine how many hidden str() calls in every lib/modules?