how to find not the next sibling but the 2nd sibling or findsibling "a" OR sinbling "b"
fredrik at pythonware.com
Thu Jan 19 17:27:35 CET 2006
localpricemaps at gmail.com wrote:
> i actually realized there are 3 potentials for class names. either
> food or drink or dessert. so my question is whether or not i can alter
> your function to look like this?
> def isFoodOrDrinkOrDesert(attr):
> return attr in ['food', 'drink', 'desert']
what happens when you try that ?
More information about the Python-list