Gram

Results 225 comments of Gram

> What would you propose the variable name be? In your sample, `user_id` doesn't conflict with anything, so it should be just `user_id`, why not. > Suppose you have a...

> I also need to state that I am going to pay other core-members and repetitive contributors. It should be also in the roadmap. > I am also going to...

> Autoformatting solutions Most of the rules hard or impossible to fix automatically, unfortunately. When we can, we'll get rid of the developers. > rebranding WPS already well-known by the...

> I didn't manage to configure it in pyproject.toml through flakehell Try adding this: ```toml "inline-quotes" = '"' ```

PyLint has a rule for `for`: ``` cell-var-from-loop (W0640): --   | Cell variable %s defined in loop A variable used in a closure is defined in a loop. This will...

And ``` undefined-loop-variable (W0631): --   | Using possibly undefined loop variable %r Used when an loop variable (i.e. defined by a for loop or a list comprehension or a generator...

We can drop every loop (including body) one-by-one and see for undefined variables as usual.

> I suspect sys.exit(arg), but raise SystemExit(arg) doesn't require any imports Yes, I am for `sys.exit`. 1. Importing of `sys` is incredibly fast, I'd even say free: ```python import sys...

3 point isn't so moot as other, because all these methods have much better way to use it. You can write `a / b` instead of `a.__div__(b)` or `type(a)` instead...

> We also can check .get for dictionaries. That's quite the same as getattr . This: ``` result += a.get(b, 1) ``` Or this: ``` try: result += a[b] except...