Serhiy Storchaka <[email protected]> added the comment:
PR 8262 fixes the intended setting of error message for the "Barry as BDFL"
easter egg.
>>> from __future__ import barry_as_FLUFL
>>> 1 != 2
File "<stdin>", line 1
1 != 2
^
SyntaxError: with Barry as BDFL, use '<>' instead of '!='
But there is other problem. As was exposed in the private communication with
Victor and Barry, this easter egg works only in REPL (or if explicitly pass
__future__.CO_FUTURE_BARRY_AS_BDFL to compile()). I'll try to fix this too.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue34084>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com