Python Forum
who is Barry? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html)
+--- Forum: Bar (https://python-forum.io/forum-27.html)
+--- Thread: who is Barry? (/thread-35518.html)



who is Barry? - Skaperen - Nov-12-2021

who is Barry? a developer?

Output:
lt2a/forums /home/forums 4> python3 Python 3.6.9 (default, Jan 26 2021, 15:33:00) [GCC 8.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import __future__ >>> dir(__future__) ['CO_FUTURE_ABSOLUTE_IMPORT', 'CO_FUTURE_BARRY_AS_BDFL', 'CO_FUTURE_DIVISION', 'CO_FUTURE_GENERATOR_STOP', 'CO_FUTURE_PRINT_FUNCTION', 'CO_FUTURE_UNICODE_LITERALS', 'CO_FUTURE_WITH_STATEMENT', 'CO_GENERATOR_ALLOWED', 'CO_NESTED', '_Feature', '__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'absolute_import', 'all_feature_names', 'barry_as_FLUFL', 'division', 'generator_stop', 'generators', 'nested_scopes', 'print_function', 'unicode_literals', 'with_statement'] >>>



RE: who is Barry? - Yoriz - Nov-12-2021

Barry Warsaw


RE: who is Barry? - Gribouillis - Nov-12-2021

>>> from __future__ import barry_as_FLUFL
>>> 
>>> 1 != 2
  File "<stdin>", line 1
    1 != 2
       ^
SyntaxError: with Barry as BDFL, use '<>' instead of '!='
>>> 
>>> 1 <> 2
True
>>> 



RE: who is Barry? - Skaperen - Nov-13-2021

why is != bad?


RE: who is Barry? - Gribouillis - Nov-13-2021

Since the beginning of python, one could write != or <> for the "not equal" comparison operator. See for example the Python 2.4 comparison operators where <> is already marked as obsolescent. It disapeared somewhere along the way. Barry Warsaw is said to prefer <>.


RE: who is Barry? - Skaperen - Nov-14-2021

i've always preferred != because it was IMHO clearer in meaning and made code somewhat easier to read. i recall this was an issue in a prior language i encountered but i cannot remember which language it was. it was not Fortran.


RE: who is Barry? - casevh - Nov-15-2021

Barry was one of the early users of Python and he is still involved with Python.

You might want to look at PEP 0401 ( https://www.python.org/dev/peps/pep-0401/ ).


RE: who is Barry? - Skaperen - Nov-17-2021

i was reading PEP 8 just a while ago and noticed his name there.
i like PEP 401. i'm all for abandoning C and avoiding C++ and Objective-C for the base compiler and using just Python for everything. i'm waiting for PythOS.