Raymond Hettinger <rhettin...@users.sourceforge.net> added the comment:

I agree with the OP's request.

d.pop(k) is conceptually equivalent to:
   r = d[k]    # raises KeyError(k)
   del d[k]
   return r

The current message was probably borrowed from dict.popitem().  But that is 
much different since the dict.pop(k) method is key-specific (instead of size 
related).

This fix should be backported (as it doesn't change guaranteed behaviors but 
does improve the debugability).

----------
assignee:  -> rhettinger
stage:  -> needs patch
versions: +Python 2.7, Python 3.1

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10221>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to