]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
PyObject_Generic{Get,Set}Attr(): ensure that the attribute name is a
authorGuido van Rossum <guido@python.org>
Tue, 4 Dec 2001 15:54:53 +0000 (15:54 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 4 Dec 2001 15:54:53 +0000 (15:54 +0000)
commitebca9fc1ba23e58d734b9ab422da6a64fa4d72e2
tree7f13738b199d02ff870902b7349481c741ec93a7
parentd3d8a1df5cf78b25cd3edeff9d2e13b2279f927d
PyObject_Generic{Get,Set}Attr(): ensure that the attribute name is a
string object (or a Unicode that's trivially converted to ASCII).

PyObject_GetAttr(): add an 'else' to the Unicode test like
PyObject_SetAttr() already has.
Objects/object.c