On 2015-07-20 04:07, Chris Angelico wrote: > The int() and float() functions accept, if I'm not mistaken, > anything with Unicode category "Nd" (Number, decimal digit). In > your examples, the fraction (U+215B) is No, and the Roman numerals > (U+2168, U+2182) are Nl, so they're not supported. Adding support > for these forms might be accepted as a feature request, but it's > not a bug.
Ah, that makes sense. Some simple testing (thanks, unicodedata module) supports your conjecture. It's not a particularly big deal so not really worth the brain-cycles to add support for them. Just upon hearing "Python's int() does smart things with Unicode characters", those were some of my first characters to try. The failure struck me as odd until you explained the simple difference. -tkc -- https://mail.python.org/mailman/listinfo/python-list