[docs] [issue28612] str.translate needs a mapping example

Chris Barker report at bugs.python.org
Fri Nov 4 15:12:27 EDT 2016


Chris Barker added the comment:

Agreed:

the custom dict type would be nice for a recipe or blog post or...

but not for the docs.

I'll note that the other trick to this recipe is that you need to know to use lambda to make a "None factory" for defaultdict -- though maybe that's a ToDo for the defaultdict docs...

----------
nosy: +ChrisBarker

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


More information about the docs mailing list