Thread: [Bluemusic-users] Version of Python
Brought to you by:
kunstmusik
|
From: Mark V. P. <Mar...@te...> - 2009-08-22 14:00:10
|
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. |
|
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 > |
|
From: Mark V. P. <Mar...@te...> - 2009-08-22 20:20:27
|
Hi Steven, Thanks, that worked perfectly! Adding the line works in both Python 2.6 and Jython in Blue. I'm looking forward to blue2; if I find time, I would like to test it as well. Mark Steven Yi wrote: > 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 >> >> > > ------------------------------------------------------------------------------ > 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 > > > -- Mark _________________________________________ When you get lemons, you make lemonade. When you get hardware, you make software. |
|
From: Steven Yi <ste...@gm...> - 2009-08-22 22:21:58
|
Hi Mark, I'm very glad this is now all working! Thanks for your offer and I will be looking forward to hearing your feedback when blue2 is in beta! steve On Sat, Aug 22, 2009 at 4:20 PM, Mark Van Peteghem<Mar...@te...> wrote: > Hi Steven, > > Thanks, that worked perfectly! Adding the line works in both Python 2.6 > and Jython in Blue. > > I'm looking forward to blue2; if I find time, I would like to test it as > well. > > Mark > > Steven Yi wrote: >> 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 >>> >>> >> >> ------------------------------------------------------------------------------ >> 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 >> >> >> > > -- > 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 > |