@@ -241,13 +241,30 @@ in various ways. There is a separate error indicator for each thread.
241241 exception instance.
242242
243243
244+ .. c :function :: PyObject* PyErr_SetFromErrnoWithFilenameObjects (PyObject *type, PyObject *filenameObject, PyObject *filenameObject2)
245+
246+ Similar to :c:func: `PyErr_SetFromErrnoWithFilenameObject `, but takes a second
247+ filename object, for raising errors when a function that takes two filenames
248+ fails.
249+
250+ .. versionadded :: 3.4
251+
252+
244253.. c :function :: PyObject* PyErr_SetFromErrnoWithFilename (PyObject *type, const char *filename)
245254
246255 Similar to :c:func: `PyErr_SetFromErrnoWithFilenameObject `, but the filename
247256 is given as a C string. *filename * is decoded from the filesystem encoding
248257 (:func: `os.fsdecode `).
249258
250259
260+ .. c:function:: PyObject* PyErr_SetFromErrnoWithFilenames(PyObject *type, const char *filename, const char *filename2)
261+
262+ Similar to :c:func: `PyErr_SetFromErrnoWithFilename `, but accepts a
263+ second filename.
264+
265+ .. versionadded :: 3.4
266+
267+
251268.. c :function :: PyObject* PyErr_SetFromWindowsErr (int ierr)
252269
253270 This is a convenience function to raise :exc:`WindowsError`. If called with
@@ -266,33 +283,52 @@ in various ways. There is a separate error indicator for each thread.
266283 specifying the exception type to be raised. Availability: Windows.
267284
268285
269- .. c :function :: PyObject* PyErr_SetFromWindowsErrWithFilenameObject (int ierr, PyObject *filenameObject)
270-
271- Similar to :c:func: `PyErr_SetFromWindowsErr `, with the additional behavior
272- that if *filenameObject * is not *NULL *, it is passed to the constructor of
273- :exc: `WindowsError ` as a third parameter. Availability: Windows.
274-
275-
276286.. c :function :: PyObject* PyErr_SetFromWindowsErrWithFilename (int ierr, const char *filename)
277287
278288 Similar to :c:func: `PyErr_SetFromWindowsErrWithFilenameObject `, but the
279289 filename is given as a C string. *filename * is decoded from the filesystem
280290 encoding (:func: `os.fsdecode `). Availability: Windows.
281291
282292
293+ .. c:function:: PyObject* PyErr_SetFromWindowsErrWithFilenames(int ierr, const char *filename, const char *filename2)
294+
295+ Similar to :c:func: `PyErr_SetFromWindowsErrWithFilename `, but accepts
296+ a second filename. Availability: Windows.
297+
298+ .. versionadded :: 3.4
299+
300+
283301.. c :function :: PyObject* PyErr_SetExcFromWindowsErrWithFilenameObject (PyObject *type, int ierr, PyObject *filename)
284302
285303 Similar to :c:func: `PyErr_SetFromWindowsErrWithFilenameObject `, with an
286304 additional parameter specifying the exception type to be raised.
287305 Availability: Windows.
288306
289307
308+ .. c :function :: PyObject* PyErr_SetExcFromWindowsErrWithFilenameObjects (PyObject *type, int ierr, PyObject *filename, PyObject *filename2)
309+
310+ Similar to :c:func: `PyErr_SetExcFromWindowsErrWithFilenameObject `,
311+ but accepts a second filename object.
312+ Availability: Windows.
313+
314+ .. versionadded :: 3.4
315+
316+
290317.. c :function :: PyObject* PyErr_SetExcFromWindowsErrWithFilename (PyObject *type, int ierr, const char *filename)
291318
292319 Similar to :c:func: `PyErr_SetFromWindowsErrWithFilename `, with an additional
293320 parameter specifying the exception type to be raised. Availability: Windows.
294321
295322
323+ .. c :function :: PyObject* PyErr_SetExcFromWindowsErrWithFilenames (PyObject *type, int ierr, const char *filename, const char *filename2)
324+
325+ Similar to :c:func: `PyErr_SetExcFromWindowsErrWithFilename `,
326+ but accepts a second filename object.
327+ Availability: Windows.
328+
329+ .. versionadded :: 3.4
330+
331+
296332.. c :function :: PyObject* PyErr_SetImportError (PyObject *msg, PyObject *name, PyObject *path)
297333
298334 This is a convenience function to raise :exc: `ImportError `. *msg * will be
0 commit comments