4 ms·
There are ample discussions about the change in `print x` syntax in Python all over the web.
by maest 7y ago
There 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).