[issue15382] os.utime() mishandles some arguments

2019-09-09 Thread STINNER Victor
STINNER Victor added the comment: By the way, error messages are now also correct: >>> os.utime("x", ns=None) Traceback (most recent call last): File "", line 1, in TypeError: utime: 'ns' must be a tuple of two ints >>> os.utime("x", times=(0, 0), ns=None) Traceback (most recent call

[issue15382] os.utime() mishandles some arguments

2019-09-09 Thread STINNER Victor
STINNER Victor added the comment: > The documentation issue was fixed in issue23738. The documentation no longer > claims that ns can be None. If specified it must be a tuple of floats. tuple of integers, not tuple a floats. Python 3.9 documentation says: "If ns is specified, it must be a

[issue15382] os.utime() mishandles some arguments

2019-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The documentation issue was fixed in issue23738. The documentation no longer claims that ns can be None. If specified it must be a tuple of floats. -- nosy: +serhiy.storchaka resolution: -> out of date stage: -> resolved status: open -> closed

[issue15382] os.utime() mishandles some arguments

2019-09-06 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner This issue is not solved yet. Can I finalize this issue? -- nosy: +corona10 ___ Python tracker ___

[issue15382] os.utime() mishandles some arguments

2012-07-17 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: Contrarily to documentation: 1. os.utime() accepts a tuple with floats passed by ns argument: os.utime(file, ns=(0.5, 0.5)) 2. os.utime() does not accept explicit ns=None: os.utime(file, times=None)

[issue15382] os.utime() mishandles some arguments

2012-07-17 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Attached is a preliminary patch to check ns != Py_None. -- components: +Library (Lib) keywords: +patch nosy: +serwy type: - behavior Added file: http://bugs.python.org/file26421/issue15382.patch

[issue15382] os.utime() mishandles some arguments

2012-07-17 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: @serwy: can you please write a test for your patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15382 ___

[issue15382] os.utime() mishandles some arguments

2012-07-17 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: _rev1 has a basic test. Is it sufficient? -- Added file: http://bugs.python.org/file26423/issue15382_rev1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15382