[Python-bugs-list] Bug (typo) in ntpath.getatime (PR#345)

db3l@fitlinxx.com db3l@fitlinxx.com
Fri, 2 Jun 2000 18:43:51 -0400 (EDT)


Full_Name: David Bolen
Version: 1.5.2
OS: Windows NT 4.0 SP4
Submission from: (NULL) (208.247.212.11)


Line 186 in file Lib/ntpath.py in the Python 1.5.2 distribution (part of the
getatime() function):

    return st[stat.ST_MTIME]

incorrect indexes the stat structure by ST_MTIME rather than ST_ATIME.

There is a similar bug (marked resolved) for posixpath.py for the same typo, but
I wasn't sure that the common issue with ntpath.py had been noticed.