This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients fschulze, serhiy.storchaka
Date 2018-05-25.15:34:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527262471.98.0.682650639539.issue33645@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-05-25 15:34:32serhiy.storchakasetrecipients: + serhiy.storchaka, fschulze
2018-05-25 15:34:31serhiy.storchakasetmessageid: <1527262471.98.0.682650639539.issue33645@psf.upfronthosting.co.za>
2018-05-25 15:34:31serhiy.storchakalinkissue33645 messages
2018-05-25 15:34:31serhiy.storchakacreate