Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unicode identifiers
#1
i found a total of 112333 Unicode characters, counting ASCII, that are valid for identifiers, according to str.isidentifier().

only 109808 of them are valid as a single character identifier. the others are probably modifiers that can be part of an identifier.

>>> len(''.join(chr(x) for x in range(0,0x110000) if ('abc'+chr(x)+'abc').isidentifier()))
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
Unicode identifiers - by Skaperen - Apr-19-2019, 03:31 AM
RE: Unicode identifiers - by DeaD_EyE - Apr-19-2019, 09:04 AM
RE: Unicode identifiers - by Skaperen - Apr-19-2019, 10:17 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020