3 ms·
I still don’t fully get why we can’t have ‘print x’ in Python 3. We would have avoided 10 years of schism for something that was soooo backward incompatible.
by hartator 7y ago
I still don’t fully get why we can’t have ‘print x’ in Python 3. We would have avoided 10 years of schism for something that was soooo backward incompatible.
- maest 7y agoThere are ample discussions about the change in `print x` syntax in Python all over the web.
- hartator 7y agoWell everyone understands the academic reasons. (Print is a function and now you can do ‘my_print_function = print’) But really it was not necessary. What piece of code is taking advantage that print is a pure function nowadays? [EDIT] I am genuinely curious.
- int_19h 7y agoIt's the people who are learning the language from scratch taking advantage of this simplification, because they don't need to learn the special syntax of print with all its warts (like trailing comma).