diff Python/pythonrun.c @ 42597:20477cbfd996

Implement PEP 3131. Add isidentifier to str.
author Martin v. Löwis <martin@v.loewis.de>
date Wed, 15 Aug 2007 07:32:56 +0000
parents 43e32b2b4004
children 302aeee32da8
line wrap: on
line diff
--- a/Python/pythonrun.c	Wed Aug 15 03:56:40 2007 +0000
+++ b/Python/pythonrun.c	Wed Aug 15 07:32:56 2007 +0000
@@ -1530,6 +1530,10 @@
 	case E_LINECONT:
 		msg = "unexpected character after line continuation character";
 		break;
+
+	case E_IDENTIFIER:
+		msg = "invalid character in identifier";
+		break;
 	default:
 		fprintf(stderr, "error=%d\n", err->error);
 		msg = "unknown parsing error";