This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author JBernardo
Recipients JBernardo, terry.reedy
Date 2011-11-04.23:11:17
SpamBayes Score 2.6913048e-08
Marked as misclassified No
Message-id <1320448277.91.0.0573239532372.issue13290@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-11-04 23:11:17JBernardosetrecipients: + JBernardo, terry.reedy
2011-11-04 23:11:17JBernardosetmessageid: <1320448277.91.0.0573239532372.issue13290@psf.upfronthosting.co.za>
2011-11-04 23:11:17JBernardolinkissue13290 messages
2011-11-04 23:11:17JBernardocreate