Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Trying to understand working with dicts

Thread Tools

Re: Trying to understand working with dicts

Peter Pearson
Posts: n/a
On Fri, 5 Apr 2013 18:04:03 +0530, inshu chauhan <(E-Mail Removed)> wrote:
> --089e0111cf5068b65204d99c4d46
> Content-Type: text/plain; charset=ISO-8859-1

> Here in my part of the code where cc is a dictionary. I want to understand
> what actually cc.iterkeys() and cc[k] actually doing.
> I am already reading
> and but still
> not very clear.
> cc = Computesegclass(segimage, refimage)
> for k in sorted(cc.iterkeys()):
> i = argmax(cc[k])
> print >> f, i+1

Is this a question about dictionaries, or a question
about Computesegclass? In either case, an experiment
without the added complexities of sorted() and argmax()
would be better.

To email me, substitute nowhere->spamcop, invalid->net.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
generating unique set of dicts from a list of dicts bruce Python 0 01-10-2012 08:24 PM
Read all of this to understand how it works. then check around on otherRead all of this to understand how it works. then check around on other thelisa martin Computer Support 2 08-18-2005 06:40 AM
classes vs dicts Charlie Python 24 05-18-2004 10:57 AM
unicode keys in dicts Jiba Python 2 01-08-2004 03:20 PM
Add two dicts Afanasiy Python 12 08-30-2003 11:36 AM