[Python-Dev] Remove str.find in 3.0?
Just van Rossum
just at letterror.com
Sat Aug 27 13:01:02 CEST 2005
Wolfgang Lipp wrote:
> On Sat, 27 Aug 2005 12:35:30 +0200, Martin v. Löwis
<martin at v.loewis.de>
> > 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]?
More information about the Python-Dev