[EMAIL PROTECTED] wrote:
> ok i found something that works. instead of using the def i did this:
>
> for incident in row('div', {'class': 'food' or 'drink' }):
>
> and it worked!
'food' or 'drink' doesn't do what you think it does:
>>> 'food' or 'drink'
'food'
>>> {'class': 'food' or 'drink'}
{'class': 'food'}
</F>
--
http://mail.python.org/mailman/listinfo/python-list
