looping list problem

Peter Hansen peter at engcorp.com
Tue Aug 16 09:37:42 EDT 2005


Jon Bowlas wrote:
> Ok so I changed it to this: 
> 
> attobject = context.get_attobject()
> navstring = context.get_uclattribute(attobject, 'ucl_navhide')
> hiddennavelements = navstring.split(' ')
> for hiddennavelement in hiddennavelements:
>     yield hiddennavelements
> 
> But I get the following error- Line 5: Yield statements are not allowed.

Please post the full traceback (cut and paste).  Don't just retype the 
error message like that.

-Peter



More information about the Python-list mailing list