Issue230021
Created on 2001-01-25.10:01:26 by karthy, last changed 2001-01-31.10:40:34 by bckfnn.
History | |||
---|---|---|---|
Date | User | Action | Args |
2001-01-25 10:01:26 | karthy | create |
Created on 2001-01-25.10:01:26 by karthy, last changed 2001-01-31.10:40:34 by bckfnn.
Messages | |||
---|---|---|---|
msg274 (view) | Author: Karsten Thygesen (karthy) | Date: 2001-01-25.10:01:26 | |
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. |
|||
msg275 (view) | Author: Finn Bock (bckfnn) | Date: 2001-01-31.10:40:34 | |
Fixed in javaos.py 2.5; The value returned as mtime is now a double in the right range. By using a double, we ensure that no information is lost when used on windows NT which have millisecond resolution. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2001-01-25 10:01:26 | karthy | create |
Supported by Python Software Foundation,
Powered by Roundup