Re: Bug in astmodule?
Neal Norwitz <[email protected]> Fri, 19 Apr 2002 13:28:12 -0400
| Newsgroups | gmane.comp.python.compiler |
|---|---|
| Organization | MetaSlash, Inc. |
| Message-ID | <[email protected]> |
Jeremy Hylton wrote: > > >>>>> "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". Oops, I obviously wasn't thinking. It makes perfect sense. Neal