Re:PEP 492 – Coroutines with async and await syntax
by ant6n on Saturday April 18, 2015 @07:15PM
(#9401456)
Maybe they could just re-introduce print x as syntactic sugar for galling a print function. Like in Matlab, where the operators (+, *, ..) are just syntactic sugar for calling functions add, mul, ..
[ Parent
| on HN ]
Re:PEP 492 – Coroutines with async and await syntax
by DrJosiah on Monday April 20, 2015 @07:16PM
(#9411412)
The Python 3.x print function and 2.x print statement automatically called the __str__ method on an object to get a representation to print to screen. The result is then sent to the appropriate file handle for actual printing (which can be overridden).