"""Jython print_function doctest example. Under Python 2 by default, print(1, 2, 3) would be seen as a print statement given a tuple, and give: (1, 2, 3) Under Python 3 by default, it would be seen as a call to the print function and give: 1 2 3 Let's try it in a doctest where we've explicitly asked for a print function via the future import. >>> print(1, 2, 3) 1 2 3 """ from __future__ import print_function import doctest import sys import platform doctest.testmod(verbose=2) print(platform.platform()) print(sys.version)