|
From: <no...@so...> - 2001-01-25 10:01:07
|
Bug #130021, was updated on 2001-Jan-25 02:01
Here is a current snapshot of the bug.
Project: Jython
Category: Library
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: karthy
Assigned to : nobody
Summary: os.stat return wrong values
Details: jython-2.0, Sun JDK-1.3, Linux
The os.stat differs between cpython and jython. One can expect, that not
all values is available in jython, but the time fields is 1000 times larger
in jython that in cpython which makes the time library fail when operating
on the values.
Here is an example in jython and cpython for comarrison:
Jython:
>>> import os
>>> os.stat('jakarte-test')
(0, 0, 0, 0, 0, 0, 15761L, 980410501000L, 980410501000L, 0)
Python:
>>> import os
>>> os.stat('jakarte-test')
(33204, 1217412, 3, 1, 2115, 1000, 15761, 980410501, 980410501,
980410501)
Also, the size is a long, while Python return an int.
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=130021&group_id=12867
|