from __future__ import print_function

Joel Goldstick joel.goldstick at gmail.com
Sun Apr 24 14:14:16 EDT 2016


On Sun, Apr 24, 2016 at 2:05 PM, San <santanu01 at gmail.com> wrote:
> Hi All,
> I want details explanation(why this statement used,when it can be used,etc) of following statement in python code
>
> "from __future__ import print_function"
>
> Thanks in advance.
> --
> https://mail.python.org/mailman/listinfo/python-list

It lets python 2.7 use python 3.x print function instead of the 2.7
print statement.  You might like some of the options, and your code
will be easier to upgrade to 3.x if you decide to do that

-- 
Joel Goldstick
http://joelgoldstick.com/blog
http://cc-baseballstats.info/stats/birthdays



More information about the Python-list mailing list