Message664

Author nobody
Recipients
Date 2002-05-31.15:14:33
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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
>>>
History
Date User Action Args
2008-02-20 17:17:06adminlinkissue562943 messages
2008-02-20 17:17:06admincreate