newbie ``print`` question

Chris Angelico rosuav at gmail.com
Sun Sep 2 17:47:47 EDT 2012


On Mon, Sep 3, 2012 at 7:18 AM, gwhite <gwhite at ti.com> wrote:
> Thanks again, Terry.  There is a lot to the language, I am finding
> out.  I am a HW engineer, not really a programmer.  Python seems a lot
> more sophisticated than MATLAB.
>
> I'm kinda thinking `write` is likely to be a little more "stable" than
> `print` (if that is the right characterization) when my eventual
> switch from 2.7 to 3.x happens.  You think?

If you're planning to switch, make use of __future__. It's
specifically to make that job easier. Once you have a future
declaration at the top, print() will be stable across 2.7 and 3.x.

ChrisA



More information about the Python-list mailing list