Python interpreter error: unsupported operand type(s) for |:
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Thu Aug 11 17:27:38 EDT 2005
yaffa a écrit :
> hey folks i get this error: Python interpreter error: unsupported
> operand type(s) for |:
>
> when i run this line of code:
>
> for incident in bs('tr', {'bgcolor' : '#eeeeee'} | {'bgcolor' :
> 'white'} ):
>
> any idea what i'm doing wrong here?
yes: trying to do a bitwise or of two dict objects.
> thanks
You're welcome.
More information about the Python-list
mailing list