mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Get rid of deprecated IOError in the doc
This commit is contained in:
parent
5898d4f4d9
commit
08af00047b
5 changed files with 12 additions and 12 deletions
|
|
@ -236,8 +236,8 @@ in various ways. There is a separate error indicator for each thread.
|
|||
|
||||
Similar to :c:func:`PyErr_SetFromErrno`, with the additional behavior that if
|
||||
*filenameObject* is not *NULL*, it is passed to the constructor of *type* as
|
||||
a third parameter. In the case of exceptions such as :exc:`IOError` and
|
||||
:exc:`OSError`, this is used to define the :attr:`filename` attribute of the
|
||||
a third parameter. In the case of :exc:`OSError` exception,
|
||||
this is used to define the :attr:`filename` attribute of the
|
||||
exception instance.
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue