"Don't rebind built-in names*" - it confuses readers
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Wed Jun 12 20:47:59 EDT 2013
On Thu, 13 Jun 2013 09:53:26 +1000, Chris Angelico wrote:
> In Python 2.x, 'print' is actually a keyword. It has its own special
> syntax (eg printing to something other than stdout), and absolutely
> cannot be overridden:
Except that you can:
from __future__ import print_function
Just to make things complicated :-)
--
Steven
More information about the Python-list
mailing list