[Python-checkins] python/dist/src/Python newcompile.c, 1.1.2.54, 1.1.2.55

jhylton at users.sourceforge.net jhylton at users.sourceforge.net
Sun Nov 23 23:14:37 EST 2003


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

Modified Files:
      Tag: ast-branch
	newcompile.c 
Log Message:
Pass number of default arguments to MAKE_FUNCTION.

Instead of the number of arguments.


Index: newcompile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/newcompile.c,v
retrieving revision 1.1.2.54
retrieving revision 1.1.2.55
diff -C2 -d -r1.1.2.54 -r1.1.2.55
*** newcompile.c	26 Aug 2003 01:21:13 -0000	1.1.2.54
--- newcompile.c	24 Nov 2003 04:14:34 -0000	1.1.2.55
***************
*** 715,719 ****
  	/* XXX closure */
  	ADDOP_O(c, LOAD_CONST, (PyObject *)co, consts);
! 	ADDOP_I(c, MAKE_FUNCTION, c->u->u_argcount);
  	if (!compiler_nameop(c, s->v.FunctionDef.name, Store))
  		return 0;
--- 715,719 ----
  	/* XXX closure */
  	ADDOP_O(c, LOAD_CONST, (PyObject *)co, consts);
! 	ADDOP_I(c, MAKE_FUNCTION, asdl_seq_LEN(args->defaults));
  	if (!compiler_nameop(c, s->v.FunctionDef.name, Store))
  		return 0;





More information about the Python-checkins mailing list