Message274
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. |
|
Date |
User |
Action |
Args |
2008-02-20 17:16:48 | admin | link | issue230021 messages |
2008-02-20 17:16:48 | admin | create | |
|