I\'m dynamically creating python classes, and I know not all characters are valid in this context.
Is there a method somewhere in the class library that I can use t
As per Python Language Reference, §2.3, "Identifiers and keywords", a valid Python identifier is defined as:
(letter|"_") (letter | digit | "_")*
Or, in regex:
[a-zA-Z_][a-zA-Z0-9_]*