For example:
>>> print u"\uD801\uDC37"
...
...
...
... '
File "<stdin>", line 5
'
^
SyntaxError: no viable alternative at character '''
I'd expect the syntax error to be raised immediately after the string has been typed. (Also, ' is a valid character then!)