Re: [Bluemusic-users] Version of Python
Brought to you by:
kunstmusik
From: Steven Yi <ste...@gm...> - 2009-08-22 18:06:22
|
Hi Mark! The version of Jython that is packaged with blue is a bit old; the latest Jython is 2.5 and I think it supports most of the Python 2.5 features. I think yield and generators were available earlier than 2.5 using the future package. Hmm... looks like they were available in 2.2, but you have to use: from __future__ import generators (read from this article: http://www.ibm.com/developerworks/library/l-pycon.html ) I'd try adding that. I think importing from __future__ is safe to use in versions after 2.2 as I think it just doesn't import anything, but maybe try and verify. I am planning on updating to 2.5 as part of blue2, but have to rework how Jython is used to accomodate Netbeans RCP conventions. I am hoping to get back to blue2 work on Wednesday (I'm pretty much writing this chapter text all weekend and am very much looking forward to being done with it! :P). Let me know if that works! steven On Sat, Aug 22, 2009 at 10:00 AM, Mark Van Peteghem<Mar...@te...> wrote: > Hi, > > I just noticed that my Graphane library, written in Python, doesn't work > in Blue. It stops the compilation with the error message that there is a > syntax error in "yield progress[0]". I did some searching and found that > yield with an expression is available in Python since version 2.5. So I > wonder what version of the Python language is supported in Blue. > > I know that Jython is used, but on the Jython website I didn't find what > version of the Python language is supported. > > > Kind regards, > > -- > Mark > _________________________________________ > When you get lemons, you make lemonade. > When you get hardware, you make software. > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Bluemusic-users mailing list > Blu...@li... > https://lists.sourceforge.net/lists/listinfo/bluemusic-users > |