So grateful! Thanks to all. The breadth of Python continues to amaze
me, as does your generosity.
("Relative clarity like relative beauty is in the eye of the
beholder,
and few parents have ugly children"... fantastic!)
Brandon
--
http://mail.python.org/mailman/listinfo/python-list
Ben Finney benfinney.id.au> writes:
> In this case, I'll use ‘itertools.groupby’ to make a new sequence of
> keys and values, and then extract the keys and values actually wanted.
Ah, yes, Zawinski revisited ... itertools.groupby is the new regex :-)
> Certainly it might be clearer if written
Brandon Devine writes:
> I am probably not thinking straight anymore about this problem. I
> have a dictionary with tuple keys in the format (a, b, A, B) and float
> values. I want to collect all the keys with identical (a, b...),
> disregarding whatever (... A, B) might be. Specifically, I wan
Brandon Devine writes:
> I am probably not thinking straight anymore about this problem. I have
> a dictionary with tuple keys in the format (a, b, A, B) and float
> values. I want to collect all the keys with identical (a, b...),
> disregarding whatever (... A, B) might be. Specifically, I want
On Mon, Dec 14, 2009 at 9:49 PM, Brandon Devine wrote:
> Hi all,
>
> I am probably not thinking straight anymore about this problem. I
> have a dictionary with tuple keys in the format (a, b, A, B) and float
> values. I want to collect all the keys with identical (a, b...),
> disregarding whatev