Re:Lesser known parts of Python standard library – Trickster...
by adm_ on Thursday September 05, 2024 @04:59AM
(#41454849)
Actually it is
[ Parent
| on HN ]
Re:Lesser known parts of Python standard library – Trickster...
by fuzztester on Thursday September 05, 2024 @08:02AM
(#41455768)
Oh yeah, thanks.
That also makes it more funny. :)
Re:Lesser known parts of Python standard library – Trickster...
by joshdavham on Thursday September 05, 2024 @03:16PM
(#41459630)
That'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?
Re:Lesser known parts of Python standard library – Trickster...
by Sohcahtoa82 on Friday September 06, 2024 @06:41PM
(#41470222)
I 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.
Re:Lesser known parts of Python standard library – Trickster...
by fuzztester on Sunday September 15, 2024 @03:53PM
(#41549844)
There 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-i...
Note that all this is for Python 2.