[Python-ideas] Proposal for default character representation

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Oct 13 05:03:50 EDT 2016


Mikhail V wrote:
> Eee how would I find if the character lies in certain range?

 >>> c = "\u1235"
 >>> if "\u1230" <= c <= "\u123f":
...  print("Boo!")
...
Boo!

-- 
Greg


More information about the Python-ideas mailing list