Message3432

Author wesleys
Recipients wesleys
Date 2008-08-18.15:10:13
SpamBayes Score 1.48089e-08
Marked as misclassified No
Message-id <1219072214.22.0.497577706131.issue1106@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2008-08-18 15:10:14wesleyssetrecipients: + wesleys
2008-08-18 15:10:14wesleyssetmessageid: <1219072214.22.0.497577706131.issue1106@psf.upfronthosting.co.za>
2008-08-18 15:10:14wesleyslinkissue1106 messages
2008-08-18 15:10:13wesleyscreate