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


Groups > comp.lang.python > #28302

Re: newbie ``print`` question

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <d@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.059
X-Spam-Evidence '*H*': 0.88; '*S*': 0.00; 'subject:question': 0.08; 'python': 0.09; 'cc:addr:python-list': 0.10; "'b'": 0.16; 'wrote:': 0.17; 'odd': 0.17; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'least': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'prevent': 0.27; 'mode.': 0.29; 'pm,': 0.35; 'too.': 0.35; 'but': 0.36; 'subject:: ': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'end': 0.40; 'stuck': 0.65; 'header :Reply-To:1': 0.68; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; '(print': 0.84
Date Sun, 02 Sep 2012 15:41:58 -0400
From Dave Angel <d@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0
MIME-Version 1.0
To gwhite <gwhite@ti.com>
Subject Re: newbie ``print`` question
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> <23e8e5c4-fb47-4753-b936-e1d546702387@pz10g2000pbb.googlegroups.com>
In-Reply-To <23e8e5c4-fb47-4753-b936-e1d546702387@pz10g2000pbb.googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:T2jfFCqlGSgJWUwGb9mImtgXa0wVtdLCd9+Q13dqTwz QIHYhi7Amp1ruRyyGZuxW13Yzf9XAHU1yd6taZe1cT78dA1uj8 cknTsDBhHBuv7iguPtLwj8ZFNRtKQgcQ0VQ8OrvbevnO+Ee92/ 6XojqkWF2X5XRz0GSQg3tUgMtbfTpJmNV68cMDMbnaqHVFpJfK uXwioMIuV5LzVwdgzxZoN3OkATzKWDl87V3g1555yzldv+Wjqa M8y9lQDsby4qh8QzmgXZaia7Oc3tHjtmAOKy61pjI6fUfnrD3w Cz6ZJdJn2HuURXQKoXx29coNVMIkvQOho+mSiTuYZm8VNGhbQ= =
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To d@davea.name
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.105.1346614942.27098.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1346614942 news.xs4all.nl 6909 [2001:888:2000:d::a6]:59306
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:28302

Show key headers only | View raw


On 09/02/2012 03:34 PM, gwhite wrote:
> <snip>
>
> btw, I also thought the default "add a CR LF" to the end was odd too.
> But at least that one had a simple way out.

But it (print on Python 2.x) doesn't, unless you're stuck on Windows. 
And even then, you can prevent it by using a 'b' in the mode.

-- 

DaveA

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