On 13 July 2017 at 16:20, Clinton Mead <clintonmead@gmail.com> wrote:
And also:

> foo (›’-’)› bar = False

should be

> foo (’-’)› bar = False

I'd suggest ensuring your code compiles without the unicode first, before trying to add the unicode symbols, so you can be sure it's the unicode causing the problem.


It does. This is fine:

> foo ?!?!?!? bar = False

It's the Unicode punctuation that isn't. Note that the things that look like parentheses aren't ASCII parentheses, they're U+FF08 FULLWIDTH LEFT PARENTHESIS and U+FF09 FULLWIDTH RIGHT PARENTHESIS, which are in classes Ps and Pe respectively, and the code I linked to earlier seems to dislike those classes.

Cheers,

David