Tag: python

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.3K 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
54 votes
3 answers
2.7K views
How to catch an exception in python and get a reference to the exception, WITHOUT knowing the type?

I'm wondering how I can catch any raised object (i.e. a type that does not extend Exception), and still g

avatar
Vi
0 1 0 9
asked 07 September, 2021
57 votes
8 answers
1.4K views
Email an attachment in R with gmail

I am desiring to send an email in R with an attachment using gmail. I have found that sendmailR does not work

avatar
Dario
0 1 0 9
asked 07 September, 2021
56 votes
6 answers
2.5K views
Migrating from CPython to Jython

I'm considering moving my code (around 30K LOC) from CPython to Jython, so that I could have better integ

avatar
Benton
0 1 0 9
asked 07 September, 2021
62 votes
1 answers
1.4K views
Using Jython through IPython: is readline still an issue?

I'd like to use the Jython interpreter with IPython, so that I could use things like tab completion and p

avatar
Solomon
0 1 0 9
asked 07 September, 2021
57 votes
6 answers
3K views
How can I call scikit-learn classifiers from Java?

I have a classifier that I trained using Python's scikit-learn. How can I use the classifier from a Java

avatar
Joseph
0 1 0 9
asked 07 September, 2021
67 votes
4 answers
1.7K views
How can I make the PyDev editor selectively ignore errors?

I'm using PyDev under Eclipse to write some Jython code. I've got numerous instances where I need t

avatar
Lynette
0 1 0 9
asked 07 September, 2021
57 votes
6 answers
1.5K views
Using a java library from python

I have a python app and java app. The python app generates input for the java app and invokes it on the comman

avatar
Solomon
0 1 0 9
asked 07 September, 2021
55 votes
2 answers
345 views
What is the difference between Python vs Jython vs IronPython vs wxPython?

I am quite new in Python programming. While googling I found some of the Python related words. I just wanted t

avatar
Kristopher
0 1 0 9
asked 07 September, 2021
54 votes
1 answers
442 views
Why is Jython much slower than CPython, despite the JVM's advances?

No flame wars please. I am admittedly no fan of Java, but I consider the JVM to be a fairly decent and well-op

avatar
Denese
0 1 0 9
asked 07 September, 2021
52 votes
4 answers
808 views
How can I install various Python libraries in Jython?

I know that I can install Jython with Java and that I can use Jython where I use Python. The Jython shell is w

avatar
Wilfredo
0 1 0 9
asked 07 September, 2021
62 votes
9 answers
794 views
Cross-platform way to get PIDs by process name in python

Several processes with the same name are running on host. What is the cross-platform way to get PIDs of those

avatar
Kisha
0 1 0 9
asked 07 September, 2021
52 votes
4 answers
1.4K views
Distributing my Python scripts as JAR files with Jython?

I have been a Python programmer for almost two years, and I am used to writing small scripts to automate some

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
56 votes
3 answers
598 views
log4j with timestamp per log entry

this is my log output INFO main digestemails - process inbox INFO main digestemails - checking for emails in

avatar
Corey
0 1 0 9
asked 07 September, 2021
50 votes
7 answers
1.5K views
Programming Android apps in jython

The other day I came across a Python implementation called Jython. With Jython you can write Java applications

avatar
Joseph
0 1 0 9
asked 07 September, 2021
60 votes
4 answers
2.1K views
When will Jython support Python 3?

According to Jython's documentation: Jython is an implementation of the Python language for the Jav

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
60 votes
7 answers
1.9K views
Boolean identity == True vs is True

It is standard convention to use if foo is None rather than if foo == None to test if a value is specifically

avatar
Cortez
0 1 0 9
asked 07 September, 2021