467,132 Members | 1,161 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,132 developers. It's quick & easy.

how to match n- lists for a common elements.

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?
Grzegorz
Apr 13 '06 #1
  • viewed: 1370
Share:
1 Reply
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 'o****@xiludom.gro'.split('@')])"
Apr 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

29 posts views Thread by Joseph Haig | last post: by
9 posts views Thread by Dave H | last post: by
41 posts views Thread by Odd-R. | last post: by
2 posts views Thread by James Stroud | last post: by
12 posts views Thread by rshepard@nospam.appl-ecosys.com | last post: by
12 posts views Thread by Lars Eighner | last post: by
5 posts views Thread by Mr.SpOOn | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.