[Tutor] build list of non-empty variables

Don Jennings dfjennings at gmail.com
Tue Jul 8 15:14:40 CEST 2008

Hi, folks.

>From within a class, I want to return a string with data from non-empty
variables in a class.

I could create a list of all the variables and then iterate over them,
dropping the ones which are empty, then join() and return them; however, I
am guessing there is another way to get that list of variables or to
accomplish my goal. Suggestions?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080708/108d52cc/attachment.htm>

More information about the Tutor mailing list