[Tutor] Re: SwishE web interface

Reed L. O'Brien reedobrien at acm.org
Tue Jun 8 12:16:05 EDT 2004

I replaced for r in results with the line given

return [r.getproperty('searchdocpath') for r in results]

Now it works.  I guess I should get out my python book to find out how 
to split that to a vertical list as it rolls right of the page s to the 
right without a scroll.  But the return is there.

Thanks Lloyd.

Lloyd Kvam wrote:
> return marks the end of processing in a function.  control is returned
> to the caller.
> You have multiple results that could be returned as a list.
> 	return [r.getproperty('searchdocpath') for r in results]
> uses "list comprehensions" to return a list of values.  This is a very
> handy addition to the language that makes it extremely easy to write a
> simple loop and collect the results into a list.
> On Tue, 2004-06-08 at 10:20, Reed L. O'Brien wrote:

>>FreeBSD 5.2.1
>>apache 2.0.49
>>mod_python 3.1.3
>>SwishE 0.4



More information about the Tutor mailing list