mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
SF patch http://sourceforge.net/patch/?func=detailpatch&patch_id=103453&group_id=5470 PyMember_Set of T_CHAR always raises exception. Unfortunately, this is a use of a C API function that Python itself never makes, so there's no .py test I can check in to verify this stays fixed. But the fault in the code is obvious, and Dave Cole's patch just as obviously fixes it.
This commit is contained in:
parent
40ead76ed6
commit
547397c45b
2 changed files with 2 additions and 0 deletions
|
@ -231,6 +231,7 @@ PyMember_Set(char *addr, struct memberlist *mlist, char *name, PyObject *v)
|
|||
PyErr_BadArgument();
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
PyErr_SetString(PyExc_SystemError,
|
||||
"bad memberlist type");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue