how to extract an implicit dict expression (with statement return)

Fritz Loseries fritz at
Thu Sep 9 17:20:03 CEST 2010


I do not know how to subject my problem in a better way.

I have the following statement:

    return [ dict(x1 = elem.x1, x2 = elem.x2, x3 = elem.x3,)
                for elem in method(in_values)

How can I transform it to an explicit description:

    result = ...
    return result

Could not found a description for the here used form of for and what
[...] means.

Need this for debugging.
Thanks for any help.



More information about the Python-list mailing list