[Tutor] optimization: faster than for

Luke Paireepinart rabidpoobear at gmail.com
Mon Jul 2 00:08:59 CEST 2007


elis aeris wrote:
> 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 !
Please don't reply directly to me.

Iron Python is an implementation of Python in .NET
similarly Jython is an implementation of Python in Java.
This doesn't have anythign to do with their libraries.
The example code
> >> 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'
Would run in IronPython, Jython or cPython.
The way that the code is marked up (adding In or >>> before each line) 
is a feature of the IDE that one uses.
Did you even try the code?
-Luke


More information about the Tutor mailing list