Consider the following code:
def localize(value, localize=None):
The variable localizecontains information on whether to comply with the global localization setting or not. It is called by the same name through three layers of code. What lesser evil
- shadow function name with argument name or
- use a different name in this function than in the rest of the code base, despite the fact that they have exactly the same meaning?
The function localizedoes not use recursion, so the inability to call itself is not a problem.
/ edit: changing the function name is out of the question since it is an open API. The only room for maneuver is the name of the argument.