[New-bugs-announce] [issue11210] PyErr_SetFromWindowsErrWithFilenameObject() doesn't exist: remove it from pyerrors.h

STINNER Victor report at bugs.python.org
Mon Feb 14 11:15:21 CET 2011


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

PyAPI_FUNC(PyObject *) PyErr_SetFromWindowsErrWithFilenameObject(int, const char *); has a strange prototype: "FilenameObject" usually indicates a PyObject* argument, not a char* argument. The function doesn't exist in Python/errors.c, but there is a PyErr_SetExcFromWindowsErrWithFilenameObject() function.

PyErr_SetFromWindowsErrWithFilenameObject() was introduced in pyerrors.h by r28999 (8 years ago), but I am unable to find any concrete implementation.


Attached patch removes PyErr_SetFromWindowsErrWithFilenameObject() from pyerrors.h.

----------
components: Interpreter Core, Unicode
files: pyerrors_h.patch
keywords: easy, patch
messages: 128536
nosy: haypo
priority: normal
severity: normal
status: open
title: PyErr_SetFromWindowsErrWithFilenameObject() doesn't exist: remove it from pyerrors.h
versions: Python 3.3
Added file: http://bugs.python.org/file20759/pyerrors_h.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11210>
_______________________________________


More information about the New-bugs-announce mailing list