Message10318
zimbra@q1:~$ java -jar /tmp/jython-2.7.0.jar
Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11)
[OpenJDK 64-Bit Server VM (Oracle Corporation)] on java1.8.0-internal
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getpid()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'getpid'
>>> quit()
zimbra@q1:~$ java -jar /tmp/jython-2.7.0b3.jar
Jython 2.7b3 (default:e81256215fb0, Aug 4 2014, 02:39:51)
[OpenJDK 64-Bit Server VM (Oracle Corporation)] on java1.8.0-internal
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getpid()
25298
>>> quit()
I fail to see what Oracle's Java build vs OpenJDK has to do with it. It clearly works fine with OpenJDK in 2.7.0 beta3, and not in any later Jython standalone build. I'll certainly give it a shot however. |
|
Date |
User |
Action |
Args |
2015-10-07 16:16:58 | mishikal@yahoo.com | set | messageid: <1444234618.11.0.363166945695.issue2405@psf.upfronthosting.co.za> |
2015-10-07 16:16:58 | mishikal@yahoo.com | set | recipients:
+ mishikal@yahoo.com, zyasoft, darjus |
2015-10-07 16:16:58 | mishikal@yahoo.com | link | issue2405 messages |
2015-10-07 16:16:57 | mishikal@yahoo.com | create | |
|