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


Groups > comp.lang.python > #37207

Re: why not?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.026
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:not': 0.11; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.17; 'code.': 0.20; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.28; 'running': 0.32; 'print': 0.32; 'received:com.au': 0.33; 'to:addr :python-list': 0.33; 'subject:?': 0.35; 'received:org': 0.36; 'received:au': 0.36; 'why': 0.37; 'subject:: ': 0.38; 'skip:o 20': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'email addr:gmail.com': 0.63; 'charset:windows-1252': 0.65; 'received:110': 0.96
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Lie Ryan <lie.1296@gmail.com>
Subject Re: why not?
Date Tue, 22 Jan 2013 02:56:15 +1100
References <8CAC60710F6447FFA746695B2D24522B@favour>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host 110-175-240-90.static.tpgi.com.au
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2
In-Reply-To <8CAC60710F6447FFA746695B2D24522B@favour>
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.751.1358783791.2939.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1358783791 news.xs4all.nl 6900 [2001:888:2000:d::a6]:34437
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:37207

Show key headers only | View raw


On 22/01/13 04:02, kwakukwatiah@gmail.com wrote:
> f = open(r'c:\text\somefile.txt')
> for i in range(3):
>         print str(i) + ': ' + f.readline(),
> please with the print str(i) + ‘: ‘ + f.readline(), why not print str(i)
> + f.readline(),

Try running both code. What do you see? What's the difference? When do 
you think you might want one or the other?

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


Thread

Re: why not? Lie Ryan <lie.1296@gmail.com> - 2013-01-22 02:56 +1100

csiph-web