Syntax Error, help a newbie

Erik Max Francis max at alcyone.com
Thu Nov 7 04:27:25 EST 2002


Ismael Valladolid Torres wrote:

> I am a newbie to python. I am in need of executing a setup script
> which is
> written in this language.
> 
> self._services = [ s for s in self._services: if s._name !=
> '$removed$' ]

That colon shouldn't be there, for starters:

	[f(x) for x in L if g(x)]

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ No man who needs a monument ever ought to have one.
\__/ Nathaniel Hawthorne
    7 Sisters Productions / http://www.7sisters.com/
 Web design for the future.



More information about the Python-list mailing list