[Python-Dev] PEP 469: Restoring the iterkeys/values/items() methods
Raymond Hettinger
raymond.hettinger at gmail.com
Sun Apr 20 01:14:14 CEST 2014
On Apr 18, 2014, at 7:31 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> After spending some time talking to the folks at the PyCon Twisted
> sprints, they persuaded me that adding back the iterkeys/values/items
> methods for mapping objects would be a nice way to eliminate a key
> porting hassle for them (and likely others), without significantly
> increasing the complexity of Python 3.
I'm not keen on letting Python 2 leak into Python 3.
That defeats one of the goals of Python 3 (simplification
and leaving legacy APIs behind a in fresh start).
As a Python instructor and coach, I can report that we
already have too many methods on dictionaries and
that it creates a usability obstacle when deciding which
methods to use.
In Python 2.7, a dir(dict) or help(dict) presents too many
ways to do it. In Python 3.4, we finally have a clean
mapping API and it would be a pitty to clutter it up
in perpetuity.
Raymond
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140419/064e9b61/attachment.html>
More information about the Python-Dev
mailing list