slott56, Hadn't thought this before. But.
>>> a = 2 >>> a′ = a + 1 File "<stdin>", line 1 a′ = a + 1 ^ SyntaxError: invalid character '′' (U+2032)
The Unicode Prime (and Double Prime) should be valid parts of an identifier. Maybe a few others that are widely-used.
>>> a² = a ** 2 File "<stdin>", line 1 a² = a ** 2 ^ SyntaxError: invalid character '²' (U+00B2)
Add comment