João Bernardo <jbv...@gmail.com> added the comment: Oh, sorry for the full file. Yes, I only changed after
d = PyObject_GetAttrString(v, "__dict__"); if (d == NULL) { I was searching for uses of slots other than __slots__ = (a, b) and I saw a guy saying that dicts may have special meaning the future. So, something like __slots__ = {'my_var': int} could be an annotation (or hint for IDE's). In the present implementation, the value of each key is just ignored. If slots is just "a_single_string" it should not be treated as an iterable, so I used PyUnicode_Check because I didn't knew a better method. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13290> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com