Questions tagged [jython-2.7]

Jython, successor of JPython, is an open source implementation of the Python programming language written in Java.

Jython 2.7 is the latest stable Jython release.

Jython 2.7.0 was released in May 2015 as the first stable Jython version with language and runtime compatibility with CPython 2.7.0. New features include support for pip, a native launcher for Windows and many more.

201 questions
-1
votes
1 answer

Python pairs have multiple copies of a word in list

So I have the following code: def stripNonAlphaNum(text): import re return re.compile(r'\W+', re.UNICODE).split(text) def readText(fileStub): words = open(fileStub, 'r').read() words = words.lower() # Make it lowercase wordlist =…
Rivasa
  • 6,510
  • 3
  • 35
  • 64
-1
votes
1 answer

Integrate Python and his libraries with Java

I integrate Python and Java with Jython but I need some libraries(pandas, numpy, skfuzzy, matplotlib, sklearn, pickle) but Jython can't support some of them. Is it possible import that libraries from Jython or exist other Framework, language,…
-1
votes
1 answer

How to compare a return value of a recursive function with an integer (actual parameter of function)

I need to compare the return value of a recursive function with an integer. Doing recursively the sum of all elements of a list , I have to compare the final sum with an integer "n" giving back TRUE if sum == n , FALSE if sum != n . In addiction to…
-2
votes
1 answer

How to preserve the dict order while replacing the value of ke

Envs = ["re","pr","qa"] j = {'e.ticket.instructions': 'text', 'AGroup.ENV': 'text, loop','create.ENV.cro': 'boolean, loop'} for env in Envs: j = {key.replace('ENV', env): j.pop(key) for key in j.keys()} for i in j: …
vimedit
  • 1
  • 1
-2
votes
1 answer

Jython: cannot import name String [from java.util]

I'm trying to use a Jython automation script in Maximo 7.6.1.1: from psdi.iface.router import HTTPHandler from java.util import HashMap from java.util import String handler = HTTPHandler() map =…
User1974
  • 276
  • 1
  • 17
  • 63
-2
votes
1 answer

Translate Java code into Jython code

The code below is written in Java. It has been shortened to simplify the time required for an answer. The full code takes a screenshot and copies it to the clipboard. (Source:…
MMc
  • 23
  • 3
1 2 3
13
14