4 ms·
What's up with the "alternative" form of Python? What about braces, semicolons, and an explicit main() function makes that version worth showing?
by aftbit 12y ago
What's up with the "alternative" form of Python? What about braces, semicolons, and an explicit main() function makes that version worth showing?
- TillE 12y agoWell, "from __future__ import braces" is a joke, so applying the transitive property of jokes, I assume this alternative version is a joke as well.
- chrismorgan 12y agoIndeed it is. And people should certainly try executing `from __future__ import braces` if they’re not familiar with what it is. As for the main function and `if __name__ == '__main__': main()`, that part is actually generally recommended.