how to find not the next sibling but the 2nd sibling or findsibling "a" OR sinbling "b"

localpricemaps at gmail.com localpricemaps at gmail.com
Thu Jan 19 17:39:53 EST 2006


hey fredrik,

i don't understand what you are saying

Fredrik Lundh wrote:
> homepricemaps at gmail.com 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>




More information about the Python-list mailing list