Making a dict from two lists/tuples

Duncan Booth duncan at NOSPAMrcp.co.uk
Tue May 29 10:49:54 CEST 2001


Jonathan Feinberg <jdf at pobox.com> wrote in news:ofsgciqx.fsf at pobox.com:

> "Alex Martelli" <aleaxit at yahoo.com> writes:
> 
>> temp=[decorate(x) for x in beep]
>> temp.sort()
>> beep[:]=[undecorate(x) for x in temp]
> 
> I was wondering what a Schwartzian Transform might look like in
> Python. ;)
> 

Have you tried looking at the FAQ?
http://www.python.org/doc/FAQ.html#4.51 may be what you want.

-- 
Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?



More information about the Python-list mailing list