[Python-checkins] python/dist/src/Python newcompile.c,1.1.2.20,1.1.2.21

Jeremy Hylton jeremy@alum.mit.edu
24 Mar 2003 22:42:42 -0500


On Mon, 2003年03月24日 at 18:29, nascheme@users.sourceforge.net wrote:
> Update of /cvsroot/python/python/dist/src/Python
> In directory sc8-pr-cvs1:/tmp/cvs-serv20816
>> Modified Files:
> Tag: ast-branch
> 	newcompile.c 
> Log Message:
> Don't generate code for asserts if Py_OptimizeFlag is true.

 
> + 	if (Py_OptimizeFlag)
> + 		return 0;
> 	if (assertion_error == NULL) {
> 		assertion_error = PyString_FromString("AssertionError");

I think that should be return 1. A return 0 indicates that an error has
occurred and compilation should stop.
Jeremy

AltStyle によって変換されたページ (->オリジナル) /