Martin Panter added the comment:

I think this is by design. Under 
<https://docs.python.org/3/library/collections.html#collections.defaultdict.__missing__>
 it says “__missing__() is _not_ called for any operations besides 
__getitem__().” What gave you the impression that pop() should return a default 
value?

----------
nosy: +martin.panter

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

Reply via email to