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


Groups > comp.lang.python > #78294

Re: how to make return(self.res) not to output the content of list ?

References <5422CD52.8060501@gmail.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2014-09-24 10:05 -0600
Subject Re: how to make return(self.res) not to output the content of list ?
Newsgroups comp.lang.python
Message-ID <mailman.14319.1411574747.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, Sep 24, 2014 at 7:55 AM, luofeiyu <elearn2014@gmail.com> wrote:
>
> now what i want to do is :
> 1.keep  return(self.res)  in grow method.
> 2.it is my target that when run  the code:
>
> import analyse
> x=analyse.status()
> x.grow()
>
> there is nothing output in my console ,  to make return(self.res) not to
output the content of list ,
> how can i do ?

You could write a separate method that just calls self.grow() and does not
return the result, and call that method instead from the interactive
interpreter.

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


Thread

Re: how to make return(self.res) not to output the content of list ? Ian Kelly <ian.g.kelly@gmail.com> - 2014-09-24 10:05 -0600

csiph-web