Why doesn Twisted follow PEP 8?
Twisted does follow much of PEP 8 (as is documented in the Twisted coding standard. However, Twisted prefers !camelCase for variables, functions, and methods (whereas PEP 8 recommends underscores) because Twisted predates PEP 8 and converting the entire codebase now is infeasible. Twisted continues to use its existing naming convention for new APIs to retain consistency within the project (according to PEP 8’s recommendation).