As an example, in Python I have a lowest_prime_factor function which does it exactly what it says it does. Then, in another function, I need to call this function and store it. In another language where variables and functions can share names then I would simply do lowest_prime_factor = lowest_prime_factor(n). In Python though, this actually redefines lowest_prime_factor such that it's no longer a function at all (which is problematic as I need to call it again several lines later).So I need to name the variable something else - but what else is there that intuitively says this variable holds the lowest prime factor? This is where different casing could come in handy, i.e. starting functions with uppercase letters, but it seems Python more than any other language has a very fixed/well defined naming convention that means I probably shouldn't do this.
How to name variables that clash with functions?
python;coding standards;naming;functions;variables