[issue15382] os.utime() mishandles some arguments

STINNER Victor report at bugs.python.org
Mon Sep 9 05:01:47 EDT 2019


STINNER Victor <vstinner at python.org> added the comment:

By the way, error messages are now also correct:

>>> os.utime("x", ns=None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: utime: 'ns' must be a tuple of two ints

>>> os.utime("x", times=(0, 0), ns=None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: utime: you may specify either 'times' or 'ns' but not both

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue15382>
_______________________________________


More information about the Python-bugs-list mailing list