Re:Guido's Proposal: Moratorium on Python language changes
by andreyf on Wednesday October 21, 2009 @03:06PM
(#895407)
Statements and expressions are different syntactic elements. So "x = print" will throw a syntax error in 2.6:
But not if you "from __future__ import print_function" first. This is also why __future__ imports need to be at the very top of each file they are included in (unlike other imports).
[ Parent
| on HN ]