Вот демонстрация в REPL :
Код: Выделить всё
>>> from __future__ import barry_as_FLUFL
>>> print(1 2)
True
>>> 1 != 2
File "", line 1
1 != 2
^^
SyntaxError: with Barry as BDFL, use '' instead of '!='
Код: Выделить всё
>>> import __future__
>>> exec(compile('print(1 2)', 'foo', 'single', __future__.CO_FUTURE_BARRY_AS_BDFL))
True
Код: Выделить всё
# script.py
from __future__ import barry_as_FLUFL
print(1 2)
Код: Выделить всё
$ python3 script.py
File ".../script.py", line 3
print(1 2)
^^
SyntaxError: invalid syntax
Почему будущее barry_as_FLUFL работать по сценарию?
Подробнее здесь: https://stackoverflow.com/questions/790 ... -a-py-file