6 ms·
This is true, but any decent IDE (I use PyCharm by Jetbrains) will hint you are overrinding a global variable. I like to use the underscore as a throwaway beca
by scardine 11y ago
This is true, but any decent IDE (I use PyCharm by Jetbrains) will hint you are overrinding a global variable.
I like to use the underscore as a throwaway because it is explicit - it is far more common for me to override other common throwaway variable names like "i", "j" or "x" that are also often used as loop counters.
- oinksoft 11y agoDo those editors use the project's builtin namespace? gettext.install sets __builtins__._ to the translation function so that individual modules don't have to import it.
- batat 11y agoYep, there's an option "Collect run-time types information for code insight" (not sure if enabled by default). JetBrains IDEs are smart as hell.