A really bad idea.
Eddie Corns
eddie at holyrood.ed.ac.uk
Fri Nov 15 12:19:30 EST 2002
"Daniel Dittmar" <daniel.dittmar at sap.com> writes:
>list comprehension: not readable, because you don't know what to search for.
I disagree with the original point but it did occur to me last night that an
'explain' mode for an expression would be a helpful feature (preferrably
inside an editor).
> explain ('[a for a in foo() if a in bar]')
Create a list of elements ...
Non trivial I know especially if you want to try and give more details for
something like:
[(x,zing(x,y),a) for y,x,_ in records if x>y]
Eddie
More information about the Python-list
mailing list