Message225145
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. |
|
Date |
User |
Action |
Args |
2014-08-10 17:10:03 | pitrou | set | recipients:
+ pitrou, rhettinger, r.david.murray, docs@python, mwilliamson |
2014-08-10 17:10:03 | pitrou | set | messageid: <1407690603.33.0.534440184162.issue22180@psf.upfronthosting.co.za> |
2014-08-10 17:10:03 | pitrou | link | issue22180 messages |
2014-08-10 17:10:03 | pitrou | create | |
|