[docs] os module docs ambiguity
Adnan Hodzic
hokaidons at gmail.com
Fri Dec 25 02:55:41 EST 2015
Hi,
Just wanted to pinpoint ambiguity I've noticed in *os* module documentation:
os.rename(*src*, *dst*)
Rename the file or directory *src* to *dst*. If *dst* is a directory,
OSError
<https://docs.python.org/2.6/library/exceptions.html#exceptions.OSError>
will be raised.
I believe that OSError is being raised in case of existing destination
directory, so I presume the correct second sentence would be:
os.rename(*src*, *dst*)
Rename the file or directory *src* to *dst*. If *dst* is *existing*
directory, OSError
<https://docs.python.org/2.6/library/exceptions.html#exceptions.OSError>
will be raised.
Sorry if I misunderstud something, since English is not my native tongue,
although I'm getting along :)
Best regards,
Adnan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20151225/f20f40b8/attachment.html>
More information about the docs
mailing list