need help with python syntax

yaffa yxxxxlxxxxx at gmail.com
Thu Aug 11 14:56:49 EDT 2005


dear python gurus,

quick question on syntax.

i have a line of code like this

for incident in bs('tr',  {'bgcolor' : '#eeeeee'}):


what i want it to do is look for 'bgcolor' : '#eeeeee' or 'bgcolor' :
'white' and then do a whole bunch of stuff.

i've tried this:

for incident in bs('tr',  {'bgcolor' : '#eeeeee'} or {'bgcolor' :
'white'} ):   but it only seems to pick up the stuff from the
{'bgcolor' : '#eeeeee'}


any ideas folks?

thanks

yaffa




More information about the Python-list mailing list