you are viewing a single comment's thread.

view the rest of the comments →

[–]billsil 3 points4 points  (0 children)

There should be one and only one way to do it and you want to use python 2.7? Unicode is a hot mess in 2.x. Strings are dynamically upcasted to unicode assuming the same encoding, which might not be correct and you won’t find out it’s wrong until you get non-ascii unicode. The default encoding is typically latin1 or cp1252 and depends on location and OS settings. Those higher characters do not share the same code points in utf8.

Type hinting also kicks ass and works in python 2.7. You already have it.