Hi everyone ,
I had to read from a file and for each data between delimiter i need to remove the white space and i have written the following program in jython
When i am trying to rewrite ,its rewriting at the end of source file.
filesrc = open('c:/FILE/split_doc.txt','r+')
for list in filesrc.readlines():
#split the records by...
I want to create a cluster with 2 managed servers on 2 different physical machines.
I have following tasks to be performed (please correct me if I miss something)
Domain creation.
Set admin server properties and create AdminServer under SSL
Create logical machines for the physical ones
Create managed servers
create cluster with the m...
Let say i have a string like this 'this is a statement'
and if i want to search and replace string with this 'this ** a statement'
string to search for this is a statement , this si a statement , this i a statement and any combination convert them into this trim a statement
i.e for any word combination between this & a statement ...
I need to make some GUIs for a Jython application, but would like to minimize translation time should the project switch over to CPython. HTML or XUL are possibilities, but ones that I'd like to avoid. Any ideas on a cross-implementation pythonic GUI toolkit?
...
I am pretty sure that python scripts will work in all three, but I want to make sure. I have read here and there about editors that can write CPython, Jython, IronPython and I am hoping that I am looking to much into the distinction.
My situation is I have 3 different api's that I want to test. Each api performs the same functionality...
Hi
is it possible, by using jython to call jython classes from java code?
If yes, how please?
...
Are their any ways to optimize Jython without resorting to profiling or significantly changing the code?
Specifically are there any flags that can be passed to the compiler, or code hints in tight loops.
...
Hi everyone ,
Is there is command in jython which can compare line by line between two files and display the non-matching record.
Thanks
...
I'm wondering how I can catch any raised object (i.e. a type that does not extend Exception), and still get a reference to it.
I came across the desire to do this when using Jython. When calling a Java method, if that method raises an exception, it will not extend Python's Exception class, so a block like this will not catch it:
try:...
Why does the wildcard query "dog#V*" fail to retrieve a document that contains "dog#VVP"?
The following code written in Jython for Lucene 3.0.0 fails to retrieve the indexed document. Am I missing something?
analyzer = WhitespaceAnalyzer()
directory = FSDirectory.open(java.io.File("testindex"))
iwriter = IndexWriter(directory, anal...
Hi!
I read about the problems with CPython and CPU bound threads and the GIL and some changes in Python 3.2.
Do IronPython and Jython have this same problem?
Thanks
...
In the 'old days' when there was just cpython, most extensions were written in c (as platform independent as possible) and compiled into pyd's (think PyCrypto for example). Now there is Jython, IronPython and PyPy and the pyd’s do not work with any of them (Ironclad aside). It seems they all support ctypes and that the best approach MI...
Hi,
I was wondering if anyone has tried somehow calling Jython functions
from within Clojure, and how you went about doing this if so. I have
not used Jython, but I would imagine the Jython interpreter can be
invoked in the same way as any other java code, and Python programs
can be run within it. However I wonder if it would be possi...
For each pixel in pic:
r= random()
if r < 0.25:
set the red level to randrange(0,256),
set the green level to randrange(0,256)
set the blue level to randrange(0,256)
The rest of the unseen code is correct, I just can't figure out how to phrase this function well enough for it to work.
...
We are currently considering using Netbeans to develop a Jython application and I am in the process of evaluating Netbeans' features.
It appears that creating a Jython application is trivial in Netbeans once the Python and Jython modules are installed. Yet I couldn't find a feature which would let we wrap my Jython app as a JAR file wit...
I am planning to use Jython with Django. I want to know how stable Jython project is, how easy to use it, is? and how large its developer community is?
...
Just trying jython for the first time, because something came up at work that would fit for this perfect for it. I assume jython can make mysql jdbc connection using the mysql jdbc driver. After googling and reading, however I am having problems and it seems jython specific and probably simple.
so i do jython:
Jython 2.5.1 (Release_2_...
I am trying to get Netbeans python to run with the default python platform set to Python 2.6.1 (my system python), so in Netbeans I do the following:
Tools -> Python Platform
Set Python 2.6.1 to 'default'
However, it seems impossible to make this stick. Whenever I restart Netbeans it's back to Jython 2.5 again.
Moreover, I can obvious...
hi..
Am trying to execute a complete Jython project using java eclipse 3.4.. I have configured Jython environment in my eclipse..I went through certain tutorials which described about Building a factory.. But i guess that method can be used to execute applications that are specific to a particular Jython module.. What I exactly need is...
I need to add Administrative users to the WebSphere Console using a Jython script. I tried to turn on the "Log command assistance commands" preference, but it did not log adding a user. It did log other stuff though.
We setup alot of servers and are trying to script the entire setup process.
Cheers,
Konrad
...