Re: jython getting started question

2021-06-11 Thread Steve Pruitt via Python-list
Finally found the solution Options.importSite = false; which solved my issue. I can't set Bindings and pass args to script. The only example I found is for JavaScript. I think maybe it doesn't work for jython. Thanks From: Python-list on behal

jython getting started question

2021-06-11 Thread Steve Pruitt via Python-list
Not sure if this is the right list for jython questions. I am getting started with both python and jython. My use case need is invoking python from java. org.python:jython:2.7.2 loaded ok. To check, I executed the following. ScriptEngineManager manager = new ScriptEngineManager(); List

Jython but portable?

2020-07-19 Thread vjp2 . at
How do you use Jython Standalone Jar? Do you have to "Intall"? I usually use most standalone jars directly without intalling. And I want to use this thing in Portable Apps, so I din't want to install anything. Because it might end up in my Windows system and I won't kn

drop jython support in mock backport?

2019-04-30 Thread Chris Withers
Hi All, If you need Jython support in the mock backport, please shout now: https://github.com/testing-cabal/mock/issues/453 cheers, Chris -- https://mail.python.org/mailman/listinfo/python-list

Re: Jython info

2018-02-10 Thread Prahallad Achar
Thanks for the kind response. Yes. I shall upgrade the same. am trying to access GUI action elements from Jython to automate the Swing desktop application On Sat, Feb 10, 2018 at 9:50 PM, Dan Stromberg wrote: > On Sat, Feb 10, 2018 at 6:43 AM, Prahallad Achar > wrote: > > Hello

Re: Jython info

2018-02-10 Thread Dan Stromberg
On Sat, Feb 10, 2018 at 6:43 AM, Prahallad Achar wrote: > Hello team, > Is it right to ask Jython related query here? If so kindly check my q here > otherwise sorry for posting here... I believe it can be done: http://lmgtfy.com/?q=jython+swing By the way, Jython 2.5 is pretty old.

Jython info

2018-02-10 Thread Prahallad Achar
Hello team, Is it right to ask Jython related query here? If so kindly check my q here otherwise sorry for posting here... Can we access swing objects/events of any applications via Jython? My present code Downloaded Jython 2.5 Import sys Sys.path.append (my java. Jar) Thanks Prahallad

Re: Jython standalone

2015-11-15 Thread Christian Gollwitzer
Am 15.11.15 um 01:35 schrieb vjp2...@at.biostrategist.dot.dot.com: Jython is python in java at jython.org. I tried clicking and double clicking. I does a wait cycle (rotating arrow) then returns to attention. I think you are describing the Windows mouse cursor that displays a rotating wheel

Re: Jython standalone

2015-11-14 Thread Steven D'Aprano
On Sun, 15 Nov 2015 11:35 am, vjp2...@at.biostrategist.dot.dot.com wrote: > Jython is python in java at jython.org. > > I tried clicking and double clicking. Hi Vanos, I am perfectly aware of what Jython is, what I don't know is what you are "clicking and double-clicking&q

Re: Jython standalone

2015-11-14 Thread vjp2 . at
Jython is python in java at jython.org. I tried clicking and double clicking. I does a wait cycle (rotating arrow) then returns to attention. I'm trying to run RDKIT, an app written for jython. THen I realised jython wasn't working at all. I've had same problem with some jav

Re: Jython standalone

2015-11-13 Thread Steven D'Aprano
On Sat, 14 Nov 2015 12:35 pm, vjp2...@at.biostrategist.dot.dot.com wrote: > I click jython.org standalone jar and it just does a wait cycle. I'm afraid I can't completely understand the problem you are having, since you haven't really described it with sufficient detail. But my *guess* (and this

Jython standalone

2015-11-13 Thread vjp2 . at
I click jython.org standalone jar and it just does a wait cycle. What does it need to give me a prompt? - = - Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist http://www.panix.com/~vjp2/vasos.htm ---{Nothing her

Re: How to check in script if Python or Jython is used

2015-06-22 Thread Dan Stromberg
wrote: > I installed Jython and will start playing with it. There probably will > be differences between Python and Jython. Is there a way to determine > if a script is run by Python or Jython? Then different execution paths > could be taken. With sys.version(_info) you do not

Re: How to check in script if Python or Jython is used

2015-06-21 Thread Thomas 'PointedEars' Lahn
Cecil Westerhof wrote: > I installed Jython and will start playing with it. There probably will > be differences between Python and Jython. Is there a way to determine > if a script is run by Python or Jython? Then different execution paths > could be taken. With sys.version(_info) yo

Re: No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Cecil Westerhof
On Sunday 21 Jun 2015 12:54 CEST, Laura Creighton wrote: > In a message of Sun, 21 Jun 2015 12:21:03 +0200, Cecil Westerhof > writes: >> On Sunday 21 Jun 2015 11:05 CEST, Laura Creighton wrote: >> >>> Do you have Jython 2.7 released a few weeks ago? >> >>

Re: Jython and can't write cache file

2015-06-21 Thread Johannes Bauer
On 21.06.2015 11:40, Cecil Westerhof wrote: > Thanks. Good that I asked it. :-D Good for you that you found someone able to enter words into a Google query. That's a skill you might want to acquire some time in the future. Cheers, Johannes -- >> Wo hattest Du das Beben nochmal GENAU vorhergesa

Re: How to check in script if Python or Jython is used

2015-06-21 Thread Albert-Jan Roskam via Python-list
Sun, Jun 21, 2015 12:24 PM CEST Cecil Westerhof wrote: >On Sunday 21 Jun 2015 11:22 CEST, Laura Creighton wrote: > >> In a message of Sun, 21 Jun 2015 10:12:06 +0200, Cecil Westerhof >> writes: >> I installed Jython and will start playing

Re: No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Laura Creighton
In a message of Sun, 21 Jun 2015 12:21:03 +0200, Cecil Westerhof writes: >On Sunday 21 Jun 2015 11:05 CEST, Laura Creighton wrote: > >> Do you have Jython 2.7 released a few weeks ago? > >Yes, but I was dumb enough to start the old version when I did this. >:-( > >

Re: How to check in script if Python or Jython is used

2015-06-21 Thread Cecil Westerhof
On Sunday 21 Jun 2015 11:22 CEST, Laura Creighton wrote: > In a message of Sun, 21 Jun 2015 10:12:06 +0200, Cecil Westerhof > writes: >> I installed Jython and will start playing with it. There probably >> will be differences between Python and Jython. Is there a way to >&g

Re: Using Jython for Android development?

2015-06-21 Thread Cecil Westerhof
On Sunday 21 Jun 2015 11:26 CEST, Laura Creighton wrote: > In a message of Sun, 21 Jun 2015 10:14:15 +0200, Cecil Westerhof > writes: >> I have no experience yet with Jython or Android development. But I >> was wondering: would it be possible to write applications for >>

Re: No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Cecil Westerhof
On Sunday 21 Jun 2015 11:05 CEST, Laura Creighton wrote: > Do you have Jython 2.7 released a few weeks ago? Yes, but I was dumb enough to start the old version when I did this. :-( There is still one problem: == >&

Re: Jython and can't write cache file

2015-06-21 Thread Cecil Westerhof
On Sunday 21 Jun 2015 10:56 CEST, Laura Creighton wrote: > In a message of Sun, 21 Jun 2015 09:53:23 +0200, Cecil Westerhof > writes: >> On openSUSE there is a very old version of Jython installed >> (2.2.1), so I installed the latest version (2.7.0). But when >> starting

Re: Using Jython for Android development?

2015-06-21 Thread Laura Creighton
In a message of Sun, 21 Jun 2015 10:14:15 +0200, Cecil Westerhof writes: >I have no experience yet with Jython or Android development. But I was >wondering: would it be possible to write applications for Android with >Jython? You normally use Java for it, but I think I would like Jython &

Re: How to check in script if Python or Jython is used

2015-06-21 Thread Laura Creighton
In a message of Sun, 21 Jun 2015 10:12:06 +0200, Cecil Westerhof writes: >I installed Jython and will start playing with it. There probably will >be differences between Python and Jython. Is there a way to determine >if a script is run by Python or Jython? Then different execution paths

Re: No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Laura Creighton
Do you have Jython 2.7 released a few weeks ago? Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Jython and can't write cache file

2015-06-21 Thread Laura Creighton
In a message of Sun, 21 Jun 2015 09:53:23 +0200, Cecil Westerhof writes: >On openSUSE there is a very old version of Jython installed (2.2.1), >so I installed the latest version (2.7.0). But when starting this I >get: >*sys-package-mgr*: can't write cache file for > &#x

Re: No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Cecil Westerhof
On Sunday 21 Jun 2015 09:56 CEST, Cecil Westerhof wrote: > When I execute in the latest Jython: > from __future__ import print_function > I get: > Traceback (innermost last): > (no code object) at line 0 > File "", line 1 > SyntaxError: future feature print_function

Using Jython for Android development?

2015-06-21 Thread Cecil Westerhof
I have no experience yet with Jython or Android development. But I was wondering: would it be possible to write applications for Android with Jython? You normally use Java for it, but I think I would like Jython more. :-D -- Cecil Westerhof Senior Software Engineer LinkedIn: http

How to check in script if Python or Jython is used

2015-06-21 Thread Cecil Westerhof
I installed Jython and will start playing with it. There probably will be differences between Python and Jython. Is there a way to determine if a script is run by Python or Jython? Then different execution paths could be taken. With sys.version(_info) you do not get this information. -- Cecil

Jython and can't write cache file

2015-06-21 Thread Cecil Westerhof
On openSUSE there is a very old version of Jython installed (2.2.1), so I installed the latest version (2.7.0). But when starting this I get: *sys-package-mgr*: can't write cache file for '/var/lib/h2/h2-1.3.176/bin/h2-1.3.176.jar' *sys-package-mgr*: can't write ca

No ‘from __future__ import print_function’ in latest jython

2015-06-21 Thread Cecil Westerhof
When I execute in the latest Jython: from __future__ import print_function I get: Traceback (innermost last): (no code object) at line 0 File "", line 1 SyntaxError: future feature print_function is not defined This is not implemented in the latest jython? I pref

Re: Working with jython in openSUSE 13.2

2015-06-20 Thread Cecil Westerhof
On Saturday 20 Jun 2015 15:01 CEST, Laura Creighton wrote: > In a message of Sat, 20 Jun 2015 12:58:33 +0200, Cecil Westerhof > writes: >> I installed Jython in openSUSE 13.2. But when calling jython I get: >> /usr/bin/build-classpath: error: JAVA_LIBDIR must be set >>

Re: Working with jython in openSUSE 13.2

2015-06-20 Thread Laura Creighton
In a message of Sat, 20 Jun 2015 12:58:33 +0200, Cecil Westerhof writes: >I installed Jython in openSUSE 13.2. But when calling jython I get: >/usr/bin/build-classpath: error: JAVA_LIBDIR must be set >Error: Could not find or load main class org.python.util.jython > >Does

Working with jython in openSUSE 13.2

2015-06-20 Thread Cecil Westerhof
I installed Jython in openSUSE 13.2. But when calling jython I get: /usr/bin/build-classpath: error: JAVA_LIBDIR must be set Error: Could not find or load main class org.python.util.jython Does anyone have an idea what I need to do to get it working? -- Cecil Westerhof Senior Software

Re: Jython from bathc file?

2015-05-09 Thread Rustom Mody
On Sunday, May 10, 2015 at 7:55:22 AM UTC+5:30, vjp...@at.biostrategist.dot.dot.com wrote: > I have to try this and see if there is ome kind of init file in jython/python > sorta like autoexec.bat. Ialso have no idea if the commands they provide are > all it takes to run the app or I hav

Re: Jython from bathc file?

2015-05-09 Thread vjp2 . at
I have to try this and see if there is ome kind of init file in jython/python sorta like autoexec.bat. Ialso have no idea if the commands they provide are all it takes to run the app or I have to stay in jython.. sorry, I'm thinking at loud.. ok, thanks t

Re: Jython from bathc file?

2015-05-09 Thread vjp2 . at
Tee from gnuutils?? - = - Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist http://www.panix.com/~vjp2/vasos.htm ---{Nothing herein constitutes advice. Everything fully disclaimed.}--- [Homeland Security mean

Re: Jython from bathc file?

2015-05-09 Thread Dave Angel
On 05/09/2015 05:04 PM, vjp2...@at.biostrategist.dot.dot.com wrote: Thanks.. I suspected it wasn't meant to be taken as in the file THe one thing I'm not sure if Jython is suppsosedto keep running after the initisl stuff is loaded in.. To put the question in purely DOS terms if

Re: Jython from bathc file?

2015-05-09 Thread Michael Torrie
On 05/09/2015 03:04 PM, vjp2...@at.biostrategist.dot.dot.com wrote: > Thanks.. I suspected it wasn't meant to be taken as in the file > > THe one thing I'm not sure if Jython is suppsosedto keep running > after the initisl stuff is loaded in.. > > > To put the

Re: Jython from bathc file?

2015-05-09 Thread vjp2 . at
Thanks.. I suspected it wasn't meant to be taken as in the file THe one thing I'm not sure if Jython is suppsosedto keep running after the initisl stuff is loaded in.. To put the question in purely DOS terms if you run a program can you pipe it some commands and then keep it running t

Re: Jython from bathc file?

2015-05-09 Thread Steven D'Aprano
On Sat, 9 May 2015 09:36 am, vjp2...@at.biostrategist.dot.dot.com wrote: > How do I do this in a .bat file? > Do I include the Jython or pipe it? > > % CLASSPATH=$CLASSPATH:$RDBASE/Code/JavaWrappers/gmwrapper/org.RDKit.jar; > jython > -Djava.library.path=$RDBASE/Code/Java

Re: Jython from bathc file?

2015-05-09 Thread Todd Vargo
On 5/8/2015 7:36 PM, vjp2...@at.biostrategist.dot.dot.com wrote: How do I do this in a .bat file? Do I include the Jython or pipe it? % CLASSPATH=$CLASSPATH:$RDBASE/Code/JavaWrappers/gmwrapper/org.RDKit.jar; jython -Djava.library.path=$RDBASE/Code/JavaWrappers/gmwrapper Jython 2.2.1 on

Jython from bathc file?

2015-05-08 Thread vjp2 . at
How do I do this in a .bat file? Do I include the Jython or pipe it? % CLASSPATH=$CLASSPATH:$RDBASE/Code/JavaWrappers/gmwrapper/org.RDKit.jar; jython -Djava.library.path=$RDBASE/Code/JavaWrappers/gmwrapper Jython 2.2.1 on java1.6.0_20 Type "copyright", "credits" or "lice

Re: what is Jython?

2015-01-09 Thread Chris Angelico
On Sat, Jan 10, 2015 at 3:06 AM, Grant Edwards wrote: > Just to clarify, Jython > > 1) is a Python compiler that compiles Python source code into JVM > bytecode (class, jar, whatever) that runs on a standard Java > runtime. Python programs compiled with Jython ca

Re: what is Jython?

2015-01-09 Thread Grant Edwards
On 2015-01-09, Chris Angelico wrote: > Jython isn't a combination of Python and Java; it's Python, > implemented in Java. Does that answer your question? Just to clarify, Jython 1) is a Python compiler that compiles Python source code into JVM bytecode (class, jar, wha

Re: what is Jython?

2015-01-08 Thread Chris Angelico
On Fri, Jan 9, 2015 at 3:10 PM, Brian wrote: > I tried to find out more on the internet but didn't have much success. All > I know is that its a combination of Python and Java. > Is it more Java than Python or the other way around? > Is Jython free like Python? > Is the prog

what is Jython?

2015-01-08 Thread Brian
I tried to find out more on the internet but didn't have much success. All I know is that its a combination of Python and Java. Is it more Java than Python or the other way around? Is Jython free like Python? Is the programming language for Jython similar to Python or similar to Java? Are

Re: Jython or Pyton issue-- Kindly Help me....

2014-10-15 Thread Peter Otten
Venugopal Reddy wrote: > Thanks for Help Sir, > > Am using " for feature in tree.findall( > > ".//{urn:ford/interface/VehicleOrder/LegacyFeatureMapping/v2}PortInstalledOptionFeature"): > ) " > > Please sir help me > > Here also this findall Method is not return any list value

Re: Jython or Pyton issue-- Kindly Help me....

2014-10-15 Thread Venugopal Reddy
Thanks for Help Sir, Am using " for feature in tree.findall( ".//{urn:ford/interface/VehicleOrder/LegacyFeatureMapping/v2}PortInstalledOptionFeature"): ) " Please sir help me Here also this findall Method is not return any list values. On Wednesday, October 15, 2014 1:03:00 PM UTC

Re: Jython or Pyton issue-- Kindly Help me....

2014-10-15 Thread Peter Otten
Venugopal Reddy wrote: > Actuvally am having below XML File: > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> > xmlns:a="urn:ford/VehicleOrder/LegacyFeatureMapping/v2.0" > xmlns:b="urn:ford/VehicleOrder/SingleOrderEdit/v1.0" > xmlns:c="urn:ford/interface/VehicleOrder/LegacyFe

Re: Jython or Pyton issue-- Kindly Help me....

2014-10-14 Thread Venugopal Reddy
Actuvally am having below XML File: http://schemas.xmlsoap.org/soap/envelope/";> 13001 2014 12 178

Re: Jython or Pyton issue-- Kindly Help me....

2014-10-14 Thread Peter Otten
Venugopal Reddy wrote: > Ok, I will explain my problem in details : > > I have below XML: > > > > > 1 > 2008 > 2009> > 141100 > > > > > 4 > 2011 > 59900 > > > > 68 > 2011

Re: Jython or Pyton issue-- Kindly Help me....

2014-10-14 Thread Venugopal Reddy
Ok, I will explain my problem in details : I have below XML: 1 2008 2009> 141100 4 2011 59900 68 2011 13600 >From

Re: Jython or Pyton issue-- Kindly Help me....

2014-10-13 Thread Ian Kelly
On Mon, Oct 13, 2014 at 5:39 AM, Venugopal Reddy wrote: > Dear All, > > How to write a program for reading or parsing the XML file in Sub root Wise. I don't know what "Sub root Wise" is. You can find an overview of Python's XML parsing interfaces at https://docs.python.org/2/library/xml.html. I w

Jython or Pyton issue-- Kindly Help me....

2014-10-13 Thread Venugopal Reddy
Dear All, How to write a program for reading or parsing the XML file in Sub root Wise. For ex: Below XMl, I want to read/ parse first country details and here also two year tag values are there.. Here I need to read/parse first year value only measn '2008' Only..After that I need to read secon

Re: Hi Guys... Reading XML using Jython code

2014-10-09 Thread Denis McMahon
On Thu, 09 Oct 2014 05:30:21 -0700, Venugopal Reddy wrote: > XML parsing using Jython.. > In my XML file , One main node is there and Multiple child tags are > there. But In Child tags , same name repeated twice (like tag > repeated twice) > Please help me on this Normall

Hi Guys... Reading XML using Jython code

2014-10-09 Thread Venugopal Reddy
Am new to python and Jython... Kindly help me on My issue please ! My Issue is: XML parsing using Jython.. I am sucessfully reading XML file using xml.etree.ElementTree package .. But I have a issue in below scenario . this scenario my code is not working. In my XML file , One main node is

Re: Jython - Can't access enumerations?

2013-11-29 Thread Tim Delaney
On 30 November 2013 03:15, Eamonn Rea wrote: > Ok, here's the code: > [elided] > As I said, please also show the *exact* error - copy and paste the stack trace. Tim Delaney -- https://mail.python.org/mailman/listinfo/python-list

Re: Jython - Can't access enumerations?

2013-11-29 Thread Eamonn Rea
Ok, here's the code: body_def = BodyDef() # Imports the BodyDef class fine. body_def.type = BodyDef.DynamicBody # Says it can't find a module from LibGDX called BodyDef. All my code: from com.badlogic.gdx import Game, Gdx, Screen from com.badlogic.gdx.backends.lwjgl import LwjglApplicationConf

Re: Jython - Can't access enumerations?

2013-11-28 Thread Tim Delaney
On 29 November 2013 04:22, Eamonn Rea wrote: > Hello! I'm using Jython to write a game with Python/Jython/LibGDX. I > wasn't having any trouble, and everything was going well, but sadly I can't > access items in enumerations. > > If you know about the LibGDX li

Jython - Can't access enumerations?

2013-11-28 Thread Eamonn Rea
Hello! I'm using Jython to write a game with Python/Jython/LibGDX. I wasn't having any trouble, and everything was going well, but sadly I can't access items in enumerations. If you know about the LibGDX library and have used it, you'll probably know about the BodyType enum

Re: Why is CPython 2.5 a dependency for Jython 2.5?

2013-07-03 Thread Chris Angelico
On Wed, Jul 3, 2013 at 10:55 PM, rusi wrote: > On Wednesday, July 3, 2013 5:52:12 PM UTC+5:30, Steven D'Aprano wrote: >> I'm running a box with Debian squeeze, and I just ran: >> sudo aptitude install jython >> which ended up installing Python 2.5: > > BTW t

Re: Why is CPython 2.5 a dependency for Jython 2.5?

2013-07-03 Thread rusi
On Wednesday, July 3, 2013 5:52:12 PM UTC+5:30, Steven D'Aprano wrote: > I'm running a box with Debian squeeze, and I just ran: > sudo aptitude install jython > which ended up installing Python 2.5: BTW trying to install jython out here gave me this list (which does no

Re: Why is CPython 2.5 a dependency for Jython 2.5?

2013-07-03 Thread Steven D'Aprano
On Wed, 03 Jul 2013 07:43:46 -0500, Skip Montanaro wrote: >> Does anyone know why CPython 2.5 is a dependency for Jython 2.5.1+ on >> Debian squeeze? > > Might Jython use some Python modules/packages unmodified? Does sys.path > in Jython refer to the CPython tree? Apparent

Re: Why is CPython 2.5 a dependency for Jython 2.5?

2013-07-03 Thread Skip Montanaro
> Does anyone know why CPython 2.5 is a dependency for Jython 2.5.1+ on > Debian squeeze? Might Jython use some Python modules/packages unmodified? Does sys.path in Jython refer to the CPython tree? Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is CPython 2.5 a dependency for Jython 2.5?

2013-07-03 Thread rusi
On Wednesday, July 3, 2013 5:52:12 PM UTC+5:30, Steven D'Aprano wrote: > Does anyone know why CPython 2.5 is a dependency for Jython 2.5.1+ on > Debian squeeze? Not exactly answering your question... The debian dependencies can be fairly 'conservative' which means all kind

Why is CPython 2.5 a dependency for Jython 2.5?

2013-07-03 Thread Steven D'Aprano
I'm running a box with Debian squeeze, and I just ran: sudo aptitude install jython which ended up installing Python 2.5: [...] Linking and byte-compiling packages for runtime python2.5... Setting up python2.5 (2.5.5-11) ... Does anyone know why CPython 2.5 is a dependency for Jython

Warning for users of the Python and Jython wiki

2013-01-17 Thread Steven D'Aprano
Hello all, Some time recently, the wiki at http://wiki.python.org/ was hacked. The vandal who broke in deleted all the wiki data. However, it is possible that before destroying the data, he may have gained access to user passwords. If you had an account on the wiki, and use the same password e

Re: Regarding Jython support in IBM and HP platforms

2012-12-27 Thread Kev Dwyer
Naresh Kumar wrote: > > > > Hello, > > I am trying to use the Jython in IBM AIX and HP machines to test our > framework which is based on JAVA. when trying to run our python and jython > based testcases using system test framework we are getting below err

Regarding Jython support in IBM and HP platforms

2012-12-26 Thread Naresh Kumar
Hello, I am trying to use the Jython in IBM AIX and HP machines to test our framework which is based on JAVA. when trying to run our python and jython based testcases using system test framework we are getting below errors in jython.err file Error: could not find libjava.so Error: could

Re: jython lacks working xml processing modules?

2012-07-18 Thread Matej Cepl
On 18/07/12 05:12, gaodexiaozh...@gmail.com wrote: However,there is one project implemented by Python used PyXML and now my Jython project has to depend on it ,so I am afraid that if Jython doesn't support PyXML,then my jython project can not depend on the original Python project ,then my j

Re: jython lacks working xml processing modules?

2012-07-17 Thread gaodexiaozheng
在 2012年7月17日星期二UTC+8下午6时02分31秒,Stefan Behnel写道: > Matej Cepl, 17.07.2012 11:39: > > On 17/07/12 10:35, gaodexiaozh...@gmail.com wrote: > >>> > I'm trying to parse an xml file with jython > (not through java > >>> parsers > >>> &

Re: jython lacks working xml processing modules?

2012-07-17 Thread Stefan Behnel
Matej Cepl, 17.07.2012 11:39: > On 17/07/12 10:35, gaodexiaozh...@gmail.com wrote: >>> > I'm trying to parse an xml file with jython (not through java >>> parsers >>> > like xerces). > > https://code.google.com/p/jython-elementtree/ ??? Note tha

Re: jython lacks working xml processing modules?

2012-07-17 Thread Matej Cepl
On 17/07/12 10:35, gaodexiaozh...@gmail.com wrote: > I'm trying to parse an xml file with jython (not through java parsers > like xerces). https://code.google.com/p/jython-elementtree/ ??? -- http://mail.python.org/mailman/listinfo/python-list

Re: jython lacks working xml processing modules?

2012-07-17 Thread Stefan Behnel
gaodexiaozh...@gmail.com, 17.07.2012 10:35: > hi,do you know the PyXML whether can be supported by Jython ? PyXML is a dead project, don't use it. You can use ElementTree in Jython, just as in Python. Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: jython lacks working xml processing modules?

2012-07-17 Thread gaodexiaozheng
在 2003年11月24日星期一UTC+8下午7时42分31秒,Paul Boddie写道: > janeaustin...@hotmail.com (Jane Austine) wrote in message > news:<ba1e306f.0311201805.9df...@posting.google.com>;... > > I'm trying to parse an xml file with jython (not through java parsers > > like xerces). > >

Re: Jython and PYTHONSTARTUP

2012-06-22 Thread Hans Mulder
On 21/06/12 02:26:41, Steven D'Aprano wrote: > There used to be a page describing the differences between Jython and > CPython here: > > http://www.jython.org/docs/differences.html > > but it appears to have been eaten by the 404 Monster. It has been moved to: http://ww

RE: Jython and PYTHONSTARTUP

2012-06-22 Thread Prasad, Ramit
> Does Jython 2.5 honour the PYTHONSTARTUP environment variable? According > to my testing, it doesn't. > > There used to be a page describing the differences between Jython and > CPython here: > > http://www.jython.org/docs/differences.html > > but it appea

Jython and PYTHONSTARTUP

2012-06-20 Thread Steven D'Aprano
Does Jython 2.5 honour the PYTHONSTARTUP environment variable? According to my testing, it doesn't. There used to be a page describing the differences between Jython and CPython here: http://www.jython.org/docs/differences.html but it appears to have been eaten by the 404 Mo

Re: Where is the latest step by step guide to use Jython to compilePython into Java?

2012-06-04 Thread Ian Kelly
ed, how to use these files? >> >> Could you enlighten me with tested/proven step by step instructions? >> >> Regards. >> >> David >> >> ___ > > David, > > Jythonc has been deprecated for years and hasn't been included with > J

Re: Where is the latest step by step guide to use Jython to compilePython into Java?

2012-06-04 Thread Terry Reedy
On 6/4/2012 11:35 AM, David Shi wrote: Please post plain text rather than html. It just works better and is the convention for this newsgroup and mailing list. -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list

Re: Where is the latest step by step guide to use Jython to compilePython into Java?

2012-06-04 Thread Benjamin Kaplan
tep by step instructions? > > Regards. > > David > > ___ David, Jythonc has been deprecated for years and hasn't been included with Jython since 2.2. Nor does it support any language feature newer than 2.2. I don't think anyone managed to get the python to JVM byte

Re: Where is the latest step by step guide to use Jython to compilePython into Java?

2012-06-04 Thread Stefan Behnel
David Shi, 04.06.2012 17:35: > Compiling your Python code with jythonc > I do not know whether I downloaded a wrong version of Jythonc? Or, got > mismatched software or instructions. Jythonc used to work in Jython 2.2 but is no longer supported in Jyton 2.5. Stefan -- http://mail.p

Re: Where is the latest step by step guide to use Jython to compilePython into Java?

2012-06-04 Thread David Shi
: "Narayanaswamy, Mohan" To: David Shi Cc: python-list@python.org Sent: Monday, 4 June 2012, 16:38 Subject: RE: Where is the latest step by step guide to use Jython to compilePython into Java? David,   Thanks for the link, here that compilation steps won’t produce  java code, but it co

RE: Where is the latest step by step guide to use Jython to compilePython into Java?

2012-06-04 Thread Narayanaswamy, Mohan
: Re: Where is the latest step by step guide to use Jython to compilePython into Java? Mohan, Please see the following link as an example. http://www.ssec.wisc.edu/~tomw/visadtutor/compile.html I just can not make any success with some of these instructions. Compiling your Python code

Re: Where is the latest step by step guide to use Jython to compilePython into Java?

2012-06-04 Thread David Shi
the latest step by step guide to use Jython to compilePython into Java? David,   As per my knowledge, You can’t find steps to convert python into java anywhere.   1)  I am not expert in python, but familiar with Java. Python by default uses python-vm and converts into byte code, wh

Re: Where is the latest step by step guide to use Jython to compile Python into Java?

2012-06-04 Thread Stefan Behnel
ython constructs tend to be more powerful and general, so there is no simple direct mapping. But assuming sufficiently complex Java code, any Python code can be translated to equivalent Java code. Simple prove: Jython can execute Python code, and Jython is (at its basis) written in Java. If you now c

RE: Where is the latest step by step guide to use Jython to compilePython into Java?

2012-06-04 Thread Narayanaswamy, Mohan
David, As per my knowledge, You can’t find steps to convert python into java anywhere. 1) I am not expert in python, but familiar with Java. Python by default uses python-vm and converts into byte code, which is not compatible with JVM byte-code, Jython/Jruby/Jxxx are supporting

Re: Where is the latest step by step guide to use Jython to compile Python into Java?

2012-06-04 Thread Stefan Behnel
David Shi, 04.06.2012 16:36: > Where is the latest step by step guide to use Jython to compile Python into > Java? I don't think there is such a thing, simply because Jython does not compile Python into Java. > I found that it was very confusing by reading not updated text. It

Where is the latest step by step guide to use Jython to compile Python into Java?

2012-06-04 Thread David Shi
Hello, Where is the latest step by step guide to use Jython to compile Python into Java? I found that it was very confusing by reading not updated text. Please help. Regards. David -- http://mail.python.org/mailman/listinfo/python-list

virtualenv and jython on Ubuntu 12.04

2012-05-22 Thread Gelonida N
Hi, I wanted to do some first experiments with Jython (which should now be able to run django apps) Thus I wanted to create a virtualenv setup for jython with following command: virtualenv -p jython --no-site-packages ~/mypy However this fails with following output: Running virtualenv

Re: Jython 2.7 alpha1 is out!

2012-05-19 Thread Guido van Rossum
n the Jython website/wiki instead of having to link to a mailing list archive page. :-) --Guido On Thu, May 17, 2012 at 1:56 PM, fwierzbi...@gmail.com wrote: > On behalf of the Jython development team, I'm pleased to announce that > Jython 2.7 alpha1 is available for downl

Re: cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-19 Thread Adam Tauno Williams
On Thu, 2012-05-17 at 11:13 +1000, Chris Angelico wrote: > On Thu, May 17, 2012 at 9:01 AM, Ethan Furman wrote: > > A record is an interesting critter -- it is given life either from the user > > or from the disk-bound data; its fields can then change, but those changes > > are not reflected on

Re: cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-16 Thread Ethan Furman
Chris Angelico wrote: On Thu, May 17, 2012 at 9:01 AM, Ethan Furman wrote: A record is an interesting critter -- it is given life either from the user or from the disk-bound data; its fields can then change, but those changes are not reflected on disk until .write_record() is called; I do thi

Re: cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-16 Thread Tim Delaney
On 17 May 2012 11:13, Chris Angelico wrote: > On Thu, May 17, 2012 at 9:01 AM, Ethan Furman wrote: > > A record is an interesting critter -- it is given life either from the > user > > or from the disk-bound data; its fields can then change, but those > changes > > are not reflected on disk unt

Re: cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-16 Thread Chris Angelico
On Thu, May 17, 2012 at 9:01 AM, Ethan Furman wrote: > A record is an interesting critter -- it is given life either from the user > or from the disk-bound data;  its fields can then change, but those changes > are not reflected on disk until .write_record() is called;  I do this > because I am fr

Re: cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-16 Thread Ethan Furman
Tim Delaney wrote: On 17 May 2012 07:33, Ethan Furman wrote: Just hit a snag: In cPython the deterministic garbage collection allows me a particular optimization when retrieving records from a dbf file -- namely, by using weakrefs I can tell if the record is still in memory and active, and if s

Re: cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-16 Thread Ethan Furman
ot; or "license" for more information. import sys sys.subversion ('CPython', 'tags/r271', '86832') Jython 2.5.2 (Release_2_5_2:7206, Mar 2 2011, 23:12:06) [Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_31 Type "help", &q

Re: cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-16 Thread Tim Delaney
On 17 May 2012 07:33, Ethan Furman wrote: > Just hit a snag: > > In cPython the deterministic garbage collection allows me a particular > optimization when retrieving records from a dbf file -- namely, by using > weakrefs I can tell if the record is still in memory and active, and if so > not hit

Re: cPython, IronPython, Jython, and PyPy (Oh my!)

2012-05-16 Thread Ian Kelly
copyright", "credits" or "license" for more information. >>> import sys >>> sys.subversion ('CPython', 'tags/r271', '86832') Jython 2.5.2 (Release_2_5_2:7206, Mar 2 2011, 23:12:06) [Java HotSpot(TM) Client VM (Sun Microsystems

  1   2   3   4   5   >