7 ms·
Actually it is from __future__ import braces
by adm_ 2y ago
Actually it is
from __future__ import braces
- fuzztester 2y agoOh yeah, thanks. That also makes it more funny. :)
- joshdavham 2y agoThat's cool! I didn't know about this one. Also, just to make sure I understand the joke. It's basically just saying that they'll never add braces to the python syntax, right?
- Sohcahtoa82 2y agoI mean, technically braces ARE part of Python syntax. They're used by sets and dictionaries. But I know what you meant, and yeah...they'll never use braces as block delimiters. IMO, that's a good thing. Whitespace-as-syntax means you're FORCED to have a minimal level of decent code formatting or it doesn't work.
- fuzztester 2y agoThere is also: from __future__ import print_function following which you can print output using the Python 3 print() function instead of the Python 2 print statement. Also see: https://stackoverflow.com/questions/7075082/what-is-future-in-python-used-for-and-how-when-to-use-it-and-how-it-works https://stackoverflow.com/questions/7075082/what-is-future-i... Note that all this is for Python 2.