[docs] [issue22180] operator.setitem example no longer works in Python 3 due to lazy map

Antoine Pitrou report at bugs.python.org
Sun Aug 10 19:23:41 CEST 2014


Antoine Pitrou added the comment:

Le 10/08/2014 13:20, Raymond Hettinger a écrit :
>
> Raymond Hettinger added the comment:
>
>> The whole example is bad and should be removed
>> or replace with something else:
>
> I'm not sure there are ANY examples of operator.setitem that
> couldn't
be done a better way without it. How about we remove it and leave the
examples for things that people ought to be doing.

Agreed. operator.setitem() isn't really ever used in my experience.

----------

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


More information about the docs mailing list