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
|