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


Groups > comp.lang.python > #78294 > unrolled thread

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

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2014-09-24 10:05 -0600
Last post2014-09-24 10:05 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

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

FromIan Kelly <ian.g.kelly@gmail.com>
Date2014-09-24 10:05 -0600
SubjectRe: how to make return(self.res) not to output the content of list ?
Message-ID<mailman.14319.1411574747.18130.python-list@python.org>

[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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web