Announcing Python 4 [possible satire]

The Text

Python Logo

1 April, 2019, Tel Aviv, Israel: The Python Software Foundation today announced the immediate availability of version 4 of the popular Python programming language.

The main (and only) change from version 3 is the replacement of the use of indentation for scoping, with curly braces. Whereas a sample session of Python version 3 and below is:

$ python3
Python 3.7.2 (default, Jan 28 2019, 01:12:59)
[GCC 8.2.1 20190118] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from __future__ import braces
  File "<stdin>", line 1
SyntaxError: not a chance
>>>

In Python 4 it is:

$ python4
Python 4.0.0 (default, Apr 1 2019)
[GCC 8.2.1 20190118] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from __future__ import braces
Fuck, yeah!
>>> for i in range(3): { print(i); }
0
1
2
>>>

Note that the import statement is entirely optional and the use of braces will be enforced.

The foundation advises all Python developers to migrate their code to Python 4 because Python 3 will be end-of-lifed in 2030. One can use the new version of six.py called "twentyfour.py" (24 = 2×3×4) to write code which is compatible with both versions.

See Also

Copyright and Licence

This document is Copyright by Shlomi Fish, 2019, and is available under the terms of the Creative Commons Attribution-Noncommercial-ShareAlike License 4.0 Unported (or at your option any later version).

The Python logo was taken from the English Wikipedia under the trademarks policy.

For securing additional rights, please contact Shlomi Fish and see the explicit requirements that are being spelt from abiding by that licence.