[PATCH] remove comma in Python/ceval.c

Ralph Corderoy ralph at inputplus.demon.co.uk
Tue Nov 13 00:43:21 CET 2001


Hi,

> I was trying to build Python-2.2a4 on AIX using the xlc compiler. The
> following trivial patch let me build the python executable.

It's made it into CVS.

> -		WHY_YIELD,	/* 'yield' operator */
> +		WHY_YIELD	/* 'yield' operator */

ANSI C doesn't allow trailing commas when defining enumerations.  This
has always seemed a little odd given they're allowed when initialising
arrays.  I guess some compilers allow it even though it isn't strictly
legal.  xlc has caught me like this before.

Cheers,


Ralph.




More information about the Python-list mailing list