Georg Brandl ge...@python.org added the comment:
The comma isn't required, but it's good practice in Python to end lists
with a comma (so that you don't forget adding it when adding new items),
and this habit probably made it into C code there.
Fixed in r72159.
--
nosy: +georg.brandl
Sridhar Ratnakumar sridh...@activestate.com added the comment:
Georg, should this fix also be applied to the py3k branch as I am able
to repro this on 3.1a2?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5889
Georg Brandl ge...@python.org added the comment:
Yes, in fact it already has been merged.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5889
___
New submission from Sridhar Ratnakumar sridh...@activestate.com:
cc_r -qlanglvl=ansi -c -DNDEBUG -O -I. -IInclude -I./Include
-DPy_BUILD_CORE -o Objects/unicodeobject.o Objects/unicodeobject.c
Objects/stringlib/string_format.h, line 37.15: 1506-275 (S) Unexpected
text ',' encountered.
make:
Sridhar Ratnakumar sridh...@activestate.com added the comment:
typedef enum {
ANS_INIT,
ANS_AUTO,
ANS_MANUAL, --- Extra comma need to be removed
} AutoNumberState; /* Keep track if we're auto-numbering fields */
--
___
Python tracker