Antoine Pitrou added the comment:

The whole example is bad and should be removed or replace with something else:

1. Using map() is an anti-pattern here, since the function results are not used.

2. To "build a dictionary that maps the ordinals from 0 to 255 to their 
character equivalents", modern Python code should use a dict comprehension and 
avoid operator.setitem() entirely.

----------
nosy: +pitrou, rhettinger

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22180>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to