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

F

Fritz Loseries

Hi,

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.

Regards,

Fritz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top