Allow all alphanumeric and underscores in type and field names.
diff --git a/Lib/collections.py b/Lib/collections.py
index a2ce552..4a860dd 100644
--- a/Lib/collections.py
+++ b/Lib/collections.py
@@ -24,7 +24,7 @@
"""
field_names = s.split()
- if not ''.join([typename] + field_names).replace('_', '').isalpha():
+ if not ''.join([typename] + field_names).replace('_', '').isalnum():
raise ValueError('Type names and field names can only contain alphanumeric characters and underscores')
argtxt = ', '.join(field_names)
reprtxt = ', '.join('%s=%%r' % name for name in field_names)