ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
Re: Moving list entries from one list to another
by JB other posts by this author
Jul 13 2002 8:37PM messages near this date
Re: Moving list entries from one list to another | Re: Moving list entries from one list to another
Emile van Sebille wrote:

>  JB
> > I have two lists <list1> and <list2>. The entries of
> > these lists have the format (id,rest), where <id> is a
> > natural number. The list are sorted, the key is <id>.
>  
>  Your use of the term 'key' here is throwing me.  Lists
>  don't have keys,
>  dicts do.  Dicts aren't sorted.  ;-/

The list entries are tuples. The first element of a tuple is 
the sorting key. It is a natural number n, 0<=n<N, where N 
is the number of all entries. Some of the entries are in 
list1 and some of them in list2. I am working on a list 
view widget. list1 contains "visible lines" and list2 the 
invisible lines. The moving between the lists is brought 
about by changes of a user defined filter.

-- 
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 =-----
-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
JB
JB
Bengt Richter
JB
Alex Martelli
Bengt Richter
JB
JB
JB
JB
JB
JB
Bengt Richter
Alex Martelli
Alex Martelli
Alex Martelli
Emile van Sebille
=?iso-8859-1?q?Fran=E7ois?= Pinard

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved