New GitHub issue #95498 from piotr-dobrogost:<br>

<hr>

<pre>
At https://docs.python.org/3/library/functions.html#open, in the documentation of the `mode` argument there is no information that this argument is ignored when the function is called with a file descriptor instead of a path.

See [Why does os.fdopen ignore mode?](https://stackoverflow.com/questions/65753134/why-does-os-fdopen-ignore-mode) SO question. The question talks about `os.fdopen()` but according to https://docs.python.org/3/library/os.html#os.fdopen

> This is an alias of the [open()](https://docs.python.org/3/library/functions.html#open) built-in function and accepts the same arguments.

so I think it should be enough to place the information in the documentation of the `mode` argument of the built-in `open()` function. This way it would document the built-in `open()` function but also the `os.fdopen()` function by virtue of the latter being an alias of the former.

</pre>

<hr>

<a href="https://github.com/python/cpython/issues/95498">View on GitHub</a>
<p>Labels: docs</p>
<p>Assignee: </p>