[Compiler-sig] Bug in astmodule?

Jeremy Hylton jeremy@zope.com
Fri, 19 Apr 2002 13:19:48 -0400


>>>>> "NN" == Neal Norwitz <neal@metaslash.com> writes:

  NN>             if (strcmp(STR(CHILD(n, 1)), "in") == 0)
  NN>                 return NotIn;
  NN>             if (strcmp(STR(CHILD(n, 0)), "is") == 0)
  NN>                 return IsNot;

  NN> Shouldn't the 2nd if, do CHILD(n, 1) like the first?

No.  One is checking "not in" and the other is "is not".

I'll add a comment, though.

Jeremy