> To save you from following that link, to this day I still mentally
> translate "setdefault" to "getorset" whenever I see it.
I read these out of order (so didn't see the giveaway getorsetandget) and
spent some time wondering what an "orset" was. I figured it must be some
obscure CS/text processing/numeric/literary term that suited this usage. So
obscure that google's define couldn't find me a definition.
set[with]default is maybe a terrible name, but it does have some things
going for it ;)
...perhaps it was the similarity to corset...but surely I'm too young to
have "corset" spring to mind before "or set"...
Is there any reason to import exceptions? It's only done in 4 places:
Lib/asyncore.py, Lib/shutil.py, Lib/idlelib/PyShell.py, and
Lib/test/test_exceptions.py. I can understand the one in test, but
should the other 3 be removed since exceptions are builtin?