how to match n- lists for a common elements.

bruno at modulix onurb at xiludom.gro
Thu Apr 13 07:30:03 EDT 2006


Grzegorz Ślusarek wrote:
> Hi all. I my application i have situation when i have some lists and i
> must get from lists common elements. Exacly i don't know how many list I
>  have so at the moment of creation each of one I append them to one
> list. So I get list wchich consist of lists of objects. And now i want
> to get common objects of this list. How to do it?

http://www.python.org/doc/2.4.2/lib/types-set.html

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list