[New-bugs-announce] [issue13327] Update utime API to not require explicit None argument

Brian Curtin 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.

----------
assignee: brian.curtin
components: Library (Lib)
files: utime.diff
keywords: needs review, patch
messages: 146884
nosy: brian.curtin
priority: normal
severity: normal
stage: patch review
status: open
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>
<http://bugs.python.org/issue13327>
_______________________________________


More information about the New-bugs-announce mailing list