27 Aug
2005
27 Aug
'05
6:01 a.m.
Wolfgang Lipp wrote:
On Sat, 27 Aug 2005 12:35:30 +0200, Martin v. Löwis
wrote: P.S. Emphasis mine :-)
no, emphasis all **mine** :-) just to reflect i never expected .get() to work that way (return an unsolicited None) -- i do consider this behavior harmful and suggest it be removed.
Just because you don't read the documentation and guessed wrong d.get() needs to be removed?!? It's a *feature* of d.get(k) to never raise KeyError. If you need an exception, why not just use d[k]? Just