Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:not': 0.03; 'interpreter.': 0.07; 'result,': 0.07; 'python': 0.11; 'def': 0.12; 'code?': 0.16; 'subject:make': 0.16; 'separate': 0.22; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'subject:) ': 0.29; 'subject:list': 0.30; 'code': 0.31; 'class': 0.32; 'table': 0.34; 'subject:the': 0.34; 'could': 0.34; 'display': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'method': 0.36; 'received:10': 0.37; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'to:addr:gmail.com': 0.65; 'charset:windows-1252': 0.65; 'received:10.32': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=ExgswjnZ9QlCymmQ67QA7owNCENZ0ijwpB6azZKgpOk=; b=JUBcGjk8vt1Buulpq9b+xQ3ghBTry19UfZJzXp3M2DXjjiC90zPuqrArb/1RaixHUA cjgrN/7nb2OGLEpMee5aEs0O0NptIBXKqPOjNKWujoZO4vkWzuH/+yHRuoap/Mu1phwY i9rjeWFcQf+Bhgy++Z7mVpIvha82dq1Akz01fQ1N6e5Bxg7OvgbGVcDlM6YzdHEyaWGL JPIJoNGNkXvp9bIgdI0PW0BJO5ySs+WGt9RxJ8PY68N3JLtigBQBvvelF9yBD9udUz5C 0qDiAVezjtsHTABgNxl5Gd7RGSGuqYIa++9S3Nieo7blnZuyyVEQlIFbgZF0J017+gHV xhnQ== X-Received: by 10.70.21.98 with SMTP id u2mr11950067pde.119.1411604141221; Wed, 24 Sep 2014 17:15:41 -0700 (PDT) Date: Thu, 25 Sep 2014 08:15:07 +0800 From: luofeiyu User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Ian Kelly , python-list@python.org Subject: Re: how to make return(self.res) not to output the content of list ? References: <5422CD52.8060501@gmail.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1411604144 news.xs4all.nl 2915 [2001:888:2000:d::a6]:53096 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:78318 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. how can i change your meaning into python code? There is my code structure. class status(): def grow(self): self.res= a data ananlyse process return(self.res) def display(self): #to display it in the html table