New submission from Brian Curtin <br...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue13327>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to