![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: Searching through a list of tuples
From: Alan Green <alan.green@gmail.com>
Date: Tue Jul 12 2005 - 23:25:01 CEST
Peter Otten wrote:
> >>> items = [(1, "a", 10), (2, "b", 20), (3, "c", 30)]
Neat solution.
I'd add an extra kind of Key, since finding tuples where a given
>>> class EqualKey(Key):
Alan
|