Keeping track of things with dictionaries

Chris Angelico rosuav at gmail.com
Tue Apr 8 22:33:28 EDT 2014


On Wed, Apr 9, 2014 at 10:43 AM, Gregory Ewing
<greg.ewing at canterbury.ac.nz> wrote:
> Chris Angelico wrote:
>>
>> in the dictionary I
>> have here (Debian Wheezy, using an American English dictionary - it's
>> a symlink to (ultimately) /usr/share/dict/american-english), there are
>> five entries in that list.
>
>
> Mine's bigger than yours! On MacOSX 10.6 I get 41 words.
> (I think someone must have fed a medical dictionary into
> it... my list includes such obviously indispensible terms
> as laparocolpohysterotomy, thyroparathyroidectomy and
> ureterocystanastomosis.)

Yeah, it'll vary based on the exact dictionary used. I went for
something with multiple, but not prolific, entries.

> Unfortunately I seem to be missing antidisestablishmentarianism,
> because the longest words in my dict are only 24 characters,
> excluding the '\n'. Should I ask for my money back?

I think you should. That's a fundamental flaw in the dictionary.
Everyone knows that word's the longest!

ChrisA



More information about the Python-list mailing list