[Tutor] if value in list of dictionaries

Norman Khine norman at khine.net
Tue Sep 28 20:13:51 CEST 2010


ok, great.

one thing i wanted to ask is how could i extend the class so that i
can just change the name of the csv file?

On Tue, Sep 28, 2010 at 6:53 PM, Emile van Sebille <emile at fenx.com> wrote:
> On 9/28/2010 9:37 AM Norman Khine said...
>>
>> thank you, here is the updated version:
>>
>> http://pastie.org/1186860
>>
>
>
> The only obvious redundancy is the duplicated sort of options just before
> the return.  You only need the newer sort_key based one.
>
> Emile
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>



-- 
˙uʍop ǝpısdn p,uɹnʇ pןɹoʍ ǝɥʇ ǝǝs noʎ 'ʇuǝɯɐן sǝɯıʇ ǝɥʇ puɐ 'ʇuǝʇuoɔ
ǝq s,ʇǝן ʇǝʎ
%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )


More information about the Tutor mailing list