Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: Ah, I was fooled by the message about Beautiful Soup. It is not a message of an error, it is a part of source line, printed for a SyntaxError. Seems sources of Beautiful Soup intentionally contain a code invalid in Python 3.
There is a bug in Python. The tokenizer returns error E_OK, but it should never return such error code. The AST parser is confused and raises a SyntaxError with the message "unknown parsing error". This bug is reproduced when run Python wish both options -3 and -We and parse the "<>" operator. $ ./python -3 -We -c '[] <> []' error=10 File "<string>", line 1 [] <> [] ^ SyntaxError: unknown parsing error But it is reproduced with 2.7.14 too. ---------- resolution: third party -> stage: resolved -> status: closed -> open _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33645> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com