don't check that the first character is XID_Continue
Current, XID_Continue is a superset of XID_Start, but that may sometime change.
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 2ae1947..aff205d 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -10196,7 +10196,7 @@
if (!_PyUnicode_IsXidStart(first) && first != 0x5F /* LOW LINE */)
return 0;
- for (i = 0; i < PyUnicode_GET_LENGTH(self); i++)
+ for (i = 1; i < PyUnicode_GET_LENGTH(self); i++)
if (!_PyUnicode_IsXidContinue(PyUnicode_READ(kind, data, i)))
return 0;
return 1;