3 ms·
I agree with a lot of the criticisms. In addition, 1. The prefixed underscore affects exports if you're providing an API in a package - see the standard librar
by aaronchall 11y ago
I agree with a lot of the criticisms. In addition,
1. The prefixed underscore affects exports if you're providing an API in a package - see the standard library for lots of examples of prepended underscores.
2. Don't use lambdas where a regular function definition works.
3. Only use args and *kwargs where these args are completely generic, otherwise be specific as to the semantics.
4. Complex list comps should be rewritten to append to lists.
5. Multiline condition statements should use indentation other than 4 spaces (2 or 8, for example).
6. Don't use `if foo` when you mean `if foo is not None`.
Good luck with your style guide, I wish more people would make good style important to them.