Ah, I thought they backported that. So it is just syntactically similar...
Code:
Python 2.7.12 (default, Jul 18 2016, 10:55:51)
[GCC 6.1.1 20160621 (Red Hat 6.1.1-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print("one")
one
... but not a function...
Code:
>>> dir(print)
File "<stdin>", line 1
dir(print)
^
SyntaxError: invalid syntax
while:
Code:
Python 3.5.1 (default, Jul 10 2016, 20:36:01)
[GCC 6.1.1 20160621 (Red Hat 6.1.1-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> dir(print)
['__call__', '__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__',
'__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__',
'__module__', '__name__', '__ne__', '__new__', '__qualname__', '__reduce__',
'__reduce_ex__', '__repr__', '__self__', '__setattr__', '__sizeof__', '__str__',
'__subclasshook__', '__text_signature__']
Huh... I had no idea until today. I don't use Python2 for anything, so I'll use that excuse!