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


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

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

Started byluofeiyu <elearn2014@gmail.com>
First post2014-09-25 08:15 +0800
Last post2014-09-25 08:15 +0800
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 ? luofeiyu <elearn2014@gmail.com> - 2014-09-25 08:15 +0800

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

Fromluofeiyu <elearn2014@gmail.com>
Date2014-09-25 08:15 +0800
SubjectRe: how to make return(self.res) not to output the content of list ?
Message-ID<mailman.14336.1411604144.18130.python-list@python.org>
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

[toc] | [standalone]


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


csiph-web