[docs] [issue21279] str.translate documentation incomplete

Martin Panter report at bugs.python.org
Mon Dec 22 21:34:56 CET 2014


Martin Panter added the comment:

The problem with mappings and sequences is that they both require len() and iter() implementations, but str.translate() only requires __getitem__(). Perhaps a qualifier could work, like:

The table must implement the __getitem__() method of mappings and sequences.

----------

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


More information about the docs mailing list