[docs] [issue13887] defaultdict.get does not default to initial default but None

Mark Dickinson report at bugs.python.org
Fri Jan 27 13:18:29 CET 2012


Mark Dickinson <dickinsm at gmail.com> added the comment:

It's certainly intentional behaviour:  all the defaultdict does is provide a __missing__ method.  And as explained in

http://docs.python.org/library/stdtypes.html#mapping-types-dict

"No other operations or methods invoke __missing__()."

So it looks to me as though this issue should be either a doc issue, or a feature request for 3.3.  Reclassifying as a doc issue.

----------
assignee:  -> docs at python
components: +Documentation -Extension Modules, Library (Lib)
nosy: +docs at python, mark.dickinson
versions: +Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13887>
_______________________________________


More information about the docs mailing list