Tag: jython

65 votes
5 answers
1.9K views
Can I detect if my code is running on cPython or Jython?

I'm working on a small django project that will be deployed in a servlet container later. But development

avatar
Denese
0 1 0 9
asked 07 September, 2021
66 votes
2 answers
454 views
Packaging a Jython program in an executable jar

I am trying to package a jython program into an executable jar which the user can simply double-click to run w

avatar
Joseph
0 1 0 9
asked 07 September, 2021
57 votes
2 answers
2.5K views
Jython, use only a method from Python from Java?

When reading and using this article it assumes that we have a full object definition with class and mapping (p

avatar
Robt
0 1 0 9
asked 07 September, 2021
53 votes
1 answers
763 views
Clojure Jython interop

I was wondering if anyone has tried somehow calling Jython functions from within Clojure, and how you went abo

avatar
Chelsea
0 1 0 9
asked 07 September, 2021
49 votes
5 answers
2.8K views
fast-ish python/jython IPC?

All I want to do is make some RPC calls over sockets. I have a server that does backendish stuff running jytho

avatar
Nereida
0 1 0 9
asked 07 September, 2021
59 votes
1 answers
1.7K views
How can I add jars dynamically to jython, inside script?

I am writing a package in python that talks to an ldap server. I want it to work in CPython and Jython. To get

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
47 votes
2 answers
2.4K views
Jythonc missing

I just installed Jython 2.5.1. I want to convert my Python file into Java class file and it is instructed on t

avatar
Jeff
0 1 0 9
asked 07 September, 2021
59 votes
2 answers
1.2K views
Redux: How do I get Jython to use Python modules stored in Lib within its own jar file when running in Hadoop?

I'm attempting to use Jython for an implementation within Hadoop 1.2.1. I have seen strikingly little ab

avatar
Xavier
0 1 0 9
asked 07 September, 2021
52 votes
2 answers
2.2K views
Why does this Jython loop fail after a single run?

I've got the following code: public static String getVersion() { PythonInterpreter interpreter = ne

avatar
Clarice
0 1 0 9
asked 07 September, 2021
50 votes
1 answers
1.6K views
Interoperability of Scala and Jython

I would think that since they both run on the JVM, Scala and Jython could be used together. How well do they i

avatar
Sydney
0 1 0 9
asked 07 September, 2021
67 votes
4 answers
2.2K views
Using Jython with Maven

I have a Maven module, that depends on various other Maven dependencies by which I am accessing through my jyt

avatar
Deedee
0 1 0 9
asked 07 September, 2021
49 votes
4 answers
2.2K views
Differences between Jython and Python

I know Jython converts Python code into Java byte code, but are there any syntax changes between the two? and

avatar
Tuan
0 1 0 9
asked 07 September, 2021
57 votes
4 answers
1.2K views
jython multithreading

I started studying python a couple of month ago, then I found Jython. Do threads work properly in Jython, sin

avatar
Royal
0 1 0 9
asked 07 September, 2021
62 votes
2 answers
1.6K views
Jython CLASSPATH, sys.path and JDBC drivers

How can I add JDBC drivers at runtime to Jython? Using CLASSPATH works, but using sys.path doesn't work w

avatar
Hilario
0 1 0 9
asked 07 September, 2021
62 votes
6 answers
1.1K views
What are some strategies to write python code that works in CPython, Jython and IronPython

Having tries to target two of these environments at the same time I can safely say the if you have to use a da

avatar
Hildegard
0 1 0 9
asked 07 September, 2021
62 votes
3 answers
2.1K views
How to read the last MB of a very large text file

I am trying to find a string near the end of a text file. The problem is that the text file can vary greatly i

avatar
Charis
0 1 0 9
asked 07 September, 2021
54 votes
5 answers
1.6K views
Using NumPy and Cpython with Jython

I must use a commercial Java library, and would like to do it from Python. Jython is robust and I am fine with

avatar
Nereida
0 1 0 9
asked 07 September, 2021
69 votes
2 answers
1.4K views
Pure python implementation of greenlet API

The greenlet package is used by gevent and eventlet for asynchronous IO. It is written as a C-extension and t

avatar
Elicia
0 1 0 9
asked 07 September, 2021
59 votes
4 answers
2.9K views
Jython and python modules

I've just started using the PythonInterpreter from within my Java classes, and it works great! However, i

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
61 votes
4 answers
1.9K views
Does Jython have the GIL?

I was sure that it hasn't, but looking for a definite answer on the Interwebs left me in doubt. For examp

avatar
Nereida
0 1 0 9
asked 07 September, 2021