Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28324

Re: newbie ``print`` question

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:question': 0.08; 'python': 0.09; 'happens.': 0.09; 'sep': 0.09; 'language,': 0.11; '2.7': 0.13; 'declaration': 0.16; 'easier.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'think?': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'received:209.85.214.174': 0.21; '3.x': 0.22; 'seems': 0.23; 'specifically': 0.24; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; "i'm": 0.29; 'switch': 0.32; 'to:addr:python-list': 0.33; 'likely': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'stable': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'really': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'planning': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'little': 0.39; 'header:Received:5': 0.40; 'more': 0.63
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mPBoYg0LbONrFGbw8ga7dMnwN1PBht0b+c1p9fO+2oc=; b=pJ+dvlG75tibFn+HSXju/QuNLw5Pkskf4Vvn1mORey7pzAGkc6GgVKNBVt0RNZOAqm cTOvhGshdiTq233aw9Pfg3aK21SWSzLZA+XFFGcEZ32JvNbm4xak7ma3YHCl4/sAkDnS f4+TNusv6sFQtx4RwuOMVoYiabN7URIRBZ2leHS3G8lgMVmH33V5z0cDToweFIJz/XyJ moidMneD+sarXvue7mqZ4bKH13+UlKjrTfprJZUO8ScGlWsSXhv8PKuA9Nfy4Hv9hlTz okCl03EFY9b7mY5+AVbcYJKc4zhZhsQS13nwjN7x4+grw1YcnQuy2izWpF7BT84nf84Y 5zhg==
MIME-Version 1.0
In-Reply-To <680feff1-8d8e-4f6d-8521-1e875479d1f7@k9g2000pbr.googlegroups.com>
References <c9b2c268-fcc4-40f7-8769-517c13683894@v9g2000pbu.googlegroups.com> <mailman.96.1346608542.27098.python-list@python.org> <c989c63e-59da-410a-a89c-fcfccf92e8e3@q9g2000pbo.googlegroups.com> <mailman.116.1346618956.27098.python-list@python.org> <680feff1-8d8e-4f6d-8521-1e875479d1f7@k9g2000pbr.googlegroups.com>
Date Mon, 3 Sep 2012 07:47:47 +1000
Subject Re: newbie ``print`` question
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.118.1346622469.27098.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1346622469 news.xs4all.nl 6919 [2001:888:2000:d::a6]:54934
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:28324

Show key headers only | View raw


On Mon, Sep 3, 2012 at 7:18 AM, gwhite <gwhite@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

newbie ``print`` question gwhite <gwhite@ti.com> - 2012-09-02 10:23 -0700
  Re: newbie ``print`` question Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-02 18:41 +0100
  Re: newbie ``print`` question Joel Goldstick <joel.goldstick@gmail.com> - 2012-09-02 13:44 -0400
    Re: newbie ``print`` question gwhite <gwhite@ti.com> - 2012-09-02 12:46 -0700
  Re: newbie ``print`` question mblume <foobar@invalid.invalid> - 2012-09-02 17:49 +0000
    Re: newbie ``print`` question gwhite <gwhite@ti.com> - 2012-09-02 11:51 -0700
  Re: newbie ``print`` question Chris Rebert <clp2@rebertia.com> - 2012-09-02 10:55 -0700
    Re: newbie ``print`` question gwhite <gwhite@ti.com> - 2012-09-02 11:51 -0700
    Re: newbie ``print`` question gwhite <gwhite@ti.com> - 2012-09-02 12:26 -0700
      Re: newbie ``print`` question gwhite <gwhite@ti.com> - 2012-09-02 12:34 -0700
        Re: newbie ``print`` question Dave Angel <d@davea.name> - 2012-09-02 15:41 -0400
          Re: newbie ``print`` question gwhite <gwhite@ti.com> - 2012-09-02 12:50 -0700
            Re: newbie ``print`` question Dave Angel <d@davea.name> - 2012-09-02 16:15 -0400
              Re: newbie ``print`` question gwhite <gwhite@ti.com> - 2012-09-02 13:58 -0700
                Re: newbie ``print`` question MRAB <python@mrabarnett.plus.com> - 2012-09-02 23:43 +0100
                Re: newbie ``print`` question gwhite <gwhite@ti.com> - 2012-09-02 16:33 -0700
                Re: newbie ``print`` question MRAB <python@mrabarnett.plus.com> - 2012-09-03 01:12 +0100
      Re: newbie ``print`` question Terry Reedy <tjreedy@udel.edu> - 2012-09-02 16:49 -0400
        Re: newbie ``print`` question gwhite <gwhite@ti.com> - 2012-09-02 14:18 -0700
          Re: newbie ``print`` question Chris Angelico <rosuav@gmail.com> - 2012-09-03 07:47 +1000
            Re: newbie ``print`` question gwhite <gwhite@ti.com> - 2012-09-02 16:20 -0700
              Re: newbie ``print`` question Chris Angelico <rosuav@gmail.com> - 2012-09-03 09:28 +1000
  Re: newbie ``print`` question Terry Reedy <tjreedy@udel.edu> - 2012-09-02 14:33 -0400
    Re: newbie ``print`` question gwhite <gwhite@ti.com> - 2012-09-02 12:18 -0700
  Re: newbie ``print`` question Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-02 16:37 -0400
    Re: newbie ``print`` question gwhite <gwhite@ti.com> - 2012-09-02 14:04 -0700

csiph-web