Index: Modules/parsermodule.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Modules/parsermodule.c,v retrieving revision 2.74 diff -c -r2.74 parsermodule.c *** Modules/parsermodule.c 31 Dec 2002 18:17:43 -0000 2.74 --- Modules/parsermodule.c 29 Jan 2003 10:46:45 -0000 *************** *** 1440,1445 **** --- 1440,1446 ---- || strcmp(s, "-=") == 0 || strcmp(s, "*=") == 0 || strcmp(s, "/=") == 0 + || strcmp(s, "//=") == 0 || strcmp(s, "%=") == 0 || strcmp(s, "&=") == 0 || strcmp(s, "|=") == 0 *************** *** 2095,2100 **** --- 2096,2102 ---- for ( ; res && (pos < nch); pos += 2) res = (((TYPE(CHILD(tree, pos)) == STAR) || (TYPE(CHILD(tree, pos)) == SLASH) + || (TYPE(CHILD(tree, pos)) == DOUBLESLASH) || (TYPE(CHILD(tree, pos)) == PERCENT)) && validate_factor(CHILD(tree, pos + 1))); Index: Lib/test/test_parser.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_parser.py,v retrieving revision 1.13 diff -c -r1.13 test_parser.py *** Lib/test/test_parser.py 22 Aug 2002 19:43:51 -0000 1.13 --- Lib/test/test_parser.py 29 Jan 2003 10:46:45 -0000 *************** *** 51,56 **** --- 51,60 ---- self.check_expr("foo(a, b, c, *args, **kw)") self.check_expr("foo(a, b, c, **kw)") self.check_expr("foo + bar") + self.check_expr("foo - bar") + self.check_expr("foo * bar") + self.check_expr("foo / bar") + self.check_expr("foo // bar") self.check_expr("lambda: 0") self.check_expr("lambda x: 0") self.check_expr("lambda *y: 0") *************** *** 85,90 **** --- 89,95 ---- self.check_suite("a -= b") self.check_suite("a *= b") self.check_suite("a /= b") + self.check_suite("a //= b") self.check_suite("a %= b") self.check_suite("a &= b") self.check_suite("a |= b")