Re: Bug in astmodule?

Jeremy Hylton <[email protected]> Fri, 19 Apr 2002 13:19:48 -0400
Newsgroups gmane.comp.python.compiler
Message-ID <[email protected]>
>>>>> "NN" == Neal Norwitz <[email protected]> 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