Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

So what exactly does “from __future__ import barry_as_FLUFL” do?

I understand it's an inside joke that's meant to stay (just like “from __future__ import braces”), but what exactly does it do?

like image 781
tzot Avatar asked Oct 24 '10 06:10

tzot


2 Answers

It's related to PEP 0401: BDFL Retirement

Barry refers to Barry Warsaw, a well-known Python developer. The from __future__ import barry_as_FLUFL basically replaces the != operator with <>.

like image 87
Lie Ryan Avatar answered Sep 22 '22 05:09

Lie Ryan


As mentioned above, barry is Barry Warsaw, a well known Core Python Dev However, the FLUFL has not been explained

It stands for "Friendly Language Uncle For Life" an inside joke among the other python core devs at the time. The reason this enables the <> syntax, is that he was the primary person who wanted to use the <> operator

like image 30
MicroTransactionsMatterToo Avatar answered Sep 23 '22 05:09

MicroTransactionsMatterToo