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


Groups > comp.lang.python > #94756

Re: line error on no. 7

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: line error on no. 7
Date 2015-07-29 20:11 -0400
Organization IISS Elusive Unicorn
References <55b7e499.c590420a.2c00.3f74@mx.google.com> <1057631477.698271.1438179800046.JavaMail.root@sequans.com>
Newsgroups comp.lang.python
Message-ID <mailman.1082.1438215086.3674.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, 29 Jul 2015 16:23:20 +0200 (CEST), Jean-Michel Pichavant
<jeanmichel@sequans.com> declaimed the following:

>----- Original Message ----- 
>> From: "ltc hotspot" <ltc.hotspot@gmail.com>


>    list.append
>    sorted("fh") 
>print line.rstrip()
>
>The main issue is that you've misspelled 'lst' in the for loop. You've used 'list' instead. 'list' is a built-in constructor for lists. You cannot split it. I'm also not sure what """ if fh == list:continue """ is supposed to achieve.

	list.append

doesn't do anything useful either -- it just looks up the append method and
dumps in on the floor.

	sorted("fh")

is also being dumped on the floor -- presuming it does anything to a single
string in the first case.
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

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


Thread

Re: line error on no. 7 Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-07-29 20:11 -0400

csiph-web