Issue1106

classification
Title: os.getpid() call missing
Type: behaviour Severity: normal
Components: Library Versions: 2.2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: nriley, wesleys
Priority: Keywords:

Created on 2008-08-18.15:10:14 by wesleys, last changed 2008-08-18.15:27:04 by nriley.

Messages
msg3432 (view) Author: Wesley Schwengle (wesleys) Date: 2008-08-18.15:10:13
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?
msg3433 (view) Author: Wesley Schwengle (wesleys) Date: 2008-08-18.15:11:24
removed 2.2.2, its not working for all jython releases.
msg3434 (view) Author: Nicholas Riley (nriley) Date: 2008-08-18.15:27:04
I added this a while back - it will be in 2.5, or you can check out and build the 
asm branch to get it now.
History
Date User Action Args
2008-08-18 15:27:04nrileysetstatus: open -> closed
resolution: fixed
messages: + msg3434
nosy: + nriley
2008-08-18 15:11:24wesleyssetmessages: + msg3433
2008-08-18 15:10:14wesleyscreate