[Python-checkins] python/dist/src/Python symtable.c, 2.10.8.15, 2.10.8.16

jhylton at users.sourceforge.net jhylton at users.sourceforge.net
Tue Dec 2 02:04:54 EST 2003


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv472

Modified Files:
      Tag: ast-branch
	symtable.c 
Log Message:
Set flags for CO_VARARGS and CO_VARKEYWORDS.


Index: symtable.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/symtable.c,v
retrieving revision 2.10.8.15
retrieving revision 2.10.8.16
diff -C2 -d -r2.10.8.15 -r2.10.8.16
*** symtable.c	1 Apr 2003 22:13:31 -0000	2.10.8.15
--- symtable.c	2 Dec 2003 07:04:51 -0000	2.10.8.16
***************
*** 888,895 ****
  	if (a->args && !symtable_visit_params(st, a->args, 1))
  			return 0;
! 	if (a->vararg && !symtable_add_def(st, a->vararg, DEF_PARAM))
  			return 0;
! 	if (a->kwarg && !symtable_add_def(st, a->kwarg, DEF_PARAM))
  			return 0;
  	return 1;
  }
--- 888,901 ----
  	if (a->args && !symtable_visit_params(st, a->args, 1))
  			return 0;
! 	if (a->vararg) {
! 		if (!symtable_add_def(st, a->vararg, DEF_PARAM))
  			return 0;
! 		st->st_cur->ste_varargs = 1;
! 	}
! 	if (a->kwarg) {
! 		if (!symtable_add_def(st, a->kwarg, DEF_PARAM))
  			return 0;
+ 		st->st_cur->ste_varkeywords = 1;
+ 	}
  	return 1;
  }





More information about the Python-checkins mailing list