In case it makes a difference, this DictNode is the "dict" attribute of
a PyClassDefNode, created from this:
class Spam:
pass
Best,
Martin
Martin C. Martin wrote:
> Hi,
>
> Calling get_child_accessors() on a DictNode throws an exception,
> because, because it doesn't define a child_attrs field (and thus
> inherits the value None from class Node), so get_child_attrs() checks
> self.subexprs to see if it's None, but the field doesn't exist. So,
> what's the right fix?
>
> - Change get_child_attrs() to look at self.saved_subexpr_nodes instead
> of self.subexprs?
> - Add "subexprs = None" to ExprNode?
> - Add "subexprs = None" to DictNode?
> - Something else?
>
> Best,
> Martin
> _______________________________________________
> Cython-dev mailing list
> [email protected]
> http://codespeak.net/mailman/listinfo/cython-dev
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev