Moving list entries from one list to another

JB jblazi at hotmail.com
Sat Jul 13 17:49:13 EDT 2002


Bengt Richter wrote:

Your idea sound very clever. I always make the mistake of 
describing my problem too abstractly. So following your 
idea with the None placeholders, I simply travel through 
list1. If an entry is celected by f, I copy it into list2, 
otherwise I do not. At the same time I maintain a counter 
for each lists for counting the entries that are not None.

-- 
Janos Blazi


-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
   http://www.newsfeed.com       The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----



More information about the Python-list mailing list