This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients bgailer, docs@python, ezio.melotti, georg.brandl, jjposner, josh.r, lilbludot, martin.panter, serhiy.storchaka, terry.reedy, vstinner
Date 2014-12-22.20:34:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419280496.64.0.224480509347.issue21279@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-12-22 20:34:56martin.pantersetrecipients: + martin.panter, georg.brandl, terry.reedy, vstinner, bgailer, ezio.melotti, jjposner, docs@python, serhiy.storchaka, josh.r, lilbludot
2014-12-22 20:34:56martin.pantersetmessageid: <1419280496.64.0.224480509347.issue21279@psf.upfronthosting.co.za>
2014-12-22 20:34:56martin.panterlinkissue21279 messages
2014-12-22 20:34:56martin.pantercreate