[Cython] Bug in DictNode
Martin C. Martin
martin at martincmartin.com
Mon Mar 31 02:07:27 CEST 2008
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
> Cython-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/cython-dev
More information about the Cython-dev
mailing list