Message3432
Hello,
os.getpid() is failing on jython 2.2.1:
16:54 pts/5 255 wesleys@slacker:/home/wesleys/sbox/blpython/src/bin$
bljython
Jython 2.2.1 on java1.5.0_06
Type "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getpid
Traceback (innermost last):
File "<console>", line 1, in ?
AttributeError: class 'org.python.modules.os' has no attribute 'getpid'
On a normal python box this is working like expected:
17:07 pts/4 0 wesleys@eniac:/home/wesleys$ python
Python 2.5.1 (r251:54863, Jul 31 2008, 22:53:39)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.getpid()
10238
Could you please include this function in an upcoming release of jython? |
|
Date |
User |
Action |
Args |
2008-08-18 15:10:14 | wesleys | set | recipients:
+ wesleys |
2008-08-18 15:10:14 | wesleys | set | messageid: <1219072214.22.0.497577706131.issue1106@psf.upfronthosting.co.za> |
2008-08-18 15:10:14 | wesleys | link | issue1106 messages |
2008-08-18 15:10:13 | wesleys | create | |
|