Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78294
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ian.g.kelly@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'subject:not': 0.03; 'output': 0.05; 'interpreter.': 0.07; 'method.': 0.07; 'result,': 0.07; '24,': 0.16; 'subject:make': 0.16; 'subject: ?': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'import': 0.22; 'email addr:gmail.com>': 0.22; 'separate': 0.22; '>': 0.26; 'code:': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'subject:) ': 0.29; 'subject:list': 0.30; 'message- id:@mail.gmail.com': 0.30; 'sep': 0.31; 'run': 0.32; 'subject:the': 0.34; 'could': 0.34; 'received:google.com': 0.35; 'there': 0.35; 'method': 0.36; 'list': 0.37; 'to:addr:python- list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'skip:x 10': 0.40; 'how': 0.40; 'skip:\xc2 10': 0.60; 'url:it': 0.60; 'grow': 0.77 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=x+4fLC8aA/V6a58Og4/bNzDZ22E9dXWks+rBo5jPPSk=; b=zjjRCP1gqefMNBJbBdYQuNU1KZvj7Uk4i+K5/u2780HArsi217WErgk0T2oLU7av0b GDQFErUwgAS70BY8ExL7YIi0/9z/z72gUVgQaV4QccZ6Pf29vy5jFF67/qksoStwGkxH HDaOyXe6YoplJQPmhnRUg5ZbAuImMAZRygN7juRPk5qeuJe79DvlYWsj3xggO3j4Vksn +d4TM+fbj72Z2DfatHmh0YfJWG7pi/S/c3GHD1WJbKj5WOfbDz/cagVDPNMMy8RLesT+ 7R83LMZfsglc2eBBJfzKM1VnEXrMiGct2bY8jY154y3vi0pEGYWJYhUIsw9gLiir/HVK P7xQ== |
| X-Received | by 10.194.209.207 with SMTP id mo15mr8953953wjc.6.1411574740617; Wed, 24 Sep 2014 09:05:40 -0700 (PDT) |
| MIME-Version | 1.0 |
| In-Reply-To | <5422CD52.8060501@gmail.com> |
| References | <5422CD52.8060501@gmail.com> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Wed, 24 Sep 2014 10:05:00 -0600 |
| Subject | Re: how to make return(self.res) not to output the content of list ? |
| To | Python <python-list@python.org> |
| Content-Type | multipart/alternative; boundary=047d7b3a8314fd0fb60503d1da19 |
| 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 | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.14319.1411574747.18130.python-list@python.org> (permalink) |
| Lines | 37 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1411574747 news.xs4all.nl 2836 [2001:888:2000:d::a6]:57000 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:78294 |
Show key headers only | 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
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