[Python-Dev] os.getmtime now returns a float?

Gregory P. Smith greg at electricrain.com
Mon Jun 19 23:17:35 CEST 2006


os.path.getmtime returns a float on linux (2.5a2/b1 HEAD); in 2.4 it
returned an int.  this change makes sense, its what time.time returns.

should there be a note in Misc/NEWS or whatsnew mentioning this minor
change (or did i miss it)?  It breaks code that unintentionally
depended on it returning an int.

-g



More information about the Python-Dev mailing list