mirror of
https://github.com/python/cpython.git
synced 2025-11-20 02:50:14 +00:00
Issue #20517: Removed unnecessary new (short-lived) functions from PyErr.
This commit is contained in:
parent
1c143b19c8
commit
8f9f0f12e8
6 changed files with 7 additions and 173 deletions
|
|
@ -257,14 +257,6 @@ in various ways. There is a separate error indicator for each thread.
|
|||
(:func:`os.fsdecode`).
|
||||
|
||||
|
||||
.. c:function:: PyObject* PyErr_SetFromErrnoWithFilenames(PyObject *type, const char *filename, const char *filename2)
|
||||
|
||||
Similar to :c:func:`PyErr_SetFromErrnoWithFilename`, but accepts a
|
||||
second filename.
|
||||
|
||||
.. versionadded:: 3.4
|
||||
|
||||
|
||||
.. c:function:: PyObject* PyErr_SetFromWindowsErr(int ierr)
|
||||
|
||||
This is a convenience function to raise :exc:`WindowsError`. If called with
|
||||
|
|
@ -290,14 +282,6 @@ in various ways. There is a separate error indicator for each thread.
|
|||
encoding (:func:`os.fsdecode`). Availability: Windows.
|
||||
|
||||
|
||||
.. c:function:: PyObject* PyErr_SetFromWindowsErrWithFilenames(int ierr, const char *filename, const char *filename2)
|
||||
|
||||
Similar to :c:func:`PyErr_SetFromWindowsErrWithFilename`, but accepts
|
||||
a second filename. Availability: Windows.
|
||||
|
||||
.. versionadded:: 3.4
|
||||
|
||||
|
||||
.. c:function:: PyObject* PyErr_SetExcFromWindowsErrWithFilenameObject(PyObject *type, int ierr, PyObject *filename)
|
||||
|
||||
Similar to :c:func:`PyErr_SetFromWindowsErrWithFilenameObject`, with an
|
||||
|
|
@ -320,15 +304,6 @@ in various ways. There is a separate error indicator for each thread.
|
|||
parameter specifying the exception type to be raised. Availability: Windows.
|
||||
|
||||
|
||||
.. c:function:: PyObject* PyErr_SetExcFromWindowsErrWithFilenames(PyObject *type, int ierr, const char *filename, const char *filename2)
|
||||
|
||||
Similar to :c:func:`PyErr_SetExcFromWindowsErrWithFilename`,
|
||||
but accepts a second filename object.
|
||||
Availability: Windows.
|
||||
|
||||
.. versionadded:: 3.4
|
||||
|
||||
|
||||
.. c:function:: PyObject* PyErr_SetImportError(PyObject *msg, PyObject *name, PyObject *path)
|
||||
|
||||
This is a convenience function to raise :exc:`ImportError`. *msg* will be
|
||||
|
|
|
|||
|
|
@ -317,12 +317,6 @@ PyErr_SetExcFromWindowsErrWithFilename:PyObject*:type:0:
|
|||
PyErr_SetExcFromWindowsErrWithFilename:int:ierr::
|
||||
PyErr_SetExcFromWindowsErrWithFilename:const char*:filename::
|
||||
|
||||
PyErr_SetExcFromWindowsErrWithFilenames:PyObject*::null:
|
||||
PyErr_SetExcFromWindowsErrWithFilenames:PyObject*:type:0:
|
||||
PyErr_SetExcFromWindowsErrWithFilenames:int:ierr::
|
||||
PyErr_SetExcFromWindowsErrWithFilenames:const char*:filename::
|
||||
PyErr_SetExcFromWindowsErrWithFilenames:const char*:filename2::
|
||||
|
||||
PyErr_SetFromErrno:PyObject*::null:
|
||||
PyErr_SetFromErrno:PyObject*:type:0:
|
||||
|
||||
|
|
@ -330,11 +324,6 @@ PyErr_SetFromErrnoWithFilename:PyObject*::null:
|
|||
PyErr_SetFromErrnoWithFilename:PyObject*:type:0:
|
||||
PyErr_SetFromErrnoWithFilename:const char*:filename::
|
||||
|
||||
PyErr_SetFromErrnoWithFilenames:PyObject*::null:
|
||||
PyErr_SetFromErrnoWithFilenames:PyObject*:type:0:
|
||||
PyErr_SetFromErrnoWithFilenames:const char*:filename::
|
||||
PyErr_SetFromErrnoWithFilenames:const char*:filename2::
|
||||
|
||||
PyErr_SetFromWindowsErr:PyObject*::null:
|
||||
PyErr_SetFromWindowsErr:int:ierr::
|
||||
|
||||
|
|
@ -342,11 +331,6 @@ PyErr_SetFromWindowsErrWithFilename:PyObject*::null:
|
|||
PyErr_SetFromWindowsErrWithFilename:int:ierr::
|
||||
PyErr_SetFromWindowsErrWithFilename:const char*:filename::
|
||||
|
||||
PyErr_SetFromWindowsErrWithFilenames:PyObject*::null:
|
||||
PyErr_SetFromWindowsErrWithFilenames:int:ierr::
|
||||
PyErr_SetFromWindowsErrWithFilenames:const char*:filename::
|
||||
PyErr_SetFromWindowsErrWithFilenames:const char*:filename2::
|
||||
|
||||
PyErr_SetInterrupt:void:::
|
||||
|
||||
PyErr_SetNone:void:::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue