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


Groups > comp.lang.python > #78647

Re: Returning a List

From Shiva <shivaji_tn@yahoo.com>
Subject Re: Returning a List
Date 2014-10-03 11:45 +0000
References <loom.20141003T133313-701@post.gmane.org> <CAPTjJmqZbmrxqO7Xo-mr-z=wahBH0b=N4iP-4y1EwWAQ1+ceeA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.14575.1412336766.18130.python-list@python.org> (permalink)

Show all headers | View raw


Chris Angelico <rosuav <at> gmail.com> writes:

> 
> On Fri, Oct 3, 2014 at 9:35 PM, Shiva
> <shivaji_tn <at> yahoo.com.dmarc.invalid> wrote:
> > Why is return d or return b+c not returning anything??
> >
> 
> On what basis do you believe it's not returning anything? When you
> call it, down below, you're ignoring its return value. I expect it's
> returning just fine, but you then do nothing with it.
> 
> ChrisA
> 


I wrongly thought calling the function was enough. Looks like the call is
just a placeholder for the returned value. Need to print it out.

Thanks!!

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


Thread

Re: Returning a List Shiva <shivaji_tn@yahoo.com> - 2014-10-03 11:45 +0000

csiph-web