Message147057
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. |
|
Date |
User |
Action |
Args |
2011-11-04 23:11:17 | JBernardo | set | recipients:
+ JBernardo, terry.reedy |
2011-11-04 23:11:17 | JBernardo | set | messageid: <1320448277.91.0.0573239532372.issue13290@psf.upfronthosting.co.za> |
2011-11-04 23:11:17 | JBernardo | link | issue13290 messages |
2011-11-04 23:11:17 | JBernardo | create | |
|