[Tutor] optimization: faster than for
elis aeris
hunter92383 at gmail.com
Mon Jul 2 00:06:38 CEST 2007
my reply
oh crancky! C# !
http://en.wikipedia.org/wiki/Iron_Python
i better try to find the best way to do it with the official python genre
before venturing into that world of pain without PIL !
Quote:- Hide quoted text -
>> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070701/bad3c84d/attachment.html
More information about the Tutor
mailing list