> Yes, the vendor we're working with said that they're not sure what
> their migration path will be for the next release of Jython - they
> have said they're able to get good performance out of the current
> Jython via bytecode compilation for the JVM. They're not sure if
> they'll be able to use the same techniques for the newer version.
>
> Do you know what the differences are between 2.2 and 2.5/2.6 (let
> alone 3.0)?
2.6 will continue down the path of 2.5, so there won't be major changes
from 2.5.
3.0 is really redesigning a lot of things in the language. All strings will
be unicode. `print` will be a function rather than a statement, new
features for classes, more consistent datatypes, new data types "bytes"
objects for instance, there's lots of stuff that seems basic--it's just
largely incompatible with 2.x.
I suppose the biggest changes from 2.2 -> 2.5 are things like
the decorator syntax (@function), "new style" classes, support for
metaclasses, generator expressions (yield statement/ "coroutines").
There's also been lots of things integrated into the standard library.
2.5 also has context managers, which I've never used, but can be
used kind of like dynamic-wind in scheme. (I know there's a CL
equivalent but it escapes me). I don't remember if 2.2 has a
finally clause with it's try-catch. I think it went away at one point and
came back, but I could be mistaken...
> I hope that the list-comprehension-like features are in
> 2.2, that's something that I'm looking forward to (ever since I read:
> http://norvig.com/spell-correct.html).
You get at least list comprehensions [x for x in range(1,100)], but you
don't get comprehensions for sets, and some other stuff I'm sure I'm
forgetting.
I take stuff for granted now, but can't remember when things were
available to me.
--
Andrew Gwozdziewycz
apgwoz@...
http://www.apgwoz.com | http://www.photub.com