[issue13327] Update utime API to not require explicit None argument
report at bugs.python.org
Thu Nov 3 00:46:32 CET 2011
New submission from Brian Curtin <brian at python.org>:
os.utime currently requires an explicit `None` as the second argument in order to update to the current time. Other APIs would just have the second argument as optional in this case, operating with one argument.
Attached is a patch which changes the second argument to accept the time tuple, `None`, or literally nothing. Tested on Windows and Mac.
If this is acceptable, I'll make the same change for futimes, lutimes, and futimens.
components: Library (Lib)
keywords: needs review, patch
stage: patch review
title: Update utime API to not require explicit None argument
type: feature request
versions: Python 3.3
Added file: http://bugs.python.org/file23600/utime.diff
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list