What's the neatest way of getting dictionary entries in a specified order?

Chris Angelico rosuav at gmail.com
Thu Mar 9 06:32:33 EST 2017

On Thu, Mar 9, 2017 at 8:58 PM, Antoon Pardon
<antoon.pardon at rece.vub.ac.be> wrote:
> Op 09-03-17 om 10:01 schreef Chris Angelico:
>> On Thu, Mar 9, 2017 at 7:45 PM, Tim Golden <mail at timgolden.me.uk> wrote:
>>>> So you assume that you'll never meet someone from another culture?
>>>> Okay. I'm pretty sure that counts as bigoted, but sure :)
>>> Chris: I think that remark was uncalled for. You'd made a perfectly valid
>>> point about names not always working how we think. At that point, I think
>>> it's up to each person to decide their own approach based on their own
>>> knowledge of their own circumstances.
>> Yep. He's free to assume that not one of his friends will be from any
>> culture other than his own. It just happens to be a bigoted viewpoint.
> He didn't make that assumption.

He did.

On Thu, Mar 9, 2017 at 8:25 AM, Chris Green <cl at isbd.net> wrote:
> Yes, I'm well aware of these issues, but it's my personal address book
> so I can avoid many/most of them.

The justification "it's *my* personal address book" is saying "none of
*my* friends have weird names, so I'm fine". So, yeah, he did. This is
a design flaw on par with assuming that a byte is identical to a
character; you can pretend it so long as you don't get any "funny
characters". And then you can blame the non-ASCII characters for
breaking your program, or force someone's name to fit into your
predefined scheme.


More information about the Python-list mailing list