Changes between Version 25 and Version 26 of DeveloperGuidelines/Py_2_3
- Timestamp:
- 06/28/19 08:25:13 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Py_2_3
v25 v26 132 132 133 133 In Python-3, the {{{map()}}} and {{{zip()}}} functions return generator objects rather than lists. Where lists are required, the return value must be converted explicitly using the list constructor. Where possible, we prefer list comprehensions. 134 {{{ 134 {{{#!python 135 135 # This is fine: 136 136 for item in map(func, values):