Get keys from a dicionary

John Gordon gordon at panix.com
Fri Nov 11 12:51:57 EST 2011


In <mailman.2653.1321033516.27778.python-list at python.org> Gelonida N <gelonida at gmail.com> writes:

> > > There is a fast way (trick) to get k1 and k2 as string.
> > >
> > > Whithout loop all dict. Just it!


> If my guessing was correct is this what you are looking for?

He said he didn't want to loop over the dict contents.  Without
that, I don't think there's an answer for him.

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon at panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"




More information about the Python-list mailing list