followup: vertical slices from a matrix in a dictionary?...

Alex Martelli aleaxit at yahoo.com
Wed Apr 25 10:57:01 EDT 2001


"mary" <mary.stern at virgin.net> wrote in message
news:9c6laa$2f9q$1 at sp15at20.hursley.ibm.com...
    [snip]
> # --- take vertical slices of x (in y-order)
> z = map(None, x[y[0]], x[y[1]], x[y[2]])                <---How do I

map(None,  * [x[yy] for yy in y] )


Alex






More information about the Python-list mailing list