[Python-checkins] python/dist/src/Python import.c,2.175.2.2,2.175.2.3

Guido van Rossum guido@python.org
Sat, 01 Jun 2002 18:41:32 -0400


> + 	if (CANT_WRITE(co->co_argcount) ||
> + 	    CANT_WRITE(co->co_nlocals) ||
> + 	    CANT_WRITE(co->co_stacksize) ||
> + 	    CANT_WRITE(co->co_flags) ||
> + 	    CANT_WRITE(co->co_firstlineno)) {
> + 		if (Py_VerboseFlag)
> + 			PySys_WriteStderr(
> + 				"# code too large: can't write %s\n",
> + 				cpathname);
> + 		return;
> + 	}

Maybe this should be a call to PyErr_Warn instead?

--Guido van Rossum (home page: http://www.python.org/~guido/)