Message664
os.path.gmtime returns 0.0 for missing files
instead of throwing an OSError (as python does)
>python
Python 2.1 (#15, Apr 16 2001, 18:25:49) [MSC 32
bit (Intel)] on win32
Type "copyright", "credits" or "license" for more
information.
>>> import os.path
>>> os.path.getmtime('nonfile')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "D:\Python2.1\lib\ntpath.py", line 183, in
getmtime
st = os.stat(filename)
OSError: [Errno 2] No such file or directory: 'nonfile'
>>> ^
>jython
Jython 2.1 on java1.3.1_01 (JIT: null)
Type "copyright", "credits" or "license" for more
information.
>>> import os.path
>>> os.path.getmtime('nonfile')
0.0
>>>
|
|
Date |
User |
Action |
Args |
2008-02-20 17:17:06 | admin | link | issue562943 messages |
2008-02-20 17:17:06 | admin | create | |
|