[Tutor] optimization: faster than for

Alan Gauld alan.gauld at btinternet.com
Sun Jul 1 23:53:46 CEST 2007


"elis aeris" <hunter92383 at gmail.com> wrote

>> In [4]:import array
>> In [5]:def f7(list):
>>    .5.:  return array.array('B', list).tostring()
>>    .5.:
>>
>> In [6]:f7([97, 98, 99])
>> Out[6]:'abc'


I can't remember which tool does this - IronPython maybe?

but the Ins are Inputs, the numbers arethe current command 
(hence the continuation lines all have 5) and the OUT is the output.

Alan G



More information about the Tutor mailing list