This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients Arfrever, barry, eli.bendersky, eric.araujo, eric.smith, ethan.furman, mrabarnett, pitrou, r.david.murray, rhettinger, sbt, serhiy.storchaka, theller, tim.peters, vstinner
Date 2013-09-12.14:34:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378996497.95.0.85205523285.issue18986@psf.upfronthosting.co.za>
In-reply-to
Content
True, but how big a deal is that?

For one, it seems questionable to have the presentation portion of the data be part of the key.

For two, when presentation is important a separate list must be kept anyway to preseed the dict; so just use that list to cycle through the canonicaldict:

--> some_dict = some_function_that_returns_a_conanicaldict()
--> presentation_list = ['IBM','Intel','AMD']
--> for company in presentation_list:
...     key = some_dict.key[company]  # demo purposes only
...     value = some_dict[company]
...     print(key, company, value)
ibm IBM 2172
intel Intel 3210
amd AMD 4399
History
Date User Action Args
2013-09-12 14:34:58ethan.furmansetrecipients: + ethan.furman, tim.peters, barry, theller, rhettinger, pitrou, vstinner, eric.smith, eric.araujo, mrabarnett, Arfrever, r.david.murray, eli.bendersky, sbt, serhiy.storchaka
2013-09-12 14:34:57ethan.furmansetmessageid: <1378996497.95.0.85205523285.issue18986@psf.upfronthosting.co.za>
2013-09-12 14:34:57ethan.furmanlinkissue18986 messages
2013-09-12 14:34:57ethan.furmancreate