commit | ebca9fc1ba23e58d734b9ab422da6a64fa4d72e2 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Dec 04 15:54:53 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Dec 04 15:54:53 2001 +0000 |
tree | 7f13738b199d02ff870902b7349481c741ec93a7 | |
parent | d3d8a1df5cf78b25cd3edeff9d2e13b2279f927d [diff] |
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.