Changes between Version 25 and Version 26 of DeveloperGuidelines/Py_2_3


Ignore:
Timestamp:
06/28/19 08:25:13 (6 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Py_2_3

    v25 v26  
    132132
    133133In 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
    135135# This is fine:
    136136for item in map(func, values):