Syntax Error, help a newbie

Brian Quinlan brian at sweetapp.com
Thu Nov 7 05:22:12 EST 2002


> self._services = [ s for s in self._services: if s._name !=
'$removed$' ]

[sniped]

> PS. Red Hat Linux 7.2 running python-1.5.2-38

Even if your syntax were correct, it wouldn't work. Python 1.52 didn't
have list comprehensions. 

Cheers,
Brian





More information about the Python-list mailing list